msm-pcm-routing-v2.c 1.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/err.h>
  6. #include <linux/module.h>
  7. #include <linux/moduleparam.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/bitops.h>
  10. #include <linux/mutex.h>
  11. #include <linux/of_device.h>
  12. #include <linux/slab.h>
  13. #include <sound/core.h>
  14. #include <sound/soc.h>
  15. #include <sound/soc-dapm.h>
  16. #include <sound/pcm.h>
  17. #include <sound/initval.h>
  18. #include <sound/control.h>
  19. #include <sound/tlv.h>
  20. #include <sound/asound.h>
  21. #include <sound/pcm_params.h>
  22. #include <sound/hwdep.h>
  23. #include <sound/audio_effects.h>
  24. #include <dsp/msm-dts-srs-tm-config.h>
  25. #include <dsp/q6voice.h>
  26. #include <dsp/q6adm-v2.h>
  27. #include <dsp/q6asm-v2.h>
  28. #include <dsp/q6afe-v2.h>
  29. #include <dsp/q6lsm.h>
  30. #include <dsp/q6core.h>
  31. #include <dsp/q6common.h>
  32. #include <dsp/audio_cal_utils.h>
  33. #include "msm-pcm-routing-v2.h"
  34. #include "msm-pcm-routing-devdep.h"
  35. #include "msm-qti-pp-config.h"
  36. #include "msm-dolby-dap-config.h"
  37. #include "msm-ds2-dap-config.h"
  38. #define DRV_NAME "msm-pcm-routing-v2"
  39. #ifndef CONFIG_DOLBY_DAP
  40. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  41. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  42. #endif
  43. #ifndef CONFIG_DOLBY_DS2
  44. #undef DS2_ADM_COPP_TOPOLOGY_ID
  45. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  46. #endif
  47. static struct mutex routing_lock;
  48. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  49. static int fm_switch_enable;
  50. static int hfp_switch_enable;
  51. static int a2dp_switch_enable;
  52. static int sco_switch_enable;
  53. static int int0_mi2s_switch_enable;
  54. static int int4_mi2s_switch_enable;
  55. static int pri_mi2s_switch_enable;
  56. static int sec_mi2s_switch_enable;
  57. static int tert_mi2s_switch_enable;
  58. static int quat_mi2s_switch_enable;
  59. static int quin_mi2s_switch_enable;
  60. static int sen_mi2s_switch_enable;
  61. static int fm_pcmrx_switch_enable;
  62. static int usb_switch_enable;
  63. static int lsm_port_index;
  64. static int slim0_rx_aanc_fb_port;
  65. static int msm_route_ec_ref_rx;
  66. static int msm_ec_ref_ch = 4;
  67. static int msm_ec_ref_ch_downmixed = 4;
  68. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  69. static int msm_ec_ref_sampling_rate = 48000;
  70. static uint32_t voc_session_id = ALL_SESSION_VSID;
  71. static int msm_route_ext_ec_ref;
  72. static bool is_custom_stereo_on;
  73. static bool is_ds2_on;
  74. static bool swap_ch;
  75. static bool hifi_filter_enabled;
  76. static int aanc_level;
  77. static int num_app_cfg_types;
  78. static int msm_ec_ref_port_id;
  79. static int afe_loopback_tx_port_index;
  80. static int afe_loopback_tx_port_id = -1;
  81. #define WEIGHT_0_DB 0x4000
  82. /* all the FEs which can support channel mixer */
  83. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  84. /* all the FES which can support channel mixer for bidirection */
  85. static struct msm_pcm_channel_mixer
  86. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  87. /* input BE for each FE */
  88. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  89. enum {
  90. MADNONE,
  91. MADAUDIO,
  92. MADBEACON,
  93. MADULTRASOUND,
  94. MADSWAUDIO,
  95. };
  96. #define ADM_LSM_PORT_INDEX 9
  97. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  98. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  99. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  100. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  101. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  102. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  103. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  104. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  105. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  106. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  107. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  108. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  109. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  110. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  111. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  112. #define TERT_TDM_TX_TEXT "TERT_TDM_TX_0"
  113. #define LSM_FUNCTION_TEXT "LSM Function"
  114. static const char * const lsm_port_text[] = {
  115. "None",
  116. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  117. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  118. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  119. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  120. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT,
  121. TERT_TDM_TX_TEXT
  122. };
  123. struct msm_pcm_route_bdai_pp_params {
  124. u16 port_id; /* AFE port ID */
  125. unsigned long pp_params_config;
  126. bool mute_on;
  127. int latency;
  128. };
  129. static struct msm_pcm_route_bdai_pp_params
  130. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  131. {HDMI_RX, 0, 0, 0},
  132. {DISPLAY_PORT_RX, 0, 0, 0},
  133. };
  134. /*
  135. * The be_dai_name_table is passed to HAL so that it can specify the
  136. * BE ID for the BE it wants to enable based on the name. Thus there
  137. * is a matching table and structure in HAL that need to be updated
  138. * if any changes to these are made.
  139. */
  140. struct msm_pcm_route_bdai_name {
  141. unsigned int be_id;
  142. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  143. };
  144. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  145. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  146. int fe_id);
  147. static void msm_routing_load_topology(size_t data_size, void *data);
  148. static void msm_routing_unload_topology(uint32_t topology_id);
  149. static int msm_routing_get_bit_width(unsigned int format)
  150. {
  151. int bit_width;
  152. switch (format) {
  153. case SNDRV_PCM_FORMAT_S32_LE:
  154. bit_width = 32;
  155. break;
  156. case SNDRV_PCM_FORMAT_S24_LE:
  157. case SNDRV_PCM_FORMAT_S24_3LE:
  158. bit_width = 24;
  159. break;
  160. case SNDRV_PCM_FORMAT_S16_LE:
  161. default:
  162. bit_width = 16;
  163. }
  164. return bit_width;
  165. }
  166. static bool msm_is_resample_needed(int input_sr, int output_sr)
  167. {
  168. bool rc = false;
  169. if (input_sr != output_sr)
  170. rc = true;
  171. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  172. (rc ? "oh yes" : "not really"),
  173. input_sr, output_sr);
  174. return rc;
  175. }
  176. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  177. int channels)
  178. {
  179. int rc = 0;
  180. switch (topology) {
  181. case SRS_TRUMEDIA_TOPOLOGY_ID:
  182. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  183. msm_dts_srs_tm_init(port_id, copp_idx);
  184. break;
  185. case DS2_ADM_COPP_TOPOLOGY_ID:
  186. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  187. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  188. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  189. is_custom_stereo_on);
  190. if (rc < 0)
  191. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  192. __func__, topology, port_id,
  193. is_custom_stereo_on, rc);
  194. break;
  195. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  196. if (is_ds2_on) {
  197. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  198. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  199. is_custom_stereo_on);
  200. if (rc < 0)
  201. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  202. __func__, topology, port_id, rc);
  203. } else {
  204. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  205. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  206. is_custom_stereo_on);
  207. if (rc < 0)
  208. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  209. __func__, topology, port_id, rc);
  210. }
  211. break;
  212. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  213. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  214. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  215. if (rc < 0)
  216. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  217. __func__, topology, port_id, copp_idx, rc);
  218. break;
  219. default:
  220. /* custom topology specific feature param handlers */
  221. break;
  222. }
  223. }
  224. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  225. {
  226. switch (topology) {
  227. case SRS_TRUMEDIA_TOPOLOGY_ID:
  228. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  229. msm_dts_srs_tm_deinit(port_id);
  230. break;
  231. case DS2_ADM_COPP_TOPOLOGY_ID:
  232. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  233. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  234. msm_ds2_dap_deinit(port_id);
  235. break;
  236. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  237. if (is_ds2_on) {
  238. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  239. msm_ds2_dap_deinit(port_id);
  240. } else {
  241. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  242. msm_dolby_dap_deinit(port_id);
  243. }
  244. break;
  245. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  246. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  247. msm_qti_pp_asphere_deinit(port_id);
  248. break;
  249. default:
  250. /* custom topology specific feature deinit handlers */
  251. break;
  252. }
  253. }
  254. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  255. int path_type, int perf_mode)
  256. {
  257. int itr = 0, rc = 0;
  258. if ((path_type == ADM_PATH_PLAYBACK) &&
  259. (perf_mode == LEGACY_PCM_MODE) &&
  260. is_custom_stereo_on) {
  261. for (itr = 0; itr < payload.num_copps; itr++) {
  262. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  263. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  264. continue;
  265. }
  266. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  267. payload.port_id[itr],
  268. payload.copp_idx[itr],
  269. payload.session_id,
  270. Q14_GAIN_ZERO_POINT_FIVE,
  271. Q14_GAIN_ZERO_POINT_FIVE,
  272. Q14_GAIN_ZERO_POINT_FIVE,
  273. Q14_GAIN_ZERO_POINT_FIVE);
  274. if (rc < 0)
  275. pr_err("%s: err setting custom stereo\n",
  276. __func__);
  277. }
  278. }
  279. }
  280. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  281. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  282. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  283. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  284. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  285. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  286. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  287. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  288. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  289. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  290. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  291. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  292. LPASS_BE_AFE_PCM_RX},
  293. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  294. LPASS_BE_AFE_PCM_TX},
  295. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  296. LPASS_BE_AUXPCM_RX},
  297. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  298. LPASS_BE_AUXPCM_TX},
  299. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  300. LPASS_BE_VOICE_PLAYBACK_TX},
  301. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  302. LPASS_BE_VOICE2_PLAYBACK_TX},
  303. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  304. LPASS_BE_INCALL_RECORD_RX},
  305. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  306. LPASS_BE_INCALL_RECORD_TX},
  307. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  308. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  309. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  310. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  311. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  312. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  313. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  314. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  315. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  316. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  317. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  318. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  319. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  320. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  321. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  322. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  323. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  324. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  325. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  326. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  327. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  328. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  329. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  330. LPASS_BE_QUAT_MI2S_RX},
  331. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  332. LPASS_BE_QUAT_MI2S_TX},
  333. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  334. LPASS_BE_SEC_MI2S_RX},
  335. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  336. LPASS_BE_SEC_MI2S_TX},
  337. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  338. LPASS_BE_PRI_MI2S_RX},
  339. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  340. LPASS_BE_PRI_MI2S_TX},
  341. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  342. LPASS_BE_TERT_MI2S_RX},
  343. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  344. LPASS_BE_TERT_MI2S_TX},
  345. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  346. LPASS_BE_AUDIO_I2S_RX},
  347. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  348. LPASS_BE_SEC_AUXPCM_RX},
  349. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  350. LPASS_BE_SEC_AUXPCM_TX},
  351. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  352. LPASS_BE_PRI_SPDIF_RX},
  353. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  354. LPASS_BE_SEC_MI2S_RX_SD1},
  355. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  356. LPASS_BE_QUIN_MI2S_RX},
  357. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  358. LPASS_BE_QUIN_MI2S_TX},
  359. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  360. LPASS_BE_SENARY_MI2S_TX},
  361. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  362. LPASS_BE_PRI_TDM_RX_0},
  363. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  364. LPASS_BE_PRI_TDM_TX_0},
  365. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  366. LPASS_BE_PRI_TDM_RX_1},
  367. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  368. LPASS_BE_PRI_TDM_TX_1},
  369. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  370. LPASS_BE_PRI_TDM_RX_2},
  371. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  372. LPASS_BE_PRI_TDM_TX_2},
  373. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  374. LPASS_BE_PRI_TDM_RX_3},
  375. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  376. LPASS_BE_PRI_TDM_TX_3},
  377. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  378. LPASS_BE_PRI_TDM_RX_4},
  379. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  380. LPASS_BE_PRI_TDM_TX_4},
  381. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  382. LPASS_BE_PRI_TDM_RX_5},
  383. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  384. LPASS_BE_PRI_TDM_TX_5},
  385. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  386. LPASS_BE_PRI_TDM_RX_6},
  387. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  388. LPASS_BE_PRI_TDM_TX_6},
  389. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  390. LPASS_BE_PRI_TDM_RX_7},
  391. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  392. LPASS_BE_PRI_TDM_TX_7},
  393. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  394. LPASS_BE_SEC_TDM_RX_0},
  395. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  396. LPASS_BE_SEC_TDM_TX_0},
  397. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  398. LPASS_BE_SEC_TDM_RX_1},
  399. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  400. LPASS_BE_SEC_TDM_TX_1},
  401. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  402. LPASS_BE_SEC_TDM_RX_2},
  403. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  404. LPASS_BE_SEC_TDM_TX_2},
  405. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  406. LPASS_BE_SEC_TDM_RX_3},
  407. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  408. LPASS_BE_SEC_TDM_TX_3},
  409. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  410. LPASS_BE_SEC_TDM_RX_4},
  411. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  412. LPASS_BE_SEC_TDM_TX_4},
  413. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  414. LPASS_BE_SEC_TDM_RX_5},
  415. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  416. LPASS_BE_SEC_TDM_TX_5},
  417. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  418. LPASS_BE_SEC_TDM_RX_6},
  419. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  420. LPASS_BE_SEC_TDM_TX_6},
  421. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  422. LPASS_BE_SEC_TDM_RX_7},
  423. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  424. LPASS_BE_SEC_TDM_TX_7},
  425. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  426. LPASS_BE_TERT_TDM_RX_0},
  427. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  428. LPASS_BE_TERT_TDM_TX_0},
  429. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  430. LPASS_BE_TERT_TDM_RX_1},
  431. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  432. LPASS_BE_TERT_TDM_TX_1},
  433. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  434. LPASS_BE_TERT_TDM_RX_2},
  435. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  436. LPASS_BE_TERT_TDM_TX_2},
  437. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  438. LPASS_BE_TERT_TDM_RX_3},
  439. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  440. LPASS_BE_TERT_TDM_TX_3},
  441. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  442. LPASS_BE_TERT_TDM_RX_4},
  443. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  444. LPASS_BE_TERT_TDM_TX_4},
  445. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  446. LPASS_BE_TERT_TDM_RX_5},
  447. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  448. LPASS_BE_TERT_TDM_TX_5},
  449. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  450. LPASS_BE_TERT_TDM_RX_6},
  451. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  452. LPASS_BE_TERT_TDM_TX_6},
  453. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  454. LPASS_BE_TERT_TDM_RX_7},
  455. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  456. LPASS_BE_TERT_TDM_TX_7},
  457. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  458. LPASS_BE_QUAT_TDM_RX_0},
  459. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  460. LPASS_BE_QUAT_TDM_TX_0},
  461. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  462. LPASS_BE_QUAT_TDM_RX_1},
  463. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  464. LPASS_BE_QUAT_TDM_TX_1},
  465. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  466. LPASS_BE_QUAT_TDM_RX_2},
  467. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  468. LPASS_BE_QUAT_TDM_TX_2},
  469. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  470. LPASS_BE_QUAT_TDM_RX_3},
  471. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  472. LPASS_BE_QUAT_TDM_TX_3},
  473. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  474. LPASS_BE_QUAT_TDM_RX_4},
  475. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  476. LPASS_BE_QUAT_TDM_TX_4},
  477. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  478. LPASS_BE_QUAT_TDM_RX_5},
  479. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  480. LPASS_BE_QUAT_TDM_TX_5},
  481. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  482. LPASS_BE_QUAT_TDM_RX_6},
  483. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  484. LPASS_BE_QUAT_TDM_TX_6},
  485. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  486. LPASS_BE_QUAT_TDM_RX_7},
  487. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  488. LPASS_BE_QUAT_TDM_TX_7},
  489. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  490. LPASS_BE_QUIN_TDM_RX_0},
  491. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  492. LPASS_BE_QUIN_TDM_TX_0},
  493. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  494. LPASS_BE_QUIN_TDM_RX_1},
  495. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  496. LPASS_BE_QUIN_TDM_TX_1},
  497. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  498. LPASS_BE_QUIN_TDM_RX_2},
  499. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  500. LPASS_BE_QUIN_TDM_TX_2},
  501. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  502. LPASS_BE_QUIN_TDM_RX_3},
  503. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  504. LPASS_BE_QUIN_TDM_TX_3},
  505. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  506. LPASS_BE_QUIN_TDM_RX_4},
  507. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  508. LPASS_BE_QUIN_TDM_TX_4},
  509. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  510. LPASS_BE_QUIN_TDM_RX_5},
  511. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  512. LPASS_BE_QUIN_TDM_TX_5},
  513. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  514. LPASS_BE_QUIN_TDM_RX_6},
  515. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  516. LPASS_BE_QUIN_TDM_TX_6},
  517. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  518. LPASS_BE_QUIN_TDM_RX_7},
  519. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  520. LPASS_BE_QUIN_TDM_TX_7},
  521. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  522. LPASS_BE_SEN_TDM_RX_0},
  523. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  524. LPASS_BE_SEN_TDM_TX_0},
  525. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  526. LPASS_BE_SEN_TDM_RX_1},
  527. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  528. LPASS_BE_SEN_TDM_TX_1},
  529. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  530. LPASS_BE_SEN_TDM_RX_2},
  531. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  532. LPASS_BE_SEN_TDM_TX_2},
  533. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  534. LPASS_BE_SEN_TDM_RX_3},
  535. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  536. LPASS_BE_SEN_TDM_TX_3},
  537. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  538. LPASS_BE_SEN_TDM_RX_4},
  539. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  540. LPASS_BE_SEN_TDM_TX_4},
  541. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  542. LPASS_BE_SEN_TDM_RX_5},
  543. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  544. LPASS_BE_SEN_TDM_TX_5},
  545. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  546. LPASS_BE_SEN_TDM_RX_6},
  547. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  548. LPASS_BE_SEN_TDM_TX_6},
  549. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  550. LPASS_BE_SEN_TDM_RX_7},
  551. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  552. LPASS_BE_SEN_TDM_TX_7},
  553. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  554. LPASS_BE_INT_BT_A2DP_RX},
  555. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  556. LPASS_BE_USB_AUDIO_RX},
  557. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  558. LPASS_BE_USB_AUDIO_TX},
  559. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  560. LPASS_BE_DISPLAY_PORT},
  561. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  562. LPASS_BE_DISPLAY_PORT1},
  563. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  564. LPASS_BE_TERT_AUXPCM_RX},
  565. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  566. LPASS_BE_TERT_AUXPCM_TX},
  567. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  568. LPASS_BE_QUAT_AUXPCM_RX},
  569. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  570. LPASS_BE_QUAT_AUXPCM_TX},
  571. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  572. LPASS_BE_QUIN_AUXPCM_RX},
  573. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  574. LPASS_BE_QUIN_AUXPCM_TX},
  575. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  576. LPASS_BE_INT0_MI2S_RX},
  577. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  578. LPASS_BE_INT0_MI2S_TX},
  579. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  580. LPASS_BE_INT1_MI2S_RX},
  581. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  582. LPASS_BE_INT1_MI2S_TX},
  583. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  584. LPASS_BE_INT2_MI2S_RX},
  585. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  586. LPASS_BE_INT2_MI2S_TX},
  587. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  588. LPASS_BE_INT3_MI2S_RX},
  589. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  590. LPASS_BE_INT3_MI2S_TX},
  591. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  592. LPASS_BE_INT4_MI2S_RX},
  593. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  594. LPASS_BE_INT4_MI2S_TX},
  595. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  596. LPASS_BE_INT5_MI2S_RX},
  597. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  598. LPASS_BE_INT5_MI2S_TX},
  599. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  600. LPASS_BE_INT6_MI2S_RX},
  601. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  602. LPASS_BE_INT6_MI2S_TX},
  603. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  604. LPASS_BE_SEN_AUXPCM_RX},
  605. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  606. LPASS_BE_SEN_AUXPCM_TX},
  607. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  608. LPASS_BE_SENARY_MI2S_RX},
  609. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  610. LPASS_BE_WSA_CDC_DMA_RX_0},
  611. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  612. LPASS_BE_WSA_CDC_DMA_TX_0},
  613. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  614. LPASS_BE_WSA_CDC_DMA_RX_1},
  615. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  616. LPASS_BE_WSA_CDC_DMA_TX_1},
  617. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  618. LPASS_BE_WSA_CDC_DMA_TX_2},
  619. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  620. LPASS_BE_VA_CDC_DMA_TX_0},
  621. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  622. LPASS_BE_VA_CDC_DMA_TX_1},
  623. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  624. LPASS_BE_VA_CDC_DMA_TX_2},
  625. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  626. LPASS_BE_RX_CDC_DMA_RX_0},
  627. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  628. LPASS_BE_TX_CDC_DMA_TX_0},
  629. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  630. LPASS_BE_RX_CDC_DMA_RX_1},
  631. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  632. LPASS_BE_TX_CDC_DMA_TX_1},
  633. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  634. LPASS_BE_RX_CDC_DMA_RX_2},
  635. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  636. LPASS_BE_TX_CDC_DMA_TX_2},
  637. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  638. LPASS_BE_RX_CDC_DMA_RX_3},
  639. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  640. LPASS_BE_TX_CDC_DMA_TX_3},
  641. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  642. LPASS_BE_RX_CDC_DMA_RX_4},
  643. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  644. LPASS_BE_TX_CDC_DMA_TX_4},
  645. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  646. LPASS_BE_RX_CDC_DMA_RX_5},
  647. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  648. LPASS_BE_TX_CDC_DMA_TX_5},
  649. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  650. LPASS_BE_RX_CDC_DMA_RX_6},
  651. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  652. LPASS_BE_RX_CDC_DMA_RX_7},
  653. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  654. LPASS_BE_PRI_SPDIF_TX},
  655. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  656. LPASS_BE_SEC_SPDIF_RX},
  657. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  658. LPASS_BE_SEC_SPDIF_TX},
  659. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  660. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  661. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  662. { AFE_PORT_ID_PRIMARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  663. LPASS_BE_PRI_META_MI2S_RX},
  664. { AFE_PORT_ID_SECONDARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  665. LPASS_BE_SEC_META_MI2S_RX},
  666. };
  667. /* Track ASM playback & capture sessions of DAI
  668. * Track LSM listen sessions
  669. */
  670. static struct msm_pcm_routing_fdai_data
  671. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  672. /* MULTIMEDIA1 */
  673. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  674. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  675. /* MULTIMEDIA2 */
  676. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  677. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  678. /* MULTIMEDIA3 */
  679. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  680. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  681. /* MULTIMEDIA4 */
  682. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  683. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  684. /* MULTIMEDIA5 */
  685. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  686. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  687. /* MULTIMEDIA6 */
  688. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  689. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  690. /* MULTIMEDIA7*/
  691. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  692. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  693. /* MULTIMEDIA8 */
  694. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  695. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  696. /* MULTIMEDIA9 */
  697. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  698. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  699. /* MULTIMEDIA10 */
  700. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  701. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  702. /* MULTIMEDIA11 */
  703. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  704. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  705. /* MULTIMEDIA12 */
  706. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  707. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  708. /* MULTIMEDIA13 */
  709. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  710. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  711. /* MULTIMEDIA14 */
  712. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  713. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  714. /* MULTIMEDIA15 */
  715. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  716. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  717. /* MULTIMEDIA16 */
  718. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  719. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  720. /* MULTIMEDIA17 */
  721. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  722. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  723. /* MULTIMEDIA18 */
  724. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  725. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  726. /* MULTIMEDIA19 */
  727. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  728. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  729. /* MULTIMEDIA20 */
  730. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  731. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  732. /* MULTIMEDIA21 */
  733. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  734. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  735. /* MULTIMEDIA22 */
  736. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  737. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  738. /* MULTIMEDIA26 */
  739. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  740. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  741. /* MULTIMEDIA27 */
  742. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  743. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  744. /* MULTIMEDIA28 */
  745. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  746. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  747. /* MULTIMEDIA29 */
  748. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  749. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  750. /* MULTIMEDIA30 */
  751. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  752. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  753. /* VOIP */
  754. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  755. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  756. /* AFE_RX */
  757. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  758. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  759. /* AFE_TX */
  760. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  761. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  762. /* VOICE_STUB */
  763. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  764. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  765. /* DTMF_RX */
  766. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  767. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  768. /* QCHAT */
  769. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  770. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  771. /* VOLTE_STUB */
  772. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  773. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  774. /* LSM1 */
  775. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  776. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  777. /* LSM2 */
  778. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  779. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  780. /* LSM3 */
  781. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  782. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  783. /* LSM4 */
  784. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  785. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  786. /* LSM5 */
  787. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  788. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  789. /* LSM6 */
  790. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  791. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  792. /* LSM7 */
  793. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  794. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  795. /* LSM8 */
  796. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  797. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  798. /* VOICE2_STUB */
  799. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  800. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  801. /* VOICEMMODE1 */
  802. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  803. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  804. /* VOICEMMODE2 */
  805. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  806. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  807. };
  808. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  809. [MSM_BACKEND_DAI_MAX];
  810. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  811. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  812. static struct msm_pcm_stream_app_type_cfg
  813. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  814. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  815. /* The caller of this should acquire routing lock */
  816. void msm_pcm_routing_get_bedai_info(int be_idx,
  817. struct msm_pcm_routing_bdai_data *be_dai)
  818. {
  819. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  820. memcpy(be_dai, &msm_bedais[be_idx],
  821. sizeof(struct msm_pcm_routing_bdai_data));
  822. }
  823. /* The caller of this should acquire routing lock */
  824. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  825. struct msm_pcm_routing_fdai_data *fe_dai)
  826. {
  827. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  828. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  829. sizeof(struct msm_pcm_routing_fdai_data));
  830. }
  831. void msm_pcm_routing_acquire_lock(void)
  832. {
  833. mutex_lock(&routing_lock);
  834. }
  835. void msm_pcm_routing_release_lock(void)
  836. {
  837. mutex_unlock(&routing_lock);
  838. }
  839. static int msm_pcm_routing_get_app_type_idx(int app_type)
  840. {
  841. int idx;
  842. pr_debug("%s: app_type: %d\n", __func__, app_type);
  843. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  844. if (app_type_cfg[idx].app_type == app_type)
  845. return idx;
  846. }
  847. pr_info("%s: App type not available, fallback to default\n", __func__);
  848. return 0;
  849. }
  850. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  851. {
  852. int idx;
  853. pr_debug("%s: app_type: %d\n", __func__, app_type);
  854. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  855. if (lsm_app_type_cfg[idx].app_type == app_type)
  856. return idx;
  857. }
  858. pr_debug("%s: App type not available, fallback to default\n", __func__);
  859. return 0;
  860. }
  861. static int get_port_id(int port_id)
  862. {
  863. int ret = port_id;
  864. if (port_id == AFE_LOOPBACK_TX) {
  865. /*
  866. * Return afe_loopback_tx_port_id if set. Else return
  867. * msm_ec_ref_port_id to maintain backward compatibility.
  868. */
  869. if (afe_loopback_tx_port_id != -1)
  870. ret = afe_loopback_tx_port_id;
  871. else
  872. ret = msm_ec_ref_port_id;
  873. }
  874. return ret;
  875. }
  876. static bool is_mm_lsm_fe_id(int fe_id)
  877. {
  878. bool rc = true;
  879. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  880. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  881. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  882. rc = false;
  883. }
  884. return rc;
  885. }
  886. /*
  887. * msm_pcm_routing_send_chmix_cfg:
  888. * send the channel mixer command to mix the input channels
  889. * into output channels.
  890. *
  891. * @fe_id: front end id
  892. * @ip_channel_cnt: input channel count
  893. * @op_channel_cnt: output channel count
  894. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  895. * @session_type: indicates session is of type TX or RX
  896. * @stream_type: indicates either Audio or Listen stream type
  897. */
  898. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  899. int op_channel_cnt, int *ch_wght_coeff,
  900. int session_type, int stream_type)
  901. {
  902. int rc = 0, idx = 0;
  903. int be_index = 0, port_id;
  904. unsigned int session_id = 0;
  905. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  906. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  907. stream_type);
  908. if (!is_mm_lsm_fe_id(fe_id)) {
  909. /* bad ID assigned in machine driver */
  910. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  911. return -EINVAL;
  912. }
  913. if (ch_wght_coeff == NULL) {
  914. pr_err("%s: Null channel weightage coefficients passed\n",
  915. __func__);
  916. return -EINVAL;
  917. }
  918. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  919. port_id = msm_bedais[be_index].port_id;
  920. if (!msm_bedais[be_index].active ||
  921. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  922. continue;
  923. session_id = fe_dai_map[fe_id][session_type].strm_id;
  924. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  925. unsigned long copp =
  926. session_copp_map[fe_id][session_type][be_index];
  927. if (!test_bit(idx, &copp))
  928. continue;
  929. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  930. session_id, ip_channel_cnt,
  931. op_channel_cnt, ch_wght_coeff,
  932. session_type, stream_type);
  933. if (rc < 0)
  934. pr_err("%s: err setting channel mix config\n",
  935. __func__);
  936. }
  937. }
  938. return 0;
  939. }
  940. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  941. /**
  942. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  943. * setting before use case start.
  944. *
  945. * @fe_id: frontend idx
  946. * @type: stream direction type
  947. * @params: parameters of channel mixer setting
  948. *
  949. * Return 0 for success
  950. */
  951. int msm_pcm_routing_set_channel_mixer_cfg(
  952. int fe_id, int type,
  953. struct msm_pcm_channel_mixer *params)
  954. {
  955. int i, j = 0;
  956. channel_mixer_v2[fe_id][type].enable = params->enable;
  957. channel_mixer_v2[fe_id][type].rule = params->rule;
  958. channel_mixer_v2[fe_id][type].input_channel =
  959. params->input_channel;
  960. channel_mixer_v2[fe_id][type].output_channel =
  961. params->output_channel;
  962. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  963. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  964. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  965. params->in_ch_map[i];
  966. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  967. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  968. params->out_ch_map[i];
  969. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  970. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  971. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  972. params->channel_weight[i][j];
  973. channel_mixer_v2[fe_id][type].override_in_ch_map =
  974. params->override_in_ch_map;
  975. channel_mixer_v2[fe_id][type].override_out_ch_map =
  976. params->override_out_ch_map;
  977. return 0;
  978. }
  979. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  980. int msm_pcm_routing_reg_stream_app_type_cfg(
  981. int fedai_id, int session_type, int be_id,
  982. struct msm_pcm_stream_app_type_cfg *cfg_data)
  983. {
  984. int ret = 0;
  985. if (cfg_data == NULL) {
  986. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  987. ret = -EINVAL;
  988. goto done;
  989. }
  990. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  991. __func__, fedai_id, session_type, be_id,
  992. cfg_data->app_type, cfg_data->acdb_dev_id,
  993. cfg_data->sample_rate);
  994. if (!is_mm_lsm_fe_id(fedai_id)) {
  995. pr_err("%s: Invalid machine driver ID %d\n",
  996. __func__, fedai_id);
  997. ret = -EINVAL;
  998. goto done;
  999. }
  1000. if (session_type != SESSION_TYPE_RX &&
  1001. session_type != SESSION_TYPE_TX) {
  1002. pr_err("%s: Invalid session type %d\n",
  1003. __func__, session_type);
  1004. ret = -EINVAL;
  1005. goto done;
  1006. }
  1007. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1008. pr_err("%s: Received out of bounds be_id %d\n",
  1009. __func__, be_id);
  1010. ret = -EINVAL;
  1011. goto done;
  1012. }
  1013. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1014. /*
  1015. * Store the BE ID of the configuration information set as the latest so
  1016. * the get mixer control knows what to return.
  1017. */
  1018. last_be_id_configured[fedai_id][session_type] = be_id;
  1019. done:
  1020. return ret;
  1021. }
  1022. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1023. /**
  1024. * msm_pcm_routing_get_stream_app_type_cfg
  1025. *
  1026. * Receives fedai_id, session_type, be_id, and populates app_type,
  1027. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1028. * -EINVAL and does not alter passed values.
  1029. *
  1030. * fedai_id - Passed value, front end ID for which app type config is wanted
  1031. * session_type - Passed value, session type for which app type config
  1032. * is wanted
  1033. * be_id - Returned value, back end device id the app type config data is for
  1034. * cfg_data - Returned value, configuration data used by app type config
  1035. */
  1036. int msm_pcm_routing_get_stream_app_type_cfg(
  1037. int fedai_id, int session_type, int *bedai_id,
  1038. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1039. {
  1040. int be_id;
  1041. int ret = 0;
  1042. if (bedai_id == NULL) {
  1043. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1044. ret = -EINVAL;
  1045. goto done;
  1046. } else if (cfg_data == NULL) {
  1047. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1048. ret = -EINVAL;
  1049. goto done;
  1050. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1051. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1052. ret = -EINVAL;
  1053. goto done;
  1054. } else if (session_type != SESSION_TYPE_RX &&
  1055. session_type != SESSION_TYPE_TX) {
  1056. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1057. ret = -EINVAL;
  1058. goto done;
  1059. }
  1060. be_id = last_be_id_configured[fedai_id][session_type];
  1061. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1062. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1063. ret = -EINVAL;
  1064. goto done;
  1065. }
  1066. *bedai_id = be_id;
  1067. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1068. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1069. __func__, fedai_id, session_type, *bedai_id,
  1070. cfg_data->app_type, cfg_data->acdb_dev_id,
  1071. cfg_data->sample_rate);
  1072. done:
  1073. return ret;
  1074. }
  1075. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1076. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1077. int cal_index)
  1078. {
  1079. struct list_head *ptr, *next;
  1080. struct cal_block_data *cal_block = NULL;
  1081. pr_debug("%s\n", __func__);
  1082. list_for_each_safe(ptr, next,
  1083. &cal_data[cal_index]->cal_blocks) {
  1084. cal_block = list_entry(ptr,
  1085. struct cal_block_data, list);
  1086. if (cal_utils_is_cal_stale(cal_block))
  1087. continue;
  1088. if (((struct audio_cal_info_adm_top *)cal_block
  1089. ->cal_info)->path == path) {
  1090. return cal_block;
  1091. }
  1092. }
  1093. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1094. return NULL;
  1095. }
  1096. static struct cal_block_data *msm_routing_find_topology(int path,
  1097. int app_type,
  1098. int acdb_id,
  1099. int cal_index,
  1100. bool exact)
  1101. {
  1102. struct list_head *ptr, *next;
  1103. struct cal_block_data *cal_block = NULL;
  1104. struct audio_cal_info_adm_top *cal_info;
  1105. pr_debug("%s\n", __func__);
  1106. list_for_each_safe(ptr, next,
  1107. &cal_data[cal_index]->cal_blocks) {
  1108. cal_block = list_entry(ptr,
  1109. struct cal_block_data, list);
  1110. if (cal_utils_is_cal_stale(cal_block))
  1111. continue;
  1112. cal_info = (struct audio_cal_info_adm_top *)
  1113. cal_block->cal_info;
  1114. if ((cal_info->path == path) &&
  1115. (cal_info->app_type == app_type) &&
  1116. (cal_info->acdb_id == acdb_id)) {
  1117. return cal_block;
  1118. }
  1119. }
  1120. pr_debug("%s: Can't find topology for path %d, app %d, "
  1121. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1122. exact ? "fail" : "defaulting to search by path");
  1123. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1124. cal_index);
  1125. }
  1126. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1127. int acdb_dev_id, int idx,
  1128. bool exact)
  1129. {
  1130. int topology = -EINVAL;
  1131. struct cal_block_data *cal_block = NULL;
  1132. mutex_lock(&cal_data[idx]->lock);
  1133. cal_block = msm_routing_find_topology(session_type, app_type,
  1134. acdb_dev_id, idx, exact);
  1135. if (cal_block != NULL) {
  1136. topology = ((struct audio_cal_info_adm_top *)
  1137. cal_block->cal_info)->topology;
  1138. }
  1139. mutex_unlock(&cal_data[idx]->lock);
  1140. return topology;
  1141. }
  1142. /*
  1143. * Retrieving cal_block will mark cal_block as stale.
  1144. * Hence it cannot be reused or resent unless the flag
  1145. * is reset.
  1146. */
  1147. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1148. int be_id)
  1149. {
  1150. int topology = NULL_COPP_TOPOLOGY;
  1151. int app_type = 0, acdb_dev_id = 0;
  1152. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1153. __func__, fedai_id, session_type, be_id);
  1154. if (cal_data == NULL)
  1155. goto done;
  1156. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1157. acdb_dev_id =
  1158. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1159. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1160. topology = msm_routing_find_topology_on_index(session_type,
  1161. app_type,
  1162. acdb_dev_id,
  1163. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1164. true /*exact*/);
  1165. if (topology < 0) {
  1166. pr_debug("%s: Check for compatible topology\n", __func__);
  1167. topology = msm_routing_find_topology_on_index(session_type,
  1168. app_type,
  1169. acdb_dev_id,
  1170. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1171. false /*exact*/);
  1172. if (topology < 0)
  1173. topology = NULL_COPP_TOPOLOGY;
  1174. }
  1175. done:
  1176. pr_debug("%s: Using topology %d\n", __func__, topology);
  1177. return topology;
  1178. }
  1179. static uint8_t is_be_dai_extproc(int be_dai)
  1180. {
  1181. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1182. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1183. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1184. return 1;
  1185. else
  1186. return 0;
  1187. }
  1188. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1189. int path_type, int perf_mode,
  1190. uint32_t passthr_mode)
  1191. {
  1192. int i, port_type, j, num_copps = 0;
  1193. struct route_payload payload;
  1194. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1195. path_type == ADM_PATH_COMPRESSED_RX) ?
  1196. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1197. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1198. if (!is_be_dai_extproc(i) &&
  1199. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1200. (msm_bedais[i].active) &&
  1201. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1202. int port_id = get_port_id(msm_bedais[i].port_id);
  1203. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1204. unsigned long copp =
  1205. session_copp_map[fedai_id][sess_type][i];
  1206. if (test_bit(j, &copp)) {
  1207. payload.port_id[num_copps] = port_id;
  1208. payload.copp_idx[num_copps] = j;
  1209. payload.app_type[num_copps] =
  1210. fe_dai_app_type_cfg
  1211. [fedai_id][sess_type][i]
  1212. .app_type;
  1213. payload.acdb_dev_id[num_copps] =
  1214. fe_dai_app_type_cfg
  1215. [fedai_id][sess_type][i]
  1216. .acdb_dev_id;
  1217. payload.sample_rate[num_copps] =
  1218. fe_dai_app_type_cfg
  1219. [fedai_id][sess_type][i]
  1220. .sample_rate;
  1221. num_copps++;
  1222. }
  1223. }
  1224. }
  1225. }
  1226. if (num_copps) {
  1227. payload.num_copps = num_copps;
  1228. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1229. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1230. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1231. }
  1232. }
  1233. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1234. int stream_type)
  1235. {
  1236. int i, session_type, path_type, port_type;
  1237. u32 mode = 0;
  1238. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1239. /* bad ID assigned in machine driver */
  1240. pr_err("%s: bad MM ID\n", __func__);
  1241. return;
  1242. }
  1243. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1244. session_type = SESSION_TYPE_RX;
  1245. path_type = ADM_PATH_PLAYBACK;
  1246. port_type = MSM_AFE_PORT_TYPE_RX;
  1247. } else {
  1248. session_type = SESSION_TYPE_TX;
  1249. path_type = ADM_PATH_LIVE_REC;
  1250. port_type = MSM_AFE_PORT_TYPE_TX;
  1251. }
  1252. mutex_lock(&routing_lock);
  1253. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1254. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1255. if (!is_be_dai_extproc(i) &&
  1256. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1257. (msm_bedais[i].active) &&
  1258. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1259. mode = afe_get_port_type(msm_bedais[i].port_id);
  1260. adm_connect_afe_port(mode, dspst_id,
  1261. msm_bedais[i].port_id);
  1262. break;
  1263. }
  1264. }
  1265. mutex_unlock(&routing_lock);
  1266. }
  1267. static bool route_check_fe_id_adm_support(int fe_id)
  1268. {
  1269. bool rc = true;
  1270. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1271. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1272. /* fe id is listen while port is set to afe */
  1273. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1274. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1275. __func__, fe_id, lsm_port_index);
  1276. rc = false;
  1277. }
  1278. }
  1279. return rc;
  1280. }
  1281. /*
  1282. * msm_pcm_routing_get_pp_ch_cnt:
  1283. * Read the processed channel count
  1284. *
  1285. * @fe_id: Front end ID
  1286. * @session_type: Inidicates RX or TX session type
  1287. */
  1288. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1289. {
  1290. struct msm_pcm_stream_app_type_cfg cfg_data;
  1291. int be_id = 0, app_type_idx = 0, app_type = 0;
  1292. int ret = -EINVAL;
  1293. memset(&cfg_data, 0, sizeof(cfg_data));
  1294. if (!is_mm_lsm_fe_id(fe_id)) {
  1295. pr_err("%s: bad MM ID\n", __func__);
  1296. return -EINVAL;
  1297. }
  1298. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1299. &be_id, &cfg_data);
  1300. if (ret) {
  1301. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1302. return ret;
  1303. }
  1304. app_type = cfg_data.app_type;
  1305. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1306. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1307. }
  1308. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1309. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1310. int dspst_id, int stream_type,
  1311. uint32_t passthr_mode)
  1312. {
  1313. int i, j, session_type, path_type, port_type, topology;
  1314. int num_copps = 0;
  1315. struct route_payload payload;
  1316. u32 channels, sample_rate;
  1317. u16 bit_width = 16, be_bit_width;
  1318. bool is_lsm;
  1319. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1320. __func__, fe_id, perf_mode, dspst_id,
  1321. stream_type, passthr_mode);
  1322. if (!is_mm_lsm_fe_id(fe_id)) {
  1323. /* bad ID assigned in machine driver */
  1324. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1325. return -EINVAL;
  1326. }
  1327. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1328. session_type = SESSION_TYPE_RX;
  1329. if (passthr_mode != LEGACY_PCM)
  1330. path_type = ADM_PATH_COMPRESSED_RX;
  1331. else
  1332. path_type = ADM_PATH_PLAYBACK;
  1333. port_type = MSM_AFE_PORT_TYPE_RX;
  1334. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1335. session_type = SESSION_TYPE_TX;
  1336. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1337. path_type = ADM_PATH_COMPRESSED_TX;
  1338. else
  1339. path_type = ADM_PATH_LIVE_REC;
  1340. port_type = MSM_AFE_PORT_TYPE_TX;
  1341. } else {
  1342. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1343. return -EINVAL;
  1344. }
  1345. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1346. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1347. mutex_lock(&routing_lock);
  1348. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1349. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1350. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1351. if (!route_check_fe_id_adm_support(fe_id)) {
  1352. /* ignore adm open if not supported for fe_id */
  1353. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1354. mutex_unlock(&routing_lock);
  1355. return 0;
  1356. }
  1357. payload.num_copps = 0; /* only RX needs to use payload */
  1358. /* re-enable EQ if active */
  1359. msm_qti_pp_send_eq_values(fe_id);
  1360. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1361. if (!is_be_dai_extproc(i) &&
  1362. (afe_get_port_type(msm_bedais[i].port_id) ==
  1363. port_type) &&
  1364. (msm_bedais[i].active) &&
  1365. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1366. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1367. int port_id = get_port_id(msm_bedais[i].port_id);
  1368. /*
  1369. * check if ADM needs to be configured with different
  1370. * channel mapping than backend
  1371. */
  1372. if (!msm_bedais[i].adm_override_ch)
  1373. channels = msm_bedais[i].channel;
  1374. else
  1375. channels = msm_bedais[i].adm_override_ch;
  1376. bit_width = msm_routing_get_bit_width(
  1377. msm_bedais[i].format);
  1378. app_type =
  1379. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1380. if (app_type && is_lsm) {
  1381. app_type_idx =
  1382. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1383. sample_rate =
  1384. fe_dai_app_type_cfg[fe_id][session_type][i]
  1385. .sample_rate;
  1386. bit_width =
  1387. lsm_app_type_cfg[app_type_idx].bit_width;
  1388. } else if (app_type) {
  1389. app_type_idx =
  1390. msm_pcm_routing_get_app_type_idx(
  1391. app_type);
  1392. sample_rate =
  1393. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1394. bit_width =
  1395. app_type_cfg[app_type_idx].bit_width;
  1396. } else {
  1397. sample_rate = msm_bedais[i].sample_rate;
  1398. }
  1399. acdb_dev_id =
  1400. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1401. topology = msm_routing_get_adm_topology(fe_id,
  1402. session_type,
  1403. i);
  1404. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1405. || (passthr_mode ==
  1406. COMPRESSED_PASSTHROUGH_GEN)
  1407. || (passthr_mode ==
  1408. COMPRESSED_PASSTHROUGH_IEC61937))
  1409. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1410. pr_debug("%s: Before adm open topology %d\n", __func__,
  1411. topology);
  1412. be_bit_width = msm_routing_get_bit_width(
  1413. msm_bedais[i].format);
  1414. if (hifi_filter_enabled && (msm_bedais[i].sample_rate
  1415. == 384000 || msm_bedais[i].sample_rate ==
  1416. 352800) && be_bit_width == 32)
  1417. bit_width = msm_routing_get_bit_width(
  1418. SNDRV_PCM_FORMAT_S32_LE);
  1419. copp_idx =
  1420. adm_open(port_id, path_type, sample_rate,
  1421. channels, topology, perf_mode,
  1422. bit_width, app_type, acdb_dev_id,
  1423. session_type);
  1424. if ((copp_idx < 0) ||
  1425. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1426. pr_err("%s:adm open failed coppid:%d\n",
  1427. __func__, copp_idx);
  1428. mutex_unlock(&routing_lock);
  1429. return -EINVAL;
  1430. }
  1431. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1432. __func__, fe_id, session_type, i);
  1433. set_bit(copp_idx,
  1434. &session_copp_map[fe_id][session_type][i]);
  1435. if (msm_is_resample_needed(
  1436. sample_rate,
  1437. msm_bedais[i].sample_rate))
  1438. adm_copp_mfc_cfg(port_id, copp_idx,
  1439. msm_bedais[i].sample_rate);
  1440. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1441. unsigned long copp =
  1442. session_copp_map[fe_id][session_type][i];
  1443. if (test_bit(j, &copp)) {
  1444. payload.port_id[num_copps] = port_id;
  1445. payload.copp_idx[num_copps] = j;
  1446. payload.app_type[num_copps] =
  1447. fe_dai_app_type_cfg
  1448. [fe_id][session_type][i]
  1449. .app_type;
  1450. payload.acdb_dev_id[num_copps] =
  1451. fe_dai_app_type_cfg
  1452. [fe_id][session_type][i]
  1453. .acdb_dev_id;
  1454. payload.sample_rate[num_copps] =
  1455. fe_dai_app_type_cfg
  1456. [fe_id][session_type][i]
  1457. .sample_rate;
  1458. num_copps++;
  1459. }
  1460. }
  1461. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1462. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1463. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1464. msm_routing_send_device_pp_params(port_id,
  1465. copp_idx, fe_id);
  1466. }
  1467. }
  1468. if (num_copps) {
  1469. payload.num_copps = num_copps;
  1470. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1471. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1472. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1473. }
  1474. mutex_unlock(&routing_lock);
  1475. return 0;
  1476. }
  1477. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1478. {
  1479. u32 session_id;
  1480. switch (val) {
  1481. case MSM_FRONTEND_DAI_QCHAT:
  1482. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1483. break;
  1484. case MSM_FRONTEND_DAI_VOIP:
  1485. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1486. break;
  1487. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1488. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1489. break;
  1490. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1491. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1492. break;
  1493. default:
  1494. session_id = 0;
  1495. }
  1496. pr_debug("%s session_id 0x%x", __func__, session_id);
  1497. return session_id;
  1498. }
  1499. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1500. int dspst_id, int stream_type)
  1501. {
  1502. int copp_idx = 0;
  1503. int sess_type = 0;
  1504. int j = 0, be_id = 0;
  1505. int ret = 0;
  1506. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1507. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1508. return 0;
  1509. }
  1510. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1511. sess_type = SESSION_TYPE_RX;
  1512. else
  1513. sess_type = SESSION_TYPE_TX;
  1514. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1515. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1516. __func__, fe_id, sess_type);
  1517. return 0;
  1518. }
  1519. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1520. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1521. channel_mixer_v2[fe_id][sess_type].input_channel;
  1522. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1523. __func__, sess_type, fe_id,
  1524. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1525. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1526. msm_bedais[be_id].active);
  1527. if ((msm_bedais[be_id].active) &&
  1528. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1529. unsigned long copp =
  1530. session_copp_map[fe_id][sess_type][be_id];
  1531. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1532. if (test_bit(j, &copp)) {
  1533. copp_idx = j;
  1534. break;
  1535. }
  1536. }
  1537. ret = adm_programable_channel_mixer(
  1538. msm_bedais[be_id].port_id,
  1539. copp_idx, dspst_id, sess_type,
  1540. &channel_mixer_v2[fe_id][sess_type], 0);
  1541. }
  1542. return ret;
  1543. }
  1544. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1545. int dspst_id, int stream_type)
  1546. {
  1547. int copp_idx = 0;
  1548. int sess_type = 0;
  1549. int i = 0, j = 0, be_id;
  1550. int ret = 0;
  1551. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1552. dspst_id, stream_type);
  1553. if (ret) {
  1554. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1555. fe_id);
  1556. return ret;
  1557. }
  1558. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1559. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1560. return 0;
  1561. }
  1562. if (!(channel_mixer[fe_id].enable)) {
  1563. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1564. __func__, fe_id);
  1565. return 0;
  1566. }
  1567. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1568. sess_type = SESSION_TYPE_RX;
  1569. else
  1570. sess_type = SESSION_TYPE_TX;
  1571. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1572. ++i) {
  1573. be_id = channel_input[fe_id][i] - 1;
  1574. channel_mixer[fe_id].input_channels[i] =
  1575. msm_bedais[be_id].channel;
  1576. if ((msm_bedais[be_id].active) &&
  1577. test_bit(fe_id,
  1578. &msm_bedais[be_id].fe_sessions[0])) {
  1579. unsigned long copp =
  1580. session_copp_map[fe_id][sess_type][be_id];
  1581. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1582. if (test_bit(j, &copp)) {
  1583. copp_idx = j;
  1584. break;
  1585. }
  1586. }
  1587. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1588. __func__,
  1589. fe_id, be_id, msm_bedais[be_id].channel,
  1590. copp_idx);
  1591. ret = adm_programable_channel_mixer(
  1592. get_port_id(msm_bedais[be_id].port_id),
  1593. copp_idx, dspst_id, sess_type,
  1594. channel_mixer + fe_id, i);
  1595. }
  1596. }
  1597. return ret;
  1598. }
  1599. /**
  1600. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1601. * setting during runtime.
  1602. *
  1603. * @be_id: backend index
  1604. * @session_id: session index
  1605. * @session_type: session type
  1606. * @params: parameters for channel mixer
  1607. *
  1608. * Retuen: 0 for success, else error
  1609. */
  1610. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1611. int session_type,
  1612. struct msm_pcm_channel_mixer *params)
  1613. {
  1614. int rc = 0;
  1615. int port_id, copp_idx = 0;
  1616. be_id--;
  1617. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1618. pr_err("%s: invalid backend id %d\n", __func__,
  1619. be_id);
  1620. return -EINVAL;
  1621. }
  1622. port_id = msm_bedais[be_id].port_id;
  1623. copp_idx = adm_get_default_copp_idx(port_id);
  1624. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1625. __func__, port_id, copp_idx, session_id);
  1626. if ((params->input_channel < 0) ||
  1627. (params->input_channel > ADM_MAX_CHANNELS)) {
  1628. pr_err("%s: invalid input channel %d\n", __func__,
  1629. params->input_channel);
  1630. return -EINVAL;
  1631. }
  1632. if ((params->output_channel < 0) ||
  1633. (params->output_channel > ADM_MAX_CHANNELS)) {
  1634. pr_err("%s: invalid output channel %d\n", __func__,
  1635. params->output_channel);
  1636. return -EINVAL;
  1637. }
  1638. params->input_channels[0] = params->input_channel;
  1639. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1640. __func__, session_type,
  1641. params->override_in_ch_map,
  1642. params->override_out_ch_map,
  1643. msm_bedais[be_id].active);
  1644. rc = adm_programable_channel_mixer(port_id,
  1645. copp_idx,
  1646. session_id,
  1647. session_type,
  1648. params,
  1649. 0);
  1650. if (rc) {
  1651. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1652. rc = -EINVAL;
  1653. }
  1654. return rc;
  1655. }
  1656. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1657. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1658. int dspst_id, int stream_type)
  1659. {
  1660. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1661. struct route_payload payload;
  1662. u32 channels, sample_rate;
  1663. uint16_t bits_per_sample = 16, be_bit_width;
  1664. uint32_t passthr_mode = LEGACY_PCM;
  1665. int ret = 0;
  1666. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1667. /* bad ID assigned in machine driver */
  1668. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1669. return -EINVAL;
  1670. }
  1671. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1672. session_type = SESSION_TYPE_RX;
  1673. path_type = ADM_PATH_PLAYBACK;
  1674. port_type = MSM_AFE_PORT_TYPE_RX;
  1675. } else {
  1676. session_type = SESSION_TYPE_TX;
  1677. path_type = ADM_PATH_LIVE_REC;
  1678. port_type = MSM_AFE_PORT_TYPE_TX;
  1679. }
  1680. mutex_lock(&routing_lock);
  1681. payload.num_copps = 0; /* only RX needs to use payload */
  1682. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1683. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1684. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1685. /* re-enable EQ if active */
  1686. msm_qti_pp_send_eq_values(fedai_id);
  1687. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1688. if (!is_be_dai_extproc(i) &&
  1689. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1690. (msm_bedais[i].active) &&
  1691. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1692. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1693. int port_id = get_port_id(msm_bedais[i].port_id);
  1694. /*
  1695. * check if ADM needs to be configured with different
  1696. * channel mapping than backend
  1697. */
  1698. if (!msm_bedais[i].adm_override_ch)
  1699. channels = msm_bedais[i].channel;
  1700. else
  1701. channels = msm_bedais[i].adm_override_ch;
  1702. bits_per_sample = msm_routing_get_bit_width(
  1703. msm_bedais[i].format);
  1704. app_type =
  1705. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1706. if (app_type) {
  1707. app_type_idx =
  1708. msm_pcm_routing_get_app_type_idx(app_type);
  1709. sample_rate =
  1710. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1711. .sample_rate;
  1712. bits_per_sample =
  1713. app_type_cfg[app_type_idx].bit_width;
  1714. } else
  1715. sample_rate = msm_bedais[i].sample_rate;
  1716. acdb_dev_id =
  1717. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1718. .acdb_dev_id;
  1719. topology = msm_routing_get_adm_topology(fedai_id,
  1720. session_type,
  1721. i);
  1722. be_bit_width = msm_routing_get_bit_width(
  1723. msm_bedais[i].format);
  1724. if (hifi_filter_enabled && (msm_bedais[i].sample_rate ==
  1725. 384000 ||msm_bedais[i].sample_rate == 352800)
  1726. && be_bit_width == 32)
  1727. bits_per_sample = msm_routing_get_bit_width(
  1728. SNDRV_PCM_FORMAT_S32_LE);
  1729. copp_idx = adm_open(port_id, path_type,
  1730. sample_rate, channels, topology,
  1731. perf_mode, bits_per_sample,
  1732. app_type, acdb_dev_id,
  1733. session_type);
  1734. if ((copp_idx < 0) ||
  1735. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1736. pr_err("%s: adm open failed copp_idx:%d\n",
  1737. __func__, copp_idx);
  1738. mutex_unlock(&routing_lock);
  1739. return -EINVAL;
  1740. }
  1741. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1742. __func__, fedai_id, session_type, i);
  1743. set_bit(copp_idx,
  1744. &session_copp_map[fedai_id][session_type][i]);
  1745. if (msm_is_resample_needed(
  1746. sample_rate,
  1747. msm_bedais[i].sample_rate))
  1748. adm_copp_mfc_cfg(port_id, copp_idx,
  1749. msm_bedais[i].sample_rate);
  1750. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1751. unsigned long copp =
  1752. session_copp_map[fedai_id][session_type][i];
  1753. if (test_bit(j, &copp)) {
  1754. payload.port_id[num_copps] = port_id;
  1755. payload.copp_idx[num_copps] = j;
  1756. payload.app_type[num_copps] =
  1757. fe_dai_app_type_cfg
  1758. [fedai_id][session_type]
  1759. [i].app_type;
  1760. payload.acdb_dev_id[num_copps] =
  1761. fe_dai_app_type_cfg
  1762. [fedai_id][session_type]
  1763. [i].acdb_dev_id;
  1764. payload.sample_rate[num_copps] =
  1765. fe_dai_app_type_cfg
  1766. [fedai_id][session_type]
  1767. [i].sample_rate;
  1768. num_copps++;
  1769. }
  1770. }
  1771. if (perf_mode == LEGACY_PCM_MODE)
  1772. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1773. topology, channels);
  1774. }
  1775. }
  1776. if (num_copps) {
  1777. payload.num_copps = num_copps;
  1778. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1779. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1780. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1781. }
  1782. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1783. dspst_id, stream_type);
  1784. mutex_unlock(&routing_lock);
  1785. return ret;
  1786. }
  1787. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1788. int dspst_id, int stream_type,
  1789. struct msm_pcm_routing_evt event_info)
  1790. {
  1791. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1792. stream_type)) {
  1793. pr_err("%s: failed to reg phy stream\n", __func__);
  1794. return -EINVAL;
  1795. }
  1796. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1797. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1798. else
  1799. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1800. return 0;
  1801. }
  1802. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1803. {
  1804. int i, port_type, session_type, path_type, topology, port_id;
  1805. struct msm_pcm_routing_fdai_data *fdai;
  1806. if (!is_mm_lsm_fe_id(fedai_id)) {
  1807. /* bad ID assigned in machine driver */
  1808. pr_err("%s: bad MM ID\n", __func__);
  1809. return;
  1810. }
  1811. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1812. port_type = MSM_AFE_PORT_TYPE_RX;
  1813. session_type = SESSION_TYPE_RX;
  1814. path_type = ADM_PATH_PLAYBACK;
  1815. } else {
  1816. port_type = MSM_AFE_PORT_TYPE_TX;
  1817. session_type = SESSION_TYPE_TX;
  1818. path_type = ADM_PATH_LIVE_REC;
  1819. }
  1820. mutex_lock(&routing_lock);
  1821. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1822. if (!is_be_dai_extproc(i) &&
  1823. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1824. (msm_bedais[i].active) &&
  1825. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1826. int idx;
  1827. unsigned long copp =
  1828. session_copp_map[fedai_id][session_type][i];
  1829. fdai = &fe_dai_map[fedai_id][session_type];
  1830. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1831. if (test_bit(idx, &copp))
  1832. break;
  1833. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1834. pr_debug("%s: copp idx is invalid, exiting\n",
  1835. __func__);
  1836. continue;
  1837. }
  1838. port_id = get_port_id(msm_bedais[i].port_id);
  1839. topology = adm_get_topology_for_port_copp_idx(
  1840. port_id, idx);
  1841. msm_routing_unload_topology(topology);
  1842. adm_close(port_id, fdai->perf_mode, idx);
  1843. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1844. __func__, copp, fedai_id, session_type, i);
  1845. clear_bit(idx,
  1846. &session_copp_map[fedai_id][session_type][i]);
  1847. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1848. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1849. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1850. (fdai->passthr_mode == LEGACY_PCM))
  1851. msm_pcm_routing_deinit_pp(port_id, topology);
  1852. }
  1853. }
  1854. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1855. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1856. mutex_unlock(&routing_lock);
  1857. }
  1858. /* Check if FE/BE route is set */
  1859. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1860. {
  1861. bool rc = false;
  1862. if (!is_mm_lsm_fe_id(fe_id)) {
  1863. /* recheck FE ID in the mixer control defined in this file */
  1864. pr_err("%s: bad MM ID\n", __func__);
  1865. return rc;
  1866. }
  1867. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1868. rc = true;
  1869. return rc;
  1870. }
  1871. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1872. {
  1873. int session_type, path_type, topology;
  1874. u32 channels, sample_rate;
  1875. uint16_t bits_per_sample = 16, be_bit_width;
  1876. struct msm_pcm_routing_fdai_data *fdai;
  1877. uint32_t passthr_mode;
  1878. bool is_lsm;
  1879. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1880. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1881. afe_get_port_type(msm_bedais[reg].port_id) ==
  1882. MSM_AFE_PORT_TYPE_RX) {
  1883. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1884. __func__, set, msm_bedais[reg].port_id);
  1885. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1886. } else if (!is_mm_lsm_fe_id(val)) {
  1887. /* recheck FE ID in the mixer control defined in this file */
  1888. pr_err("%s: bad MM ID\n", __func__);
  1889. return;
  1890. }
  1891. if (!route_check_fe_id_adm_support(val)) {
  1892. /* ignore adm open if not supported for fe_id */
  1893. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1894. if (set)
  1895. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1896. else
  1897. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1898. return;
  1899. }
  1900. session_type =
  1901. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1902. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1903. fdai = &fe_dai_map[val][session_type];
  1904. passthr_mode = fdai->passthr_mode;
  1905. if (session_type == SESSION_TYPE_RX) {
  1906. if (passthr_mode != LEGACY_PCM)
  1907. path_type = ADM_PATH_COMPRESSED_RX;
  1908. else
  1909. path_type = ADM_PATH_PLAYBACK;
  1910. } else {
  1911. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1912. path_type = ADM_PATH_COMPRESSED_TX;
  1913. else
  1914. path_type = ADM_PATH_LIVE_REC;
  1915. }
  1916. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1917. (val <= MSM_FRONTEND_DAI_LSM8);
  1918. mutex_lock(&routing_lock);
  1919. if (set) {
  1920. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1921. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1922. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1923. voc_start_playback(set, msm_bedais[reg].port_id);
  1924. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1925. if (msm_bedais[reg].active && fdai->strm_id !=
  1926. INVALID_SESSION) {
  1927. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1928. int port_id = get_port_id(msm_bedais[reg].port_id);
  1929. /*
  1930. * check if ADM needs to be configured with different
  1931. * channel mapping than backend
  1932. */
  1933. if (!msm_bedais[reg].adm_override_ch)
  1934. channels = msm_bedais[reg].channel;
  1935. else
  1936. channels = msm_bedais[reg].adm_override_ch;
  1937. if (session_type == SESSION_TYPE_TX &&
  1938. fdai->be_srate &&
  1939. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1940. pr_debug("%s: flush strm %d diff BE rates\n",
  1941. __func__, fdai->strm_id);
  1942. if (fdai->event_info.event_func)
  1943. fdai->event_info.event_func(
  1944. MSM_PCM_RT_EVT_BUF_RECFG,
  1945. fdai->event_info.priv_data);
  1946. fdai->be_srate = 0; /* might not need it */
  1947. }
  1948. bits_per_sample = msm_routing_get_bit_width(
  1949. msm_bedais[reg].format);
  1950. app_type =
  1951. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1952. if (app_type && is_lsm) {
  1953. app_type_idx =
  1954. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1955. sample_rate =
  1956. fe_dai_app_type_cfg[val][session_type][reg]
  1957. .sample_rate;
  1958. bits_per_sample =
  1959. lsm_app_type_cfg[app_type_idx].bit_width;
  1960. } else if (app_type) {
  1961. app_type_idx =
  1962. msm_pcm_routing_get_app_type_idx(app_type);
  1963. sample_rate =
  1964. fe_dai_app_type_cfg[val][session_type][reg]
  1965. .sample_rate;
  1966. bits_per_sample =
  1967. app_type_cfg[app_type_idx].bit_width;
  1968. } else
  1969. sample_rate = msm_bedais[reg].sample_rate;
  1970. topology = msm_routing_get_adm_topology(val,
  1971. session_type,
  1972. reg);
  1973. acdb_dev_id =
  1974. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1975. be_bit_width = msm_routing_get_bit_width(
  1976. msm_bedais[reg].format);
  1977. if (hifi_filter_enabled && (msm_bedais[reg].sample_rate
  1978. == 384000 ||msm_bedais[reg].sample_rate ==
  1979. 352800) && be_bit_width == 32)
  1980. bits_per_sample = msm_routing_get_bit_width(
  1981. SNDRV_PCM_FORMAT_S32_LE);
  1982. copp_idx = adm_open(port_id, path_type,
  1983. sample_rate, channels, topology,
  1984. fdai->perf_mode, bits_per_sample,
  1985. app_type, acdb_dev_id,
  1986. session_type);
  1987. if ((copp_idx < 0) ||
  1988. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1989. pr_err("%s: adm open failed\n", __func__);
  1990. mutex_unlock(&routing_lock);
  1991. return;
  1992. }
  1993. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1994. __func__, val, session_type, reg);
  1995. set_bit(copp_idx,
  1996. &session_copp_map[val][session_type][reg]);
  1997. if (msm_is_resample_needed(
  1998. sample_rate,
  1999. msm_bedais[reg].sample_rate))
  2000. adm_copp_mfc_cfg(port_id, copp_idx,
  2001. msm_bedais[reg].sample_rate);
  2002. if (session_type == SESSION_TYPE_RX &&
  2003. fdai->event_info.event_func)
  2004. fdai->event_info.event_func(
  2005. MSM_PCM_RT_EVT_DEVSWITCH,
  2006. fdai->event_info.priv_data);
  2007. msm_pcm_routing_build_matrix(val, session_type,
  2008. path_type,
  2009. fdai->perf_mode,
  2010. passthr_mode);
  2011. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  2012. (passthr_mode == LEGACY_PCM))
  2013. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  2014. topology, channels);
  2015. }
  2016. } else {
  2017. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2018. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2019. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2020. voc_start_playback(set, msm_bedais[reg].port_id);
  2021. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2022. if (msm_bedais[reg].active && fdai->strm_id !=
  2023. INVALID_SESSION) {
  2024. int idx;
  2025. int port_id;
  2026. unsigned long copp =
  2027. session_copp_map[val][session_type][reg];
  2028. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2029. if (test_bit(idx, &copp))
  2030. break;
  2031. if (idx >= MAX_COPPS_PER_PORT) {
  2032. pr_debug("%s: copp idx is invalid, exiting\n",
  2033. __func__);
  2034. mutex_unlock(&routing_lock);
  2035. return;
  2036. }
  2037. port_id = get_port_id(msm_bedais[reg].port_id);
  2038. topology = adm_get_topology_for_port_copp_idx(port_id,
  2039. idx);
  2040. msm_routing_unload_topology(topology);
  2041. adm_close(port_id, fdai->perf_mode, idx);
  2042. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2043. __func__, copp, val, session_type, reg,
  2044. topology);
  2045. clear_bit(idx,
  2046. &session_copp_map[val][session_type][reg]);
  2047. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2048. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2049. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2050. (passthr_mode == LEGACY_PCM))
  2051. msm_pcm_routing_deinit_pp(port_id, topology);
  2052. msm_pcm_routing_build_matrix(val, session_type,
  2053. path_type,
  2054. fdai->perf_mode,
  2055. passthr_mode);
  2056. }
  2057. }
  2058. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2059. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2060. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2061. mutex_unlock(&routing_lock);
  2062. }
  2063. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2064. struct snd_ctl_elem_value *ucontrol)
  2065. {
  2066. struct soc_mixer_control *mc =
  2067. (struct soc_mixer_control *)kcontrol->private_value;
  2068. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2069. ucontrol->value.integer.value[0] = 1;
  2070. else
  2071. ucontrol->value.integer.value[0] = 0;
  2072. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2073. ucontrol->value.integer.value[0]);
  2074. return 0;
  2075. }
  2076. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2077. struct snd_ctl_elem_value *ucontrol)
  2078. {
  2079. struct snd_soc_dapm_widget *widget =
  2080. snd_soc_dapm_kcontrol_widget(kcontrol);
  2081. struct soc_mixer_control *mc =
  2082. (struct soc_mixer_control *)kcontrol->private_value;
  2083. struct snd_soc_dapm_update *update = NULL;
  2084. if (ucontrol->value.integer.value[0] &&
  2085. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2086. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2087. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2088. update);
  2089. } else if (!ucontrol->value.integer.value[0] &&
  2090. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2091. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2092. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2093. update);
  2094. }
  2095. return 1;
  2096. }
  2097. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2098. struct snd_ctl_elem_value *ucontrol)
  2099. {
  2100. struct soc_mixer_control *mc =
  2101. (struct soc_mixer_control *)kcontrol->private_value;
  2102. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2103. ucontrol->value.integer.value[0] = 1;
  2104. else
  2105. ucontrol->value.integer.value[0] = 0;
  2106. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2107. ucontrol->value.integer.value[0]);
  2108. return 0;
  2109. }
  2110. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2111. struct snd_ctl_elem_value *ucontrol)
  2112. {
  2113. struct snd_soc_dapm_widget *widget =
  2114. snd_soc_dapm_kcontrol_widget(kcontrol);
  2115. struct soc_mixer_control *mc =
  2116. (struct soc_mixer_control *)kcontrol->private_value;
  2117. struct snd_soc_dapm_update *update = NULL;
  2118. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2119. ucontrol->value.integer.value[0]);
  2120. if (ucontrol->value.integer.value[0]) {
  2121. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2122. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2123. snd_soc_dapm_mixer_update_power(widget->dapm,
  2124. kcontrol, 1, update);
  2125. } else if (!ucontrol->value.integer.value[0]) {
  2126. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2127. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2128. snd_soc_dapm_mixer_update_power(widget->dapm,
  2129. kcontrol, 0, update);
  2130. }
  2131. return 1;
  2132. }
  2133. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2134. {
  2135. u32 session_id = 0;
  2136. u16 path_type;
  2137. struct media_format_info voc_be_media_format;
  2138. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2139. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2140. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2141. __func__, val, session_id);
  2142. mutex_lock(&routing_lock);
  2143. if (set)
  2144. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2145. else
  2146. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2147. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2148. afe_get_port_type(msm_bedais[reg].port_id) ==
  2149. MSM_AFE_PORT_TYPE_RX) {
  2150. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2151. __func__, set, msm_bedais[reg].port_id);
  2152. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2153. }
  2154. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2155. MSM_AFE_PORT_TYPE_RX)
  2156. path_type = RX_PATH;
  2157. else
  2158. path_type = TX_PATH;
  2159. if (set) {
  2160. if (msm_bedais[reg].active) {
  2161. voc_set_route_flag(session_id, path_type, 1);
  2162. memset(&voc_be_media_format, 0,
  2163. sizeof(struct media_format_info));
  2164. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2165. voc_be_media_format.num_channels =
  2166. msm_bedais[reg].channel;
  2167. voc_be_media_format.sample_rate =
  2168. msm_bedais[reg].sample_rate;
  2169. voc_be_media_format.bits_per_sample =
  2170. msm_bedais[reg].format;
  2171. /* Defaulting this to 1 for voice call usecases */
  2172. voc_be_media_format.channel_mapping[0] = 1;
  2173. voc_set_device_config(session_id, path_type,
  2174. &voc_be_media_format);
  2175. if (voc_get_route_flag(session_id, TX_PATH) &&
  2176. voc_get_route_flag(session_id, RX_PATH))
  2177. voc_enable_device(session_id);
  2178. } else {
  2179. pr_debug("%s BE is not active\n", __func__);
  2180. }
  2181. } else {
  2182. voc_set_route_flag(session_id, path_type, 0);
  2183. voc_disable_device(session_id);
  2184. }
  2185. mutex_unlock(&routing_lock);
  2186. }
  2187. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2188. struct snd_ctl_elem_value *ucontrol)
  2189. {
  2190. struct soc_mixer_control *mc =
  2191. (struct soc_mixer_control *)kcontrol->private_value;
  2192. mutex_lock(&routing_lock);
  2193. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2194. ucontrol->value.integer.value[0] = 1;
  2195. else
  2196. ucontrol->value.integer.value[0] = 0;
  2197. mutex_unlock(&routing_lock);
  2198. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2199. ucontrol->value.integer.value[0]);
  2200. return 0;
  2201. }
  2202. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2203. struct snd_ctl_elem_value *ucontrol)
  2204. {
  2205. struct snd_soc_dapm_widget *widget =
  2206. snd_soc_dapm_kcontrol_widget(kcontrol);
  2207. struct soc_mixer_control *mc =
  2208. (struct soc_mixer_control *)kcontrol->private_value;
  2209. struct snd_soc_dapm_update *update = NULL;
  2210. if (ucontrol->value.integer.value[0]) {
  2211. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2212. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2213. update);
  2214. } else {
  2215. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2216. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2217. update);
  2218. }
  2219. return 1;
  2220. }
  2221. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2222. struct snd_ctl_elem_value *ucontrol)
  2223. {
  2224. struct soc_mixer_control *mc =
  2225. (struct soc_mixer_control *)kcontrol->private_value;
  2226. mutex_lock(&routing_lock);
  2227. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2228. ucontrol->value.integer.value[0] = 1;
  2229. else
  2230. ucontrol->value.integer.value[0] = 0;
  2231. mutex_unlock(&routing_lock);
  2232. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2233. ucontrol->value.integer.value[0]);
  2234. return 0;
  2235. }
  2236. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2237. struct snd_ctl_elem_value *ucontrol)
  2238. {
  2239. struct snd_soc_dapm_widget *widget =
  2240. snd_soc_dapm_kcontrol_widget(kcontrol);
  2241. struct soc_mixer_control *mc =
  2242. (struct soc_mixer_control *)kcontrol->private_value;
  2243. struct snd_soc_dapm_update *update = NULL;
  2244. if (ucontrol->value.integer.value[0]) {
  2245. mutex_lock(&routing_lock);
  2246. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2247. mutex_unlock(&routing_lock);
  2248. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2249. update);
  2250. } else {
  2251. mutex_lock(&routing_lock);
  2252. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2253. mutex_unlock(&routing_lock);
  2254. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2255. update);
  2256. }
  2257. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2258. ucontrol->value.integer.value[0]);
  2259. return 1;
  2260. }
  2261. /*
  2262. * Return the mapping between port ID and backend ID to enable the AFE callback
  2263. * to determine the acdb_dev_id from the port id
  2264. */
  2265. int msm_pcm_get_be_id_from_port_id(int port_id)
  2266. {
  2267. int i;
  2268. int be_id = -EINVAL;
  2269. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2270. if (msm_bedais[i].port_id == port_id) {
  2271. be_id = i;
  2272. break;
  2273. }
  2274. }
  2275. return be_id;
  2276. }
  2277. /*
  2278. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2279. * correct AFE calibration information by comparing the header information.
  2280. */
  2281. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2282. {
  2283. int acdb_id = -EINVAL;
  2284. int i = 0;
  2285. int session;
  2286. int port_type = afe_get_port_type(port_id);
  2287. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2288. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2289. __func__, port_id, be_id, port_type);
  2290. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2291. session = SESSION_TYPE_TX;
  2292. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2293. session = SESSION_TYPE_RX;
  2294. } else {
  2295. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2296. acdb_id = -EINVAL;
  2297. goto exit;
  2298. }
  2299. if (be_id < 0) {
  2300. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2301. goto exit;
  2302. }
  2303. mutex_lock(&routing_lock);
  2304. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2305. MSM_FRONTEND_DAI_MAX);
  2306. if (i < MSM_FRONTEND_DAI_MAX)
  2307. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2308. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2309. __func__, i, session, be_id, acdb_id);
  2310. mutex_unlock(&routing_lock);
  2311. exit:
  2312. return acdb_id;
  2313. }
  2314. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2315. struct snd_ctl_elem_value *ucontrol)
  2316. {
  2317. ucontrol->value.integer.value[0] = fm_switch_enable;
  2318. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2319. ucontrol->value.integer.value[0]);
  2320. return 0;
  2321. }
  2322. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2323. struct snd_ctl_elem_value *ucontrol)
  2324. {
  2325. struct snd_soc_dapm_widget *widget =
  2326. snd_soc_dapm_kcontrol_widget(kcontrol);
  2327. struct snd_soc_dapm_update *update = NULL;
  2328. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2329. ucontrol->value.integer.value[0]);
  2330. if (ucontrol->value.integer.value[0])
  2331. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2332. update);
  2333. else
  2334. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2335. update);
  2336. fm_switch_enable = ucontrol->value.integer.value[0];
  2337. return 1;
  2338. }
  2339. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2340. struct snd_ctl_elem_value *ucontrol)
  2341. {
  2342. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2343. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2344. ucontrol->value.integer.value[0]);
  2345. return 0;
  2346. }
  2347. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2348. struct snd_ctl_elem_value *ucontrol)
  2349. {
  2350. struct snd_soc_dapm_widget *widget =
  2351. snd_soc_dapm_kcontrol_widget(kcontrol);
  2352. struct snd_soc_dapm_update *update = NULL;
  2353. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2354. ucontrol->value.integer.value[0]);
  2355. if (ucontrol->value.integer.value[0])
  2356. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2357. 1, update);
  2358. else
  2359. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2360. 0, update);
  2361. hfp_switch_enable = ucontrol->value.integer.value[0];
  2362. return 1;
  2363. }
  2364. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2365. struct snd_ctl_elem_value *ucontrol)
  2366. {
  2367. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2368. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2369. ucontrol->value.integer.value[0]);
  2370. return 0;
  2371. }
  2372. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2373. struct snd_ctl_elem_value *ucontrol)
  2374. {
  2375. struct snd_soc_dapm_widget *widget =
  2376. snd_soc_dapm_kcontrol_widget(kcontrol);
  2377. struct snd_soc_dapm_update *update = NULL;
  2378. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2379. ucontrol->value.integer.value[0]);
  2380. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2381. if (a2dp_switch_enable)
  2382. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2383. 1, update);
  2384. else
  2385. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2386. 0, update);
  2387. return 1;
  2388. }
  2389. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2390. struct snd_ctl_elem_value *ucontrol)
  2391. {
  2392. ucontrol->value.integer.value[0] = sco_switch_enable;
  2393. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2394. ucontrol->value.integer.value[0]);
  2395. return 0;
  2396. }
  2397. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2398. struct snd_ctl_elem_value *ucontrol)
  2399. {
  2400. struct snd_soc_dapm_widget *widget =
  2401. snd_soc_dapm_kcontrol_widget(kcontrol);
  2402. struct snd_soc_dapm_update *update = NULL;
  2403. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2404. ucontrol->value.integer.value[0]);
  2405. sco_switch_enable = ucontrol->value.integer.value[0];
  2406. if (sco_switch_enable)
  2407. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2408. 1, update);
  2409. else
  2410. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2411. 0, update);
  2412. return 1;
  2413. }
  2414. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2415. struct snd_ctl_elem_value *ucontrol)
  2416. {
  2417. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2418. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2419. ucontrol->value.integer.value[0]);
  2420. return 0;
  2421. }
  2422. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2423. struct snd_ctl_elem_value *ucontrol)
  2424. {
  2425. struct snd_soc_dapm_widget *widget =
  2426. snd_soc_dapm_kcontrol_widget(kcontrol);
  2427. struct snd_soc_dapm_update *update = NULL;
  2428. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2429. ucontrol->value.integer.value[0]);
  2430. if (ucontrol->value.integer.value[0])
  2431. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2432. update);
  2433. else
  2434. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2435. update);
  2436. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2437. return 1;
  2438. }
  2439. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2440. struct snd_ctl_elem_value *ucontrol)
  2441. {
  2442. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2443. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2444. ucontrol->value.integer.value[0]);
  2445. return 0;
  2446. }
  2447. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2448. struct snd_ctl_elem_value *ucontrol)
  2449. {
  2450. struct snd_soc_dapm_widget *widget =
  2451. snd_soc_dapm_kcontrol_widget(kcontrol);
  2452. struct snd_soc_dapm_update *update = NULL;
  2453. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2454. ucontrol->value.integer.value[0]);
  2455. if (ucontrol->value.integer.value[0])
  2456. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2457. update);
  2458. else
  2459. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2460. update);
  2461. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2462. return 1;
  2463. }
  2464. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2465. struct snd_ctl_elem_value *ucontrol)
  2466. {
  2467. ucontrol->value.integer.value[0] = usb_switch_enable;
  2468. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2469. ucontrol->value.integer.value[0]);
  2470. return 0;
  2471. }
  2472. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2473. struct snd_ctl_elem_value *ucontrol)
  2474. {
  2475. struct snd_soc_dapm_widget *widget =
  2476. snd_soc_dapm_kcontrol_widget(kcontrol);
  2477. struct snd_soc_dapm_update *update = NULL;
  2478. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2479. ucontrol->value.integer.value[0]);
  2480. if (ucontrol->value.integer.value[0])
  2481. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2482. 1, update);
  2483. else
  2484. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2485. 0, update);
  2486. usb_switch_enable = ucontrol->value.integer.value[0];
  2487. return 1;
  2488. }
  2489. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2490. struct snd_ctl_elem_value *ucontrol)
  2491. {
  2492. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2493. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2494. ucontrol->value.integer.value[0]);
  2495. return 0;
  2496. }
  2497. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2498. struct snd_ctl_elem_value *ucontrol)
  2499. {
  2500. struct snd_soc_dapm_widget *widget =
  2501. snd_soc_dapm_kcontrol_widget(kcontrol);
  2502. struct snd_soc_dapm_update *update = NULL;
  2503. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2504. ucontrol->value.integer.value[0]);
  2505. if (ucontrol->value.integer.value[0])
  2506. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2507. update);
  2508. else
  2509. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2510. update);
  2511. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2512. return 1;
  2513. }
  2514. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2515. struct snd_ctl_elem_value *ucontrol)
  2516. {
  2517. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2518. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2519. ucontrol->value.integer.value[0]);
  2520. return 0;
  2521. }
  2522. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2523. struct snd_ctl_elem_value *ucontrol)
  2524. {
  2525. struct snd_soc_dapm_widget *widget =
  2526. snd_soc_dapm_kcontrol_widget(kcontrol);
  2527. struct snd_soc_dapm_update *update = NULL;
  2528. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2529. ucontrol->value.integer.value[0]);
  2530. if (ucontrol->value.integer.value[0])
  2531. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2532. update);
  2533. else
  2534. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2535. update);
  2536. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2537. return 1;
  2538. }
  2539. static int msm_routing_get_tert_mi2s_switch_mixer(
  2540. struct snd_kcontrol *kcontrol,
  2541. struct snd_ctl_elem_value *ucontrol)
  2542. {
  2543. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2544. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2545. ucontrol->value.integer.value[0]);
  2546. return 0;
  2547. }
  2548. static int msm_routing_put_tert_mi2s_switch_mixer(
  2549. struct snd_kcontrol *kcontrol,
  2550. struct snd_ctl_elem_value *ucontrol)
  2551. {
  2552. struct snd_soc_dapm_widget *widget =
  2553. snd_soc_dapm_kcontrol_widget(kcontrol);
  2554. struct snd_soc_dapm_update *update = NULL;
  2555. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2556. ucontrol->value.integer.value[0]);
  2557. if (ucontrol->value.integer.value[0])
  2558. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2559. update);
  2560. else
  2561. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2562. update);
  2563. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2564. return 1;
  2565. }
  2566. static int msm_routing_get_quat_mi2s_switch_mixer(
  2567. struct snd_kcontrol *kcontrol,
  2568. struct snd_ctl_elem_value *ucontrol)
  2569. {
  2570. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2571. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2572. ucontrol->value.integer.value[0]);
  2573. return 0;
  2574. }
  2575. static int msm_routing_put_quat_mi2s_switch_mixer(
  2576. struct snd_kcontrol *kcontrol,
  2577. struct snd_ctl_elem_value *ucontrol)
  2578. {
  2579. struct snd_soc_dapm_widget *widget =
  2580. snd_soc_dapm_kcontrol_widget(kcontrol);
  2581. struct snd_soc_dapm_update *update = NULL;
  2582. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2583. ucontrol->value.integer.value[0]);
  2584. if (ucontrol->value.integer.value[0])
  2585. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2586. update);
  2587. else
  2588. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2589. update);
  2590. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2591. return 1;
  2592. }
  2593. static int msm_routing_get_quin_mi2s_switch_mixer(
  2594. struct snd_kcontrol *kcontrol,
  2595. struct snd_ctl_elem_value *ucontrol)
  2596. {
  2597. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2598. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2599. ucontrol->value.integer.value[0]);
  2600. return 0;
  2601. }
  2602. static int msm_routing_put_quin_mi2s_switch_mixer(
  2603. struct snd_kcontrol *kcontrol,
  2604. struct snd_ctl_elem_value *ucontrol)
  2605. {
  2606. struct snd_soc_dapm_widget *widget =
  2607. snd_soc_dapm_kcontrol_widget(kcontrol);
  2608. struct snd_soc_dapm_update *update = NULL;
  2609. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2610. ucontrol->value.integer.value[0]);
  2611. if (ucontrol->value.integer.value[0])
  2612. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2613. update);
  2614. else
  2615. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2616. update);
  2617. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2618. return 1;
  2619. }
  2620. static int msm_routing_get_sen_mi2s_switch_mixer(
  2621. struct snd_kcontrol *kcontrol,
  2622. struct snd_ctl_elem_value *ucontrol)
  2623. {
  2624. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2625. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2626. ucontrol->value.integer.value[0]);
  2627. return 0;
  2628. }
  2629. static int msm_routing_put_sen_mi2s_switch_mixer(
  2630. struct snd_kcontrol *kcontrol,
  2631. struct snd_ctl_elem_value *ucontrol)
  2632. {
  2633. struct snd_soc_dapm_widget *widget =
  2634. snd_soc_dapm_kcontrol_widget(kcontrol);
  2635. struct snd_soc_dapm_update *update = NULL;
  2636. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2637. ucontrol->value.integer.value[0]);
  2638. if (ucontrol->value.integer.value[0])
  2639. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2640. update);
  2641. else
  2642. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2643. update);
  2644. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2645. return 1;
  2646. }
  2647. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2648. struct snd_ctl_elem_value *ucontrol)
  2649. {
  2650. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2651. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2652. ucontrol->value.integer.value[0]);
  2653. return 0;
  2654. }
  2655. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2656. struct snd_ctl_elem_value *ucontrol)
  2657. {
  2658. struct snd_soc_dapm_widget *widget =
  2659. snd_soc_dapm_kcontrol_widget(kcontrol);
  2660. struct snd_soc_dapm_update *update = NULL;
  2661. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2662. ucontrol->value.integer.value[0]);
  2663. if (ucontrol->value.integer.value[0])
  2664. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2665. update);
  2666. else
  2667. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2668. update);
  2669. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2670. return 1;
  2671. }
  2672. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2673. struct snd_ctl_elem_value *ucontrol)
  2674. {
  2675. ucontrol->value.integer.value[0] = lsm_port_index;
  2676. return 0;
  2677. }
  2678. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2679. struct snd_ctl_elem_value *ucontrol)
  2680. {
  2681. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2682. int mux = ucontrol->value.enumerated.item[0];
  2683. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2684. if (mux >= e->items) {
  2685. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2686. return -EINVAL;
  2687. }
  2688. pr_debug("%s: LSM enable %ld\n", __func__,
  2689. ucontrol->value.integer.value[0]);
  2690. switch (ucontrol->value.integer.value[0]) {
  2691. case 1:
  2692. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2693. break;
  2694. case 2:
  2695. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2696. break;
  2697. case 3:
  2698. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2699. break;
  2700. case 4:
  2701. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2702. break;
  2703. case 5:
  2704. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2705. break;
  2706. case 6:
  2707. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2708. break;
  2709. case 7:
  2710. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2711. break;
  2712. case 8:
  2713. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2714. break;
  2715. case 9:
  2716. lsm_port = ADM_LSM_PORT_ID;
  2717. break;
  2718. case 10:
  2719. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2720. break;
  2721. case 11:
  2722. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2723. break;
  2724. case 12:
  2725. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2726. break;
  2727. case 13:
  2728. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2729. break;
  2730. case 14:
  2731. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2732. break;
  2733. case 15:
  2734. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2735. break;
  2736. case 16:
  2737. lsm_port = AFE_PORT_ID_TERTIARY_TDM_TX;
  2738. break;
  2739. default:
  2740. pr_err("Default lsm port");
  2741. break;
  2742. }
  2743. set_lsm_port(lsm_port);
  2744. lsm_port_index = ucontrol->value.integer.value[0];
  2745. return 0;
  2746. }
  2747. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2748. struct snd_ctl_elem_value *ucontrol)
  2749. {
  2750. int i;
  2751. u16 port_id;
  2752. enum afe_mad_type mad_type;
  2753. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2754. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2755. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2756. strlen(lsm_port_text[i])))
  2757. break;
  2758. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2759. pr_warn("%s: Invalid id name %s\n", __func__,
  2760. kcontrol->id.name);
  2761. return -EINVAL;
  2762. }
  2763. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2764. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2765. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2766. strlen(lsm_port_text[7])))
  2767. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2768. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2769. strlen(lsm_port_text[8])))
  2770. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2771. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2772. strlen(lsm_port_text[10])))
  2773. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2774. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2775. strlen(lsm_port_text[14])))
  2776. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2777. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2778. strlen(lsm_port_text[15])))
  2779. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2780. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2781. strlen(lsm_port_text[16])))
  2782. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2783. mad_type = afe_port_get_mad_type(port_id);
  2784. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2785. mad_type);
  2786. switch (mad_type) {
  2787. case MAD_HW_NONE:
  2788. ucontrol->value.integer.value[0] = MADNONE;
  2789. break;
  2790. case MAD_HW_AUDIO:
  2791. ucontrol->value.integer.value[0] = MADAUDIO;
  2792. break;
  2793. case MAD_HW_BEACON:
  2794. ucontrol->value.integer.value[0] = MADBEACON;
  2795. break;
  2796. case MAD_HW_ULTRASOUND:
  2797. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2798. break;
  2799. case MAD_SW_AUDIO:
  2800. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2801. break;
  2802. default:
  2803. pr_warn("%s: Unknown\n", __func__);
  2804. return -EINVAL;
  2805. }
  2806. return 0;
  2807. }
  2808. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2809. struct snd_ctl_elem_value *ucontrol)
  2810. {
  2811. int i;
  2812. u16 port_id;
  2813. enum afe_mad_type mad_type;
  2814. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2815. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2816. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2817. strlen(lsm_port_text[i])))
  2818. break;
  2819. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2820. pr_warn("%s: Invalid id name %s\n", __func__,
  2821. kcontrol->id.name);
  2822. return -EINVAL;
  2823. }
  2824. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2825. switch (ucontrol->value.integer.value[0]) {
  2826. case MADNONE:
  2827. mad_type = MAD_HW_NONE;
  2828. break;
  2829. case MADAUDIO:
  2830. mad_type = MAD_HW_AUDIO;
  2831. break;
  2832. case MADBEACON:
  2833. mad_type = MAD_HW_BEACON;
  2834. break;
  2835. case MADULTRASOUND:
  2836. mad_type = MAD_HW_ULTRASOUND;
  2837. break;
  2838. case MADSWAUDIO:
  2839. mad_type = MAD_SW_AUDIO;
  2840. break;
  2841. default:
  2842. pr_warn("%s: Unknown\n", __func__);
  2843. return -EINVAL;
  2844. }
  2845. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2846. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2847. strlen(lsm_port_text[7])))
  2848. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2849. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2850. strlen(lsm_port_text[8])))
  2851. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2852. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2853. strlen(lsm_port_text[10])))
  2854. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2855. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2856. strlen(lsm_port_text[14])))
  2857. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2858. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2859. strlen(lsm_port_text[15])))
  2860. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2861. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2862. strlen(lsm_port_text[16])))
  2863. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2864. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2865. mad_type);
  2866. return afe_port_set_mad_type(port_id, mad_type);
  2867. }
  2868. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2869. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  2870. adm_override_chs_text);
  2871. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2872. {
  2873. int backend_id;
  2874. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2875. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2876. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2877. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2878. } else {
  2879. pr_err("%s: unsupported backend id: %s",
  2880. __func__, kcontrol->id.name);
  2881. return -EINVAL;
  2882. }
  2883. return backend_id;
  2884. }
  2885. static int msm_routing_adm_channel_config_get(
  2886. struct snd_kcontrol *kcontrol,
  2887. struct snd_ctl_elem_value *ucontrol)
  2888. {
  2889. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2890. if (backend_id >= 0) {
  2891. mutex_lock(&routing_lock);
  2892. ucontrol->value.integer.value[0] =
  2893. msm_bedais[backend_id].adm_override_ch;
  2894. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2895. ucontrol->value.integer.value[0], backend_id);
  2896. mutex_unlock(&routing_lock);
  2897. }
  2898. return 0;
  2899. }
  2900. static int msm_routing_adm_channel_config_put(
  2901. struct snd_kcontrol *kcontrol,
  2902. struct snd_ctl_elem_value *ucontrol)
  2903. {
  2904. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2905. if (backend_id >= 0) {
  2906. mutex_lock(&routing_lock);
  2907. msm_bedais[backend_id].adm_override_ch =
  2908. ucontrol->value.integer.value[0];
  2909. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2910. __func__, backend_id,
  2911. msm_bedais[backend_id].adm_override_ch);
  2912. mutex_unlock(&routing_lock);
  2913. }
  2914. return 0;
  2915. }
  2916. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2917. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2918. msm_routing_adm_channel_config_get,
  2919. msm_routing_adm_channel_config_put),
  2920. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2921. msm_routing_adm_channel_config_get,
  2922. msm_routing_adm_channel_config_put),
  2923. };
  2924. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2925. struct snd_ctl_elem_value *ucontrol)
  2926. {
  2927. mutex_lock(&routing_lock);
  2928. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2929. mutex_unlock(&routing_lock);
  2930. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2931. ucontrol->value.integer.value[0]);
  2932. return 0;
  2933. };
  2934. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2935. struct snd_ctl_elem_value *ucontrol)
  2936. {
  2937. struct aanc_data aanc_info;
  2938. mutex_lock(&routing_lock);
  2939. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2940. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2941. ucontrol->value.integer.value[0]);
  2942. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2943. if (ucontrol->value.integer.value[0] == 0) {
  2944. aanc_info.aanc_active = false;
  2945. aanc_info.aanc_tx_port = 0;
  2946. aanc_info.aanc_rx_port = 0;
  2947. } else {
  2948. aanc_info.aanc_active = true;
  2949. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2950. aanc_info.aanc_tx_port =
  2951. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2952. }
  2953. afe_set_aanc_info(&aanc_info);
  2954. mutex_unlock(&routing_lock);
  2955. return 0;
  2956. };
  2957. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2958. struct snd_ctl_elem_value *ucontrol)
  2959. {
  2960. int idx = 0, shift = 0;
  2961. struct soc_mixer_control *mc =
  2962. (struct soc_mixer_control *)kcontrol->private_value;
  2963. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2964. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2965. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2966. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2967. return -EINVAL;
  2968. }
  2969. if (test_bit(shift,
  2970. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2971. ucontrol->value.integer.value[0] = 1;
  2972. else
  2973. ucontrol->value.integer.value[0] = 0;
  2974. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2975. ucontrol->value.integer.value[0]);
  2976. return 0;
  2977. }
  2978. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2979. struct snd_ctl_elem_value *ucontrol)
  2980. {
  2981. int idx = 0, shift = 0;
  2982. struct soc_mixer_control *mc =
  2983. (struct soc_mixer_control *)kcontrol->private_value;
  2984. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2985. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2986. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2987. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2988. return -EINVAL;
  2989. }
  2990. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2991. __func__, mc->shift, mc->rshift,
  2992. ucontrol->value.integer.value[0], idx, shift);
  2993. if (ucontrol->value.integer.value[0]) {
  2994. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2995. msm_bedais[mc->rshift].port_id);
  2996. set_bit(shift,
  2997. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2998. } else {
  2999. afe_loopback(0, msm_bedais[mc->shift].port_id,
  3000. msm_bedais[mc->rshift].port_id);
  3001. clear_bit(shift,
  3002. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3003. }
  3004. return 1;
  3005. }
  3006. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  3007. struct snd_ctl_elem_value *ucontrol)
  3008. {
  3009. u16 fe_id = 0;
  3010. fe_id = ((struct soc_mixer_control *)
  3011. kcontrol->private_value)->shift;
  3012. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3013. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3014. return -EINVAL;
  3015. }
  3016. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  3017. return 0;
  3018. }
  3019. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  3020. struct snd_ctl_elem_value *ucontrol)
  3021. {
  3022. u16 fe_id = 0;
  3023. fe_id = ((struct soc_mixer_control *)
  3024. kcontrol->private_value)->shift;
  3025. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3026. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3027. return -EINVAL;
  3028. }
  3029. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3030. return 1;
  3031. }
  3032. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3033. struct snd_ctl_elem_value *ucontrol)
  3034. {
  3035. u16 fe_id = 0;
  3036. fe_id = ((struct soc_multi_mixer_control *)
  3037. kcontrol->private_value)->shift;
  3038. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3039. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3040. return -EINVAL;
  3041. }
  3042. ucontrol->value.integer.value[0] =
  3043. channel_mixer[fe_id].output_channel;
  3044. return 0;
  3045. }
  3046. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3047. struct snd_ctl_elem_value *ucontrol)
  3048. {
  3049. u16 fe_id = 0;
  3050. fe_id = ((struct soc_multi_mixer_control *)
  3051. kcontrol->private_value)->shift;
  3052. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3053. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3054. return -EINVAL;
  3055. }
  3056. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3057. fe_id,
  3058. (unsigned int)(ucontrol->value.integer.value[0]));
  3059. channel_mixer[fe_id].output_channel =
  3060. (unsigned int)(ucontrol->value.integer.value[0]);
  3061. return 1;
  3062. }
  3063. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3064. /* If new backend is added, need update this array */
  3065. static const char *const be_name[] = {
  3066. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3067. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3068. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3069. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3070. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3071. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3072. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3073. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3074. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3075. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3076. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3077. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3078. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3079. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3080. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3081. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3082. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3083. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3084. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3085. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3086. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3087. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3088. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3089. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3090. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3091. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3092. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3093. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3094. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3095. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3096. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3097. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3098. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3099. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3100. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3101. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3102. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3103. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3104. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3105. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3106. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3107. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3108. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3109. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3110. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3111. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3112. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3113. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3114. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3115. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3116. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3117. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3118. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3119. "SEC_META_MI2S_RX"
  3120. };
  3121. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3122. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3123. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3124. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3125. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3126. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3127. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3128. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3129. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3130. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3131. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3132. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3133. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3134. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3135. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3136. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3137. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3138. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3139. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3140. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3141. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3142. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3143. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3144. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3145. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3146. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3147. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3148. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3149. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3150. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3151. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3152. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3153. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3154. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3155. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3156. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3157. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3158. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3159. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3160. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3161. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3162. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3163. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3164. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3165. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3166. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3167. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3168. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3169. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3170. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3171. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3172. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3173. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3174. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3175. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3176. unsigned int channels,
  3177. unsigned int items, const char *const names[])
  3178. {
  3179. if (uinfo->value.enumerated.item >= items)
  3180. uinfo->value.enumerated.item = items - 1;
  3181. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3182. sizeof(uinfo->value.enumerated.name),
  3183. "ALSA: too long item name '%s'\n",
  3184. names[uinfo->value.enumerated.item]);
  3185. strlcpy(uinfo->value.enumerated.name,
  3186. names[uinfo->value.enumerated.item],
  3187. sizeof(uinfo->value.enumerated.name));
  3188. return 0;
  3189. }
  3190. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3191. struct snd_ctl_elem_info *uinfo)
  3192. {
  3193. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3194. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3195. uinfo->count = 1;
  3196. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3197. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3198. return 0;
  3199. }
  3200. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3201. struct snd_ctl_elem_value *ucontrol)
  3202. {
  3203. u16 fe_id = 0;
  3204. fe_id = ((struct soc_enum *)
  3205. kcontrol->private_value)->shift_l;
  3206. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3207. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3208. return -EINVAL;
  3209. }
  3210. pr_debug("%s: FE %d %s\n", __func__,
  3211. fe_id,
  3212. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3213. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3214. return 0;
  3215. }
  3216. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3217. struct snd_ctl_elem_value *ucontrol)
  3218. {
  3219. u16 fe_id = 0;
  3220. fe_id = ((struct soc_enum *)
  3221. kcontrol->private_value)->shift_l;
  3222. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3223. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3224. return -EINVAL;
  3225. }
  3226. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3227. pr_debug("%s: %s FE %d\n", __func__,
  3228. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3229. fe_id);
  3230. return 0;
  3231. }
  3232. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3233. struct snd_ctl_elem_info *uinfo)
  3234. {
  3235. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3236. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3237. uinfo->count = 1;
  3238. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3239. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3240. return 0;
  3241. }
  3242. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3243. struct snd_ctl_elem_value *ucontrol)
  3244. {
  3245. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3246. u16 fe_id = 0, in_ch = 0;
  3247. fe_id = e->shift_l;
  3248. in_ch = e->shift_r;
  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 (in_ch >= ADM_MAX_CHANNELS) {
  3254. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3255. return -EINVAL;
  3256. }
  3257. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3258. return 1;
  3259. }
  3260. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3261. struct snd_ctl_elem_value *ucontrol)
  3262. {
  3263. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3264. u16 fe_id = 0, in_ch = 0;
  3265. fe_id = e->shift_l;
  3266. in_ch = e->shift_r;
  3267. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3268. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3269. return -EINVAL;
  3270. }
  3271. if (in_ch >= ADM_MAX_CHANNELS) {
  3272. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3273. return -EINVAL;
  3274. }
  3275. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3276. return 1;
  3277. }
  3278. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3279. struct snd_ctl_elem_info *uinfo)
  3280. {
  3281. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3282. uinfo->count = ADM_MAX_CHANNELS;
  3283. uinfo->value.integer.min = 0;
  3284. uinfo->value.integer.max = WEIGHT_0_DB;
  3285. return 0;
  3286. }
  3287. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3288. struct snd_ctl_elem_value *ucontrol)
  3289. {
  3290. u16 fe_id = 0, out_ch = 0;
  3291. int i, weight;
  3292. fe_id = ((struct soc_multi_mixer_control *)
  3293. kcontrol->private_value)->shift;
  3294. out_ch = ((struct soc_multi_mixer_control *)
  3295. kcontrol->private_value)->rshift;
  3296. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3297. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3298. return -EINVAL;
  3299. }
  3300. if (out_ch >= ADM_MAX_CHANNELS) {
  3301. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3302. return -EINVAL;
  3303. }
  3304. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3305. __func__, fe_id,
  3306. ucontrol->value.integer.value[0],
  3307. ucontrol->value.integer.value[1],
  3308. ucontrol->value.integer.value[2],
  3309. ucontrol->value.integer.value[3],
  3310. ucontrol->value.integer.value[4],
  3311. ucontrol->value.integer.value[5],
  3312. ucontrol->value.integer.value[6],
  3313. ucontrol->value.integer.value[7]);
  3314. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3315. weight = ucontrol->value.integer.value[i];
  3316. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3317. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3318. __func__, fe_id, out_ch, i,
  3319. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3320. }
  3321. return 0;
  3322. }
  3323. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3324. struct snd_ctl_elem_value *ucontrol)
  3325. {
  3326. u16 fe_id = 0, out_ch = 0;
  3327. int i;
  3328. fe_id = ((struct soc_multi_mixer_control *)
  3329. kcontrol->private_value)->shift;
  3330. out_ch = ((struct soc_multi_mixer_control *)
  3331. kcontrol->private_value)->rshift;
  3332. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3333. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3334. return -EINVAL;
  3335. }
  3336. if (out_ch >= ADM_MAX_CHANNELS) {
  3337. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3338. return -EINVAL;
  3339. }
  3340. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3341. ucontrol->value.integer.value[i] =
  3342. channel_mixer[fe_id].channel_weight[out_ch][i];
  3343. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3344. __func__, fe_id,
  3345. ucontrol->value.integer.value[0],
  3346. ucontrol->value.integer.value[1],
  3347. ucontrol->value.integer.value[2],
  3348. ucontrol->value.integer.value[3],
  3349. ucontrol->value.integer.value[4],
  3350. ucontrol->value.integer.value[5],
  3351. ucontrol->value.integer.value[6],
  3352. ucontrol->value.integer.value[7]);
  3353. return 0;
  3354. }
  3355. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3356. struct snd_ctl_elem_info *uinfo)
  3357. {
  3358. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3359. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3360. /* Valid channel map value ranges from 1 to 64 */
  3361. uinfo->value.integer.min = 0;
  3362. uinfo->value.integer.max = 64;
  3363. return 0;
  3364. }
  3365. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3366. struct snd_ctl_elem_value *ucontrol)
  3367. {
  3368. u16 fe_id = 0;
  3369. int i, ch_map;
  3370. fe_id = ((struct soc_multi_mixer_control *)
  3371. kcontrol->private_value)->shift;
  3372. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3373. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3374. return -EINVAL;
  3375. }
  3376. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3377. ch_map = ucontrol->value.integer.value[i];
  3378. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3379. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3380. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3381. }
  3382. /* Make override_out_ch_map false if ch map is reset */
  3383. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3384. channel_mixer[fe_id].override_out_ch_map = false;
  3385. else
  3386. channel_mixer[fe_id].override_out_ch_map = true;
  3387. return 0;
  3388. }
  3389. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3390. struct snd_ctl_elem_value *ucontrol)
  3391. {
  3392. u16 fe_id = 0;
  3393. int i;
  3394. fe_id = ((struct soc_multi_mixer_control *)
  3395. kcontrol->private_value)->shift;
  3396. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3397. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3398. return -EINVAL;
  3399. }
  3400. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3401. ucontrol->value.integer.value[i] =
  3402. channel_mixer[fe_id].out_ch_map[i];
  3403. return 0;
  3404. }
  3405. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3406. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3407. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3408. msm_pcm_get_channel_rule_index,
  3409. msm_pcm_put_channel_rule_index),
  3410. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3411. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3412. msm_pcm_get_channel_rule_index,
  3413. msm_pcm_put_channel_rule_index),
  3414. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3415. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3416. msm_pcm_get_channel_rule_index,
  3417. msm_pcm_put_channel_rule_index),
  3418. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3419. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3420. msm_pcm_get_channel_rule_index,
  3421. msm_pcm_put_channel_rule_index),
  3422. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3423. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3424. msm_pcm_get_channel_rule_index,
  3425. msm_pcm_put_channel_rule_index),
  3426. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3427. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3428. msm_pcm_get_channel_rule_index,
  3429. msm_pcm_put_channel_rule_index),
  3430. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3431. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3432. msm_pcm_get_channel_rule_index,
  3433. msm_pcm_put_channel_rule_index),
  3434. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3435. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3436. msm_pcm_get_channel_rule_index,
  3437. msm_pcm_put_channel_rule_index),
  3438. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3439. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3440. msm_pcm_get_channel_rule_index,
  3441. msm_pcm_put_channel_rule_index),
  3442. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3443. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3444. msm_pcm_get_channel_rule_index,
  3445. msm_pcm_put_channel_rule_index),
  3446. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3447. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3448. msm_pcm_get_channel_rule_index,
  3449. msm_pcm_put_channel_rule_index),
  3450. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3451. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3452. msm_pcm_get_out_chs,
  3453. msm_pcm_put_out_chs),
  3454. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3455. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3456. msm_pcm_get_out_chs,
  3457. msm_pcm_put_out_chs),
  3458. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3459. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3460. msm_pcm_get_out_chs,
  3461. msm_pcm_put_out_chs),
  3462. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3463. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3464. msm_pcm_get_out_chs,
  3465. msm_pcm_put_out_chs),
  3466. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3467. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3468. msm_pcm_get_out_chs,
  3469. msm_pcm_put_out_chs),
  3470. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3471. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3472. msm_pcm_get_out_chs,
  3473. msm_pcm_put_out_chs),
  3474. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3475. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3476. msm_pcm_get_out_chs,
  3477. msm_pcm_put_out_chs),
  3478. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3479. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3480. msm_pcm_get_out_chs,
  3481. msm_pcm_put_out_chs),
  3482. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3483. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3484. msm_pcm_get_out_chs,
  3485. msm_pcm_put_out_chs),
  3486. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3487. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3488. msm_pcm_get_out_chs,
  3489. msm_pcm_put_out_chs),
  3490. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3491. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3492. msm_pcm_get_out_chs,
  3493. msm_pcm_put_out_chs),
  3494. {
  3495. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3496. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3497. .name = "MultiMedia1 Channel Mixer",
  3498. .info = msm_pcm_channel_mixer_info,
  3499. .get = msm_pcm_channel_mixer_get,
  3500. .put = msm_pcm_channel_mixer_put,
  3501. .private_value = (unsigned long)&(mm1_channel_mux)
  3502. },
  3503. {
  3504. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3505. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3506. .name = "MultiMedia2 Channel Mixer",
  3507. .info = msm_pcm_channel_mixer_info,
  3508. .get = msm_pcm_channel_mixer_get,
  3509. .put = msm_pcm_channel_mixer_put,
  3510. .private_value = (unsigned long)&(mm2_channel_mux)
  3511. },
  3512. {
  3513. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3514. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3515. .name = "MultiMedia3 Channel Mixer",
  3516. .info = msm_pcm_channel_mixer_info,
  3517. .get = msm_pcm_channel_mixer_get,
  3518. .put = msm_pcm_channel_mixer_put,
  3519. .private_value = (unsigned long)&(mm3_channel_mux)
  3520. },
  3521. {
  3522. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3523. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3524. .name = "MultiMedia4 Channel Mixer",
  3525. .info = msm_pcm_channel_mixer_info,
  3526. .get = msm_pcm_channel_mixer_get,
  3527. .put = msm_pcm_channel_mixer_put,
  3528. .private_value = (unsigned long)&(mm4_channel_mux)
  3529. },
  3530. {
  3531. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3532. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3533. .name = "MultiMedia18 Channel Mixer",
  3534. .info = msm_pcm_channel_mixer_info,
  3535. .get = msm_pcm_channel_mixer_get,
  3536. .put = msm_pcm_channel_mixer_put,
  3537. .private_value = (unsigned long)&(mm18_channel_mux)
  3538. },
  3539. {
  3540. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3541. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3542. .name = "MultiMedia19 Channel Mixer",
  3543. .info = msm_pcm_channel_mixer_info,
  3544. .get = msm_pcm_channel_mixer_get,
  3545. .put = msm_pcm_channel_mixer_put,
  3546. .private_value = (unsigned long)&(mm19_channel_mux)
  3547. },
  3548. {
  3549. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3550. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3551. .name = "MultiMedia28 Channel Mixer",
  3552. .info = msm_pcm_channel_mixer_info,
  3553. .get = msm_pcm_channel_mixer_get,
  3554. .put = msm_pcm_channel_mixer_put,
  3555. .private_value = (unsigned long)&(mm28_channel_mux)
  3556. },
  3557. {
  3558. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3559. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3560. .name = "MultiMedia29 Channel Mixer",
  3561. .info = msm_pcm_channel_mixer_info,
  3562. .get = msm_pcm_channel_mixer_get,
  3563. .put = msm_pcm_channel_mixer_put,
  3564. .private_value = (unsigned long)&(mm29_channel_mux)
  3565. },
  3566. {
  3567. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3568. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3569. .name = "MultiMedia30 Channel Mixer",
  3570. .info = msm_pcm_channel_mixer_info,
  3571. .get = msm_pcm_channel_mixer_get,
  3572. .put = msm_pcm_channel_mixer_put,
  3573. .private_value = (unsigned long)&(mm30_channel_mux)
  3574. },
  3575. {
  3576. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3577. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3578. .name = "MultiMedia1 Output Channel1",
  3579. .info = msm_pcm_channel_weight_info,
  3580. .get = msm_pcm_channel_weight_get,
  3581. .put = msm_pcm_channel_weight_put,
  3582. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3583. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3584. },
  3585. {
  3586. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3587. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3588. .name = "MultiMedia1 Output Channel2",
  3589. .info = msm_pcm_channel_weight_info,
  3590. .get = msm_pcm_channel_weight_get,
  3591. .put = msm_pcm_channel_weight_put,
  3592. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3593. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3594. },
  3595. {
  3596. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3597. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3598. .name = "MultiMedia1 Output Channel3",
  3599. .info = msm_pcm_channel_weight_info,
  3600. .get = msm_pcm_channel_weight_get,
  3601. .put = msm_pcm_channel_weight_put,
  3602. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3603. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3604. },
  3605. {
  3606. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3607. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3608. .name = "MultiMedia1 Output Channel4",
  3609. .info = msm_pcm_channel_weight_info,
  3610. .get = msm_pcm_channel_weight_get,
  3611. .put = msm_pcm_channel_weight_put,
  3612. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3613. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3614. },
  3615. {
  3616. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3617. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3618. .name = "MultiMedia1 Output Channel5",
  3619. .info = msm_pcm_channel_weight_info,
  3620. .get = msm_pcm_channel_weight_get,
  3621. .put = msm_pcm_channel_weight_put,
  3622. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3623. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3624. },
  3625. {
  3626. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3627. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3628. .name = "MultiMedia1 Output Channel6",
  3629. .info = msm_pcm_channel_weight_info,
  3630. .get = msm_pcm_channel_weight_get,
  3631. .put = msm_pcm_channel_weight_put,
  3632. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3633. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3634. },
  3635. {
  3636. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3637. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3638. .name = "MultiMedia1 Output Channel7",
  3639. .info = msm_pcm_channel_weight_info,
  3640. .get = msm_pcm_channel_weight_get,
  3641. .put = msm_pcm_channel_weight_put,
  3642. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3643. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3644. },
  3645. {
  3646. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3647. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3648. .name = "MultiMedia1 Output Channel8",
  3649. .info = msm_pcm_channel_weight_info,
  3650. .get = msm_pcm_channel_weight_get,
  3651. .put = msm_pcm_channel_weight_put,
  3652. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3653. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3654. },
  3655. {
  3656. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3657. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3658. .name = "MultiMedia1 Output Channel9",
  3659. .info = msm_pcm_channel_weight_info,
  3660. .get = msm_pcm_channel_weight_get,
  3661. .put = msm_pcm_channel_weight_put,
  3662. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3663. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3664. },
  3665. {
  3666. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3667. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3668. .name = "MultiMedia1 Output Channel10",
  3669. .info = msm_pcm_channel_weight_info,
  3670. .get = msm_pcm_channel_weight_get,
  3671. .put = msm_pcm_channel_weight_put,
  3672. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3673. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3674. },
  3675. {
  3676. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3677. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3678. .name = "MultiMedia1 Output Channel11",
  3679. .info = msm_pcm_channel_weight_info,
  3680. .get = msm_pcm_channel_weight_get,
  3681. .put = msm_pcm_channel_weight_put,
  3682. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3683. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3684. },
  3685. {
  3686. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3687. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3688. .name = "MultiMedia1 Output Channel12",
  3689. .info = msm_pcm_channel_weight_info,
  3690. .get = msm_pcm_channel_weight_get,
  3691. .put = msm_pcm_channel_weight_put,
  3692. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3693. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3694. },
  3695. {
  3696. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3697. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3698. .name = "MultiMedia1 Output Channel13",
  3699. .info = msm_pcm_channel_weight_info,
  3700. .get = msm_pcm_channel_weight_get,
  3701. .put = msm_pcm_channel_weight_put,
  3702. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3703. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3704. },
  3705. {
  3706. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3707. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3708. .name = "MultiMedia1 Output Channel14",
  3709. .info = msm_pcm_channel_weight_info,
  3710. .get = msm_pcm_channel_weight_get,
  3711. .put = msm_pcm_channel_weight_put,
  3712. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3713. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3714. },
  3715. {
  3716. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3717. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3718. .name = "MultiMedia2 Output Channel1",
  3719. .info = msm_pcm_channel_weight_info,
  3720. .get = msm_pcm_channel_weight_get,
  3721. .put = msm_pcm_channel_weight_put,
  3722. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3723. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3724. },
  3725. {
  3726. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3727. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3728. .name = "MultiMedia2 Output Channel2",
  3729. .info = msm_pcm_channel_weight_info,
  3730. .get = msm_pcm_channel_weight_get,
  3731. .put = msm_pcm_channel_weight_put,
  3732. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3733. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3734. },
  3735. {
  3736. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3737. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3738. .name = "MultiMedia2 Output Channel3",
  3739. .info = msm_pcm_channel_weight_info,
  3740. .get = msm_pcm_channel_weight_get,
  3741. .put = msm_pcm_channel_weight_put,
  3742. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3743. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3744. },
  3745. {
  3746. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3747. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3748. .name = "MultiMedia3 Output Channel1",
  3749. .info = msm_pcm_channel_weight_info,
  3750. .get = msm_pcm_channel_weight_get,
  3751. .put = msm_pcm_channel_weight_put,
  3752. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3753. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3754. },
  3755. {
  3756. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3757. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3758. .name = "MultiMedia3 Output Channel2",
  3759. .info = msm_pcm_channel_weight_info,
  3760. .get = msm_pcm_channel_weight_get,
  3761. .put = msm_pcm_channel_weight_put,
  3762. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3763. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3764. },
  3765. {
  3766. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3767. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3768. .name = "MultiMedia18 Output Channel1",
  3769. .info = msm_pcm_channel_weight_info,
  3770. .get = msm_pcm_channel_weight_get,
  3771. .put = msm_pcm_channel_weight_put,
  3772. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3773. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  3774. },
  3775. {
  3776. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3777. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3778. .name = "MultiMedia18 Output Channel2",
  3779. .info = msm_pcm_channel_weight_info,
  3780. .get = msm_pcm_channel_weight_get,
  3781. .put = msm_pcm_channel_weight_put,
  3782. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3783. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  3784. },
  3785. {
  3786. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3787. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3788. .name = "MultiMedia18 Output Channel3",
  3789. .info = msm_pcm_channel_weight_info,
  3790. .get = msm_pcm_channel_weight_get,
  3791. .put = msm_pcm_channel_weight_put,
  3792. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3793. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  3794. },
  3795. {
  3796. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3797. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3798. .name = "MultiMedia18 Output Channel4",
  3799. .info = msm_pcm_channel_weight_info,
  3800. .get = msm_pcm_channel_weight_get,
  3801. .put = msm_pcm_channel_weight_put,
  3802. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3803. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  3804. },
  3805. {
  3806. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3807. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3808. .name = "MultiMedia18 Output Channel5",
  3809. .info = msm_pcm_channel_weight_info,
  3810. .get = msm_pcm_channel_weight_get,
  3811. .put = msm_pcm_channel_weight_put,
  3812. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3813. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  3814. },
  3815. {
  3816. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3817. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3818. .name = "MultiMedia18 Output Channel6",
  3819. .info = msm_pcm_channel_weight_info,
  3820. .get = msm_pcm_channel_weight_get,
  3821. .put = msm_pcm_channel_weight_put,
  3822. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3823. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  3824. },
  3825. {
  3826. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3827. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3828. .name = "MultiMedia18 Output Channel7",
  3829. .info = msm_pcm_channel_weight_info,
  3830. .get = msm_pcm_channel_weight_get,
  3831. .put = msm_pcm_channel_weight_put,
  3832. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3833. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  3834. },
  3835. {
  3836. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3837. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3838. .name = "MultiMedia18 Output Channel8",
  3839. .info = msm_pcm_channel_weight_info,
  3840. .get = msm_pcm_channel_weight_get,
  3841. .put = msm_pcm_channel_weight_put,
  3842. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3843. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  3844. },
  3845. {
  3846. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3847. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3848. .name = "MultiMedia18 Output Channel9",
  3849. .info = msm_pcm_channel_weight_info,
  3850. .get = msm_pcm_channel_weight_get,
  3851. .put = msm_pcm_channel_weight_put,
  3852. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3853. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  3854. },
  3855. {
  3856. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3857. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3858. .name = "MultiMedia18 Output Channel10",
  3859. .info = msm_pcm_channel_weight_info,
  3860. .get = msm_pcm_channel_weight_get,
  3861. .put = msm_pcm_channel_weight_put,
  3862. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3863. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 9,}
  3864. },
  3865. {
  3866. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3867. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3868. .name = "MultiMedia18 Output Channel11",
  3869. .info = msm_pcm_channel_weight_info,
  3870. .get = msm_pcm_channel_weight_get,
  3871. .put = msm_pcm_channel_weight_put,
  3872. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3873. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 10,}
  3874. },
  3875. {
  3876. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3877. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3878. .name = "MultiMedia18 Output Channel12",
  3879. .info = msm_pcm_channel_weight_info,
  3880. .get = msm_pcm_channel_weight_get,
  3881. .put = msm_pcm_channel_weight_put,
  3882. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3883. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 11,}
  3884. },
  3885. {
  3886. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3887. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3888. .name = "MultiMedia18 Output Channel13",
  3889. .info = msm_pcm_channel_weight_info,
  3890. .get = msm_pcm_channel_weight_get,
  3891. .put = msm_pcm_channel_weight_put,
  3892. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3893. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 12,}
  3894. },
  3895. {
  3896. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3897. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3898. .name = "MultiMedia18 Output Channel14",
  3899. .info = msm_pcm_channel_weight_info,
  3900. .get = msm_pcm_channel_weight_get,
  3901. .put = msm_pcm_channel_weight_put,
  3902. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3903. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 13,}
  3904. },
  3905. {
  3906. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3907. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3908. .name = "MultiMedia19 Output Channel1",
  3909. .info = msm_pcm_channel_weight_info,
  3910. .get = msm_pcm_channel_weight_get,
  3911. .put = msm_pcm_channel_weight_put,
  3912. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3913. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 0,}
  3914. },
  3915. {
  3916. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3917. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3918. .name = "MultiMedia19 Output Channel2",
  3919. .info = msm_pcm_channel_weight_info,
  3920. .get = msm_pcm_channel_weight_get,
  3921. .put = msm_pcm_channel_weight_put,
  3922. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3923. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 1, }
  3924. },
  3925. {
  3926. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3927. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3928. .name = "MultiMedia19 Output Channel3",
  3929. .info = msm_pcm_channel_weight_info,
  3930. .get = msm_pcm_channel_weight_get,
  3931. .put = msm_pcm_channel_weight_put,
  3932. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3933. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 2,}
  3934. },
  3935. {
  3936. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3937. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3938. .name = "MultiMedia19 Output Channel4",
  3939. .info = msm_pcm_channel_weight_info,
  3940. .get = msm_pcm_channel_weight_get,
  3941. .put = msm_pcm_channel_weight_put,
  3942. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3943. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  3944. },
  3945. {
  3946. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3947. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3948. .name = "MultiMedia19 Output Channel5",
  3949. .info = msm_pcm_channel_weight_info,
  3950. .get = msm_pcm_channel_weight_get,
  3951. .put = msm_pcm_channel_weight_put,
  3952. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3953. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  3954. },
  3955. {
  3956. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3957. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3958. .name = "MultiMedia19 Output Channel6",
  3959. .info = msm_pcm_channel_weight_info,
  3960. .get = msm_pcm_channel_weight_get,
  3961. .put = msm_pcm_channel_weight_put,
  3962. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3963. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  3964. },
  3965. {
  3966. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3967. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3968. .name = "MultiMedia19 Output Channel7",
  3969. .info = msm_pcm_channel_weight_info,
  3970. .get = msm_pcm_channel_weight_get,
  3971. .put = msm_pcm_channel_weight_put,
  3972. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3973. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  3974. },
  3975. {
  3976. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3977. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3978. .name = "MultiMedia19 Output Channel8",
  3979. .info = msm_pcm_channel_weight_info,
  3980. .get = msm_pcm_channel_weight_get,
  3981. .put = msm_pcm_channel_weight_put,
  3982. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3983. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  3984. },
  3985. {
  3986. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3987. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3988. .name = "MultiMedia19 Output Channel9",
  3989. .info = msm_pcm_channel_weight_info,
  3990. .get = msm_pcm_channel_weight_get,
  3991. .put = msm_pcm_channel_weight_put,
  3992. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3993. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  3994. },
  3995. {
  3996. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3997. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3998. .name = "MultiMedia19 Output Channel10",
  3999. .info = msm_pcm_channel_weight_info,
  4000. .get = msm_pcm_channel_weight_get,
  4001. .put = msm_pcm_channel_weight_put,
  4002. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4003. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 9,}
  4004. },
  4005. {
  4006. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4007. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4008. .name = "MultiMedia19 Output Channel11",
  4009. .info = msm_pcm_channel_weight_info,
  4010. .get = msm_pcm_channel_weight_get,
  4011. .put = msm_pcm_channel_weight_put,
  4012. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4013. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 10,}
  4014. },
  4015. {
  4016. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4017. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4018. .name = "MultiMedia19 Output Channel12",
  4019. .info = msm_pcm_channel_weight_info,
  4020. .get = msm_pcm_channel_weight_get,
  4021. .put = msm_pcm_channel_weight_put,
  4022. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4023. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 11,}
  4024. },
  4025. {
  4026. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4027. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4028. .name = "MultiMedia19 Output Channel13",
  4029. .info = msm_pcm_channel_weight_info,
  4030. .get = msm_pcm_channel_weight_get,
  4031. .put = msm_pcm_channel_weight_put,
  4032. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4033. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 12,}
  4034. },
  4035. {
  4036. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4037. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4038. .name = "MultiMedia19 Output Channel14",
  4039. .info = msm_pcm_channel_weight_info,
  4040. .get = msm_pcm_channel_weight_get,
  4041. .put = msm_pcm_channel_weight_put,
  4042. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4043. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 13,}
  4044. },
  4045. {
  4046. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4047. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4048. .name = "MultiMedia28 Output Channel1",
  4049. .info = msm_pcm_channel_weight_info,
  4050. .get = msm_pcm_channel_weight_get,
  4051. .put = msm_pcm_channel_weight_put,
  4052. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4053. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 0,}
  4054. },
  4055. {
  4056. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4057. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4058. .name = "MultiMedia28 Output Channel2",
  4059. .info = msm_pcm_channel_weight_info,
  4060. .get = msm_pcm_channel_weight_get,
  4061. .put = msm_pcm_channel_weight_put,
  4062. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4063. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 1, }
  4064. },
  4065. {
  4066. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4067. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4068. .name = "MultiMedia28 Output Channel3",
  4069. .info = msm_pcm_channel_weight_info,
  4070. .get = msm_pcm_channel_weight_get,
  4071. .put = msm_pcm_channel_weight_put,
  4072. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4073. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 2,}
  4074. },
  4075. {
  4076. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4077. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4078. .name = "MultiMedia28 Output Channel4",
  4079. .info = msm_pcm_channel_weight_info,
  4080. .get = msm_pcm_channel_weight_get,
  4081. .put = msm_pcm_channel_weight_put,
  4082. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4083. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4084. },
  4085. {
  4086. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4087. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4088. .name = "MultiMedia28 Output Channel5",
  4089. .info = msm_pcm_channel_weight_info,
  4090. .get = msm_pcm_channel_weight_get,
  4091. .put = msm_pcm_channel_weight_put,
  4092. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4093. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4094. },
  4095. {
  4096. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4097. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4098. .name = "MultiMedia28 Output Channel6",
  4099. .info = msm_pcm_channel_weight_info,
  4100. .get = msm_pcm_channel_weight_get,
  4101. .put = msm_pcm_channel_weight_put,
  4102. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4103. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4104. },
  4105. {
  4106. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4107. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4108. .name = "MultiMedia28 Output Channel7",
  4109. .info = msm_pcm_channel_weight_info,
  4110. .get = msm_pcm_channel_weight_get,
  4111. .put = msm_pcm_channel_weight_put,
  4112. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4113. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4114. },
  4115. {
  4116. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4117. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4118. .name = "MultiMedia28 Output Channel8",
  4119. .info = msm_pcm_channel_weight_info,
  4120. .get = msm_pcm_channel_weight_get,
  4121. .put = msm_pcm_channel_weight_put,
  4122. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4123. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4124. },
  4125. {
  4126. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4127. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4128. .name = "MultiMedia28 Output Channel9",
  4129. .info = msm_pcm_channel_weight_info,
  4130. .get = msm_pcm_channel_weight_get,
  4131. .put = msm_pcm_channel_weight_put,
  4132. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4133. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4134. },
  4135. {
  4136. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4137. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4138. .name = "MultiMedia28 Output Channel10",
  4139. .info = msm_pcm_channel_weight_info,
  4140. .get = msm_pcm_channel_weight_get,
  4141. .put = msm_pcm_channel_weight_put,
  4142. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4143. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 9,}
  4144. },
  4145. {
  4146. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4147. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4148. .name = "MultiMedia28 Output Channel11",
  4149. .info = msm_pcm_channel_weight_info,
  4150. .get = msm_pcm_channel_weight_get,
  4151. .put = msm_pcm_channel_weight_put,
  4152. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4153. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 10,}
  4154. },
  4155. {
  4156. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4157. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4158. .name = "MultiMedia28 Output Channel12",
  4159. .info = msm_pcm_channel_weight_info,
  4160. .get = msm_pcm_channel_weight_get,
  4161. .put = msm_pcm_channel_weight_put,
  4162. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4163. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 11,}
  4164. },
  4165. {
  4166. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4167. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4168. .name = "MultiMedia28 Output Channel13",
  4169. .info = msm_pcm_channel_weight_info,
  4170. .get = msm_pcm_channel_weight_get,
  4171. .put = msm_pcm_channel_weight_put,
  4172. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4173. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 12,}
  4174. },
  4175. {
  4176. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4177. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4178. .name = "MultiMedia28 Output Channel14",
  4179. .info = msm_pcm_channel_weight_info,
  4180. .get = msm_pcm_channel_weight_get,
  4181. .put = msm_pcm_channel_weight_put,
  4182. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4183. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 13,}
  4184. },
  4185. {
  4186. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4187. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4188. .name = "MultiMedia29 Output Channel1",
  4189. .info = msm_pcm_channel_weight_info,
  4190. .get = msm_pcm_channel_weight_get,
  4191. .put = msm_pcm_channel_weight_put,
  4192. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4193. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 0,}
  4194. },
  4195. {
  4196. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4197. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4198. .name = "MultiMedia29 Output Channel2",
  4199. .info = msm_pcm_channel_weight_info,
  4200. .get = msm_pcm_channel_weight_get,
  4201. .put = msm_pcm_channel_weight_put,
  4202. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4203. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 1, }
  4204. },
  4205. {
  4206. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4207. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4208. .name = "MultiMedia29 Output Channel3",
  4209. .info = msm_pcm_channel_weight_info,
  4210. .get = msm_pcm_channel_weight_get,
  4211. .put = msm_pcm_channel_weight_put,
  4212. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4213. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 2,}
  4214. },
  4215. {
  4216. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4217. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4218. .name = "MultiMedia29 Output Channel4",
  4219. .info = msm_pcm_channel_weight_info,
  4220. .get = msm_pcm_channel_weight_get,
  4221. .put = msm_pcm_channel_weight_put,
  4222. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4223. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4224. },
  4225. {
  4226. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4227. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4228. .name = "MultiMedia29 Output Channel5",
  4229. .info = msm_pcm_channel_weight_info,
  4230. .get = msm_pcm_channel_weight_get,
  4231. .put = msm_pcm_channel_weight_put,
  4232. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4233. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4234. },
  4235. {
  4236. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4237. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4238. .name = "MultiMedia29 Output Channel6",
  4239. .info = msm_pcm_channel_weight_info,
  4240. .get = msm_pcm_channel_weight_get,
  4241. .put = msm_pcm_channel_weight_put,
  4242. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4243. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4244. },
  4245. {
  4246. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4247. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4248. .name = "MultiMedia29 Output Channel7",
  4249. .info = msm_pcm_channel_weight_info,
  4250. .get = msm_pcm_channel_weight_get,
  4251. .put = msm_pcm_channel_weight_put,
  4252. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4253. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4254. },
  4255. {
  4256. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4257. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4258. .name = "MultiMedia29 Output Channel8",
  4259. .info = msm_pcm_channel_weight_info,
  4260. .get = msm_pcm_channel_weight_get,
  4261. .put = msm_pcm_channel_weight_put,
  4262. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4263. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4264. },
  4265. {
  4266. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4267. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4268. .name = "MultiMedia29 Output Channel9",
  4269. .info = msm_pcm_channel_weight_info,
  4270. .get = msm_pcm_channel_weight_get,
  4271. .put = msm_pcm_channel_weight_put,
  4272. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4273. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4274. },
  4275. {
  4276. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4277. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4278. .name = "MultiMedia29 Output Channel10",
  4279. .info = msm_pcm_channel_weight_info,
  4280. .get = msm_pcm_channel_weight_get,
  4281. .put = msm_pcm_channel_weight_put,
  4282. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4283. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 9,}
  4284. },
  4285. {
  4286. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4287. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4288. .name = "MultiMedia29 Output Channel11",
  4289. .info = msm_pcm_channel_weight_info,
  4290. .get = msm_pcm_channel_weight_get,
  4291. .put = msm_pcm_channel_weight_put,
  4292. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4293. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 10,}
  4294. },
  4295. {
  4296. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4297. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4298. .name = "MultiMedia29 Output Channel12",
  4299. .info = msm_pcm_channel_weight_info,
  4300. .get = msm_pcm_channel_weight_get,
  4301. .put = msm_pcm_channel_weight_put,
  4302. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4303. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 11,}
  4304. },
  4305. {
  4306. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4307. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4308. .name = "MultiMedia29 Output Channel13",
  4309. .info = msm_pcm_channel_weight_info,
  4310. .get = msm_pcm_channel_weight_get,
  4311. .put = msm_pcm_channel_weight_put,
  4312. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4313. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 12,}
  4314. },
  4315. {
  4316. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4317. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4318. .name = "MultiMedia29 Output Channel14",
  4319. .info = msm_pcm_channel_weight_info,
  4320. .get = msm_pcm_channel_weight_get,
  4321. .put = msm_pcm_channel_weight_put,
  4322. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4323. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 13,}
  4324. },
  4325. {
  4326. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4327. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4328. .name = "MultiMedia30 Output Channel1",
  4329. .info = msm_pcm_channel_weight_info,
  4330. .get = msm_pcm_channel_weight_get,
  4331. .put = msm_pcm_channel_weight_put,
  4332. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4333. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 0,}
  4334. },
  4335. {
  4336. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4337. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4338. .name = "MultiMedia30 Output Channel2",
  4339. .info = msm_pcm_channel_weight_info,
  4340. .get = msm_pcm_channel_weight_get,
  4341. .put = msm_pcm_channel_weight_put,
  4342. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4343. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 1, }
  4344. },
  4345. {
  4346. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4347. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4348. .name = "MultiMedia30 Output Channel3",
  4349. .info = msm_pcm_channel_weight_info,
  4350. .get = msm_pcm_channel_weight_get,
  4351. .put = msm_pcm_channel_weight_put,
  4352. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4353. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 2,}
  4354. },
  4355. {
  4356. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4357. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4358. .name = "MultiMedia30 Output Channel4",
  4359. .info = msm_pcm_channel_weight_info,
  4360. .get = msm_pcm_channel_weight_get,
  4361. .put = msm_pcm_channel_weight_put,
  4362. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4363. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 3,}
  4364. },
  4365. {
  4366. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4367. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4368. .name = "MultiMedia30 Output Channel5",
  4369. .info = msm_pcm_channel_weight_info,
  4370. .get = msm_pcm_channel_weight_get,
  4371. .put = msm_pcm_channel_weight_put,
  4372. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4373. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 4,}
  4374. },
  4375. {
  4376. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4377. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4378. .name = "MultiMedia30 Output Channel6",
  4379. .info = msm_pcm_channel_weight_info,
  4380. .get = msm_pcm_channel_weight_get,
  4381. .put = msm_pcm_channel_weight_put,
  4382. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4383. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 5,}
  4384. },
  4385. {
  4386. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4387. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4388. .name = "MultiMedia30 Output Channel7",
  4389. .info = msm_pcm_channel_weight_info,
  4390. .get = msm_pcm_channel_weight_get,
  4391. .put = msm_pcm_channel_weight_put,
  4392. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4393. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 6,}
  4394. },
  4395. {
  4396. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4397. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4398. .name = "MultiMedia30 Output Channel8",
  4399. .info = msm_pcm_channel_weight_info,
  4400. .get = msm_pcm_channel_weight_get,
  4401. .put = msm_pcm_channel_weight_put,
  4402. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4403. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 7,}
  4404. },
  4405. {
  4406. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4407. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4408. .name = "MultiMedia30 Output Channel9",
  4409. .info = msm_pcm_channel_weight_info,
  4410. .get = msm_pcm_channel_weight_get,
  4411. .put = msm_pcm_channel_weight_put,
  4412. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4413. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 8,}
  4414. },
  4415. {
  4416. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4417. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4418. .name = "MultiMedia30 Output Channel10",
  4419. .info = msm_pcm_channel_weight_info,
  4420. .get = msm_pcm_channel_weight_get,
  4421. .put = msm_pcm_channel_weight_put,
  4422. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4423. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 9,}
  4424. },
  4425. {
  4426. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4427. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4428. .name = "MultiMedia30 Output Channel11",
  4429. .info = msm_pcm_channel_weight_info,
  4430. .get = msm_pcm_channel_weight_get,
  4431. .put = msm_pcm_channel_weight_put,
  4432. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4433. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 10,}
  4434. },
  4435. {
  4436. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4437. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4438. .name = "MultiMedia30 Output Channel12",
  4439. .info = msm_pcm_channel_weight_info,
  4440. .get = msm_pcm_channel_weight_get,
  4441. .put = msm_pcm_channel_weight_put,
  4442. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4443. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4444. },
  4445. {
  4446. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4447. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4448. .name = "MultiMedia30 Output Channel13",
  4449. .info = msm_pcm_channel_weight_info,
  4450. .get = msm_pcm_channel_weight_get,
  4451. .put = msm_pcm_channel_weight_put,
  4452. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4453. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4454. },
  4455. {
  4456. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4457. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4458. .name = "MultiMedia30 Output Channel14",
  4459. .info = msm_pcm_channel_weight_info,
  4460. .get = msm_pcm_channel_weight_get,
  4461. .put = msm_pcm_channel_weight_put,
  4462. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4463. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4464. },
  4465. {
  4466. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4467. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4468. .name = "MultiMedia1 Channel1",
  4469. .info = msm_pcm_channel_input_be_info,
  4470. .get = msm_pcm_channel_input_be_get,
  4471. .put = msm_pcm_channel_input_be_put,
  4472. .private_value = (unsigned long)&(mm1_ch1_enum)
  4473. },
  4474. {
  4475. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4476. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4477. .name = "MultiMedia1 Channel2",
  4478. .info = msm_pcm_channel_input_be_info,
  4479. .get = msm_pcm_channel_input_be_get,
  4480. .put = msm_pcm_channel_input_be_put,
  4481. .private_value = (unsigned long)&(mm1_ch2_enum)
  4482. },
  4483. {
  4484. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4485. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4486. .name = "MultiMedia1 Channel3",
  4487. .info = msm_pcm_channel_input_be_info,
  4488. .get = msm_pcm_channel_input_be_get,
  4489. .put = msm_pcm_channel_input_be_put,
  4490. .private_value = (unsigned long)&(mm1_ch3_enum)
  4491. },
  4492. {
  4493. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4494. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4495. .name = "MultiMedia1 Channel4",
  4496. .info = msm_pcm_channel_input_be_info,
  4497. .get = msm_pcm_channel_input_be_get,
  4498. .put = msm_pcm_channel_input_be_put,
  4499. .private_value = (unsigned long)&(mm1_ch4_enum)
  4500. },
  4501. {
  4502. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4503. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4504. .name = "MultiMedia1 Channel5",
  4505. .info = msm_pcm_channel_input_be_info,
  4506. .get = msm_pcm_channel_input_be_get,
  4507. .put = msm_pcm_channel_input_be_put,
  4508. .private_value = (unsigned long)&(mm1_ch5_enum)
  4509. },
  4510. {
  4511. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4512. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4513. .name = "MultiMedia1 Channel6",
  4514. .info = msm_pcm_channel_input_be_info,
  4515. .get = msm_pcm_channel_input_be_get,
  4516. .put = msm_pcm_channel_input_be_put,
  4517. .private_value = (unsigned long)&(mm1_ch6_enum)
  4518. },
  4519. {
  4520. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4521. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4522. .name = "MultiMedia1 Channel7",
  4523. .info = msm_pcm_channel_input_be_info,
  4524. .get = msm_pcm_channel_input_be_get,
  4525. .put = msm_pcm_channel_input_be_put,
  4526. .private_value = (unsigned long)&(mm1_ch7_enum)
  4527. },
  4528. {
  4529. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4530. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4531. .name = "MultiMedia1 Channel8",
  4532. .info = msm_pcm_channel_input_be_info,
  4533. .get = msm_pcm_channel_input_be_get,
  4534. .put = msm_pcm_channel_input_be_put,
  4535. .private_value = (unsigned long)&(mm1_ch8_enum)
  4536. },
  4537. {
  4538. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4539. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4540. .name = "MultiMedia18 Channel1",
  4541. .info = msm_pcm_channel_input_be_info,
  4542. .get = msm_pcm_channel_input_be_get,
  4543. .put = msm_pcm_channel_input_be_put,
  4544. .private_value = (unsigned long)&(mm18_ch1_enum)
  4545. },
  4546. {
  4547. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4548. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4549. .name = "MultiMedia18 Channel2",
  4550. .info = msm_pcm_channel_input_be_info,
  4551. .get = msm_pcm_channel_input_be_get,
  4552. .put = msm_pcm_channel_input_be_put,
  4553. .private_value = (unsigned long)&(mm18_ch2_enum)
  4554. },
  4555. {
  4556. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4557. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4558. .name = "MultiMedia19 Channel1",
  4559. .info = msm_pcm_channel_input_be_info,
  4560. .get = msm_pcm_channel_input_be_get,
  4561. .put = msm_pcm_channel_input_be_put,
  4562. .private_value = (unsigned long)&(mm19_ch1_enum)
  4563. },
  4564. {
  4565. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4566. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4567. .name = "MultiMedia19 Channel2",
  4568. .info = msm_pcm_channel_input_be_info,
  4569. .get = msm_pcm_channel_input_be_get,
  4570. .put = msm_pcm_channel_input_be_put,
  4571. .private_value = (unsigned long)&(mm19_ch2_enum)
  4572. },
  4573. {
  4574. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4575. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4576. .name = "MultiMedia28 Channel1",
  4577. .info = msm_pcm_channel_input_be_info,
  4578. .get = msm_pcm_channel_input_be_get,
  4579. .put = msm_pcm_channel_input_be_put,
  4580. .private_value = (unsigned long)&(mm28_ch1_enum)
  4581. },
  4582. {
  4583. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4584. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4585. .name = "MultiMedia28 Channel2",
  4586. .info = msm_pcm_channel_input_be_info,
  4587. .get = msm_pcm_channel_input_be_get,
  4588. .put = msm_pcm_channel_input_be_put,
  4589. .private_value = (unsigned long)&(mm28_ch2_enum)
  4590. },
  4591. {
  4592. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4593. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4594. .name = "MultiMedia29 Channel1",
  4595. .info = msm_pcm_channel_input_be_info,
  4596. .get = msm_pcm_channel_input_be_get,
  4597. .put = msm_pcm_channel_input_be_put,
  4598. .private_value = (unsigned long)&(mm29_ch1_enum)
  4599. },
  4600. {
  4601. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4602. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4603. .name = "MultiMedia29 Channel2",
  4604. .info = msm_pcm_channel_input_be_info,
  4605. .get = msm_pcm_channel_input_be_get,
  4606. .put = msm_pcm_channel_input_be_put,
  4607. .private_value = (unsigned long)&(mm29_ch2_enum)
  4608. },
  4609. {
  4610. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4611. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4612. .name = "MultiMedia30 Channel1",
  4613. .info = msm_pcm_channel_input_be_info,
  4614. .get = msm_pcm_channel_input_be_get,
  4615. .put = msm_pcm_channel_input_be_put,
  4616. .private_value = (unsigned long)&(mm30_ch1_enum)
  4617. },
  4618. {
  4619. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4620. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4621. .name = "MultiMedia30 Channel2",
  4622. .info = msm_pcm_channel_input_be_info,
  4623. .get = msm_pcm_channel_input_be_get,
  4624. .put = msm_pcm_channel_input_be_put,
  4625. .private_value = (unsigned long)&(mm30_ch2_enum)
  4626. },
  4627. {
  4628. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4629. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4630. .name = "MultiMedia1 Output Channel Map",
  4631. .info = msm_pcm_channel_output_map_info,
  4632. .get = msm_pcm_channel_output_map_get,
  4633. .put = msm_pcm_channel_output_map_put,
  4634. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4635. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4636. },
  4637. {
  4638. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4639. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4640. .name = "MultiMedia2 Output Channel Map",
  4641. .info = msm_pcm_channel_output_map_info,
  4642. .get = msm_pcm_channel_output_map_get,
  4643. .put = msm_pcm_channel_output_map_put,
  4644. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4645. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4646. },
  4647. {
  4648. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4649. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4650. .name = "MultiMedia3 Output Channel Map",
  4651. .info = msm_pcm_channel_output_map_info,
  4652. .get = msm_pcm_channel_output_map_get,
  4653. .put = msm_pcm_channel_output_map_put,
  4654. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4655. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4656. },
  4657. {
  4658. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4659. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4660. .name = "MultiMedia4 Output Channel Map",
  4661. .info = msm_pcm_channel_output_map_info,
  4662. .get = msm_pcm_channel_output_map_get,
  4663. .put = msm_pcm_channel_output_map_put,
  4664. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4665. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4666. },
  4667. {
  4668. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4669. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4670. .name = "MultiMedia5 Output Channel Map",
  4671. .info = msm_pcm_channel_output_map_info,
  4672. .get = msm_pcm_channel_output_map_get,
  4673. .put = msm_pcm_channel_output_map_put,
  4674. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4675. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4676. },
  4677. {
  4678. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4679. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4680. .name = "MultiMedia6 Output Channel Map",
  4681. .info = msm_pcm_channel_output_map_info,
  4682. .get = msm_pcm_channel_output_map_get,
  4683. .put = msm_pcm_channel_output_map_put,
  4684. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4685. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4686. },
  4687. {
  4688. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4689. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4690. .name = "MultiMedia18 Output Channel Map",
  4691. .info = msm_pcm_channel_output_map_info,
  4692. .get = msm_pcm_channel_output_map_get,
  4693. .put = msm_pcm_channel_output_map_put,
  4694. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4695. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4696. },
  4697. {
  4698. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4699. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4700. .name = "MultiMedia19 Output Channel Map",
  4701. .info = msm_pcm_channel_output_map_info,
  4702. .get = msm_pcm_channel_output_map_get,
  4703. .put = msm_pcm_channel_output_map_put,
  4704. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4705. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4706. },
  4707. {
  4708. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4709. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4710. .name = "MultiMedia28 Output Channel Map",
  4711. .info = msm_pcm_channel_output_map_info,
  4712. .get = msm_pcm_channel_output_map_get,
  4713. .put = msm_pcm_channel_output_map_put,
  4714. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4715. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4716. },
  4717. {
  4718. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4719. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4720. .name = "MultiMedia29 Output Channel Map",
  4721. .info = msm_pcm_channel_output_map_info,
  4722. .get = msm_pcm_channel_output_map_get,
  4723. .put = msm_pcm_channel_output_map_put,
  4724. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4725. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4726. },
  4727. {
  4728. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4729. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4730. .name = "MultiMedia30 Output Channel Map",
  4731. .info = msm_pcm_channel_output_map_info,
  4732. .get = msm_pcm_channel_output_map_get,
  4733. .put = msm_pcm_channel_output_map_put,
  4734. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4735. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4736. },
  4737. };
  4738. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4739. struct snd_ctl_elem_value *ucontrol)
  4740. {
  4741. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4742. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4743. ucontrol->value.integer.value[0]);
  4744. return 0;
  4745. }
  4746. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4747. struct snd_ctl_elem_value *ucontrol)
  4748. {
  4749. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4750. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4751. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4752. return 0;
  4753. }
  4754. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4755. struct snd_ctl_elem_value *ucontrol)
  4756. {
  4757. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4758. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4759. ucontrol->value.integer.value[0]);
  4760. return 0;
  4761. }
  4762. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4763. struct snd_ctl_elem_value *ucontrol)
  4764. {
  4765. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4766. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4767. __func__, msm_ec_ref_ch_downmixed);
  4768. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4769. return 0;
  4770. }
  4771. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4772. struct snd_ctl_elem_value *ucontrol)
  4773. {
  4774. int i = 0, ret = 0;
  4775. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4776. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4777. kcontrol->private_value)->shift;
  4778. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4779. weights[i] = ucontrol->value.integer.value[i];
  4780. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  4781. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  4782. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  4783. return ret;
  4784. }
  4785. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  4786. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  4787. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  4788. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  4789. struct snd_ctl_elem_value *ucontrol)
  4790. {
  4791. switch (msm_ec_ref_bit_format) {
  4792. case SNDRV_PCM_FORMAT_S24_LE:
  4793. ucontrol->value.integer.value[0] = 2;
  4794. break;
  4795. case SNDRV_PCM_FORMAT_S16_LE:
  4796. ucontrol->value.integer.value[0] = 1;
  4797. break;
  4798. default:
  4799. ucontrol->value.integer.value[0] = 0;
  4800. break;
  4801. }
  4802. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  4803. __func__, ucontrol->value.integer.value[0]);
  4804. return 0;
  4805. }
  4806. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  4807. struct snd_ctl_elem_value *ucontrol)
  4808. {
  4809. u16 bit_width = 0;
  4810. switch (ucontrol->value.integer.value[0]) {
  4811. case 2:
  4812. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  4813. break;
  4814. case 1:
  4815. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  4816. break;
  4817. default:
  4818. msm_ec_ref_bit_format = 0;
  4819. break;
  4820. }
  4821. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  4822. bit_width = 16;
  4823. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  4824. bit_width = 24;
  4825. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  4826. __func__, msm_ec_ref_bit_format);
  4827. adm_ec_ref_rx_bit_width(bit_width);
  4828. return 0;
  4829. }
  4830. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  4831. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  4832. struct snd_ctl_elem_value *ucontrol)
  4833. {
  4834. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  4835. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  4836. __func__, ucontrol->value.integer.value[0]);
  4837. return 0;
  4838. }
  4839. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  4840. struct snd_ctl_elem_value *ucontrol)
  4841. {
  4842. switch (ucontrol->value.integer.value[0]) {
  4843. case 0:
  4844. msm_ec_ref_sampling_rate = 0;
  4845. break;
  4846. case 1:
  4847. msm_ec_ref_sampling_rate = 8000;
  4848. break;
  4849. case 2:
  4850. msm_ec_ref_sampling_rate = 16000;
  4851. break;
  4852. case 3:
  4853. msm_ec_ref_sampling_rate = 32000;
  4854. break;
  4855. case 4:
  4856. msm_ec_ref_sampling_rate = 44100;
  4857. break;
  4858. case 5:
  4859. msm_ec_ref_sampling_rate = 48000;
  4860. break;
  4861. case 6:
  4862. msm_ec_ref_sampling_rate = 96000;
  4863. break;
  4864. case 7:
  4865. msm_ec_ref_sampling_rate = 192000;
  4866. break;
  4867. case 8:
  4868. msm_ec_ref_sampling_rate = 384000;
  4869. break;
  4870. default:
  4871. msm_ec_ref_sampling_rate = 48000;
  4872. break;
  4873. }
  4874. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  4875. __func__, msm_ec_ref_sampling_rate);
  4876. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  4877. return 0;
  4878. }
  4879. static int get_ec_ref_port_id(int value, int *index)
  4880. {
  4881. int port_id;
  4882. switch (value) {
  4883. case 0:
  4884. *index = 0;
  4885. port_id = AFE_PORT_INVALID;
  4886. break;
  4887. case 1:
  4888. *index = 1;
  4889. port_id = SLIMBUS_0_RX;
  4890. break;
  4891. case 2:
  4892. *index = 2;
  4893. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  4894. break;
  4895. case 3:
  4896. *index = 3;
  4897. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4898. break;
  4899. case 4:
  4900. *index = 4;
  4901. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4902. break;
  4903. case 5:
  4904. *index = 5;
  4905. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4906. break;
  4907. case 6:
  4908. *index = 6;
  4909. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4910. break;
  4911. case 7:
  4912. *index = 7;
  4913. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  4914. break;
  4915. case 9:
  4916. *index = 9;
  4917. port_id = SLIMBUS_5_RX;
  4918. break;
  4919. case 10:
  4920. *index = 10;
  4921. port_id = SLIMBUS_1_TX;
  4922. break;
  4923. case 11:
  4924. *index = 11;
  4925. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  4926. break;
  4927. case 12:
  4928. *index = 12;
  4929. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  4930. break;
  4931. case 13:
  4932. *index = 13;
  4933. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  4934. break;
  4935. case 14:
  4936. *index = 14;
  4937. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  4938. break;
  4939. case 15:
  4940. *index = 15;
  4941. port_id = SLIMBUS_6_RX;
  4942. break;
  4943. case 16:
  4944. *index = 16;
  4945. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  4946. break;
  4947. case 17:
  4948. *index = 17;
  4949. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  4950. break;
  4951. case 18:
  4952. *index = 18;
  4953. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  4954. break;
  4955. case 19:
  4956. *index = 19;
  4957. port_id = AFE_PORT_ID_USB_RX;
  4958. break;
  4959. case 20:
  4960. *index = 20;
  4961. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  4962. break;
  4963. case 21:
  4964. *index = 21;
  4965. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  4966. break;
  4967. case 22:
  4968. *index = 22;
  4969. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  4970. break;
  4971. case 23:
  4972. *index = 23;
  4973. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  4974. break;
  4975. case 24:
  4976. *index = 24;
  4977. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  4978. break;
  4979. case 25:
  4980. *index = 25;
  4981. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  4982. break;
  4983. case 26:
  4984. *index = 26;
  4985. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  4986. break;
  4987. case 27:
  4988. *index = 27;
  4989. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  4990. break;
  4991. case 28:
  4992. *index = 28;
  4993. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  4994. break;
  4995. case 29:
  4996. *index = 29;
  4997. port_id = SLIMBUS_7_RX;
  4998. break;
  4999. case 30:
  5000. *index = 30;
  5001. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  5002. break;
  5003. case 31:
  5004. *index = 31;
  5005. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  5006. break;
  5007. case 32:
  5008. *index = 32;
  5009. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  5010. break;
  5011. case 33:
  5012. *index = 33;
  5013. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  5014. break;
  5015. case 34:
  5016. *index = 34;
  5017. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  5018. break;
  5019. case 35:
  5020. *index = 35;
  5021. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  5022. break;
  5023. case 36:
  5024. *index = 36;
  5025. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5026. break;
  5027. case 37:
  5028. *index = 37;
  5029. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5030. break;
  5031. default:
  5032. *index = 0; /* NONE */
  5033. pr_err("%s: Invalid value %d\n", __func__, value);
  5034. port_id = AFE_PORT_INVALID;
  5035. break;
  5036. }
  5037. return port_id;
  5038. }
  5039. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5040. struct snd_ctl_elem_value *ucontrol)
  5041. {
  5042. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5043. mutex_lock(&routing_lock);
  5044. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5045. mutex_unlock(&routing_lock);
  5046. return 0;
  5047. }
  5048. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5049. struct snd_ctl_elem_value *ucontrol)
  5050. {
  5051. int value = ucontrol->value.integer.value[0];
  5052. mutex_lock(&routing_lock);
  5053. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5054. &afe_loopback_tx_port_index);
  5055. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5056. __func__, afe_loopback_tx_port_index);
  5057. mutex_unlock(&routing_lock);
  5058. return 0;
  5059. }
  5060. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5061. "32000", "44100", "48000", "96000", "192000", "384000"};
  5062. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5063. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5064. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5065. ec_ref_bit_format_text),
  5066. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5067. };
  5068. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5069. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5070. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5071. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5072. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5073. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5074. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5075. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5076. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5077. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5078. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5079. "DISPLAY_PORT1",
  5080. };
  5081. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5082. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5083. };
  5084. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5085. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5086. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5087. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5088. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5089. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5090. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5091. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5092. msm_route_ec_ref_params_enum[0],
  5093. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5094. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5095. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5096. msm_ec_ref_chmixer_weights_put),
  5097. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5098. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5099. msm_ec_ref_chmixer_weights_put),
  5100. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5101. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5102. msm_ec_ref_chmixer_weights_put),
  5103. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5104. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5105. msm_ec_ref_chmixer_weights_put),
  5106. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5107. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5108. msm_ec_ref_chmixer_weights_put),
  5109. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5110. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5111. msm_ec_ref_chmixer_weights_put),
  5112. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5113. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5114. };
  5115. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5116. struct snd_ctl_elem_value *ucontrol)
  5117. {
  5118. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5119. mutex_lock(&routing_lock);
  5120. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5121. mutex_unlock(&routing_lock);
  5122. return 0;
  5123. }
  5124. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5125. struct snd_ctl_elem_value *ucontrol)
  5126. {
  5127. int value = ucontrol->value.integer.value[0];
  5128. struct snd_soc_dapm_widget *widget =
  5129. snd_soc_dapm_kcontrol_widget(kcontrol);
  5130. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5131. struct snd_soc_dapm_update *update = NULL;
  5132. mutex_lock(&routing_lock);
  5133. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5134. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5135. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5136. __func__, msm_route_ec_ref_rx);
  5137. mutex_unlock(&routing_lock);
  5138. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5139. msm_route_ec_ref_rx, e, update);
  5140. return 0;
  5141. }
  5142. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5143. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5144. msm_route_ec_ref_rx_enum[0],
  5145. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5146. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5147. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5148. msm_route_ec_ref_rx_enum[0],
  5149. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5150. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5151. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5152. msm_route_ec_ref_rx_enum[0],
  5153. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5154. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5155. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5156. msm_route_ec_ref_rx_enum[0],
  5157. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5158. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5159. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5160. msm_route_ec_ref_rx_enum[0],
  5161. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5162. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5163. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5164. msm_route_ec_ref_rx_enum[0],
  5165. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5166. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5167. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5168. msm_route_ec_ref_rx_enum[0],
  5169. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5170. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5171. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5172. msm_route_ec_ref_rx_enum[0],
  5173. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5174. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5175. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5176. msm_route_ec_ref_rx_enum[0],
  5177. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5178. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5179. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5180. msm_route_ec_ref_rx_enum[0],
  5181. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5182. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5183. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5184. msm_route_ec_ref_rx_enum[0],
  5185. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5186. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5187. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5188. msm_route_ec_ref_rx_enum[0],
  5189. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5190. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5191. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5192. msm_route_ec_ref_rx_enum[0],
  5193. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5194. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5195. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5196. msm_route_ec_ref_rx_enum[0],
  5197. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5198. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5199. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5200. msm_route_ec_ref_rx_enum[0],
  5201. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5202. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5203. struct snd_ctl_elem_value *ucontrol)
  5204. {
  5205. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5206. mutex_lock(&routing_lock);
  5207. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5208. mutex_unlock(&routing_lock);
  5209. return 0;
  5210. }
  5211. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5212. struct snd_ctl_elem_value *ucontrol)
  5213. {
  5214. struct snd_soc_dapm_widget *widget =
  5215. snd_soc_dapm_kcontrol_widget(kcontrol);
  5216. int mux = ucontrol->value.enumerated.item[0];
  5217. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5218. int ret = 1;
  5219. bool state = true;
  5220. uint16_t ext_ec_ref_port_id;
  5221. struct snd_soc_dapm_update *update = NULL;
  5222. if (mux >= e->items) {
  5223. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5224. return -EINVAL;
  5225. }
  5226. mutex_lock(&routing_lock);
  5227. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5228. switch (msm_route_ext_ec_ref) {
  5229. case EXT_EC_REF_PRI_MI2S_TX:
  5230. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5231. break;
  5232. case EXT_EC_REF_SEC_MI2S_TX:
  5233. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5234. break;
  5235. case EXT_EC_REF_TERT_MI2S_TX:
  5236. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5237. break;
  5238. case EXT_EC_REF_QUAT_MI2S_TX:
  5239. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5240. break;
  5241. case EXT_EC_REF_QUIN_MI2S_TX:
  5242. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5243. break;
  5244. case EXT_EC_REF_SLIM_1_TX:
  5245. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5246. break;
  5247. case EXT_EC_REF_PRI_TDM_TX:
  5248. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5249. break;
  5250. case EXT_EC_REF_SEC_TDM_TX:
  5251. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5252. break;
  5253. case EXT_EC_REF_NONE:
  5254. default:
  5255. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5256. state = false;
  5257. break;
  5258. }
  5259. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5260. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5261. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5262. mutex_unlock(&routing_lock);
  5263. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5264. update);
  5265. } else {
  5266. ret = -EINVAL;
  5267. mutex_unlock(&routing_lock);
  5268. }
  5269. return ret;
  5270. }
  5271. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5272. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5273. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5274. "SLIM_1_TX", "PRI_TDM_TX",
  5275. "SEC_TDM_TX"};
  5276. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5277. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5278. };
  5279. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5280. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5281. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5282. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5283. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5284. MSM_BACKEND_DAI_PRI_I2S_RX,
  5285. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5286. msm_routing_put_audio_mixer),
  5287. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5288. MSM_BACKEND_DAI_PRI_I2S_RX,
  5289. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5290. msm_routing_put_audio_mixer),
  5291. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5292. MSM_BACKEND_DAI_PRI_I2S_RX,
  5293. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5294. msm_routing_put_audio_mixer),
  5295. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5296. MSM_BACKEND_DAI_PRI_I2S_RX,
  5297. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5298. msm_routing_put_audio_mixer),
  5299. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5300. MSM_BACKEND_DAI_PRI_I2S_RX,
  5301. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5302. msm_routing_put_audio_mixer),
  5303. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5304. MSM_BACKEND_DAI_PRI_I2S_RX,
  5305. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5306. msm_routing_put_audio_mixer),
  5307. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5308. MSM_BACKEND_DAI_PRI_I2S_RX,
  5309. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5310. msm_routing_put_audio_mixer),
  5311. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5312. MSM_BACKEND_DAI_PRI_I2S_RX,
  5313. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5314. msm_routing_put_audio_mixer),
  5315. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5316. MSM_BACKEND_DAI_PRI_I2S_RX,
  5317. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5318. msm_routing_put_audio_mixer),
  5319. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5320. MSM_BACKEND_DAI_PRI_I2S_RX,
  5321. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5322. msm_routing_put_audio_mixer),
  5323. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5324. MSM_BACKEND_DAI_PRI_I2S_RX,
  5325. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5326. msm_routing_put_audio_mixer),
  5327. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5328. MSM_BACKEND_DAI_PRI_I2S_RX,
  5329. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5330. msm_routing_put_audio_mixer),
  5331. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5332. MSM_BACKEND_DAI_PRI_I2S_RX,
  5333. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5334. msm_routing_put_audio_mixer),
  5335. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5336. MSM_BACKEND_DAI_PRI_I2S_RX,
  5337. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5338. msm_routing_put_audio_mixer),
  5339. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5340. MSM_BACKEND_DAI_PRI_I2S_RX,
  5341. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5342. msm_routing_put_audio_mixer),
  5343. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5344. MSM_BACKEND_DAI_PRI_I2S_RX,
  5345. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5346. msm_routing_put_audio_mixer),
  5347. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5348. MSM_BACKEND_DAI_PRI_I2S_RX,
  5349. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5350. msm_routing_put_audio_mixer),
  5351. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5352. MSM_BACKEND_DAI_PRI_I2S_RX,
  5353. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5354. msm_routing_put_audio_mixer),
  5355. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5356. MSM_BACKEND_DAI_PRI_I2S_RX,
  5357. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5358. msm_routing_put_audio_mixer),
  5359. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5360. MSM_BACKEND_DAI_PRI_I2S_RX,
  5361. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5362. msm_routing_put_audio_mixer),
  5363. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5364. MSM_BACKEND_DAI_PRI_I2S_RX,
  5365. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5366. msm_routing_put_audio_mixer),
  5367. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5368. MSM_BACKEND_DAI_PRI_I2S_RX,
  5369. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5370. msm_routing_put_audio_mixer),
  5371. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5372. MSM_BACKEND_DAI_PRI_I2S_RX,
  5373. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5374. msm_routing_put_audio_mixer),
  5375. };
  5376. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5377. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5378. MSM_BACKEND_DAI_SEC_I2S_RX,
  5379. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5380. msm_routing_put_audio_mixer),
  5381. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5382. MSM_BACKEND_DAI_SEC_I2S_RX,
  5383. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5384. msm_routing_put_audio_mixer),
  5385. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5386. MSM_BACKEND_DAI_SEC_I2S_RX,
  5387. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5388. msm_routing_put_audio_mixer),
  5389. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5390. MSM_BACKEND_DAI_SEC_I2S_RX,
  5391. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5392. msm_routing_put_audio_mixer),
  5393. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5394. MSM_BACKEND_DAI_SEC_I2S_RX,
  5395. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5396. msm_routing_put_audio_mixer),
  5397. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5398. MSM_BACKEND_DAI_SEC_I2S_RX,
  5399. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5400. msm_routing_put_audio_mixer),
  5401. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5402. MSM_BACKEND_DAI_SEC_I2S_RX,
  5403. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5404. msm_routing_put_audio_mixer),
  5405. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5406. MSM_BACKEND_DAI_SEC_I2S_RX,
  5407. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5408. msm_routing_put_audio_mixer),
  5409. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5410. MSM_BACKEND_DAI_SEC_I2S_RX,
  5411. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5412. msm_routing_put_audio_mixer),
  5413. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5414. MSM_BACKEND_DAI_SEC_I2S_RX,
  5415. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5416. msm_routing_put_audio_mixer),
  5417. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5418. MSM_BACKEND_DAI_SEC_I2S_RX,
  5419. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5420. msm_routing_put_audio_mixer),
  5421. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5422. MSM_BACKEND_DAI_SEC_I2S_RX,
  5423. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5424. msm_routing_put_audio_mixer),
  5425. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5426. MSM_BACKEND_DAI_SEC_I2S_RX,
  5427. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5428. msm_routing_put_audio_mixer),
  5429. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5430. MSM_BACKEND_DAI_SEC_I2S_RX,
  5431. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5432. msm_routing_put_audio_mixer),
  5433. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5434. MSM_BACKEND_DAI_SEC_I2S_RX,
  5435. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5436. msm_routing_put_audio_mixer),
  5437. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5438. MSM_BACKEND_DAI_SEC_I2S_RX,
  5439. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5440. msm_routing_put_audio_mixer),
  5441. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5442. MSM_BACKEND_DAI_SEC_I2S_RX,
  5443. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5444. msm_routing_put_audio_mixer),
  5445. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5446. MSM_BACKEND_DAI_SEC_I2S_RX,
  5447. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5448. msm_routing_put_audio_mixer),
  5449. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5450. MSM_BACKEND_DAI_SEC_I2S_RX,
  5451. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5452. msm_routing_put_audio_mixer),
  5453. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5454. MSM_BACKEND_DAI_SEC_I2S_RX,
  5455. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5456. msm_routing_put_audio_mixer),
  5457. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5458. MSM_BACKEND_DAI_SEC_I2S_RX,
  5459. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5460. msm_routing_put_audio_mixer),
  5461. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5462. MSM_BACKEND_DAI_SEC_I2S_RX,
  5463. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5464. msm_routing_put_audio_mixer),
  5465. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5466. MSM_BACKEND_DAI_SEC_I2S_RX,
  5467. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5468. msm_routing_put_audio_mixer),
  5469. };
  5470. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5471. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5472. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5473. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5474. msm_routing_put_audio_mixer),
  5475. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5476. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5477. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5478. msm_routing_put_audio_mixer),
  5479. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5480. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5481. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5482. msm_routing_put_audio_mixer),
  5483. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5484. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5485. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5486. msm_routing_put_audio_mixer),
  5487. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5488. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5489. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5490. msm_routing_put_audio_mixer),
  5491. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5492. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5493. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5494. msm_routing_put_audio_mixer),
  5495. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5496. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5497. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5498. msm_routing_put_audio_mixer),
  5499. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5500. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5501. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5502. msm_routing_put_audio_mixer),
  5503. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5504. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5505. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5506. msm_routing_put_audio_mixer),
  5507. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5508. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5509. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5510. msm_routing_put_audio_mixer),
  5511. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5512. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5513. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5514. msm_routing_put_audio_mixer),
  5515. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5516. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5517. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5518. msm_routing_put_audio_mixer),
  5519. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5520. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5521. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5522. msm_routing_put_audio_mixer),
  5523. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5524. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5525. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5526. msm_routing_put_audio_mixer),
  5527. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5528. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5529. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5530. msm_routing_put_audio_mixer),
  5531. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5532. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5533. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5534. msm_routing_put_audio_mixer),
  5535. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5536. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5537. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5538. msm_routing_put_audio_mixer),
  5539. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5540. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5541. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5542. msm_routing_put_audio_mixer),
  5543. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5544. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5545. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5546. msm_routing_put_audio_mixer),
  5547. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5548. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5549. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5550. msm_routing_put_audio_mixer),
  5551. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5552. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5553. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5554. msm_routing_put_audio_mixer),
  5555. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5556. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5557. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5558. msm_routing_put_audio_mixer),
  5559. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5560. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5561. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5562. msm_routing_put_audio_mixer),
  5563. };
  5564. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5565. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5566. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5567. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5568. msm_routing_put_audio_mixer),
  5569. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5570. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5571. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5572. msm_routing_put_audio_mixer),
  5573. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5574. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5575. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5576. msm_routing_put_audio_mixer),
  5577. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5578. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5579. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5580. msm_routing_put_audio_mixer),
  5581. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5582. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5583. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5584. msm_routing_put_audio_mixer),
  5585. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5586. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5587. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5588. msm_routing_put_audio_mixer),
  5589. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5590. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5591. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5592. msm_routing_put_audio_mixer),
  5593. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5594. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5595. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5596. msm_routing_put_audio_mixer),
  5597. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5598. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5599. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5600. msm_routing_put_audio_mixer),
  5601. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5602. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5603. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5604. msm_routing_put_audio_mixer),
  5605. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5606. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5607. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5608. msm_routing_put_audio_mixer),
  5609. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5610. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5611. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5612. msm_routing_put_audio_mixer),
  5613. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5614. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5615. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5616. msm_routing_put_audio_mixer),
  5617. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5618. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5619. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5620. msm_routing_put_audio_mixer),
  5621. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5622. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5623. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5624. msm_routing_put_audio_mixer),
  5625. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5626. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5627. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5628. msm_routing_put_audio_mixer),
  5629. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5630. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5631. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5632. msm_routing_put_audio_mixer),
  5633. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5634. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5635. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5636. msm_routing_put_audio_mixer),
  5637. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5638. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5639. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5640. msm_routing_put_audio_mixer),
  5641. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5642. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5643. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5644. msm_routing_put_audio_mixer),
  5645. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5646. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5647. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5648. msm_routing_put_audio_mixer),
  5649. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5650. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5651. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5652. msm_routing_put_audio_mixer),
  5653. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5654. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5655. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5656. msm_routing_put_audio_mixer),
  5657. };
  5658. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5659. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5660. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5661. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5662. msm_routing_put_audio_mixer),
  5663. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5664. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5665. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5666. msm_routing_put_audio_mixer),
  5667. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5668. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5669. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5670. msm_routing_put_audio_mixer),
  5671. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5672. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5673. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5674. msm_routing_put_audio_mixer),
  5675. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5676. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5677. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5678. msm_routing_put_audio_mixer),
  5679. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5680. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5681. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5682. msm_routing_put_audio_mixer),
  5683. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5684. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5685. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5686. msm_routing_put_audio_mixer),
  5687. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5688. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5689. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5690. msm_routing_put_audio_mixer),
  5691. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5692. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5693. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5694. msm_routing_put_audio_mixer),
  5695. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5696. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5697. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5698. msm_routing_put_audio_mixer),
  5699. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5700. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5701. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5702. msm_routing_put_audio_mixer),
  5703. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5704. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5705. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5706. msm_routing_put_audio_mixer),
  5707. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5708. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5709. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5710. msm_routing_put_audio_mixer),
  5711. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5712. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5713. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5714. msm_routing_put_audio_mixer),
  5715. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5716. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5717. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5718. msm_routing_put_audio_mixer),
  5719. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5720. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5721. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5722. msm_routing_put_audio_mixer),
  5723. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5724. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5725. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5726. msm_routing_put_audio_mixer),
  5727. };
  5728. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5729. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5730. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5731. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5732. msm_routing_put_audio_mixer),
  5733. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5734. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5735. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5736. msm_routing_put_audio_mixer),
  5737. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5738. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5739. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5740. msm_routing_put_audio_mixer),
  5741. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5742. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5743. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5744. msm_routing_put_audio_mixer),
  5745. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5746. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5747. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5748. msm_routing_put_audio_mixer),
  5749. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5750. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5751. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5752. msm_routing_put_audio_mixer),
  5753. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5754. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5755. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5756. msm_routing_put_audio_mixer),
  5757. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5758. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5759. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5760. msm_routing_put_audio_mixer),
  5761. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5762. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5763. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5764. msm_routing_put_audio_mixer),
  5765. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5766. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5767. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5768. msm_routing_put_audio_mixer),
  5769. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5770. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5771. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5772. msm_routing_put_audio_mixer),
  5773. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5774. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5775. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5776. msm_routing_put_audio_mixer),
  5777. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5778. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5779. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5780. msm_routing_put_audio_mixer),
  5781. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5782. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5783. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5784. msm_routing_put_audio_mixer),
  5785. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5786. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5787. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5788. msm_routing_put_audio_mixer),
  5789. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5790. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5791. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5792. msm_routing_put_audio_mixer),
  5793. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5794. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5795. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5796. msm_routing_put_audio_mixer),
  5797. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5798. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5799. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5800. msm_routing_put_audio_mixer),
  5801. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5802. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5803. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5804. msm_routing_put_audio_mixer),
  5805. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5806. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5807. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5808. msm_routing_put_audio_mixer),
  5809. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5810. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5811. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5812. msm_routing_put_audio_mixer),
  5813. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5814. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5815. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5816. msm_routing_put_audio_mixer),
  5817. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5818. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5819. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5820. msm_routing_put_audio_mixer),
  5821. };
  5822. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5823. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5824. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5825. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5826. msm_routing_put_audio_mixer),
  5827. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5828. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5829. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5830. msm_routing_put_audio_mixer),
  5831. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5832. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5833. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5834. msm_routing_put_audio_mixer),
  5835. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5836. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5837. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5838. msm_routing_put_audio_mixer),
  5839. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5840. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5841. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5842. msm_routing_put_audio_mixer),
  5843. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5844. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5845. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5846. msm_routing_put_audio_mixer),
  5847. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5848. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5849. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5850. msm_routing_put_audio_mixer),
  5851. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5852. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5853. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5854. msm_routing_put_audio_mixer),
  5855. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5856. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5857. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5858. msm_routing_put_audio_mixer),
  5859. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5860. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5861. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5862. msm_routing_put_audio_mixer),
  5863. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5864. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5865. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5866. msm_routing_put_audio_mixer),
  5867. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5868. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5869. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5870. msm_routing_put_audio_mixer),
  5871. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5872. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5873. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5874. msm_routing_put_audio_mixer),
  5875. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5876. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5877. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5878. msm_routing_put_audio_mixer),
  5879. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5880. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5881. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5882. msm_routing_put_audio_mixer),
  5883. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5884. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5885. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5886. msm_routing_put_audio_mixer),
  5887. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5888. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5889. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5890. msm_routing_put_audio_mixer),
  5891. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5892. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5893. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5894. msm_routing_put_audio_mixer),
  5895. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5896. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5897. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5898. msm_routing_put_audio_mixer),
  5899. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5900. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5901. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5902. msm_routing_put_audio_mixer),
  5903. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5904. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5905. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5906. msm_routing_put_audio_mixer),
  5907. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5908. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5909. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5910. msm_routing_put_audio_mixer),
  5911. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5912. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5913. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5914. msm_routing_put_audio_mixer),
  5915. };
  5916. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  5917. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5918. MSM_BACKEND_DAI_MI2S_RX,
  5919. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5920. msm_routing_put_audio_mixer),
  5921. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5922. MSM_BACKEND_DAI_MI2S_RX,
  5923. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5924. msm_routing_put_audio_mixer),
  5925. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5926. MSM_BACKEND_DAI_MI2S_RX,
  5927. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5928. msm_routing_put_audio_mixer),
  5929. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5930. MSM_BACKEND_DAI_MI2S_RX,
  5931. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5932. msm_routing_put_audio_mixer),
  5933. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5934. MSM_BACKEND_DAI_MI2S_RX,
  5935. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5936. msm_routing_put_audio_mixer),
  5937. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5938. MSM_BACKEND_DAI_MI2S_RX,
  5939. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5940. msm_routing_put_audio_mixer),
  5941. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5942. MSM_BACKEND_DAI_MI2S_RX,
  5943. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5944. msm_routing_put_audio_mixer),
  5945. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5946. MSM_BACKEND_DAI_MI2S_RX,
  5947. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5948. msm_routing_put_audio_mixer),
  5949. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5950. MSM_BACKEND_DAI_MI2S_RX,
  5951. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5952. msm_routing_put_audio_mixer),
  5953. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5954. MSM_BACKEND_DAI_MI2S_RX,
  5955. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5956. msm_routing_put_audio_mixer),
  5957. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5958. MSM_BACKEND_DAI_MI2S_RX,
  5959. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5960. msm_routing_put_audio_mixer),
  5961. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5962. MSM_BACKEND_DAI_MI2S_RX,
  5963. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5964. msm_routing_put_audio_mixer),
  5965. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5966. MSM_BACKEND_DAI_MI2S_RX,
  5967. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5968. msm_routing_put_audio_mixer),
  5969. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5970. MSM_BACKEND_DAI_MI2S_RX,
  5971. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5972. msm_routing_put_audio_mixer),
  5973. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5974. MSM_BACKEND_DAI_MI2S_RX,
  5975. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5976. msm_routing_put_audio_mixer),
  5977. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5978. MSM_BACKEND_DAI_MI2S_RX,
  5979. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5980. msm_routing_put_audio_mixer),
  5981. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5982. MSM_BACKEND_DAI_MI2S_RX,
  5983. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5984. msm_routing_put_audio_mixer),
  5985. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5986. MSM_BACKEND_DAI_MI2S_RX,
  5987. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5988. msm_routing_put_audio_mixer),
  5989. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5990. MSM_BACKEND_DAI_MI2S_RX,
  5991. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5992. msm_routing_put_audio_mixer),
  5993. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5994. MSM_BACKEND_DAI_MI2S_RX,
  5995. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5996. msm_routing_put_audio_mixer),
  5997. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5998. MSM_BACKEND_DAI_MI2S_RX,
  5999. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6000. msm_routing_put_audio_mixer),
  6001. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6002. MSM_BACKEND_DAI_MI2S_RX,
  6003. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6004. msm_routing_put_audio_mixer),
  6005. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6006. MSM_BACKEND_DAI_MI2S_RX,
  6007. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6008. msm_routing_put_audio_mixer),
  6009. };
  6010. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  6011. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6012. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6013. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6014. msm_routing_put_audio_mixer),
  6015. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6016. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6017. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6018. msm_routing_put_audio_mixer),
  6019. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6020. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6021. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6022. msm_routing_put_audio_mixer),
  6023. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6024. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6025. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6026. msm_routing_put_audio_mixer),
  6027. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6028. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6029. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6030. msm_routing_put_audio_mixer),
  6031. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6032. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6033. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6034. msm_routing_put_audio_mixer),
  6035. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6036. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6037. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6038. msm_routing_put_audio_mixer),
  6039. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6040. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6041. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6042. msm_routing_put_audio_mixer),
  6043. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6044. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6045. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6046. msm_routing_put_audio_mixer),
  6047. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6048. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6049. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6050. msm_routing_put_audio_mixer),
  6051. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6052. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6053. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6054. msm_routing_put_audio_mixer),
  6055. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6056. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6057. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6058. msm_routing_put_audio_mixer),
  6059. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6060. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6061. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6062. msm_routing_put_audio_mixer),
  6063. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6064. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6065. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6066. msm_routing_put_audio_mixer),
  6067. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6068. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6069. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6070. msm_routing_put_audio_mixer),
  6071. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6072. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6073. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6074. msm_routing_put_audio_mixer),
  6075. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6076. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6077. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6078. msm_routing_put_audio_mixer),
  6079. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6080. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6081. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6082. msm_routing_put_audio_mixer),
  6083. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6084. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6085. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6086. msm_routing_put_audio_mixer),
  6087. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6088. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6089. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6090. msm_routing_put_audio_mixer),
  6091. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6092. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6093. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6094. msm_routing_put_audio_mixer),
  6095. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6096. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6097. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6098. msm_routing_put_audio_mixer),
  6099. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6100. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6101. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6102. msm_routing_put_audio_mixer),
  6103. };
  6104. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6105. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6106. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6107. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6108. msm_routing_put_audio_mixer),
  6109. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6110. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6111. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6112. msm_routing_put_audio_mixer),
  6113. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6114. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6115. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6116. msm_routing_put_audio_mixer),
  6117. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6118. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6119. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6120. msm_routing_put_audio_mixer),
  6121. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6122. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6123. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6124. msm_routing_put_audio_mixer),
  6125. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6126. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6127. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6128. msm_routing_put_audio_mixer),
  6129. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6130. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6131. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6132. msm_routing_put_audio_mixer),
  6133. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6134. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6135. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6136. msm_routing_put_audio_mixer),
  6137. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6138. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6139. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6140. msm_routing_put_audio_mixer),
  6141. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6142. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6143. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6144. msm_routing_put_audio_mixer),
  6145. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6146. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6147. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6148. msm_routing_put_audio_mixer),
  6149. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6150. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6151. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6152. msm_routing_put_audio_mixer),
  6153. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6154. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6155. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6156. msm_routing_put_audio_mixer),
  6157. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6158. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6159. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6160. msm_routing_put_audio_mixer),
  6161. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6162. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6163. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6164. msm_routing_put_audio_mixer),
  6165. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6166. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6167. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6168. msm_routing_put_audio_mixer),
  6169. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6170. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6171. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6172. msm_routing_put_audio_mixer),
  6173. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6174. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6175. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6176. msm_routing_put_audio_mixer),
  6177. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6178. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6179. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6180. msm_routing_put_audio_mixer),
  6181. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6182. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6183. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6184. msm_routing_put_audio_mixer),
  6185. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6186. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6187. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6188. msm_routing_put_audio_mixer),
  6189. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6190. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6191. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6192. msm_routing_put_audio_mixer),
  6193. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6194. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6195. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6196. msm_routing_put_audio_mixer),
  6197. };
  6198. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6199. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6200. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6201. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6202. msm_routing_put_audio_mixer),
  6203. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6204. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6205. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6206. msm_routing_put_audio_mixer),
  6207. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6208. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6209. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6210. msm_routing_put_audio_mixer),
  6211. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6212. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6213. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6214. msm_routing_put_audio_mixer),
  6215. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6216. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6217. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6218. msm_routing_put_audio_mixer),
  6219. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6220. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6221. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6222. msm_routing_put_audio_mixer),
  6223. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6224. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6225. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6226. msm_routing_put_audio_mixer),
  6227. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6228. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6229. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6230. msm_routing_put_audio_mixer),
  6231. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6232. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6233. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6234. msm_routing_put_audio_mixer),
  6235. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6236. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6237. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6238. msm_routing_put_audio_mixer),
  6239. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6240. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6241. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6242. msm_routing_put_audio_mixer),
  6243. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6244. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6245. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6246. msm_routing_put_audio_mixer),
  6247. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6248. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6249. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6250. msm_routing_put_audio_mixer),
  6251. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6252. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6253. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6254. msm_routing_put_audio_mixer),
  6255. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6256. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6257. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6258. msm_routing_put_audio_mixer),
  6259. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6260. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6261. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6262. msm_routing_put_audio_mixer),
  6263. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6264. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6265. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6266. msm_routing_put_audio_mixer),
  6267. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6268. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6269. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6270. msm_routing_put_audio_mixer),
  6271. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6272. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6273. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6274. msm_routing_put_audio_mixer),
  6275. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6276. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6277. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6278. msm_routing_put_audio_mixer),
  6279. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6280. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6281. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6282. msm_routing_put_audio_mixer),
  6283. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6284. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6285. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6286. msm_routing_put_audio_mixer),
  6287. };
  6288. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6289. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6290. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6291. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6292. msm_routing_put_audio_mixer),
  6293. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6294. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6295. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6296. msm_routing_put_audio_mixer),
  6297. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6298. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6299. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6300. msm_routing_put_audio_mixer),
  6301. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6302. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6303. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6304. msm_routing_put_audio_mixer),
  6305. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6306. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6307. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6308. msm_routing_put_audio_mixer),
  6309. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6310. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6311. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6312. msm_routing_put_audio_mixer),
  6313. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6314. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6315. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6316. msm_routing_put_audio_mixer),
  6317. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6318. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6319. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6320. msm_routing_put_audio_mixer),
  6321. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6322. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6323. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6324. msm_routing_put_audio_mixer),
  6325. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6326. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6327. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6328. msm_routing_put_audio_mixer),
  6329. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6330. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6331. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6332. msm_routing_put_audio_mixer),
  6333. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6334. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6335. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6336. msm_routing_put_audio_mixer),
  6337. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6338. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6339. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6340. msm_routing_put_audio_mixer),
  6341. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6342. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6343. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6344. msm_routing_put_audio_mixer),
  6345. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6346. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6347. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6348. msm_routing_put_audio_mixer),
  6349. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6350. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6351. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6352. msm_routing_put_audio_mixer),
  6353. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6354. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6355. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6356. msm_routing_put_audio_mixer),
  6357. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6358. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6359. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6360. msm_routing_put_audio_mixer),
  6361. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6362. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6363. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6364. msm_routing_put_audio_mixer),
  6365. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6366. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6367. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6368. msm_routing_put_audio_mixer),
  6369. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6370. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6371. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6372. msm_routing_put_audio_mixer),
  6373. };
  6374. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6375. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6376. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6377. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6378. msm_routing_put_audio_mixer),
  6379. };
  6380. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6381. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6382. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6383. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6384. msm_routing_put_audio_mixer),
  6385. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6386. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6387. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6388. msm_routing_put_audio_mixer),
  6389. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6390. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6391. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6392. msm_routing_put_audio_mixer),
  6393. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6394. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6395. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6396. msm_routing_put_audio_mixer),
  6397. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6398. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6399. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6400. msm_routing_put_audio_mixer),
  6401. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6402. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6403. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6404. msm_routing_put_audio_mixer),
  6405. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6406. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6407. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6408. msm_routing_put_audio_mixer),
  6409. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6410. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6411. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6412. msm_routing_put_audio_mixer),
  6413. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6414. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6415. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6416. msm_routing_put_audio_mixer),
  6417. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6418. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6419. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6420. msm_routing_put_audio_mixer),
  6421. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6422. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6423. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6424. msm_routing_put_audio_mixer),
  6425. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6426. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6427. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6428. msm_routing_put_audio_mixer),
  6429. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6430. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6431. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6432. msm_routing_put_audio_mixer),
  6433. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6434. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6435. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6436. msm_routing_put_audio_mixer),
  6437. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6438. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6439. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6440. msm_routing_put_audio_mixer),
  6441. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6442. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6443. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6444. msm_routing_put_audio_mixer),
  6445. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6446. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6447. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6448. msm_routing_put_audio_mixer),
  6449. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6450. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6451. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6452. msm_routing_put_audio_mixer),
  6453. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6454. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6455. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6456. msm_routing_put_audio_mixer),
  6457. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6458. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6459. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6460. msm_routing_put_audio_mixer),
  6461. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6462. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6463. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6464. msm_routing_put_audio_mixer),
  6465. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6466. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6467. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6468. msm_routing_put_audio_mixer),
  6469. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6470. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6471. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6472. msm_routing_put_audio_mixer),
  6473. };
  6474. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6475. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6476. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6477. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6478. msm_routing_put_audio_mixer),
  6479. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6480. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6481. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6482. msm_routing_put_audio_mixer),
  6483. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6484. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6485. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6486. msm_routing_put_audio_mixer),
  6487. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6488. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6489. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6490. msm_routing_put_audio_mixer),
  6491. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6492. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6493. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6494. msm_routing_put_audio_mixer),
  6495. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6496. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6497. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6498. msm_routing_put_audio_mixer),
  6499. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6500. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6501. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6502. msm_routing_put_audio_mixer),
  6503. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6504. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6505. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6506. msm_routing_put_audio_mixer),
  6507. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6508. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6509. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6510. msm_routing_put_audio_mixer),
  6511. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6512. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6513. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6514. msm_routing_put_audio_mixer),
  6515. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6516. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6517. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6518. msm_routing_put_audio_mixer),
  6519. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6520. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6521. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6522. msm_routing_put_audio_mixer),
  6523. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6524. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6525. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6526. msm_routing_put_audio_mixer),
  6527. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6528. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6529. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6530. msm_routing_put_audio_mixer),
  6531. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6532. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6533. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6534. msm_routing_put_audio_mixer),
  6535. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6536. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6537. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6538. msm_routing_put_audio_mixer),
  6539. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6540. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6541. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6542. msm_routing_put_audio_mixer),
  6543. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6544. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6545. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6546. msm_routing_put_audio_mixer),
  6547. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6548. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6549. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6550. msm_routing_put_audio_mixer),
  6551. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6552. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6553. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6554. msm_routing_put_audio_mixer),
  6555. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6556. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6557. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6558. msm_routing_put_audio_mixer),
  6559. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6560. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6561. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6562. msm_routing_put_audio_mixer),
  6563. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6564. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6565. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6566. msm_routing_put_audio_mixer),
  6567. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  6568. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6569. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_audio_mixer,
  6570. msm_routing_put_audio_mixer),
  6571. };
  6572. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6573. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6574. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6575. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6576. msm_routing_put_audio_mixer),
  6577. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6578. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6579. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6580. msm_routing_put_audio_mixer),
  6581. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6582. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6583. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6584. msm_routing_put_audio_mixer),
  6585. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6586. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6587. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6588. msm_routing_put_audio_mixer),
  6589. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6590. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6591. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6592. msm_routing_put_audio_mixer),
  6593. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6594. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6595. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6596. msm_routing_put_audio_mixer),
  6597. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6598. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6599. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6600. msm_routing_put_audio_mixer),
  6601. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6602. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6603. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6604. msm_routing_put_audio_mixer),
  6605. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6606. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6607. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6608. msm_routing_put_audio_mixer),
  6609. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6610. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6611. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6612. msm_routing_put_audio_mixer),
  6613. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6614. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6615. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6616. msm_routing_put_audio_mixer),
  6617. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6618. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6619. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6620. msm_routing_put_audio_mixer),
  6621. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6622. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6623. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6624. msm_routing_put_audio_mixer),
  6625. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6626. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6627. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6628. msm_routing_put_audio_mixer),
  6629. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6630. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6631. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6632. msm_routing_put_audio_mixer),
  6633. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6634. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6635. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6636. msm_routing_put_audio_mixer),
  6637. };
  6638. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6639. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6640. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6641. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6642. msm_routing_put_audio_mixer),
  6643. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6644. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6645. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6646. msm_routing_put_audio_mixer),
  6647. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6648. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6649. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6650. msm_routing_put_audio_mixer),
  6651. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6652. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6653. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6654. msm_routing_put_audio_mixer),
  6655. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6656. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6657. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6658. msm_routing_put_audio_mixer),
  6659. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6660. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6661. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6662. msm_routing_put_audio_mixer),
  6663. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6664. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6665. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6666. msm_routing_put_audio_mixer),
  6667. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6668. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6669. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6670. msm_routing_put_audio_mixer),
  6671. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6672. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6673. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6674. msm_routing_put_audio_mixer),
  6675. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6676. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6677. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6678. msm_routing_put_audio_mixer),
  6679. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6680. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6681. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6682. msm_routing_put_audio_mixer),
  6683. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6684. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6685. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6686. msm_routing_put_audio_mixer),
  6687. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6688. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6689. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6690. msm_routing_put_audio_mixer),
  6691. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6692. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6693. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6694. msm_routing_put_audio_mixer),
  6695. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6696. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6697. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6698. msm_routing_put_audio_mixer),
  6699. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6700. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6701. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6702. msm_routing_put_audio_mixer),
  6703. };
  6704. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6705. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6706. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6707. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6708. msm_routing_put_audio_mixer),
  6709. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6710. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6711. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6712. msm_routing_put_audio_mixer),
  6713. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6714. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6715. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6716. msm_routing_put_audio_mixer),
  6717. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6718. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6719. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6720. msm_routing_put_audio_mixer),
  6721. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6722. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6723. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6724. msm_routing_put_audio_mixer),
  6725. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6726. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6727. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6728. msm_routing_put_audio_mixer),
  6729. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6730. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6731. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6732. msm_routing_put_audio_mixer),
  6733. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6734. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6735. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6736. msm_routing_put_audio_mixer),
  6737. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6738. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6739. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6740. msm_routing_put_audio_mixer),
  6741. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6742. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6743. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6744. msm_routing_put_audio_mixer),
  6745. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6746. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6747. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6748. msm_routing_put_audio_mixer),
  6749. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6750. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6751. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6752. msm_routing_put_audio_mixer),
  6753. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6754. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6755. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6756. msm_routing_put_audio_mixer),
  6757. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6758. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6759. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6760. msm_routing_put_audio_mixer),
  6761. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6762. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6763. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6764. msm_routing_put_audio_mixer),
  6765. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6766. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6767. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6768. msm_routing_put_audio_mixer),
  6769. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6770. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6771. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6772. msm_routing_put_audio_mixer),
  6773. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6774. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6775. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6776. msm_routing_put_audio_mixer),
  6777. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6778. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6779. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6780. msm_routing_put_audio_mixer),
  6781. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6782. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6783. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6784. msm_routing_put_audio_mixer),
  6785. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6786. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6787. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6788. msm_routing_put_audio_mixer),
  6789. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6790. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6791. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6792. msm_routing_put_audio_mixer),
  6793. };
  6794. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  6795. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6796. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6797. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6798. msm_routing_put_audio_mixer),
  6799. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6800. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6801. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6802. msm_routing_put_audio_mixer),
  6803. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6804. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6805. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6806. msm_routing_put_audio_mixer),
  6807. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6808. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6809. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6810. msm_routing_put_audio_mixer),
  6811. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6812. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6813. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6814. msm_routing_put_audio_mixer),
  6815. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6816. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6817. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6818. msm_routing_put_audio_mixer),
  6819. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6820. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6821. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6822. msm_routing_put_audio_mixer),
  6823. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6824. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6825. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6826. msm_routing_put_audio_mixer),
  6827. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6828. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6829. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6830. msm_routing_put_audio_mixer),
  6831. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6832. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6833. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6834. msm_routing_put_audio_mixer),
  6835. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6836. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6837. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6838. msm_routing_put_audio_mixer),
  6839. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6840. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6841. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6842. msm_routing_put_audio_mixer),
  6843. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6844. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6845. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6846. msm_routing_put_audio_mixer),
  6847. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6848. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6849. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6850. msm_routing_put_audio_mixer),
  6851. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6852. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6853. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6854. msm_routing_put_audio_mixer),
  6855. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6856. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6857. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6858. msm_routing_put_audio_mixer),
  6859. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6860. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6861. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6862. msm_routing_put_audio_mixer),
  6863. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6864. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6865. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6866. msm_routing_put_audio_mixer),
  6867. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6868. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6869. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6870. msm_routing_put_audio_mixer),
  6871. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6872. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6873. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6874. msm_routing_put_audio_mixer),
  6875. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6876. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6877. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6878. msm_routing_put_audio_mixer),
  6879. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6880. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6881. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6882. msm_routing_put_audio_mixer),
  6883. };
  6884. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  6885. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6886. MSM_BACKEND_DAI_HDMI_RX,
  6887. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6888. msm_routing_put_audio_mixer),
  6889. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6890. MSM_BACKEND_DAI_HDMI_RX,
  6891. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6892. msm_routing_put_audio_mixer),
  6893. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6894. MSM_BACKEND_DAI_HDMI_RX,
  6895. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6896. msm_routing_put_audio_mixer),
  6897. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6898. MSM_BACKEND_DAI_HDMI_RX,
  6899. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6900. msm_routing_put_audio_mixer),
  6901. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6902. MSM_BACKEND_DAI_HDMI_RX,
  6903. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6904. msm_routing_put_audio_mixer),
  6905. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6906. MSM_BACKEND_DAI_HDMI_RX,
  6907. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6908. msm_routing_put_audio_mixer),
  6909. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6910. MSM_BACKEND_DAI_HDMI_RX,
  6911. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6912. msm_routing_put_audio_mixer),
  6913. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6914. MSM_BACKEND_DAI_HDMI_RX,
  6915. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6916. msm_routing_put_audio_mixer),
  6917. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6918. MSM_BACKEND_DAI_HDMI_RX,
  6919. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6920. msm_routing_put_audio_mixer),
  6921. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6922. MSM_BACKEND_DAI_HDMI_RX,
  6923. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6924. msm_routing_put_audio_mixer),
  6925. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6926. MSM_BACKEND_DAI_HDMI_RX,
  6927. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6928. msm_routing_put_audio_mixer),
  6929. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6930. MSM_BACKEND_DAI_HDMI_RX,
  6931. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6932. msm_routing_put_audio_mixer),
  6933. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6934. MSM_BACKEND_DAI_HDMI_RX,
  6935. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6936. msm_routing_put_audio_mixer),
  6937. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6938. MSM_BACKEND_DAI_HDMI_RX,
  6939. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6940. msm_routing_put_audio_mixer),
  6941. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6942. MSM_BACKEND_DAI_HDMI_RX,
  6943. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6944. msm_routing_put_audio_mixer),
  6945. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6946. MSM_BACKEND_DAI_HDMI_RX,
  6947. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6948. msm_routing_put_audio_mixer),
  6949. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6950. MSM_BACKEND_DAI_HDMI_RX,
  6951. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6952. msm_routing_put_audio_mixer),
  6953. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6954. MSM_BACKEND_DAI_HDMI_RX,
  6955. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6956. msm_routing_put_audio_mixer),
  6957. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6958. MSM_BACKEND_DAI_HDMI_RX,
  6959. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6960. msm_routing_put_audio_mixer),
  6961. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6962. MSM_BACKEND_DAI_HDMI_RX,
  6963. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6964. msm_routing_put_audio_mixer),
  6965. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6966. MSM_BACKEND_DAI_HDMI_RX,
  6967. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6968. msm_routing_put_audio_mixer),
  6969. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6970. MSM_BACKEND_DAI_HDMI_RX,
  6971. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6972. msm_routing_put_audio_mixer),
  6973. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6974. MSM_BACKEND_DAI_HDMI_RX,
  6975. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6976. msm_routing_put_audio_mixer),
  6977. };
  6978. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  6979. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6980. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6981. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6982. msm_routing_put_audio_mixer),
  6983. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6984. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6985. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6986. msm_routing_put_audio_mixer),
  6987. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6988. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6989. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6990. msm_routing_put_audio_mixer),
  6991. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6992. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6993. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6994. msm_routing_put_audio_mixer),
  6995. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6996. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6997. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6998. msm_routing_put_audio_mixer),
  6999. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7000. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7001. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7002. msm_routing_put_audio_mixer),
  7003. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7004. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7005. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7006. msm_routing_put_audio_mixer),
  7007. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7008. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7009. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7010. msm_routing_put_audio_mixer),
  7011. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7012. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7013. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7014. msm_routing_put_audio_mixer),
  7015. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7016. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7017. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7018. msm_routing_put_audio_mixer),
  7019. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7020. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7021. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7022. msm_routing_put_audio_mixer),
  7023. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7024. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7025. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7026. msm_routing_put_audio_mixer),
  7027. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7028. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7029. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7030. msm_routing_put_audio_mixer),
  7031. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7032. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7033. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7034. msm_routing_put_audio_mixer),
  7035. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7036. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7037. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7038. msm_routing_put_audio_mixer),
  7039. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7040. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7041. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7042. msm_routing_put_audio_mixer),
  7043. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7044. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7045. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7046. msm_routing_put_audio_mixer),
  7047. };
  7048. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7049. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7050. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7051. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7052. msm_routing_put_audio_mixer),
  7053. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7054. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7055. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7056. msm_routing_put_audio_mixer),
  7057. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7058. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7059. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7060. msm_routing_put_audio_mixer),
  7061. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7062. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7063. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7064. msm_routing_put_audio_mixer),
  7065. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7066. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7067. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7068. msm_routing_put_audio_mixer),
  7069. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7070. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7071. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7072. msm_routing_put_audio_mixer),
  7073. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7074. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7075. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7076. msm_routing_put_audio_mixer),
  7077. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7078. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7079. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7080. msm_routing_put_audio_mixer),
  7081. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7082. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7083. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7084. msm_routing_put_audio_mixer),
  7085. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7086. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7087. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7088. msm_routing_put_audio_mixer),
  7089. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7090. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7091. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7092. msm_routing_put_audio_mixer),
  7093. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7094. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7095. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7096. msm_routing_put_audio_mixer),
  7097. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7098. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7099. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7100. msm_routing_put_audio_mixer),
  7101. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7102. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7103. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7104. msm_routing_put_audio_mixer),
  7105. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7106. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7107. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7108. msm_routing_put_audio_mixer),
  7109. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7110. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7111. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7112. msm_routing_put_audio_mixer),
  7113. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7114. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7115. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7116. msm_routing_put_audio_mixer),
  7117. };
  7118. /* incall music delivery mixer */
  7119. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7120. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7121. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7122. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7123. msm_routing_put_audio_mixer),
  7124. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7125. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7126. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7127. msm_routing_put_audio_mixer),
  7128. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7129. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7130. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7131. msm_routing_put_audio_mixer),
  7132. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7133. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7134. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7135. msm_routing_put_audio_mixer),
  7136. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7137. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7138. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7139. msm_routing_put_audio_mixer),
  7140. };
  7141. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7142. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7143. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7144. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7145. msm_routing_put_audio_mixer),
  7146. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7147. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7148. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7149. msm_routing_put_audio_mixer),
  7150. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7151. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7152. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7153. msm_routing_put_audio_mixer),
  7154. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7155. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7156. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7157. msm_routing_put_audio_mixer),
  7158. };
  7159. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7160. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7161. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7162. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7163. msm_routing_put_audio_mixer),
  7164. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7165. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7166. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7167. msm_routing_put_audio_mixer),
  7168. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7169. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7170. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7171. msm_routing_put_audio_mixer),
  7172. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7173. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7174. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7175. msm_routing_put_audio_mixer),
  7176. };
  7177. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7178. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7179. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7180. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7181. msm_routing_put_audio_mixer),
  7182. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7183. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7184. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7185. msm_routing_put_audio_mixer),
  7186. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7187. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7188. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7189. msm_routing_put_audio_mixer),
  7190. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7191. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7192. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7193. msm_routing_put_audio_mixer),
  7194. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7195. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7196. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7197. msm_routing_put_audio_mixer),
  7198. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7199. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7200. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7201. msm_routing_put_audio_mixer),
  7202. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7203. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7204. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7205. msm_routing_put_audio_mixer),
  7206. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7207. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7208. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7209. msm_routing_put_audio_mixer),
  7210. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7211. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7212. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7213. msm_routing_put_audio_mixer),
  7214. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7215. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7216. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7217. msm_routing_put_audio_mixer),
  7218. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7219. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7220. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7221. msm_routing_put_audio_mixer),
  7222. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7223. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7224. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7225. msm_routing_put_audio_mixer),
  7226. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7227. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7228. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7229. msm_routing_put_audio_mixer),
  7230. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7231. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7232. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7233. msm_routing_put_audio_mixer),
  7234. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7235. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7236. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7237. msm_routing_put_audio_mixer),
  7238. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7239. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7240. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7241. msm_routing_put_audio_mixer),
  7242. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7243. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7244. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7245. msm_routing_put_audio_mixer),
  7246. };
  7247. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7248. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7249. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7250. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7251. msm_routing_put_audio_mixer),
  7252. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7253. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7254. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7255. msm_routing_put_audio_mixer),
  7256. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7257. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7258. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7259. msm_routing_put_audio_mixer),
  7260. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7261. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7262. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7263. msm_routing_put_audio_mixer),
  7264. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7265. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7266. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7267. msm_routing_put_audio_mixer),
  7268. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7269. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7270. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7271. msm_routing_put_audio_mixer),
  7272. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7273. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7274. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7275. msm_routing_put_audio_mixer),
  7276. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7277. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7278. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7279. msm_routing_put_audio_mixer),
  7280. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7281. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7282. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7283. msm_routing_put_audio_mixer),
  7284. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7285. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7286. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7287. msm_routing_put_audio_mixer),
  7288. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7289. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7290. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7291. msm_routing_put_audio_mixer),
  7292. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7293. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7294. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7295. msm_routing_put_audio_mixer),
  7296. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7297. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7298. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7299. msm_routing_put_audio_mixer),
  7300. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7301. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7302. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7303. msm_routing_put_audio_mixer),
  7304. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7305. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7306. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7307. msm_routing_put_audio_mixer),
  7308. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7309. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7310. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7311. msm_routing_put_audio_mixer),
  7312. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7313. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7314. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7315. msm_routing_put_audio_mixer),
  7316. };
  7317. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7318. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7319. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7320. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7321. msm_routing_put_audio_mixer),
  7322. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7323. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7324. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7325. msm_routing_put_audio_mixer),
  7326. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7327. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7328. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7329. msm_routing_put_audio_mixer),
  7330. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7331. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7332. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7333. msm_routing_put_audio_mixer),
  7334. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7335. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7336. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7337. msm_routing_put_audio_mixer),
  7338. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7339. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7340. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7341. msm_routing_put_audio_mixer),
  7342. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7343. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7344. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7345. msm_routing_put_audio_mixer),
  7346. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7347. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7348. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7349. msm_routing_put_audio_mixer),
  7350. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7351. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7352. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7353. msm_routing_put_audio_mixer),
  7354. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7355. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7356. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7357. msm_routing_put_audio_mixer),
  7358. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7359. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7360. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7361. msm_routing_put_audio_mixer),
  7362. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7363. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7364. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7365. msm_routing_put_audio_mixer),
  7366. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7367. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7368. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7369. msm_routing_put_audio_mixer),
  7370. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7371. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7372. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7373. msm_routing_put_audio_mixer),
  7374. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7375. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7376. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7377. msm_routing_put_audio_mixer),
  7378. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7379. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7380. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7381. msm_routing_put_audio_mixer),
  7382. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7383. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7384. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7385. msm_routing_put_audio_mixer),
  7386. };
  7387. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7388. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7389. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7390. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7391. msm_routing_put_audio_mixer),
  7392. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7393. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7394. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7395. msm_routing_put_audio_mixer),
  7396. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7397. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7398. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7399. msm_routing_put_audio_mixer),
  7400. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7401. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7402. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7403. msm_routing_put_audio_mixer),
  7404. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7405. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7406. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7407. msm_routing_put_audio_mixer),
  7408. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7409. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7410. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7411. msm_routing_put_audio_mixer),
  7412. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7413. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7414. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7415. msm_routing_put_audio_mixer),
  7416. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7417. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7418. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7419. msm_routing_put_audio_mixer),
  7420. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7421. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7422. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7423. msm_routing_put_audio_mixer),
  7424. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7425. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7426. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7427. msm_routing_put_audio_mixer),
  7428. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7429. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7430. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7431. msm_routing_put_audio_mixer),
  7432. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7433. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7434. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7435. msm_routing_put_audio_mixer),
  7436. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7437. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7438. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7439. msm_routing_put_audio_mixer),
  7440. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7441. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7442. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7443. msm_routing_put_audio_mixer),
  7444. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7445. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7446. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7447. msm_routing_put_audio_mixer),
  7448. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7449. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7450. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7451. msm_routing_put_audio_mixer),
  7452. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7453. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7454. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7455. msm_routing_put_audio_mixer),
  7456. };
  7457. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7458. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7459. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7460. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7461. msm_routing_put_audio_mixer),
  7462. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7463. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7464. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7465. msm_routing_put_audio_mixer),
  7466. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7467. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7468. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7469. msm_routing_put_audio_mixer),
  7470. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7471. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7472. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7473. msm_routing_put_audio_mixer),
  7474. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7475. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7476. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7477. msm_routing_put_audio_mixer),
  7478. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7479. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7480. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7481. msm_routing_put_audio_mixer),
  7482. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7483. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7484. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7485. msm_routing_put_audio_mixer),
  7486. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7487. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7488. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7489. msm_routing_put_audio_mixer),
  7490. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7491. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7492. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7493. msm_routing_put_audio_mixer),
  7494. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7495. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7496. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7497. msm_routing_put_audio_mixer),
  7498. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7499. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7500. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7501. msm_routing_put_audio_mixer),
  7502. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7503. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7504. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7505. msm_routing_put_audio_mixer),
  7506. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7507. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7508. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7509. msm_routing_put_audio_mixer),
  7510. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7511. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7512. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7513. msm_routing_put_audio_mixer),
  7514. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7515. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7516. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7517. msm_routing_put_audio_mixer),
  7518. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7519. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7520. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7521. msm_routing_put_audio_mixer),
  7522. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7523. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7524. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7525. msm_routing_put_audio_mixer),
  7526. };
  7527. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7528. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7529. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7530. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7531. msm_routing_put_audio_mixer),
  7532. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7533. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7534. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7535. msm_routing_put_audio_mixer),
  7536. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7537. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7538. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7539. msm_routing_put_audio_mixer),
  7540. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7541. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7542. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7543. msm_routing_put_audio_mixer),
  7544. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7545. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7546. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7547. msm_routing_put_audio_mixer),
  7548. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7549. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7550. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7551. msm_routing_put_audio_mixer),
  7552. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7553. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7554. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7555. msm_routing_put_audio_mixer),
  7556. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7557. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7558. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7559. msm_routing_put_audio_mixer),
  7560. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7561. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7562. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7563. msm_routing_put_audio_mixer),
  7564. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7565. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7566. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7567. msm_routing_put_audio_mixer),
  7568. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7569. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7570. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7571. msm_routing_put_audio_mixer),
  7572. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7573. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7574. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7575. msm_routing_put_audio_mixer),
  7576. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7577. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7578. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7579. msm_routing_put_audio_mixer),
  7580. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7581. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7582. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7583. msm_routing_put_audio_mixer),
  7584. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7585. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7586. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7587. msm_routing_put_audio_mixer),
  7588. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7589. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7590. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7591. msm_routing_put_audio_mixer),
  7592. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7593. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7594. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7595. msm_routing_put_audio_mixer),
  7596. };
  7597. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7598. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7599. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7600. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7601. msm_routing_put_audio_mixer),
  7602. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7603. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7604. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7605. msm_routing_put_audio_mixer),
  7606. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7607. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7608. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7609. msm_routing_put_audio_mixer),
  7610. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7611. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7612. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7613. msm_routing_put_audio_mixer),
  7614. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7615. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7616. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7617. msm_routing_put_audio_mixer),
  7618. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7619. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7620. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7621. msm_routing_put_audio_mixer),
  7622. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7623. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7624. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7625. msm_routing_put_audio_mixer),
  7626. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7627. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7628. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7629. msm_routing_put_audio_mixer),
  7630. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7631. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7632. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7633. msm_routing_put_audio_mixer),
  7634. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7635. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7636. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7637. msm_routing_put_audio_mixer),
  7638. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7639. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7640. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7641. msm_routing_put_audio_mixer),
  7642. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7643. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7644. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7645. msm_routing_put_audio_mixer),
  7646. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7647. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7648. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7649. msm_routing_put_audio_mixer),
  7650. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7651. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7652. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7653. msm_routing_put_audio_mixer),
  7654. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7655. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7656. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7657. msm_routing_put_audio_mixer),
  7658. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7659. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7660. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7661. msm_routing_put_audio_mixer),
  7662. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7663. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7664. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7665. msm_routing_put_audio_mixer),
  7666. };
  7667. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  7668. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7669. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7670. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7671. msm_routing_put_audio_mixer),
  7672. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7673. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7674. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7675. msm_routing_put_audio_mixer),
  7676. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7677. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7678. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7679. msm_routing_put_audio_mixer),
  7680. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7681. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7682. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7683. msm_routing_put_audio_mixer),
  7684. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7685. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7686. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7687. msm_routing_put_audio_mixer),
  7688. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7689. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7690. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7691. msm_routing_put_audio_mixer),
  7692. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7693. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7694. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7695. msm_routing_put_audio_mixer),
  7696. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7697. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7698. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7699. msm_routing_put_audio_mixer),
  7700. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7701. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7702. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7703. msm_routing_put_audio_mixer),
  7704. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7705. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7706. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7707. msm_routing_put_audio_mixer),
  7708. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7709. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7710. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7711. msm_routing_put_audio_mixer),
  7712. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7713. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7714. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7715. msm_routing_put_audio_mixer),
  7716. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7717. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7718. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7719. msm_routing_put_audio_mixer),
  7720. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7721. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7722. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7723. msm_routing_put_audio_mixer),
  7724. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7725. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7726. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7727. msm_routing_put_audio_mixer),
  7728. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7729. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7730. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7731. msm_routing_put_audio_mixer),
  7732. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7733. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7734. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7735. msm_routing_put_audio_mixer),
  7736. };
  7737. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  7738. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7739. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7740. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7741. msm_routing_put_audio_mixer),
  7742. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7743. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7744. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7745. msm_routing_put_audio_mixer),
  7746. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7747. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7748. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7749. msm_routing_put_audio_mixer),
  7750. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7751. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7752. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7753. msm_routing_put_audio_mixer),
  7754. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7755. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7756. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7757. msm_routing_put_audio_mixer),
  7758. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7759. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7760. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7761. msm_routing_put_audio_mixer),
  7762. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7763. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7764. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7765. msm_routing_put_audio_mixer),
  7766. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7767. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7768. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7769. msm_routing_put_audio_mixer),
  7770. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7771. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7772. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7773. msm_routing_put_audio_mixer),
  7774. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7775. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7776. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7777. msm_routing_put_audio_mixer),
  7778. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7779. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7780. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7781. msm_routing_put_audio_mixer),
  7782. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7783. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7784. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7785. msm_routing_put_audio_mixer),
  7786. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7787. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7788. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7789. msm_routing_put_audio_mixer),
  7790. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7791. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7792. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7793. msm_routing_put_audio_mixer),
  7794. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7795. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7796. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7797. msm_routing_put_audio_mixer),
  7798. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7799. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7800. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7801. msm_routing_put_audio_mixer),
  7802. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7803. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7804. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7805. msm_routing_put_audio_mixer),
  7806. };
  7807. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  7808. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7809. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7810. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7811. msm_routing_put_audio_mixer),
  7812. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7813. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7814. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7815. msm_routing_put_audio_mixer),
  7816. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7817. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7818. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7819. msm_routing_put_audio_mixer),
  7820. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7821. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7822. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7823. msm_routing_put_audio_mixer),
  7824. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7825. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7826. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7827. msm_routing_put_audio_mixer),
  7828. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7829. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7830. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7831. msm_routing_put_audio_mixer),
  7832. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7833. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7834. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7835. msm_routing_put_audio_mixer),
  7836. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7837. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7838. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7839. msm_routing_put_audio_mixer),
  7840. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7841. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7842. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7843. msm_routing_put_audio_mixer),
  7844. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7845. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7846. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7847. msm_routing_put_audio_mixer),
  7848. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7849. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7850. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7851. msm_routing_put_audio_mixer),
  7852. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7853. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7854. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7855. msm_routing_put_audio_mixer),
  7856. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7857. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7858. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7859. msm_routing_put_audio_mixer),
  7860. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7861. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7862. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7863. msm_routing_put_audio_mixer),
  7864. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7865. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7866. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7867. msm_routing_put_audio_mixer),
  7868. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7869. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7870. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7871. msm_routing_put_audio_mixer),
  7872. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7873. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7874. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7875. msm_routing_put_audio_mixer),
  7876. };
  7877. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  7878. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7879. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7880. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7881. msm_routing_put_audio_mixer),
  7882. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7883. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7884. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7885. msm_routing_put_audio_mixer),
  7886. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7887. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7888. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7889. msm_routing_put_audio_mixer),
  7890. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7891. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7892. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7893. msm_routing_put_audio_mixer),
  7894. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7895. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7896. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7897. msm_routing_put_audio_mixer),
  7898. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7899. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7900. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7901. msm_routing_put_audio_mixer),
  7902. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7903. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7904. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7905. msm_routing_put_audio_mixer),
  7906. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7907. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7908. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7909. msm_routing_put_audio_mixer),
  7910. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7911. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7912. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7913. msm_routing_put_audio_mixer),
  7914. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7915. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7916. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7917. msm_routing_put_audio_mixer),
  7918. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7919. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7920. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7921. msm_routing_put_audio_mixer),
  7922. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7923. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7924. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7925. msm_routing_put_audio_mixer),
  7926. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7927. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7928. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7929. msm_routing_put_audio_mixer),
  7930. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7931. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7932. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7933. msm_routing_put_audio_mixer),
  7934. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7935. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7936. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7937. msm_routing_put_audio_mixer),
  7938. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7939. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7940. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7941. msm_routing_put_audio_mixer),
  7942. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7943. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7944. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7945. msm_routing_put_audio_mixer),
  7946. };
  7947. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  7948. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7949. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7950. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7951. msm_routing_put_audio_mixer),
  7952. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7953. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7954. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7955. msm_routing_put_audio_mixer),
  7956. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7957. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7958. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7959. msm_routing_put_audio_mixer),
  7960. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7961. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7962. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7963. msm_routing_put_audio_mixer),
  7964. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7965. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7966. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7967. msm_routing_put_audio_mixer),
  7968. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7969. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7970. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7971. msm_routing_put_audio_mixer),
  7972. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7973. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7974. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7975. msm_routing_put_audio_mixer),
  7976. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7977. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7978. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7979. msm_routing_put_audio_mixer),
  7980. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7981. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7982. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7983. msm_routing_put_audio_mixer),
  7984. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7985. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7986. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7987. msm_routing_put_audio_mixer),
  7988. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7989. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7990. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7991. msm_routing_put_audio_mixer),
  7992. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7993. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7994. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7995. msm_routing_put_audio_mixer),
  7996. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7997. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7998. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7999. msm_routing_put_audio_mixer),
  8000. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8001. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8002. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8003. msm_routing_put_audio_mixer),
  8004. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8005. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8006. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8007. msm_routing_put_audio_mixer),
  8008. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8009. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8010. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8011. msm_routing_put_audio_mixer),
  8012. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8013. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8014. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8015. msm_routing_put_audio_mixer),
  8016. };
  8017. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  8018. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8019. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8020. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8021. msm_routing_put_audio_mixer),
  8022. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8023. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8024. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8025. msm_routing_put_audio_mixer),
  8026. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8027. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8028. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8029. msm_routing_put_audio_mixer),
  8030. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8031. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8032. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8033. msm_routing_put_audio_mixer),
  8034. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8035. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8036. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8037. msm_routing_put_audio_mixer),
  8038. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8039. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8040. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8041. msm_routing_put_audio_mixer),
  8042. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8043. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8044. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8045. msm_routing_put_audio_mixer),
  8046. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8047. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8048. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8049. msm_routing_put_audio_mixer),
  8050. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8051. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8052. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8053. msm_routing_put_audio_mixer),
  8054. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8055. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8056. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8057. msm_routing_put_audio_mixer),
  8058. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8059. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8060. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8061. msm_routing_put_audio_mixer),
  8062. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8063. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8064. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8065. msm_routing_put_audio_mixer),
  8066. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8067. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8068. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8069. msm_routing_put_audio_mixer),
  8070. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8071. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8072. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8073. msm_routing_put_audio_mixer),
  8074. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8075. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8076. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8077. msm_routing_put_audio_mixer),
  8078. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8079. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8080. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8081. msm_routing_put_audio_mixer),
  8082. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8083. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8084. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8085. msm_routing_put_audio_mixer),
  8086. };
  8087. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8088. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8089. MSM_BACKEND_DAI_USB_RX,
  8090. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8091. msm_routing_put_audio_mixer),
  8092. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8093. MSM_BACKEND_DAI_USB_RX,
  8094. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8095. msm_routing_put_audio_mixer),
  8096. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8097. MSM_BACKEND_DAI_USB_RX,
  8098. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8099. msm_routing_put_audio_mixer),
  8100. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8101. MSM_BACKEND_DAI_USB_RX,
  8102. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8103. msm_routing_put_audio_mixer),
  8104. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8105. MSM_BACKEND_DAI_USB_RX,
  8106. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8107. msm_routing_put_audio_mixer),
  8108. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8109. MSM_BACKEND_DAI_USB_RX,
  8110. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8111. msm_routing_put_audio_mixer),
  8112. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8113. MSM_BACKEND_DAI_USB_RX,
  8114. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8115. msm_routing_put_audio_mixer),
  8116. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8117. MSM_BACKEND_DAI_USB_RX,
  8118. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8119. msm_routing_put_audio_mixer),
  8120. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8121. MSM_BACKEND_DAI_USB_RX,
  8122. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8123. msm_routing_put_audio_mixer),
  8124. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8125. MSM_BACKEND_DAI_USB_RX,
  8126. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8127. msm_routing_put_audio_mixer),
  8128. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8129. MSM_BACKEND_DAI_USB_RX,
  8130. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8131. msm_routing_put_audio_mixer),
  8132. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8133. MSM_BACKEND_DAI_USB_RX,
  8134. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8135. msm_routing_put_audio_mixer),
  8136. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8137. MSM_BACKEND_DAI_USB_RX,
  8138. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8139. msm_routing_put_audio_mixer),
  8140. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8141. MSM_BACKEND_DAI_USB_RX,
  8142. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8143. msm_routing_put_audio_mixer),
  8144. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8145. MSM_BACKEND_DAI_USB_RX,
  8146. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8147. msm_routing_put_audio_mixer),
  8148. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8149. MSM_BACKEND_DAI_USB_RX,
  8150. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8151. msm_routing_put_audio_mixer),
  8152. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8153. MSM_BACKEND_DAI_USB_RX,
  8154. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8155. msm_routing_put_audio_mixer),
  8156. };
  8157. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  8158. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8159. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8160. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8161. msm_routing_put_audio_mixer),
  8162. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8163. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8164. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8165. msm_routing_put_audio_mixer),
  8166. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8167. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8168. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8169. msm_routing_put_audio_mixer),
  8170. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8171. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8172. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8173. msm_routing_put_audio_mixer),
  8174. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8175. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8176. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8177. msm_routing_put_audio_mixer),
  8178. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8179. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8180. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8181. msm_routing_put_audio_mixer),
  8182. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8183. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8184. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8185. msm_routing_put_audio_mixer),
  8186. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8187. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8188. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8189. msm_routing_put_audio_mixer),
  8190. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8191. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8192. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8193. msm_routing_put_audio_mixer),
  8194. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8195. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8196. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8197. msm_routing_put_audio_mixer),
  8198. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8199. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8200. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8201. msm_routing_put_audio_mixer),
  8202. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8203. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8204. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8205. msm_routing_put_audio_mixer),
  8206. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8207. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8208. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8209. msm_routing_put_audio_mixer),
  8210. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8211. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8212. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8213. msm_routing_put_audio_mixer),
  8214. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8215. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8216. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8217. msm_routing_put_audio_mixer),
  8218. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8219. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8220. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8221. msm_routing_put_audio_mixer),
  8222. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8223. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8224. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8225. msm_routing_put_audio_mixer),
  8226. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8227. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8228. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8229. msm_routing_put_audio_mixer),
  8230. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8231. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8232. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8233. msm_routing_put_audio_mixer),
  8234. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8235. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8236. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8237. msm_routing_put_audio_mixer),
  8238. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8239. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8240. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8241. msm_routing_put_audio_mixer),
  8242. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8243. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8244. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8245. msm_routing_put_audio_mixer),
  8246. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8247. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8248. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8249. msm_routing_put_audio_mixer),
  8250. };
  8251. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8252. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8253. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8254. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8255. msm_routing_put_audio_mixer),
  8256. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8257. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8258. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8259. msm_routing_put_audio_mixer),
  8260. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8261. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8262. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8263. msm_routing_put_audio_mixer),
  8264. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8265. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8266. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8267. msm_routing_put_audio_mixer),
  8268. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8269. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8270. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8271. msm_routing_put_audio_mixer),
  8272. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8273. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8274. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8275. msm_routing_put_audio_mixer),
  8276. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8277. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8278. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8279. msm_routing_put_audio_mixer),
  8280. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8281. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8282. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8283. msm_routing_put_audio_mixer),
  8284. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8285. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8286. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8287. msm_routing_put_audio_mixer),
  8288. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8289. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8290. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8291. msm_routing_put_audio_mixer),
  8292. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8293. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8294. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8295. msm_routing_put_audio_mixer),
  8296. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8297. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8298. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8299. msm_routing_put_audio_mixer),
  8300. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8301. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8302. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8303. msm_routing_put_audio_mixer),
  8304. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8305. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8306. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8307. msm_routing_put_audio_mixer),
  8308. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8309. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8310. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8311. msm_routing_put_audio_mixer),
  8312. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8313. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8314. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8315. msm_routing_put_audio_mixer),
  8316. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8317. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8318. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8319. msm_routing_put_audio_mixer),
  8320. };
  8321. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8322. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8323. MSM_BACKEND_DAI_INT_FM_RX,
  8324. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8325. msm_routing_put_audio_mixer),
  8326. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8327. MSM_BACKEND_DAI_INT_FM_RX,
  8328. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8329. msm_routing_put_audio_mixer),
  8330. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8331. MSM_BACKEND_DAI_INT_FM_RX,
  8332. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8333. msm_routing_put_audio_mixer),
  8334. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8335. MSM_BACKEND_DAI_INT_FM_RX,
  8336. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8337. msm_routing_put_audio_mixer),
  8338. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8339. MSM_BACKEND_DAI_INT_FM_RX,
  8340. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8341. msm_routing_put_audio_mixer),
  8342. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8343. MSM_BACKEND_DAI_INT_FM_RX,
  8344. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8345. msm_routing_put_audio_mixer),
  8346. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8347. MSM_BACKEND_DAI_INT_FM_RX,
  8348. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8349. msm_routing_put_audio_mixer),
  8350. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8351. MSM_BACKEND_DAI_INT_FM_RX,
  8352. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8353. msm_routing_put_audio_mixer),
  8354. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8355. MSM_BACKEND_DAI_INT_FM_RX,
  8356. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8357. msm_routing_put_audio_mixer),
  8358. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8359. MSM_BACKEND_DAI_INT_FM_RX,
  8360. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8361. msm_routing_put_audio_mixer),
  8362. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8363. MSM_BACKEND_DAI_INT_FM_RX,
  8364. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8365. msm_routing_put_audio_mixer),
  8366. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8367. MSM_BACKEND_DAI_INT_FM_RX,
  8368. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8369. msm_routing_put_audio_mixer),
  8370. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8371. MSM_BACKEND_DAI_INT_FM_RX,
  8372. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8373. msm_routing_put_audio_mixer),
  8374. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8375. MSM_BACKEND_DAI_INT_FM_RX,
  8376. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8377. msm_routing_put_audio_mixer),
  8378. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8379. MSM_BACKEND_DAI_INT_FM_RX,
  8380. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8381. msm_routing_put_audio_mixer),
  8382. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8383. MSM_BACKEND_DAI_INT_FM_RX,
  8384. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8385. msm_routing_put_audio_mixer),
  8386. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8387. MSM_BACKEND_DAI_INT_FM_RX,
  8388. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8389. msm_routing_put_audio_mixer),
  8390. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8391. MSM_BACKEND_DAI_INT_FM_RX,
  8392. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8393. msm_routing_put_audio_mixer),
  8394. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8395. MSM_BACKEND_DAI_INT_FM_RX,
  8396. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8397. msm_routing_put_audio_mixer),
  8398. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8399. MSM_BACKEND_DAI_INT_FM_RX,
  8400. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8401. msm_routing_put_audio_mixer),
  8402. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8403. MSM_BACKEND_DAI_INT_FM_RX,
  8404. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8405. msm_routing_put_audio_mixer),
  8406. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8407. MSM_BACKEND_DAI_INT_FM_RX,
  8408. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8409. msm_routing_put_audio_mixer),
  8410. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8411. MSM_BACKEND_DAI_INT_FM_RX,
  8412. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8413. msm_routing_put_audio_mixer),
  8414. };
  8415. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8416. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8417. MSM_BACKEND_DAI_AFE_PCM_RX,
  8418. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8419. msm_routing_put_audio_mixer),
  8420. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8421. MSM_BACKEND_DAI_AFE_PCM_RX,
  8422. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8423. msm_routing_put_audio_mixer),
  8424. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8425. MSM_BACKEND_DAI_AFE_PCM_RX,
  8426. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8427. msm_routing_put_audio_mixer),
  8428. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8429. MSM_BACKEND_DAI_AFE_PCM_RX,
  8430. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8431. msm_routing_put_audio_mixer),
  8432. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8433. MSM_BACKEND_DAI_AFE_PCM_RX,
  8434. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8435. msm_routing_put_audio_mixer),
  8436. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8437. MSM_BACKEND_DAI_AFE_PCM_RX,
  8438. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8439. msm_routing_put_audio_mixer),
  8440. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8441. MSM_BACKEND_DAI_AFE_PCM_RX,
  8442. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8443. msm_routing_put_audio_mixer),
  8444. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8445. MSM_BACKEND_DAI_AFE_PCM_RX,
  8446. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8447. msm_routing_put_audio_mixer),
  8448. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8449. MSM_BACKEND_DAI_AFE_PCM_RX,
  8450. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8451. msm_routing_put_audio_mixer),
  8452. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8453. MSM_BACKEND_DAI_AFE_PCM_RX,
  8454. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8455. msm_routing_put_audio_mixer),
  8456. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8457. MSM_BACKEND_DAI_AFE_PCM_RX,
  8458. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8459. msm_routing_put_audio_mixer),
  8460. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8461. MSM_BACKEND_DAI_AFE_PCM_RX,
  8462. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8463. msm_routing_put_audio_mixer),
  8464. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8465. MSM_BACKEND_DAI_AFE_PCM_RX,
  8466. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8467. msm_routing_put_audio_mixer),
  8468. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8469. MSM_BACKEND_DAI_AFE_PCM_RX,
  8470. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8471. msm_routing_put_audio_mixer),
  8472. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8473. MSM_BACKEND_DAI_AFE_PCM_RX,
  8474. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8475. msm_routing_put_audio_mixer),
  8476. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8477. MSM_BACKEND_DAI_AFE_PCM_RX,
  8478. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8479. msm_routing_put_audio_mixer),
  8480. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8481. MSM_BACKEND_DAI_AFE_PCM_RX,
  8482. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8483. msm_routing_put_audio_mixer),
  8484. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8485. MSM_BACKEND_DAI_AFE_PCM_RX,
  8486. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8487. msm_routing_put_audio_mixer),
  8488. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8489. MSM_BACKEND_DAI_AFE_PCM_RX,
  8490. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8491. msm_routing_put_audio_mixer),
  8492. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8493. MSM_BACKEND_DAI_AFE_PCM_RX,
  8494. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8495. msm_routing_put_audio_mixer),
  8496. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8497. MSM_BACKEND_DAI_AFE_PCM_RX,
  8498. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8499. msm_routing_put_audio_mixer),
  8500. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8501. MSM_BACKEND_DAI_AFE_PCM_RX,
  8502. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8503. msm_routing_put_audio_mixer),
  8504. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8505. MSM_BACKEND_DAI_AFE_PCM_RX,
  8506. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8507. msm_routing_put_audio_mixer),
  8508. };
  8509. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8510. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8511. MSM_BACKEND_DAI_AUXPCM_RX,
  8512. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8513. msm_routing_put_audio_mixer),
  8514. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8515. MSM_BACKEND_DAI_AUXPCM_RX,
  8516. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8517. msm_routing_put_audio_mixer),
  8518. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8519. MSM_BACKEND_DAI_AUXPCM_RX,
  8520. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8521. msm_routing_put_audio_mixer),
  8522. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8523. MSM_BACKEND_DAI_AUXPCM_RX,
  8524. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8525. msm_routing_put_audio_mixer),
  8526. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8527. MSM_BACKEND_DAI_AUXPCM_RX,
  8528. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8529. msm_routing_put_audio_mixer),
  8530. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8531. MSM_BACKEND_DAI_AUXPCM_RX,
  8532. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8533. msm_routing_put_audio_mixer),
  8534. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8535. MSM_BACKEND_DAI_AUXPCM_RX,
  8536. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8537. msm_routing_put_audio_mixer),
  8538. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8539. MSM_BACKEND_DAI_AUXPCM_RX,
  8540. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8541. msm_routing_put_audio_mixer),
  8542. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8543. MSM_BACKEND_DAI_AUXPCM_RX,
  8544. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8545. msm_routing_put_audio_mixer),
  8546. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8547. MSM_BACKEND_DAI_AUXPCM_RX,
  8548. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8549. msm_routing_put_audio_mixer),
  8550. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8551. MSM_BACKEND_DAI_AUXPCM_RX,
  8552. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8553. msm_routing_put_audio_mixer),
  8554. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8555. MSM_BACKEND_DAI_AUXPCM_RX,
  8556. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8557. msm_routing_put_audio_mixer),
  8558. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8559. MSM_BACKEND_DAI_AUXPCM_RX,
  8560. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8561. msm_routing_put_audio_mixer),
  8562. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8563. MSM_BACKEND_DAI_AUXPCM_RX,
  8564. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8565. msm_routing_put_audio_mixer),
  8566. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8567. MSM_BACKEND_DAI_AUXPCM_RX,
  8568. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8569. msm_routing_put_audio_mixer),
  8570. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8571. MSM_BACKEND_DAI_AUXPCM_RX,
  8572. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8573. msm_routing_put_audio_mixer),
  8574. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8575. MSM_BACKEND_DAI_AUXPCM_RX,
  8576. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8577. msm_routing_put_audio_mixer),
  8578. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8579. MSM_BACKEND_DAI_AUXPCM_RX,
  8580. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8581. msm_routing_put_audio_mixer),
  8582. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8583. MSM_BACKEND_DAI_AUXPCM_RX,
  8584. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8585. msm_routing_put_audio_mixer),
  8586. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8587. MSM_BACKEND_DAI_AUXPCM_RX,
  8588. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8589. msm_routing_put_audio_mixer),
  8590. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8591. MSM_BACKEND_DAI_AUXPCM_RX,
  8592. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8593. msm_routing_put_audio_mixer),
  8594. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8595. MSM_BACKEND_DAI_AUXPCM_RX,
  8596. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8597. msm_routing_put_audio_mixer),
  8598. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8599. MSM_BACKEND_DAI_AUXPCM_RX,
  8600. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8601. msm_routing_put_audio_mixer),
  8602. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8603. MSM_BACKEND_DAI_AUXPCM_RX,
  8604. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8605. msm_routing_put_audio_mixer),
  8606. };
  8607. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  8608. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8609. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8610. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8611. msm_routing_put_audio_mixer),
  8612. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8613. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8614. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8615. msm_routing_put_audio_mixer),
  8616. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8617. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8618. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8619. msm_routing_put_audio_mixer),
  8620. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8621. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8622. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8623. msm_routing_put_audio_mixer),
  8624. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8625. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8626. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8627. msm_routing_put_audio_mixer),
  8628. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8629. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8630. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8631. msm_routing_put_audio_mixer),
  8632. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8633. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8634. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8635. msm_routing_put_audio_mixer),
  8636. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8637. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8638. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8639. msm_routing_put_audio_mixer),
  8640. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8641. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8642. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8643. msm_routing_put_audio_mixer),
  8644. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8645. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8646. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8647. msm_routing_put_audio_mixer),
  8648. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8649. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8650. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8651. msm_routing_put_audio_mixer),
  8652. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8653. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8654. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8655. msm_routing_put_audio_mixer),
  8656. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8657. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8658. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8659. msm_routing_put_audio_mixer),
  8660. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8661. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8662. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8663. msm_routing_put_audio_mixer),
  8664. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8665. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8666. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8667. msm_routing_put_audio_mixer),
  8668. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8669. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8670. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8671. msm_routing_put_audio_mixer),
  8672. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8673. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8674. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8675. msm_routing_put_audio_mixer),
  8676. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8677. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8678. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8679. msm_routing_put_audio_mixer),
  8680. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8681. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8682. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8683. msm_routing_put_audio_mixer),
  8684. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8685. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8686. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8687. msm_routing_put_audio_mixer),
  8688. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8689. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8690. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8691. msm_routing_put_audio_mixer),
  8692. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8693. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8694. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8695. msm_routing_put_audio_mixer),
  8696. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8697. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8698. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8699. msm_routing_put_audio_mixer),
  8700. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8701. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8702. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8703. msm_routing_put_audio_mixer),
  8704. };
  8705. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  8706. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8707. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8708. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8709. msm_routing_put_audio_mixer),
  8710. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8711. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8712. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8713. msm_routing_put_audio_mixer),
  8714. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8715. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8716. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8717. msm_routing_put_audio_mixer),
  8718. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8719. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8720. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8721. msm_routing_put_audio_mixer),
  8722. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8723. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8724. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8725. msm_routing_put_audio_mixer),
  8726. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8727. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8728. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8729. msm_routing_put_audio_mixer),
  8730. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8731. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8732. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8733. msm_routing_put_audio_mixer),
  8734. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8735. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8736. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8737. msm_routing_put_audio_mixer),
  8738. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8739. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8740. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8741. msm_routing_put_audio_mixer),
  8742. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8743. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8744. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8745. msm_routing_put_audio_mixer),
  8746. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8747. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8748. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8749. msm_routing_put_audio_mixer),
  8750. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8751. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8752. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8753. msm_routing_put_audio_mixer),
  8754. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8755. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8756. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8757. msm_routing_put_audio_mixer),
  8758. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8759. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8760. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8761. msm_routing_put_audio_mixer),
  8762. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8763. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8764. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8765. msm_routing_put_audio_mixer),
  8766. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8767. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8768. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8769. msm_routing_put_audio_mixer),
  8770. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8771. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8772. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8773. msm_routing_put_audio_mixer),
  8774. };
  8775. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  8776. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8777. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8778. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8779. msm_routing_put_audio_mixer),
  8780. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8781. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8782. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8783. msm_routing_put_audio_mixer),
  8784. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8785. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8786. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8787. msm_routing_put_audio_mixer),
  8788. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8789. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8790. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8791. msm_routing_put_audio_mixer),
  8792. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8793. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8794. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8795. msm_routing_put_audio_mixer),
  8796. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8797. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8798. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8799. msm_routing_put_audio_mixer),
  8800. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8801. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8802. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8803. msm_routing_put_audio_mixer),
  8804. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8805. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8806. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8807. msm_routing_put_audio_mixer),
  8808. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8809. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8810. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8811. msm_routing_put_audio_mixer),
  8812. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8813. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8814. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8815. msm_routing_put_audio_mixer),
  8816. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8817. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8818. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8819. msm_routing_put_audio_mixer),
  8820. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8821. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8822. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8823. msm_routing_put_audio_mixer),
  8824. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8825. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8826. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8827. msm_routing_put_audio_mixer),
  8828. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8829. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8830. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8831. msm_routing_put_audio_mixer),
  8832. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8833. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8834. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8835. msm_routing_put_audio_mixer),
  8836. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8837. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8838. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8839. msm_routing_put_audio_mixer),
  8840. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8841. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8842. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8843. msm_routing_put_audio_mixer),
  8844. };
  8845. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  8846. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8847. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8848. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8849. msm_routing_put_audio_mixer),
  8850. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8851. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8852. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8853. msm_routing_put_audio_mixer),
  8854. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8855. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8856. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8857. msm_routing_put_audio_mixer),
  8858. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8859. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8860. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8861. msm_routing_put_audio_mixer),
  8862. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8863. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8864. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8865. msm_routing_put_audio_mixer),
  8866. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8867. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8868. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8869. msm_routing_put_audio_mixer),
  8870. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8871. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8872. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8873. msm_routing_put_audio_mixer),
  8874. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8875. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8876. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8877. msm_routing_put_audio_mixer),
  8878. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8879. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8880. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8881. msm_routing_put_audio_mixer),
  8882. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8883. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8884. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8885. msm_routing_put_audio_mixer),
  8886. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8887. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8888. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8889. msm_routing_put_audio_mixer),
  8890. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8891. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8892. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8893. msm_routing_put_audio_mixer),
  8894. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8895. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8896. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8897. msm_routing_put_audio_mixer),
  8898. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8899. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8900. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8901. msm_routing_put_audio_mixer),
  8902. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8903. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8904. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8905. msm_routing_put_audio_mixer),
  8906. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8907. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8908. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8909. msm_routing_put_audio_mixer),
  8910. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8911. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8912. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8913. msm_routing_put_audio_mixer),
  8914. };
  8915. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  8916. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8917. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8918. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8919. msm_routing_put_audio_mixer),
  8920. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8921. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8922. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8923. msm_routing_put_audio_mixer),
  8924. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8925. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8926. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8927. msm_routing_put_audio_mixer),
  8928. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8929. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8930. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8931. msm_routing_put_audio_mixer),
  8932. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8933. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8934. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8935. msm_routing_put_audio_mixer),
  8936. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8937. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8938. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8939. msm_routing_put_audio_mixer),
  8940. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8941. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8942. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8943. msm_routing_put_audio_mixer),
  8944. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8945. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8946. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8947. msm_routing_put_audio_mixer),
  8948. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8949. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8950. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8951. msm_routing_put_audio_mixer),
  8952. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8953. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8954. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8955. msm_routing_put_audio_mixer),
  8956. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8957. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8958. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8959. msm_routing_put_audio_mixer),
  8960. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8961. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8962. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8963. msm_routing_put_audio_mixer),
  8964. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8965. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8966. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8967. msm_routing_put_audio_mixer),
  8968. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8969. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8970. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8971. msm_routing_put_audio_mixer),
  8972. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8973. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8974. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8975. msm_routing_put_audio_mixer),
  8976. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8977. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8978. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8979. msm_routing_put_audio_mixer),
  8980. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8981. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8982. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8983. msm_routing_put_audio_mixer),
  8984. };
  8985. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  8986. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8987. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8988. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8989. msm_routing_put_audio_mixer),
  8990. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8991. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8992. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8993. msm_routing_put_audio_mixer),
  8994. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8995. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8996. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8997. msm_routing_put_audio_mixer),
  8998. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8999. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9000. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9001. msm_routing_put_audio_mixer),
  9002. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9003. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9004. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9005. msm_routing_put_audio_mixer),
  9006. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9007. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9008. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9009. msm_routing_put_audio_mixer),
  9010. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9011. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9012. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9013. msm_routing_put_audio_mixer),
  9014. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9015. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9016. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9017. msm_routing_put_audio_mixer),
  9018. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9019. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9020. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9021. msm_routing_put_audio_mixer),
  9022. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9023. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9024. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9025. msm_routing_put_audio_mixer),
  9026. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9027. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9028. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9029. msm_routing_put_audio_mixer),
  9030. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9031. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9032. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9033. msm_routing_put_audio_mixer),
  9034. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9035. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9036. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9037. msm_routing_put_audio_mixer),
  9038. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9039. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9040. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9041. msm_routing_put_audio_mixer),
  9042. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9043. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9044. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9045. msm_routing_put_audio_mixer),
  9046. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9047. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9048. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9049. msm_routing_put_audio_mixer),
  9050. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9051. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9052. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9053. msm_routing_put_audio_mixer),
  9054. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9055. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9056. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9057. msm_routing_put_audio_mixer),
  9058. };
  9059. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9060. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9061. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9062. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9063. msm_routing_put_audio_mixer),
  9064. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9065. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9066. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9067. msm_routing_put_audio_mixer),
  9068. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9069. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9070. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9071. msm_routing_put_audio_mixer),
  9072. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9073. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9074. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9075. msm_routing_put_audio_mixer),
  9076. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9077. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9078. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9079. msm_routing_put_audio_mixer),
  9080. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9081. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9082. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9083. msm_routing_put_audio_mixer),
  9084. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9085. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9086. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9087. msm_routing_put_audio_mixer),
  9088. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9089. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9090. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9091. msm_routing_put_audio_mixer),
  9092. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9093. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9094. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9095. msm_routing_put_audio_mixer),
  9096. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9097. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9098. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9099. msm_routing_put_audio_mixer),
  9100. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9101. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9102. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9103. msm_routing_put_audio_mixer),
  9104. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9105. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9106. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9107. msm_routing_put_audio_mixer),
  9108. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9109. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9110. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9111. msm_routing_put_audio_mixer),
  9112. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9113. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9114. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9115. msm_routing_put_audio_mixer),
  9116. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9117. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9118. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9119. msm_routing_put_audio_mixer),
  9120. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9121. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9122. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9123. msm_routing_put_audio_mixer),
  9124. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9125. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9126. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9127. msm_routing_put_audio_mixer),
  9128. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9129. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9130. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9131. msm_routing_put_audio_mixer),
  9132. };
  9133. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  9134. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9135. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9136. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9137. msm_routing_put_audio_mixer),
  9138. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9139. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9140. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9141. msm_routing_put_audio_mixer),
  9142. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9143. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9144. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9145. msm_routing_put_audio_mixer),
  9146. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9147. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9148. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9149. msm_routing_put_audio_mixer),
  9150. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9151. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9152. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9153. msm_routing_put_audio_mixer),
  9154. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9155. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9156. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9157. msm_routing_put_audio_mixer),
  9158. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9159. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9160. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9161. msm_routing_put_audio_mixer),
  9162. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9163. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9164. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9165. msm_routing_put_audio_mixer),
  9166. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9167. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9168. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9169. msm_routing_put_audio_mixer),
  9170. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9171. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9172. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9173. msm_routing_put_audio_mixer),
  9174. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9175. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9176. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9177. msm_routing_put_audio_mixer),
  9178. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9179. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9180. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9181. msm_routing_put_audio_mixer),
  9182. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9183. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9184. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9185. msm_routing_put_audio_mixer),
  9186. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9187. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9188. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9189. msm_routing_put_audio_mixer),
  9190. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9191. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9192. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9193. msm_routing_put_audio_mixer),
  9194. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9195. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9196. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9197. msm_routing_put_audio_mixer),
  9198. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9199. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9200. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9201. msm_routing_put_audio_mixer),
  9202. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9203. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9204. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9205. msm_routing_put_audio_mixer),
  9206. };
  9207. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  9208. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9209. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9210. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9211. msm_routing_put_audio_mixer),
  9212. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9213. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9214. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9215. msm_routing_put_audio_mixer),
  9216. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9217. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9218. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9219. msm_routing_put_audio_mixer),
  9220. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9221. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9222. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9223. msm_routing_put_audio_mixer),
  9224. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9225. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9226. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9227. msm_routing_put_audio_mixer),
  9228. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9229. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9230. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9231. msm_routing_put_audio_mixer),
  9232. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9233. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9234. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9235. msm_routing_put_audio_mixer),
  9236. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9237. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9238. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9239. msm_routing_put_audio_mixer),
  9240. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9241. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9242. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9243. msm_routing_put_audio_mixer),
  9244. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9245. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9246. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9247. msm_routing_put_audio_mixer),
  9248. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9249. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9250. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9251. msm_routing_put_audio_mixer),
  9252. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9253. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9254. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9255. msm_routing_put_audio_mixer),
  9256. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9257. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9258. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9259. msm_routing_put_audio_mixer),
  9260. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9261. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9262. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9263. msm_routing_put_audio_mixer),
  9264. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9265. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9266. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9267. msm_routing_put_audio_mixer),
  9268. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9269. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9270. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9271. msm_routing_put_audio_mixer),
  9272. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9273. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9274. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9275. msm_routing_put_audio_mixer),
  9276. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9277. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9278. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9279. msm_routing_put_audio_mixer),
  9280. };
  9281. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9282. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9283. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9284. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9285. msm_routing_put_audio_mixer),
  9286. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9287. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9288. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9289. msm_routing_put_audio_mixer),
  9290. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9291. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9292. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9293. msm_routing_put_audio_mixer),
  9294. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9295. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9296. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9297. msm_routing_put_audio_mixer),
  9298. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9299. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9300. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9301. msm_routing_put_audio_mixer),
  9302. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9303. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9304. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9305. msm_routing_put_audio_mixer),
  9306. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9307. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9308. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9309. msm_routing_put_audio_mixer),
  9310. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9311. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9312. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9313. msm_routing_put_audio_mixer),
  9314. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9315. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9316. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9317. msm_routing_put_audio_mixer),
  9318. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9319. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9320. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9321. msm_routing_put_audio_mixer),
  9322. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9323. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9324. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9325. msm_routing_put_audio_mixer),
  9326. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9327. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9328. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9329. msm_routing_put_audio_mixer),
  9330. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9331. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9332. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9333. msm_routing_put_audio_mixer),
  9334. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9335. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9336. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9337. msm_routing_put_audio_mixer),
  9338. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9339. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9340. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9341. msm_routing_put_audio_mixer),
  9342. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9343. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9344. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9345. msm_routing_put_audio_mixer),
  9346. };
  9347. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9348. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9349. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9350. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9351. msm_routing_put_audio_mixer),
  9352. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9353. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9354. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9355. msm_routing_put_audio_mixer),
  9356. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9357. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9358. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9359. msm_routing_put_audio_mixer),
  9360. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9361. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9362. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9363. msm_routing_put_audio_mixer),
  9364. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9365. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9366. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9367. msm_routing_put_audio_mixer),
  9368. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9369. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9370. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9371. msm_routing_put_audio_mixer),
  9372. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9373. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9374. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9375. msm_routing_put_audio_mixer),
  9376. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9377. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9378. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9379. msm_routing_put_audio_mixer),
  9380. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9381. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9382. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9383. msm_routing_put_audio_mixer),
  9384. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9385. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9386. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9387. msm_routing_put_audio_mixer),
  9388. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9389. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9390. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9391. msm_routing_put_audio_mixer),
  9392. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9393. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9394. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9395. msm_routing_put_audio_mixer),
  9396. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9397. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9398. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9399. msm_routing_put_audio_mixer),
  9400. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9401. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9402. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9403. msm_routing_put_audio_mixer),
  9404. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9405. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9406. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9407. msm_routing_put_audio_mixer),
  9408. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9409. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9410. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9411. msm_routing_put_audio_mixer),
  9412. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9413. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9414. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9415. msm_routing_put_audio_mixer),
  9416. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9417. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9418. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9419. msm_routing_put_audio_mixer),
  9420. };
  9421. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9422. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9423. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9424. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9425. msm_routing_put_audio_mixer),
  9426. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9427. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9428. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9429. msm_routing_put_audio_mixer),
  9430. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9431. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9432. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9433. msm_routing_put_audio_mixer),
  9434. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9435. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9436. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9437. msm_routing_put_audio_mixer),
  9438. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9439. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9440. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9441. msm_routing_put_audio_mixer),
  9442. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9443. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9444. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9445. msm_routing_put_audio_mixer),
  9446. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9447. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9448. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9449. msm_routing_put_audio_mixer),
  9450. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9451. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9452. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9453. msm_routing_put_audio_mixer),
  9454. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9455. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9456. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9457. msm_routing_put_audio_mixer),
  9458. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9459. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9460. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9461. msm_routing_put_audio_mixer),
  9462. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9463. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9464. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9465. msm_routing_put_audio_mixer),
  9466. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9467. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9468. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9469. msm_routing_put_audio_mixer),
  9470. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9471. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9472. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9473. msm_routing_put_audio_mixer),
  9474. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9475. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9476. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9477. msm_routing_put_audio_mixer),
  9478. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9479. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9480. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9481. msm_routing_put_audio_mixer),
  9482. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9483. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9484. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9485. msm_routing_put_audio_mixer),
  9486. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9487. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9488. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9489. msm_routing_put_audio_mixer),
  9490. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9491. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9492. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9493. msm_routing_put_audio_mixer),
  9494. };
  9495. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9496. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9497. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9498. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9499. msm_routing_put_audio_mixer),
  9500. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9501. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9502. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9503. msm_routing_put_audio_mixer),
  9504. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9505. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9506. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9507. msm_routing_put_audio_mixer),
  9508. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9509. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9510. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9511. msm_routing_put_audio_mixer),
  9512. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9513. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9514. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9515. msm_routing_put_audio_mixer),
  9516. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9517. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9518. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9519. msm_routing_put_audio_mixer),
  9520. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9521. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9522. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9523. msm_routing_put_audio_mixer),
  9524. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9525. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9526. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9527. msm_routing_put_audio_mixer),
  9528. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9529. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9530. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9531. msm_routing_put_audio_mixer),
  9532. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9533. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9534. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9535. msm_routing_put_audio_mixer),
  9536. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9537. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9538. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9539. msm_routing_put_audio_mixer),
  9540. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9541. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9542. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9543. msm_routing_put_audio_mixer),
  9544. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9545. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9546. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9547. msm_routing_put_audio_mixer),
  9548. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9549. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9550. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9551. msm_routing_put_audio_mixer),
  9552. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9553. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9554. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9555. msm_routing_put_audio_mixer),
  9556. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9557. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9558. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9559. msm_routing_put_audio_mixer),
  9560. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9561. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9562. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9563. msm_routing_put_audio_mixer),
  9564. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9565. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9566. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9567. msm_routing_put_audio_mixer),
  9568. };
  9569. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  9570. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9571. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9572. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9573. msm_routing_put_audio_mixer),
  9574. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9575. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9576. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9577. msm_routing_put_audio_mixer),
  9578. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9579. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9580. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9581. msm_routing_put_audio_mixer),
  9582. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9583. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9584. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9585. msm_routing_put_audio_mixer),
  9586. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9587. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9588. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9589. msm_routing_put_audio_mixer),
  9590. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9591. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9592. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9593. msm_routing_put_audio_mixer),
  9594. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9595. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9596. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9597. msm_routing_put_audio_mixer),
  9598. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9599. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9600. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9601. msm_routing_put_audio_mixer),
  9602. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9603. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9604. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9605. msm_routing_put_audio_mixer),
  9606. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9607. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9608. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9609. msm_routing_put_audio_mixer),
  9610. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9611. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9612. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9613. msm_routing_put_audio_mixer),
  9614. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9615. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9616. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9617. msm_routing_put_audio_mixer),
  9618. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9619. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9620. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9621. msm_routing_put_audio_mixer),
  9622. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9623. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9624. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9625. msm_routing_put_audio_mixer),
  9626. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9627. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9628. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9629. msm_routing_put_audio_mixer),
  9630. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9631. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9632. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9633. msm_routing_put_audio_mixer),
  9634. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9635. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9636. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9637. msm_routing_put_audio_mixer),
  9638. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9639. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9640. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9641. msm_routing_put_audio_mixer),
  9642. };
  9643. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  9644. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9645. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9646. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9647. msm_routing_put_audio_mixer),
  9648. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9649. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9650. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9651. msm_routing_put_audio_mixer),
  9652. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9653. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9654. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9655. msm_routing_put_audio_mixer),
  9656. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9657. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9658. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9659. msm_routing_put_audio_mixer),
  9660. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9661. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9662. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9663. msm_routing_put_audio_mixer),
  9664. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9665. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9666. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9667. msm_routing_put_audio_mixer),
  9668. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9669. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9670. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9671. msm_routing_put_audio_mixer),
  9672. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9673. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9674. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9675. msm_routing_put_audio_mixer),
  9676. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9677. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9678. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9679. msm_routing_put_audio_mixer),
  9680. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9681. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9682. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9683. msm_routing_put_audio_mixer),
  9684. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9685. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9686. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9687. msm_routing_put_audio_mixer),
  9688. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9689. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9690. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9691. msm_routing_put_audio_mixer),
  9692. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9693. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9694. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9695. msm_routing_put_audio_mixer),
  9696. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9697. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9698. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9699. msm_routing_put_audio_mixer),
  9700. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9701. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9702. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9703. msm_routing_put_audio_mixer),
  9704. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9705. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9706. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9707. msm_routing_put_audio_mixer),
  9708. };
  9709. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  9710. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9711. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9712. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9713. msm_routing_put_audio_mixer),
  9714. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9715. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9716. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9717. msm_routing_put_audio_mixer),
  9718. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9719. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9720. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9721. msm_routing_put_audio_mixer),
  9722. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9723. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9724. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9725. msm_routing_put_audio_mixer),
  9726. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9727. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9728. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9729. msm_routing_put_audio_mixer),
  9730. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9731. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9732. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9733. msm_routing_put_audio_mixer),
  9734. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9735. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9736. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9737. msm_routing_put_audio_mixer),
  9738. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9739. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9740. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9741. msm_routing_put_audio_mixer),
  9742. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9743. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9744. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9745. msm_routing_put_audio_mixer),
  9746. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9747. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9748. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9749. msm_routing_put_audio_mixer),
  9750. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9751. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9752. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9753. msm_routing_put_audio_mixer),
  9754. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9755. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9756. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9757. msm_routing_put_audio_mixer),
  9758. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9759. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9760. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9761. msm_routing_put_audio_mixer),
  9762. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9763. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9764. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9765. msm_routing_put_audio_mixer),
  9766. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9767. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9768. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9769. msm_routing_put_audio_mixer),
  9770. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9771. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9772. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9773. msm_routing_put_audio_mixer),
  9774. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9775. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9776. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9777. msm_routing_put_audio_mixer),
  9778. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9779. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9780. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9781. msm_routing_put_audio_mixer),
  9782. };
  9783. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  9784. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9785. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9786. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9787. msm_routing_put_audio_mixer),
  9788. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9789. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9790. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9791. msm_routing_put_audio_mixer),
  9792. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9793. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9794. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9795. msm_routing_put_audio_mixer),
  9796. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9797. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9798. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9799. msm_routing_put_audio_mixer),
  9800. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9801. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9802. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9803. msm_routing_put_audio_mixer),
  9804. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9805. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9806. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9807. msm_routing_put_audio_mixer),
  9808. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9809. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9810. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9811. msm_routing_put_audio_mixer),
  9812. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9813. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9814. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9815. msm_routing_put_audio_mixer),
  9816. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9817. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9818. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9819. msm_routing_put_audio_mixer),
  9820. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9821. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9822. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9823. msm_routing_put_audio_mixer),
  9824. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9825. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9826. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9827. msm_routing_put_audio_mixer),
  9828. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9829. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9830. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9831. msm_routing_put_audio_mixer),
  9832. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9833. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9834. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9835. msm_routing_put_audio_mixer),
  9836. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9837. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9838. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9839. msm_routing_put_audio_mixer),
  9840. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9841. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9842. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9843. msm_routing_put_audio_mixer),
  9844. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9845. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9846. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9847. msm_routing_put_audio_mixer),
  9848. };
  9849. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  9850. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9851. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9852. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9853. msm_routing_put_audio_mixer),
  9854. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9855. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9856. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9857. msm_routing_put_audio_mixer),
  9858. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9859. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9860. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9861. msm_routing_put_audio_mixer),
  9862. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9863. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9864. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9865. msm_routing_put_audio_mixer),
  9866. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9867. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9868. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9869. msm_routing_put_audio_mixer),
  9870. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9871. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9872. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9873. msm_routing_put_audio_mixer),
  9874. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9875. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9876. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9877. msm_routing_put_audio_mixer),
  9878. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9879. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9880. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9881. msm_routing_put_audio_mixer),
  9882. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9883. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9884. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9885. msm_routing_put_audio_mixer),
  9886. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9887. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9888. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9889. msm_routing_put_audio_mixer),
  9890. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9891. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9892. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9893. msm_routing_put_audio_mixer),
  9894. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9895. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9896. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9897. msm_routing_put_audio_mixer),
  9898. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9899. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9900. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9901. msm_routing_put_audio_mixer),
  9902. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9903. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9904. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9905. msm_routing_put_audio_mixer),
  9906. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9907. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9908. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9909. msm_routing_put_audio_mixer),
  9910. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9911. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9912. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9913. msm_routing_put_audio_mixer),
  9914. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9915. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9916. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9917. msm_routing_put_audio_mixer),
  9918. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9919. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9920. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9921. msm_routing_put_audio_mixer),
  9922. };
  9923. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  9924. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9925. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9926. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9927. msm_routing_put_audio_mixer),
  9928. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9929. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9930. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9931. msm_routing_put_audio_mixer),
  9932. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9933. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9934. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9935. msm_routing_put_audio_mixer),
  9936. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9937. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9938. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9939. msm_routing_put_audio_mixer),
  9940. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9941. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9942. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9943. msm_routing_put_audio_mixer),
  9944. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9945. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9946. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9947. msm_routing_put_audio_mixer),
  9948. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9949. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9950. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9951. msm_routing_put_audio_mixer),
  9952. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9953. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9954. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9955. msm_routing_put_audio_mixer),
  9956. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9957. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9958. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9959. msm_routing_put_audio_mixer),
  9960. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9961. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9962. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9963. msm_routing_put_audio_mixer),
  9964. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9965. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9966. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9967. msm_routing_put_audio_mixer),
  9968. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9969. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9970. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9971. msm_routing_put_audio_mixer),
  9972. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9973. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9974. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9975. msm_routing_put_audio_mixer),
  9976. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9977. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9978. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9979. msm_routing_put_audio_mixer),
  9980. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9981. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9982. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9983. msm_routing_put_audio_mixer),
  9984. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9985. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9986. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9987. msm_routing_put_audio_mixer),
  9988. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9989. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9990. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9991. msm_routing_put_audio_mixer),
  9992. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9993. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9994. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9995. msm_routing_put_audio_mixer),
  9996. };
  9997. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  9998. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9999. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10000. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10001. msm_routing_put_audio_mixer),
  10002. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10003. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10004. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10005. msm_routing_put_audio_mixer),
  10006. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10007. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10008. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10009. msm_routing_put_audio_mixer),
  10010. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10011. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10012. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10013. msm_routing_put_audio_mixer),
  10014. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10015. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10016. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10017. msm_routing_put_audio_mixer),
  10018. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10019. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10020. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10021. msm_routing_put_audio_mixer),
  10022. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10023. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10024. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10025. msm_routing_put_audio_mixer),
  10026. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10027. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10028. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10029. msm_routing_put_audio_mixer),
  10030. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10031. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10032. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10033. msm_routing_put_audio_mixer),
  10034. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10035. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10036. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10037. msm_routing_put_audio_mixer),
  10038. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10039. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10040. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10041. msm_routing_put_audio_mixer),
  10042. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10043. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10044. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10045. msm_routing_put_audio_mixer),
  10046. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10047. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10048. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10049. msm_routing_put_audio_mixer),
  10050. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10051. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10052. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10053. msm_routing_put_audio_mixer),
  10054. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10055. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10056. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10057. msm_routing_put_audio_mixer),
  10058. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10059. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10060. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10061. msm_routing_put_audio_mixer),
  10062. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10063. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10064. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10065. msm_routing_put_audio_mixer),
  10066. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10067. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10068. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10069. msm_routing_put_audio_mixer),
  10070. };
  10071. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  10072. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10073. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10074. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10075. msm_routing_put_audio_mixer),
  10076. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10077. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10078. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10079. msm_routing_put_audio_mixer),
  10080. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10081. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10082. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10083. msm_routing_put_audio_mixer),
  10084. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10085. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10086. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10087. msm_routing_put_audio_mixer),
  10088. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10089. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10090. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10091. msm_routing_put_audio_mixer),
  10092. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10093. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10094. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10095. msm_routing_put_audio_mixer),
  10096. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10097. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10098. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10099. msm_routing_put_audio_mixer),
  10100. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10101. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10102. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10103. msm_routing_put_audio_mixer),
  10104. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10105. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10106. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10107. msm_routing_put_audio_mixer),
  10108. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10109. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10110. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10111. msm_routing_put_audio_mixer),
  10112. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10113. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10114. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10115. msm_routing_put_audio_mixer),
  10116. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10117. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10118. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10119. msm_routing_put_audio_mixer),
  10120. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10121. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10122. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10123. msm_routing_put_audio_mixer),
  10124. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10125. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10126. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10127. msm_routing_put_audio_mixer),
  10128. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10129. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10130. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10131. msm_routing_put_audio_mixer),
  10132. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10133. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10134. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10135. msm_routing_put_audio_mixer),
  10136. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10137. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10138. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10139. msm_routing_put_audio_mixer),
  10140. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10141. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10142. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10143. msm_routing_put_audio_mixer),
  10144. };
  10145. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  10146. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10147. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10148. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10149. msm_routing_put_audio_mixer),
  10150. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10151. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10152. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10153. msm_routing_put_audio_mixer),
  10154. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10155. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10156. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10157. msm_routing_put_audio_mixer),
  10158. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10159. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10160. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10161. msm_routing_put_audio_mixer),
  10162. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10163. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10164. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10165. msm_routing_put_audio_mixer),
  10166. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10167. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10168. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10169. msm_routing_put_audio_mixer),
  10170. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10171. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10172. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10173. msm_routing_put_audio_mixer),
  10174. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10175. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10176. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10177. msm_routing_put_audio_mixer),
  10178. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10179. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10180. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10181. msm_routing_put_audio_mixer),
  10182. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10183. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10184. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10185. msm_routing_put_audio_mixer),
  10186. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10187. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10188. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10189. msm_routing_put_audio_mixer),
  10190. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10191. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10192. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10193. msm_routing_put_audio_mixer),
  10194. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10195. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10196. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10197. msm_routing_put_audio_mixer),
  10198. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10199. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10200. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10201. msm_routing_put_audio_mixer),
  10202. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10203. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10204. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10205. msm_routing_put_audio_mixer),
  10206. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10207. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10208. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10209. msm_routing_put_audio_mixer),
  10210. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10211. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10212. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10213. msm_routing_put_audio_mixer),
  10214. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10215. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10216. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10217. msm_routing_put_audio_mixer),
  10218. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10219. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10220. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10221. msm_routing_put_audio_mixer),
  10222. };
  10223. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  10224. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10225. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10226. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10227. msm_routing_put_audio_mixer),
  10228. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10229. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10230. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10231. msm_routing_put_audio_mixer),
  10232. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10233. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10234. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10235. msm_routing_put_audio_mixer),
  10236. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10237. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10238. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10239. msm_routing_put_audio_mixer),
  10240. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10241. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10242. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10243. msm_routing_put_audio_mixer),
  10244. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10245. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10246. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10247. msm_routing_put_audio_mixer),
  10248. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10249. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10250. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10251. msm_routing_put_audio_mixer),
  10252. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10253. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10254. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10255. msm_routing_put_audio_mixer),
  10256. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10257. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10258. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10259. msm_routing_put_audio_mixer),
  10260. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10261. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10262. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10263. msm_routing_put_audio_mixer),
  10264. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10265. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10266. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10267. msm_routing_put_audio_mixer),
  10268. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10269. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10270. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10271. msm_routing_put_audio_mixer),
  10272. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10273. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10274. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10275. msm_routing_put_audio_mixer),
  10276. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10277. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10278. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10279. msm_routing_put_audio_mixer),
  10280. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10281. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10282. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10283. msm_routing_put_audio_mixer),
  10284. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10285. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10286. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10287. msm_routing_put_audio_mixer),
  10288. };
  10289. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  10290. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10291. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10292. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10293. msm_routing_put_audio_mixer),
  10294. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10295. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10296. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10297. msm_routing_put_audio_mixer),
  10298. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10299. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10300. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10301. msm_routing_put_audio_mixer),
  10302. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10303. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10304. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10305. msm_routing_put_audio_mixer),
  10306. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10307. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10308. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10309. msm_routing_put_audio_mixer),
  10310. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10311. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10312. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10313. msm_routing_put_audio_mixer),
  10314. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10315. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10316. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10317. msm_routing_put_audio_mixer),
  10318. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10319. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10320. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10321. msm_routing_put_audio_mixer),
  10322. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10323. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10324. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10325. msm_routing_put_audio_mixer),
  10326. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10327. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10328. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10329. msm_routing_put_audio_mixer),
  10330. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10331. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10332. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10333. msm_routing_put_audio_mixer),
  10334. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10335. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10336. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10337. msm_routing_put_audio_mixer),
  10338. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10339. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10340. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10341. msm_routing_put_audio_mixer),
  10342. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10343. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10344. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10345. msm_routing_put_audio_mixer),
  10346. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10347. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10348. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10349. msm_routing_put_audio_mixer),
  10350. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10351. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10352. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10353. msm_routing_put_audio_mixer),
  10354. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10355. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10356. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10357. msm_routing_put_audio_mixer),
  10358. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10359. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10360. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10361. msm_routing_put_audio_mixer),
  10362. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10363. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10364. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10365. msm_routing_put_audio_mixer),
  10366. };
  10367. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  10368. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10369. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10370. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10371. msm_routing_put_audio_mixer),
  10372. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10373. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10374. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10375. msm_routing_put_audio_mixer),
  10376. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10377. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10378. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10379. msm_routing_put_audio_mixer),
  10380. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10381. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10382. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10383. msm_routing_put_audio_mixer),
  10384. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10385. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10386. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10387. msm_routing_put_audio_mixer),
  10388. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10389. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10390. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10391. msm_routing_put_audio_mixer),
  10392. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10393. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10394. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10395. msm_routing_put_audio_mixer),
  10396. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10397. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10398. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10399. msm_routing_put_audio_mixer),
  10400. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10401. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10402. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10403. msm_routing_put_audio_mixer),
  10404. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10405. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10406. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10407. msm_routing_put_audio_mixer),
  10408. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10409. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10410. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10411. msm_routing_put_audio_mixer),
  10412. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10413. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10414. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10415. msm_routing_put_audio_mixer),
  10416. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10417. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10418. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10419. msm_routing_put_audio_mixer),
  10420. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10421. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10422. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10423. msm_routing_put_audio_mixer),
  10424. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10425. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10426. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10427. msm_routing_put_audio_mixer),
  10428. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10429. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10430. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10431. msm_routing_put_audio_mixer),
  10432. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10433. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10434. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10435. msm_routing_put_audio_mixer),
  10436. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10437. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10438. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10439. msm_routing_put_audio_mixer),
  10440. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10441. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10442. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10443. msm_routing_put_audio_mixer),
  10444. };
  10445. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  10446. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10447. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10448. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10449. msm_routing_put_audio_mixer),
  10450. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10451. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10452. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10453. msm_routing_put_audio_mixer),
  10454. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10455. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10456. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10457. msm_routing_put_audio_mixer),
  10458. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10459. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10460. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10461. msm_routing_put_audio_mixer),
  10462. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10463. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10464. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10465. msm_routing_put_audio_mixer),
  10466. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10467. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10468. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10469. msm_routing_put_audio_mixer),
  10470. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10471. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10472. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10473. msm_routing_put_audio_mixer),
  10474. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10475. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10476. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10477. msm_routing_put_audio_mixer),
  10478. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10479. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10480. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10481. msm_routing_put_audio_mixer),
  10482. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10483. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10484. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10485. msm_routing_put_audio_mixer),
  10486. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10487. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10488. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10489. msm_routing_put_audio_mixer),
  10490. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10491. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10492. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10493. msm_routing_put_audio_mixer),
  10494. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10495. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10496. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10497. msm_routing_put_audio_mixer),
  10498. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10499. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10500. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10501. msm_routing_put_audio_mixer),
  10502. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10503. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10504. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10505. msm_routing_put_audio_mixer),
  10506. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10507. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10508. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10509. msm_routing_put_audio_mixer),
  10510. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10511. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10512. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10513. msm_routing_put_audio_mixer),
  10514. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10515. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10516. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10517. msm_routing_put_audio_mixer),
  10518. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10519. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10520. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10521. msm_routing_put_audio_mixer),
  10522. };
  10523. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  10524. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10525. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10526. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10527. msm_routing_put_audio_mixer),
  10528. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10529. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10530. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10531. msm_routing_put_audio_mixer),
  10532. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10533. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10534. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10535. msm_routing_put_audio_mixer),
  10536. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10537. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10538. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10539. msm_routing_put_audio_mixer),
  10540. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10541. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10542. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10543. msm_routing_put_audio_mixer),
  10544. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10545. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10546. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10547. msm_routing_put_audio_mixer),
  10548. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10549. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10550. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10551. msm_routing_put_audio_mixer),
  10552. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10553. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10554. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10555. msm_routing_put_audio_mixer),
  10556. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10557. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10558. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10559. msm_routing_put_audio_mixer),
  10560. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10561. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10562. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10563. msm_routing_put_audio_mixer),
  10564. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10565. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10566. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10567. msm_routing_put_audio_mixer),
  10568. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10569. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10570. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10571. msm_routing_put_audio_mixer),
  10572. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10573. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10574. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10575. msm_routing_put_audio_mixer),
  10576. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10577. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10578. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10579. msm_routing_put_audio_mixer),
  10580. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10581. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10582. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10583. msm_routing_put_audio_mixer),
  10584. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10585. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10586. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10587. msm_routing_put_audio_mixer),
  10588. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10589. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10590. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10591. msm_routing_put_audio_mixer),
  10592. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10593. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10594. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10595. msm_routing_put_audio_mixer),
  10596. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10597. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10598. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10599. msm_routing_put_audio_mixer),
  10600. };
  10601. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  10602. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10603. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10604. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10605. msm_routing_put_audio_mixer),
  10606. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10607. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10608. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10609. msm_routing_put_audio_mixer),
  10610. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10611. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10612. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10613. msm_routing_put_audio_mixer),
  10614. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10615. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10616. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10617. msm_routing_put_audio_mixer),
  10618. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10619. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10620. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10621. msm_routing_put_audio_mixer),
  10622. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10623. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10624. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10625. msm_routing_put_audio_mixer),
  10626. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10627. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10628. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10629. msm_routing_put_audio_mixer),
  10630. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10631. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10632. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10633. msm_routing_put_audio_mixer),
  10634. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10635. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10636. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10637. msm_routing_put_audio_mixer),
  10638. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10639. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10640. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10641. msm_routing_put_audio_mixer),
  10642. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10643. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10644. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10645. msm_routing_put_audio_mixer),
  10646. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10647. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10648. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10649. msm_routing_put_audio_mixer),
  10650. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10651. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10652. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10653. msm_routing_put_audio_mixer),
  10654. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10655. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10656. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10657. msm_routing_put_audio_mixer),
  10658. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10659. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10660. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10661. msm_routing_put_audio_mixer),
  10662. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10663. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10664. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10665. msm_routing_put_audio_mixer),
  10666. };
  10667. static const struct snd_kcontrol_new quin_tdm_tx_1_mixer_controls[] = {
  10668. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10669. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10670. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10671. msm_routing_put_audio_mixer),
  10672. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10673. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10674. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10675. msm_routing_put_audio_mixer),
  10676. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10677. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10678. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10679. msm_routing_put_audio_mixer),
  10680. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10681. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10682. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10683. msm_routing_put_audio_mixer),
  10684. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10685. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10686. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10687. msm_routing_put_audio_mixer),
  10688. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10689. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10690. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10691. msm_routing_put_audio_mixer),
  10692. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10693. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10694. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10695. msm_routing_put_audio_mixer),
  10696. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10697. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10698. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10699. msm_routing_put_audio_mixer),
  10700. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10701. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10702. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10703. msm_routing_put_audio_mixer),
  10704. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10705. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10706. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10707. msm_routing_put_audio_mixer),
  10708. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10709. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10710. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10711. msm_routing_put_audio_mixer),
  10712. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10713. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10714. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10715. msm_routing_put_audio_mixer),
  10716. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10717. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10718. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10719. msm_routing_put_audio_mixer),
  10720. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10721. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10722. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10723. msm_routing_put_audio_mixer),
  10724. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10725. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10726. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10727. msm_routing_put_audio_mixer),
  10728. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10729. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10730. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10731. msm_routing_put_audio_mixer),
  10732. };
  10733. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  10734. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10735. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10736. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10737. msm_routing_put_audio_mixer),
  10738. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10739. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10740. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10741. msm_routing_put_audio_mixer),
  10742. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10743. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10744. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10745. msm_routing_put_audio_mixer),
  10746. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10747. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10748. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10749. msm_routing_put_audio_mixer),
  10750. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10751. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10752. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10753. msm_routing_put_audio_mixer),
  10754. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10755. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10756. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10757. msm_routing_put_audio_mixer),
  10758. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10759. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10760. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10761. msm_routing_put_audio_mixer),
  10762. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10763. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10764. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10765. msm_routing_put_audio_mixer),
  10766. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10767. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10768. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10769. msm_routing_put_audio_mixer),
  10770. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10771. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10772. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10773. msm_routing_put_audio_mixer),
  10774. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10775. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10776. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10777. msm_routing_put_audio_mixer),
  10778. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10779. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10780. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10781. msm_routing_put_audio_mixer),
  10782. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10783. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10784. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10785. msm_routing_put_audio_mixer),
  10786. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10787. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10788. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10789. msm_routing_put_audio_mixer),
  10790. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10791. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10792. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10793. msm_routing_put_audio_mixer),
  10794. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10795. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10796. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10797. msm_routing_put_audio_mixer),
  10798. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10799. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10800. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10801. msm_routing_put_audio_mixer),
  10802. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10803. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10804. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10805. msm_routing_put_audio_mixer),
  10806. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10807. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10808. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10809. msm_routing_put_audio_mixer),
  10810. };
  10811. static const struct snd_kcontrol_new quin_tdm_tx_2_mixer_controls[] = {
  10812. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10813. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10814. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10815. msm_routing_put_audio_mixer),
  10816. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10817. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10818. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10819. msm_routing_put_audio_mixer),
  10820. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10821. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10822. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10823. msm_routing_put_audio_mixer),
  10824. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10825. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10826. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10827. msm_routing_put_audio_mixer),
  10828. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10829. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10830. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10831. msm_routing_put_audio_mixer),
  10832. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10833. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10834. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10835. msm_routing_put_audio_mixer),
  10836. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10837. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10838. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10839. msm_routing_put_audio_mixer),
  10840. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10841. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10842. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10843. msm_routing_put_audio_mixer),
  10844. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10845. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10846. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10847. msm_routing_put_audio_mixer),
  10848. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10849. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10850. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10851. msm_routing_put_audio_mixer),
  10852. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10853. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10854. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10855. msm_routing_put_audio_mixer),
  10856. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10857. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10858. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10859. msm_routing_put_audio_mixer),
  10860. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10861. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10862. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10863. msm_routing_put_audio_mixer),
  10864. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10865. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10866. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10867. msm_routing_put_audio_mixer),
  10868. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10869. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10870. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10871. msm_routing_put_audio_mixer),
  10872. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10873. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10874. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10875. msm_routing_put_audio_mixer),
  10876. };
  10877. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  10878. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10879. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10880. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10881. msm_routing_put_audio_mixer),
  10882. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10883. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10884. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10885. msm_routing_put_audio_mixer),
  10886. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10887. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10888. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10889. msm_routing_put_audio_mixer),
  10890. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10891. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10892. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10893. msm_routing_put_audio_mixer),
  10894. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10895. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10896. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10897. msm_routing_put_audio_mixer),
  10898. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10899. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10900. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10901. msm_routing_put_audio_mixer),
  10902. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10903. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10904. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10905. msm_routing_put_audio_mixer),
  10906. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10907. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10908. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10909. msm_routing_put_audio_mixer),
  10910. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10911. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10912. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10913. msm_routing_put_audio_mixer),
  10914. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10915. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10916. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10917. msm_routing_put_audio_mixer),
  10918. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10919. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10920. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10921. msm_routing_put_audio_mixer),
  10922. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10923. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10924. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10925. msm_routing_put_audio_mixer),
  10926. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10927. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10928. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10929. msm_routing_put_audio_mixer),
  10930. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10931. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10932. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10933. msm_routing_put_audio_mixer),
  10934. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10935. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10936. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10937. msm_routing_put_audio_mixer),
  10938. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10939. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10940. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10941. msm_routing_put_audio_mixer),
  10942. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10943. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10944. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10945. msm_routing_put_audio_mixer),
  10946. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10947. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10948. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10949. msm_routing_put_audio_mixer),
  10950. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10951. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10952. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10953. msm_routing_put_audio_mixer),
  10954. };
  10955. static const struct snd_kcontrol_new quin_tdm_tx_3_mixer_controls[] = {
  10956. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10957. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10958. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10959. msm_routing_put_audio_mixer),
  10960. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10961. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10962. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10963. msm_routing_put_audio_mixer),
  10964. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10965. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10966. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10967. msm_routing_put_audio_mixer),
  10968. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10969. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10970. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10971. msm_routing_put_audio_mixer),
  10972. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10973. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10974. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10975. msm_routing_put_audio_mixer),
  10976. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10977. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10978. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10979. msm_routing_put_audio_mixer),
  10980. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10981. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10982. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10983. msm_routing_put_audio_mixer),
  10984. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10985. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10986. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10987. msm_routing_put_audio_mixer),
  10988. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10989. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10990. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10991. msm_routing_put_audio_mixer),
  10992. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10993. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10994. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10995. msm_routing_put_audio_mixer),
  10996. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10997. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10998. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10999. msm_routing_put_audio_mixer),
  11000. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11001. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11002. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11003. msm_routing_put_audio_mixer),
  11004. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11005. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11006. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11007. msm_routing_put_audio_mixer),
  11008. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11009. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11010. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11011. msm_routing_put_audio_mixer),
  11012. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11013. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11014. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11015. msm_routing_put_audio_mixer),
  11016. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11017. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11018. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11019. msm_routing_put_audio_mixer),
  11020. };
  11021. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  11022. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11023. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11024. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11025. msm_routing_put_audio_mixer),
  11026. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11027. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11028. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11029. msm_routing_put_audio_mixer),
  11030. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11031. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11032. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11033. msm_routing_put_audio_mixer),
  11034. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11035. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11036. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11037. msm_routing_put_audio_mixer),
  11038. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11039. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11040. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11041. msm_routing_put_audio_mixer),
  11042. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11043. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11044. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11045. msm_routing_put_audio_mixer),
  11046. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11047. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11048. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11049. msm_routing_put_audio_mixer),
  11050. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11051. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11052. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11053. msm_routing_put_audio_mixer),
  11054. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11055. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11056. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11057. msm_routing_put_audio_mixer),
  11058. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11059. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11060. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11061. msm_routing_put_audio_mixer),
  11062. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11063. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11064. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11065. msm_routing_put_audio_mixer),
  11066. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11067. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11068. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11069. msm_routing_put_audio_mixer),
  11070. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11071. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11072. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11073. msm_routing_put_audio_mixer),
  11074. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11075. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11076. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11077. msm_routing_put_audio_mixer),
  11078. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11079. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11080. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11081. msm_routing_put_audio_mixer),
  11082. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11083. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11084. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11085. msm_routing_put_audio_mixer),
  11086. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11087. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11088. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11089. msm_routing_put_audio_mixer),
  11090. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11091. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11092. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11093. msm_routing_put_audio_mixer),
  11094. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11095. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11096. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11097. msm_routing_put_audio_mixer),
  11098. };
  11099. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  11100. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11101. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11102. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11103. msm_routing_put_audio_mixer),
  11104. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11105. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11106. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11107. msm_routing_put_audio_mixer),
  11108. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11109. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11110. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11111. msm_routing_put_audio_mixer),
  11112. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11113. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11114. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11115. msm_routing_put_audio_mixer),
  11116. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11117. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11118. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11119. msm_routing_put_audio_mixer),
  11120. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11121. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11122. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11123. msm_routing_put_audio_mixer),
  11124. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11125. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11126. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11127. msm_routing_put_audio_mixer),
  11128. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11129. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11130. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11131. msm_routing_put_audio_mixer),
  11132. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11133. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11134. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11135. msm_routing_put_audio_mixer),
  11136. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11137. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11138. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11139. msm_routing_put_audio_mixer),
  11140. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11141. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11142. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11143. msm_routing_put_audio_mixer),
  11144. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11145. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11146. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11147. msm_routing_put_audio_mixer),
  11148. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11149. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11150. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11151. msm_routing_put_audio_mixer),
  11152. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11153. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11154. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11155. msm_routing_put_audio_mixer),
  11156. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11157. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11158. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11159. msm_routing_put_audio_mixer),
  11160. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11161. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11162. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11163. msm_routing_put_audio_mixer),
  11164. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11165. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11166. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11167. msm_routing_put_audio_mixer),
  11168. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11169. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11170. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11171. msm_routing_put_audio_mixer),
  11172. };
  11173. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  11174. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11175. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11176. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11177. msm_routing_put_audio_mixer),
  11178. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11179. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11180. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11181. msm_routing_put_audio_mixer),
  11182. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11183. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11184. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11185. msm_routing_put_audio_mixer),
  11186. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11187. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11188. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11189. msm_routing_put_audio_mixer),
  11190. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11191. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11192. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11193. msm_routing_put_audio_mixer),
  11194. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11195. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11196. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11197. msm_routing_put_audio_mixer),
  11198. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11199. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11200. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11201. msm_routing_put_audio_mixer),
  11202. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11203. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11204. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11205. msm_routing_put_audio_mixer),
  11206. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11207. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11208. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11209. msm_routing_put_audio_mixer),
  11210. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11211. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11212. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11213. msm_routing_put_audio_mixer),
  11214. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11215. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11216. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11217. msm_routing_put_audio_mixer),
  11218. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11219. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11220. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11221. msm_routing_put_audio_mixer),
  11222. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11223. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11224. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11225. msm_routing_put_audio_mixer),
  11226. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11227. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11228. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11229. msm_routing_put_audio_mixer),
  11230. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11231. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11232. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11233. msm_routing_put_audio_mixer),
  11234. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11235. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11236. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11237. msm_routing_put_audio_mixer),
  11238. };
  11239. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11240. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11241. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11242. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11243. msm_routing_put_audio_mixer),
  11244. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11245. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11246. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11247. msm_routing_put_audio_mixer),
  11248. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11249. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11250. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11251. msm_routing_put_audio_mixer),
  11252. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11253. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11254. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11255. msm_routing_put_audio_mixer),
  11256. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11257. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11258. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11259. msm_routing_put_audio_mixer),
  11260. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11261. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11262. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11263. msm_routing_put_audio_mixer),
  11264. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11265. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11266. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11267. msm_routing_put_audio_mixer),
  11268. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11269. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11270. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11271. msm_routing_put_audio_mixer),
  11272. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11273. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11274. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11275. msm_routing_put_audio_mixer),
  11276. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11277. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11278. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11279. msm_routing_put_audio_mixer),
  11280. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11281. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11282. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11283. msm_routing_put_audio_mixer),
  11284. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11285. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11286. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11287. msm_routing_put_audio_mixer),
  11288. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11289. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11290. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11291. msm_routing_put_audio_mixer),
  11292. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11293. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11294. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11295. msm_routing_put_audio_mixer),
  11296. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11297. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11298. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11299. msm_routing_put_audio_mixer),
  11300. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11301. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11302. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11303. msm_routing_put_audio_mixer),
  11304. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11305. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11306. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11307. msm_routing_put_audio_mixer),
  11308. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11309. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11310. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11311. msm_routing_put_audio_mixer),
  11312. };
  11313. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  11314. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11315. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11316. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11317. msm_routing_put_audio_mixer),
  11318. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11319. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11320. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11321. msm_routing_put_audio_mixer),
  11322. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11323. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11324. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11325. msm_routing_put_audio_mixer),
  11326. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11327. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11328. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11329. msm_routing_put_audio_mixer),
  11330. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11331. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11332. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11333. msm_routing_put_audio_mixer),
  11334. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11335. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11336. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11337. msm_routing_put_audio_mixer),
  11338. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11339. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11340. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11341. msm_routing_put_audio_mixer),
  11342. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11343. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11344. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11345. msm_routing_put_audio_mixer),
  11346. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11347. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11348. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11349. msm_routing_put_audio_mixer),
  11350. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11351. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11352. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11353. msm_routing_put_audio_mixer),
  11354. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11355. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11356. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11357. msm_routing_put_audio_mixer),
  11358. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11359. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11360. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11361. msm_routing_put_audio_mixer),
  11362. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11363. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11364. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11365. msm_routing_put_audio_mixer),
  11366. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11367. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11368. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11369. msm_routing_put_audio_mixer),
  11370. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11371. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11372. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11373. msm_routing_put_audio_mixer),
  11374. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11375. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11376. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11377. msm_routing_put_audio_mixer),
  11378. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11379. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11380. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11381. msm_routing_put_audio_mixer),
  11382. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11383. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11384. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11385. msm_routing_put_audio_mixer),
  11386. };
  11387. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  11388. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11389. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11390. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11391. msm_routing_put_audio_mixer),
  11392. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11393. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11394. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11395. msm_routing_put_audio_mixer),
  11396. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11397. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11398. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11399. msm_routing_put_audio_mixer),
  11400. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11401. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11402. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11403. msm_routing_put_audio_mixer),
  11404. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11405. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11406. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11407. msm_routing_put_audio_mixer),
  11408. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11409. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11410. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11411. msm_routing_put_audio_mixer),
  11412. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11413. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11414. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11415. msm_routing_put_audio_mixer),
  11416. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11417. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11418. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11419. msm_routing_put_audio_mixer),
  11420. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11421. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11422. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11423. msm_routing_put_audio_mixer),
  11424. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11425. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11426. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11427. msm_routing_put_audio_mixer),
  11428. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11429. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11430. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11431. msm_routing_put_audio_mixer),
  11432. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11433. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11434. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11435. msm_routing_put_audio_mixer),
  11436. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11437. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11438. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11439. msm_routing_put_audio_mixer),
  11440. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11441. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11442. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11443. msm_routing_put_audio_mixer),
  11444. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11445. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11446. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11447. msm_routing_put_audio_mixer),
  11448. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11449. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11450. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11451. msm_routing_put_audio_mixer),
  11452. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11453. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11454. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11455. msm_routing_put_audio_mixer),
  11456. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11457. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11458. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11459. msm_routing_put_audio_mixer),
  11460. };
  11461. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  11462. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  11463. MSM_BACKEND_DAI_PRI_I2S_TX,
  11464. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11465. msm_routing_put_audio_mixer),
  11466. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11467. MSM_BACKEND_DAI_MI2S_TX,
  11468. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11469. msm_routing_put_audio_mixer),
  11470. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11471. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11472. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11473. msm_routing_put_audio_mixer),
  11474. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11475. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11476. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11477. msm_routing_put_audio_mixer),
  11478. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11479. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11480. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11481. msm_routing_put_audio_mixer),
  11482. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11483. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11484. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11485. msm_routing_put_audio_mixer),
  11486. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11487. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11488. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11489. msm_routing_put_audio_mixer),
  11490. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11491. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11492. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11493. msm_routing_put_audio_mixer),
  11494. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11495. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11496. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11497. msm_routing_put_audio_mixer),
  11498. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11499. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11500. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11501. msm_routing_put_audio_mixer),
  11502. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11503. MSM_BACKEND_DAI_AUXPCM_TX,
  11504. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11505. msm_routing_put_audio_mixer),
  11506. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11507. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11508. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11509. msm_routing_put_audio_mixer),
  11510. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11511. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11512. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11513. msm_routing_put_audio_mixer),
  11514. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11515. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11516. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11517. msm_routing_put_audio_mixer),
  11518. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11519. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11520. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11521. msm_routing_put_audio_mixer),
  11522. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11523. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11524. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11525. msm_routing_put_audio_mixer),
  11526. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11527. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11528. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11529. msm_routing_put_audio_mixer),
  11530. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11531. MSM_BACKEND_DAI_INT_FM_TX,
  11532. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11533. msm_routing_put_audio_mixer),
  11534. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11535. MSM_BACKEND_DAI_AFE_PCM_TX,
  11536. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11537. msm_routing_put_audio_mixer),
  11538. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11539. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11540. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11541. msm_routing_put_audio_mixer),
  11542. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11543. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11544. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11545. msm_routing_put_audio_mixer),
  11546. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  11547. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11548. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11549. msm_routing_put_audio_mixer),
  11550. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11551. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11552. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11553. msm_routing_put_audio_mixer),
  11554. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11555. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11556. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11557. msm_routing_put_audio_mixer),
  11558. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11559. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11560. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11561. msm_routing_put_audio_mixer),
  11562. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11563. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11564. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11565. msm_routing_put_audio_mixer),
  11566. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11567. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11568. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11569. msm_routing_put_audio_mixer),
  11570. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11571. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11572. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11573. msm_routing_put_audio_mixer),
  11574. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11575. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11576. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11577. msm_routing_put_audio_mixer),
  11578. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11579. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11580. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11581. msm_routing_put_audio_mixer),
  11582. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11583. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11584. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11585. msm_routing_put_audio_mixer),
  11586. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11587. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11588. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11589. msm_routing_put_audio_mixer),
  11590. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11591. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11592. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11593. msm_routing_put_audio_mixer),
  11594. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11595. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11596. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11597. msm_routing_put_audio_mixer),
  11598. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11599. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11600. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11601. msm_routing_put_audio_mixer),
  11602. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11603. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11604. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11605. msm_routing_put_audio_mixer),
  11606. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11607. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11608. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11609. msm_routing_put_audio_mixer),
  11610. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11611. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11612. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11613. msm_routing_put_audio_mixer),
  11614. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11615. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11616. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11617. msm_routing_put_audio_mixer),
  11618. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11619. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11620. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11621. msm_routing_put_audio_mixer),
  11622. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11623. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11624. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11625. msm_routing_put_audio_mixer),
  11626. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11627. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11628. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11629. msm_routing_put_audio_mixer),
  11630. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11631. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11632. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11633. msm_routing_put_audio_mixer),
  11634. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11635. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11636. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11637. msm_routing_put_audio_mixer),
  11638. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11639. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11640. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11641. msm_routing_put_audio_mixer),
  11642. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11643. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11644. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11645. msm_routing_put_audio_mixer),
  11646. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11647. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11648. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11649. msm_routing_put_audio_mixer),
  11650. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11651. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11652. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11653. msm_routing_put_audio_mixer),
  11654. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11655. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11656. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11657. msm_routing_put_audio_mixer),
  11658. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11659. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11660. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11661. msm_routing_put_audio_mixer),
  11662. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11663. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11664. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11665. msm_routing_put_audio_mixer),
  11666. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11667. MSM_BACKEND_DAI_USB_TX,
  11668. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11669. msm_routing_put_audio_mixer),
  11670. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11671. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11672. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11673. msm_routing_put_audio_mixer),
  11674. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11675. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11676. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11677. msm_routing_put_audio_mixer),
  11678. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11679. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11680. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11681. msm_routing_put_audio_mixer),
  11682. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11683. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11684. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11685. msm_routing_put_audio_mixer),
  11686. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11687. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11688. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11689. msm_routing_put_audio_mixer),
  11690. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11691. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11692. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11693. msm_routing_put_audio_mixer),
  11694. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11695. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11696. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11697. msm_routing_put_audio_mixer),
  11698. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11699. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11700. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11701. msm_routing_put_audio_mixer),
  11702. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11703. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11704. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11705. msm_routing_put_audio_mixer),
  11706. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11707. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11708. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11709. msm_routing_put_audio_mixer),
  11710. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11711. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11712. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11713. msm_routing_put_audio_mixer),
  11714. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11715. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11716. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11717. msm_routing_put_audio_mixer),
  11718. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11719. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11720. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11721. msm_routing_put_audio_mixer),
  11722. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11723. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11724. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11725. msm_routing_put_audio_mixer),
  11726. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11727. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11728. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11729. msm_routing_put_audio_mixer),
  11730. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11731. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11732. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11733. msm_routing_put_audio_mixer),
  11734. };
  11735. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  11736. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11737. MSM_BACKEND_DAI_INT_FM_TX,
  11738. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11739. msm_routing_put_audio_mixer),
  11740. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11741. MSM_BACKEND_DAI_MI2S_TX,
  11742. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11743. msm_routing_put_audio_mixer),
  11744. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11745. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11746. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11747. msm_routing_put_audio_mixer),
  11748. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11749. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11750. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11751. msm_routing_put_audio_mixer),
  11752. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11753. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11754. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11755. msm_routing_put_audio_mixer),
  11756. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11757. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11758. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11759. msm_routing_put_audio_mixer),
  11760. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11761. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11762. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11763. msm_routing_put_audio_mixer),
  11764. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11765. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11766. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11767. msm_routing_put_audio_mixer),
  11768. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11769. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11770. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11771. msm_routing_put_audio_mixer),
  11772. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11773. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11774. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11775. msm_routing_put_audio_mixer),
  11776. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11777. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11778. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11779. msm_routing_put_audio_mixer),
  11780. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11781. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11782. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11783. msm_routing_put_audio_mixer),
  11784. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11785. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11786. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11787. msm_routing_put_audio_mixer),
  11788. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11789. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11790. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11791. msm_routing_put_audio_mixer),
  11792. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11793. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11794. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11795. msm_routing_put_audio_mixer),
  11796. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11797. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11798. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11799. msm_routing_put_audio_mixer),
  11800. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11801. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11802. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11803. msm_routing_put_audio_mixer),
  11804. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11805. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11806. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11807. msm_routing_put_audio_mixer),
  11808. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11809. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11810. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11811. msm_routing_put_audio_mixer),
  11812. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11813. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11814. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11815. msm_routing_put_audio_mixer),
  11816. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11817. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11818. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11819. msm_routing_put_audio_mixer),
  11820. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11821. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11822. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11823. msm_routing_put_audio_mixer),
  11824. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11825. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11826. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11827. msm_routing_put_audio_mixer),
  11828. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11829. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11830. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11831. msm_routing_put_audio_mixer),
  11832. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11833. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11834. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11835. msm_routing_put_audio_mixer),
  11836. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11837. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11838. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11839. msm_routing_put_audio_mixer),
  11840. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11841. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11842. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11843. msm_routing_put_audio_mixer),
  11844. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11845. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11846. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11847. msm_routing_put_audio_mixer),
  11848. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11849. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11850. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11851. msm_routing_put_audio_mixer),
  11852. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11853. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11854. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11855. msm_routing_put_audio_mixer),
  11856. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11857. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11858. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11859. msm_routing_put_audio_mixer),
  11860. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11861. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11862. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11863. msm_routing_put_audio_mixer),
  11864. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11865. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11866. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11867. msm_routing_put_audio_mixer),
  11868. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11869. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11870. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11871. msm_routing_put_audio_mixer),
  11872. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11873. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11874. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11875. msm_routing_put_audio_mixer),
  11876. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11877. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11878. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11879. msm_routing_put_audio_mixer),
  11880. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11881. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11882. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11883. msm_routing_put_audio_mixer),
  11884. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11885. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11886. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11887. msm_routing_put_audio_mixer),
  11888. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11889. MSM_BACKEND_DAI_USB_TX,
  11890. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11891. msm_routing_put_audio_mixer),
  11892. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11893. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11894. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11895. msm_routing_put_audio_mixer),
  11896. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11897. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11898. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11899. msm_routing_put_audio_mixer),
  11900. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11901. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11902. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11903. msm_routing_put_audio_mixer),
  11904. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11905. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11906. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11907. msm_routing_put_audio_mixer),
  11908. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11909. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11910. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11911. msm_routing_put_audio_mixer),
  11912. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11913. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11914. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11915. msm_routing_put_audio_mixer),
  11916. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11917. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11918. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11919. msm_routing_put_audio_mixer),
  11920. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11921. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11922. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11923. msm_routing_put_audio_mixer),
  11924. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11925. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11926. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11927. msm_routing_put_audio_mixer),
  11928. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11929. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11930. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11931. msm_routing_put_audio_mixer),
  11932. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11933. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11934. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11935. msm_routing_put_audio_mixer),
  11936. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11937. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11938. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11939. msm_routing_put_audio_mixer),
  11940. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11941. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11942. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11943. msm_routing_put_audio_mixer),
  11944. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11945. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11946. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11947. msm_routing_put_audio_mixer),
  11948. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11949. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11950. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11951. msm_routing_put_audio_mixer),
  11952. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11953. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11954. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11955. msm_routing_put_audio_mixer),
  11956. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11957. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11958. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11959. msm_routing_put_audio_mixer),
  11960. };
  11961. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  11962. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11963. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11964. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11965. msm_routing_put_audio_mixer),
  11966. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11967. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11968. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11969. msm_routing_put_audio_mixer),
  11970. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11971. MSM_BACKEND_DAI_INT_FM_TX,
  11972. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11973. msm_routing_put_audio_mixer),
  11974. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11975. MSM_BACKEND_DAI_MI2S_TX,
  11976. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11977. msm_routing_put_audio_mixer),
  11978. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11979. MSM_BACKEND_DAI_AFE_PCM_TX,
  11980. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11981. msm_routing_put_audio_mixer),
  11982. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11983. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11984. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11985. msm_routing_put_audio_mixer),
  11986. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  11987. MSM_BACKEND_DAI_AUXPCM_TX,
  11988. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11989. msm_routing_put_audio_mixer),
  11990. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11991. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11992. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11993. msm_routing_put_audio_mixer),
  11994. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  11995. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11996. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11997. msm_routing_put_audio_mixer),
  11998. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11999. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12000. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12001. msm_routing_put_audio_mixer),
  12002. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12003. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12004. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12005. msm_routing_put_audio_mixer),
  12006. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12007. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12008. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12009. msm_routing_put_audio_mixer),
  12010. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12011. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12012. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12013. msm_routing_put_audio_mixer),
  12014. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12015. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12016. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12017. msm_routing_put_audio_mixer),
  12018. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12019. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12020. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12021. msm_routing_put_audio_mixer),
  12022. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12023. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12024. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12025. msm_routing_put_audio_mixer),
  12026. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12027. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12028. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12029. msm_routing_put_audio_mixer),
  12030. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12031. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12032. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12033. msm_routing_put_audio_mixer),
  12034. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12035. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12036. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12037. msm_routing_put_audio_mixer),
  12038. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12039. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12040. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12041. msm_routing_put_audio_mixer),
  12042. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12043. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12044. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12045. msm_routing_put_audio_mixer),
  12046. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12047. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12048. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12049. msm_routing_put_audio_mixer),
  12050. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12051. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12052. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12053. msm_routing_put_audio_mixer),
  12054. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12055. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12056. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12057. msm_routing_put_audio_mixer),
  12058. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12059. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12060. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12061. msm_routing_put_audio_mixer),
  12062. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12063. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12064. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12065. msm_routing_put_audio_mixer),
  12066. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12067. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12068. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12069. msm_routing_put_audio_mixer),
  12070. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12071. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12072. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12073. msm_routing_put_audio_mixer),
  12074. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12075. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12076. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12077. msm_routing_put_audio_mixer),
  12078. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12079. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12080. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12081. msm_routing_put_audio_mixer),
  12082. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12083. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12084. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12085. msm_routing_put_audio_mixer),
  12086. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12087. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12088. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12089. msm_routing_put_audio_mixer),
  12090. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12091. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12092. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12093. msm_routing_put_audio_mixer),
  12094. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12095. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12096. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12097. msm_routing_put_audio_mixer),
  12098. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12099. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12100. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12101. msm_routing_put_audio_mixer),
  12102. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12103. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12104. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12105. msm_routing_put_audio_mixer),
  12106. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12107. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12108. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12109. msm_routing_put_audio_mixer),
  12110. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12111. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12112. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12113. msm_routing_put_audio_mixer),
  12114. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12115. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12116. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12117. msm_routing_put_audio_mixer),
  12118. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12119. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12120. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12121. msm_routing_put_audio_mixer),
  12122. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12123. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12124. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12125. msm_routing_put_audio_mixer),
  12126. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12127. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12128. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12129. msm_routing_put_audio_mixer),
  12130. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12131. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12132. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12133. msm_routing_put_audio_mixer),
  12134. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12135. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12136. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12137. msm_routing_put_audio_mixer),
  12138. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12139. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12140. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12141. msm_routing_put_audio_mixer),
  12142. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12143. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12144. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12145. msm_routing_put_audio_mixer),
  12146. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12147. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12148. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12149. msm_routing_put_audio_mixer),
  12150. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12151. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12152. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12153. msm_routing_put_audio_mixer),
  12154. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12155. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12156. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12157. msm_routing_put_audio_mixer),
  12158. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12159. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12160. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12161. msm_routing_put_audio_mixer),
  12162. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12163. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12164. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12165. msm_routing_put_audio_mixer),
  12166. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12167. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12168. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12169. msm_routing_put_audio_mixer),
  12170. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12171. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12172. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12173. msm_routing_put_audio_mixer),
  12174. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12175. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12176. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12177. msm_routing_put_audio_mixer),
  12178. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12179. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12180. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12181. msm_routing_put_audio_mixer),
  12182. };
  12183. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  12184. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12185. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12186. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12187. msm_routing_put_audio_mixer),
  12188. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12189. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12190. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12191. msm_routing_put_audio_mixer),
  12192. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12193. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12194. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12195. msm_routing_put_audio_mixer),
  12196. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12197. MSM_BACKEND_DAI_INT_FM_TX,
  12198. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12199. msm_routing_put_audio_mixer),
  12200. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12201. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12202. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12203. msm_routing_put_audio_mixer),
  12204. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12205. MSM_BACKEND_DAI_AFE_PCM_TX,
  12206. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12207. msm_routing_put_audio_mixer),
  12208. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12209. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12210. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12211. msm_routing_put_audio_mixer),
  12212. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12213. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12214. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12215. msm_routing_put_audio_mixer),
  12216. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12217. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12218. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12219. msm_routing_put_audio_mixer),
  12220. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12221. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12222. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12223. msm_routing_put_audio_mixer),
  12224. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12225. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12226. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12227. msm_routing_put_audio_mixer),
  12228. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12229. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12230. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12231. msm_routing_put_audio_mixer),
  12232. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12233. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12234. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12235. msm_routing_put_audio_mixer),
  12236. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12237. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12238. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12239. msm_routing_put_audio_mixer),
  12240. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12241. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12242. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12243. msm_routing_put_audio_mixer),
  12244. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12245. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12246. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12247. msm_routing_put_audio_mixer),
  12248. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12249. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12250. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12251. msm_routing_put_audio_mixer),
  12252. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12253. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12254. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12255. msm_routing_put_audio_mixer),
  12256. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12257. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12258. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12259. msm_routing_put_audio_mixer),
  12260. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12261. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12262. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12263. msm_routing_put_audio_mixer),
  12264. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12265. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12266. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12267. msm_routing_put_audio_mixer),
  12268. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12269. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12270. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12271. msm_routing_put_audio_mixer),
  12272. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12273. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12274. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12275. msm_routing_put_audio_mixer),
  12276. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12277. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12278. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12279. msm_routing_put_audio_mixer),
  12280. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12281. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12282. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12283. msm_routing_put_audio_mixer),
  12284. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12285. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12286. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12287. msm_routing_put_audio_mixer),
  12288. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12289. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12290. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12291. msm_routing_put_audio_mixer),
  12292. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12293. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12294. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12295. msm_routing_put_audio_mixer),
  12296. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12297. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12298. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12299. msm_routing_put_audio_mixer),
  12300. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12301. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12302. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12303. msm_routing_put_audio_mixer),
  12304. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12305. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12306. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12307. msm_routing_put_audio_mixer),
  12308. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12309. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12310. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12311. msm_routing_put_audio_mixer),
  12312. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12313. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12314. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12315. msm_routing_put_audio_mixer),
  12316. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12317. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12318. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12319. msm_routing_put_audio_mixer),
  12320. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12321. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12322. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12323. msm_routing_put_audio_mixer),
  12324. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12325. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12326. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12327. msm_routing_put_audio_mixer),
  12328. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12329. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12330. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12331. msm_routing_put_audio_mixer),
  12332. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12333. MSM_BACKEND_DAI_USB_TX,
  12334. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12335. msm_routing_put_audio_mixer),
  12336. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12337. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12338. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12339. msm_routing_put_audio_mixer),
  12340. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12341. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12342. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12343. msm_routing_put_audio_mixer),
  12344. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12345. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12346. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12347. msm_routing_put_audio_mixer),
  12348. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12349. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12350. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12351. msm_routing_put_audio_mixer),
  12352. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12353. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12354. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12355. msm_routing_put_audio_mixer),
  12356. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12357. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12358. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12359. msm_routing_put_audio_mixer),
  12360. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12361. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12362. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12363. msm_routing_put_audio_mixer),
  12364. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12365. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12366. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12367. msm_routing_put_audio_mixer),
  12368. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12369. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12370. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12371. msm_routing_put_audio_mixer),
  12372. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12373. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12374. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12375. msm_routing_put_audio_mixer),
  12376. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12377. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12378. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12379. msm_routing_put_audio_mixer),
  12380. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12381. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12382. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12383. msm_routing_put_audio_mixer),
  12384. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12385. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12386. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12387. msm_routing_put_audio_mixer),
  12388. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12389. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12390. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12391. msm_routing_put_audio_mixer),
  12392. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12393. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12394. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12395. msm_routing_put_audio_mixer),
  12396. };
  12397. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  12398. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12399. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12400. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12401. msm_routing_put_audio_mixer),
  12402. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12403. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12404. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12405. msm_routing_put_audio_mixer),
  12406. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12407. MSM_BACKEND_DAI_INT_FM_TX,
  12408. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12409. msm_routing_put_audio_mixer),
  12410. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12411. MSM_BACKEND_DAI_MI2S_TX,
  12412. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12413. msm_routing_put_audio_mixer),
  12414. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12415. MSM_BACKEND_DAI_AFE_PCM_TX,
  12416. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12417. msm_routing_put_audio_mixer),
  12418. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12419. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12420. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12421. msm_routing_put_audio_mixer),
  12422. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12423. MSM_BACKEND_DAI_AUXPCM_TX,
  12424. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12425. msm_routing_put_audio_mixer),
  12426. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12427. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12428. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12429. msm_routing_put_audio_mixer),
  12430. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12431. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12432. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12433. msm_routing_put_audio_mixer),
  12434. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12435. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12436. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12437. msm_routing_put_audio_mixer),
  12438. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12439. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12440. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12441. msm_routing_put_audio_mixer),
  12442. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12443. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12444. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12445. msm_routing_put_audio_mixer),
  12446. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12447. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12448. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12449. msm_routing_put_audio_mixer),
  12450. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12451. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12452. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12453. msm_routing_put_audio_mixer),
  12454. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12455. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12456. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12457. msm_routing_put_audio_mixer),
  12458. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12459. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12460. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12461. msm_routing_put_audio_mixer),
  12462. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12463. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12464. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12465. msm_routing_put_audio_mixer),
  12466. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12467. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12468. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12469. msm_routing_put_audio_mixer),
  12470. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12471. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12472. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12473. msm_routing_put_audio_mixer),
  12474. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12475. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12476. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12477. msm_routing_put_audio_mixer),
  12478. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12479. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12480. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12481. msm_routing_put_audio_mixer),
  12482. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12483. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12484. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12485. msm_routing_put_audio_mixer),
  12486. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12487. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12488. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12489. msm_routing_put_audio_mixer),
  12490. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12491. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12492. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12493. msm_routing_put_audio_mixer),
  12494. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12495. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12496. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12497. msm_routing_put_audio_mixer),
  12498. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12499. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12500. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12501. msm_routing_put_audio_mixer),
  12502. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12503. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12504. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12505. msm_routing_put_audio_mixer),
  12506. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12507. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12508. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12509. msm_routing_put_audio_mixer),
  12510. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12511. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12512. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12513. msm_routing_put_audio_mixer),
  12514. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12515. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12516. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12517. msm_routing_put_audio_mixer),
  12518. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12519. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12520. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12521. msm_routing_put_audio_mixer),
  12522. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12523. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12524. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12525. msm_routing_put_audio_mixer),
  12526. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12527. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12528. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12529. msm_routing_put_audio_mixer),
  12530. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12531. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12532. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12533. msm_routing_put_audio_mixer),
  12534. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12535. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12536. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12537. msm_routing_put_audio_mixer),
  12538. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12539. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12540. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12541. msm_routing_put_audio_mixer),
  12542. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12543. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12544. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12545. msm_routing_put_audio_mixer),
  12546. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12547. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12548. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12549. msm_routing_put_audio_mixer),
  12550. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12551. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12552. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12553. msm_routing_put_audio_mixer),
  12554. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12555. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12556. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12557. msm_routing_put_audio_mixer),
  12558. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12559. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12560. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12561. msm_routing_put_audio_mixer),
  12562. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12563. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12564. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12565. msm_routing_put_audio_mixer),
  12566. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12567. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12568. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12569. msm_routing_put_audio_mixer),
  12570. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12571. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12572. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12573. msm_routing_put_audio_mixer),
  12574. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12575. MSM_BACKEND_DAI_USB_TX,
  12576. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12577. msm_routing_put_audio_mixer),
  12578. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12579. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12580. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12581. msm_routing_put_audio_mixer),
  12582. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12583. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12584. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12585. msm_routing_put_audio_mixer),
  12586. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12587. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12588. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12589. msm_routing_put_audio_mixer),
  12590. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12591. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12592. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12593. msm_routing_put_audio_mixer),
  12594. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12595. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12596. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12597. msm_routing_put_audio_mixer),
  12598. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12599. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12600. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12601. msm_routing_put_audio_mixer),
  12602. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12603. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12604. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12605. msm_routing_put_audio_mixer),
  12606. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12607. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12608. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12609. msm_routing_put_audio_mixer),
  12610. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12611. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12612. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12613. msm_routing_put_audio_mixer),
  12614. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12615. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12616. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12617. msm_routing_put_audio_mixer),
  12618. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12619. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12620. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12621. msm_routing_put_audio_mixer),
  12622. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12623. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12624. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12625. msm_routing_put_audio_mixer),
  12626. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12627. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12628. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12629. msm_routing_put_audio_mixer),
  12630. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12631. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12632. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12633. msm_routing_put_audio_mixer),
  12634. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12635. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12636. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12637. msm_routing_put_audio_mixer),
  12638. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12639. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12640. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12641. msm_routing_put_audio_mixer),
  12642. };
  12643. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  12644. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12645. MSM_BACKEND_DAI_INT_FM_TX,
  12646. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12647. msm_routing_put_audio_mixer),
  12648. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12649. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12650. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12651. msm_routing_put_audio_mixer),
  12652. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12653. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12654. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12655. msm_routing_put_audio_mixer),
  12656. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12657. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12658. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12659. msm_routing_put_audio_mixer),
  12660. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12661. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12662. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12663. msm_routing_put_audio_mixer),
  12664. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12665. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12666. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12667. msm_routing_put_audio_mixer),
  12668. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12669. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12670. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12671. msm_routing_put_audio_mixer),
  12672. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12673. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12674. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12675. msm_routing_put_audio_mixer),
  12676. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12677. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12678. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12679. msm_routing_put_audio_mixer),
  12680. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12681. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12682. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12683. msm_routing_put_audio_mixer),
  12684. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12685. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12686. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12687. msm_routing_put_audio_mixer),
  12688. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12689. MSM_BACKEND_DAI_AUXPCM_TX,
  12690. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12691. msm_routing_put_audio_mixer),
  12692. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12693. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12694. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12695. msm_routing_put_audio_mixer),
  12696. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12697. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12698. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12699. msm_routing_put_audio_mixer),
  12700. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12701. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12702. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12703. msm_routing_put_audio_mixer),
  12704. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12705. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12706. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12707. msm_routing_put_audio_mixer),
  12708. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12709. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12710. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12711. msm_routing_put_audio_mixer),
  12712. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12713. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12714. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12715. msm_routing_put_audio_mixer),
  12716. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12717. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12718. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12719. msm_routing_put_audio_mixer),
  12720. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12721. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12722. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12723. msm_routing_put_audio_mixer),
  12724. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12725. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12726. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12727. msm_routing_put_audio_mixer),
  12728. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12729. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12730. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12731. msm_routing_put_audio_mixer),
  12732. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12733. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12734. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12735. msm_routing_put_audio_mixer),
  12736. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12737. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12738. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12739. msm_routing_put_audio_mixer),
  12740. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12741. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12742. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12743. msm_routing_put_audio_mixer),
  12744. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12745. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12746. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12747. msm_routing_put_audio_mixer),
  12748. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12749. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12750. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12751. msm_routing_put_audio_mixer),
  12752. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12753. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12754. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12755. msm_routing_put_audio_mixer),
  12756. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12757. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12758. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12759. msm_routing_put_audio_mixer),
  12760. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12761. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12762. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12763. msm_routing_put_audio_mixer),
  12764. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12765. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12766. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12767. msm_routing_put_audio_mixer),
  12768. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12769. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12770. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12771. msm_routing_put_audio_mixer),
  12772. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12773. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12774. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12775. msm_routing_put_audio_mixer),
  12776. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12777. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12778. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12779. msm_routing_put_audio_mixer),
  12780. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12781. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12782. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12783. msm_routing_put_audio_mixer),
  12784. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12785. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12786. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12787. msm_routing_put_audio_mixer),
  12788. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12789. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12790. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12791. msm_routing_put_audio_mixer),
  12792. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12793. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12794. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12795. msm_routing_put_audio_mixer),
  12796. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12797. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12798. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12799. msm_routing_put_audio_mixer),
  12800. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12801. MSM_BACKEND_DAI_USB_TX,
  12802. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12803. msm_routing_put_audio_mixer),
  12804. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12805. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12806. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12807. msm_routing_put_audio_mixer),
  12808. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12809. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12810. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12811. msm_routing_put_audio_mixer),
  12812. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12813. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12814. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12815. msm_routing_put_audio_mixer),
  12816. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12817. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12818. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12819. msm_routing_put_audio_mixer),
  12820. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12821. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12822. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12823. msm_routing_put_audio_mixer),
  12824. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12825. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12826. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12827. msm_routing_put_audio_mixer),
  12828. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12829. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12830. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12831. msm_routing_put_audio_mixer),
  12832. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12833. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12834. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12835. msm_routing_put_audio_mixer),
  12836. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12837. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12838. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12839. msm_routing_put_audio_mixer),
  12840. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12841. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12842. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12843. msm_routing_put_audio_mixer),
  12844. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12845. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12846. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12847. msm_routing_put_audio_mixer),
  12848. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12849. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12850. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12851. msm_routing_put_audio_mixer),
  12852. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12853. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12854. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12855. msm_routing_put_audio_mixer),
  12856. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12857. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12858. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12859. msm_routing_put_audio_mixer),
  12860. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12861. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12862. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12863. msm_routing_put_audio_mixer),
  12864. };
  12865. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  12866. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12867. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12868. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12869. msm_routing_put_audio_mixer),
  12870. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12871. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12872. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12873. msm_routing_put_audio_mixer),
  12874. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12875. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12876. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12877. msm_routing_put_audio_mixer),
  12878. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12879. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12880. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12881. msm_routing_put_audio_mixer),
  12882. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12883. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12884. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12885. msm_routing_put_audio_mixer),
  12886. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12887. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12888. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12889. msm_routing_put_audio_mixer),
  12890. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12891. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12892. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12893. msm_routing_put_audio_mixer),
  12894. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12895. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12896. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12897. msm_routing_put_audio_mixer),
  12898. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12899. MSM_BACKEND_DAI_INT_FM_TX,
  12900. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12901. msm_routing_put_audio_mixer),
  12902. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12903. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12904. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12905. msm_routing_put_audio_mixer),
  12906. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12907. MSM_BACKEND_DAI_AFE_PCM_TX,
  12908. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12909. msm_routing_put_audio_mixer),
  12910. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12911. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12912. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12913. msm_routing_put_audio_mixer),
  12914. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12915. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12916. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12917. msm_routing_put_audio_mixer),
  12918. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12919. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12920. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12921. msm_routing_put_audio_mixer),
  12922. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12923. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12924. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12925. msm_routing_put_audio_mixer),
  12926. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12927. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12928. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12929. msm_routing_put_audio_mixer),
  12930. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12931. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12932. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12933. msm_routing_put_audio_mixer),
  12934. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12935. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12936. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12937. msm_routing_put_audio_mixer),
  12938. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12939. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12940. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12941. msm_routing_put_audio_mixer),
  12942. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12943. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12944. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12945. msm_routing_put_audio_mixer),
  12946. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12947. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12948. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12949. msm_routing_put_audio_mixer),
  12950. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12951. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12952. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12953. msm_routing_put_audio_mixer),
  12954. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12955. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12956. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12957. msm_routing_put_audio_mixer),
  12958. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12959. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12960. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12961. msm_routing_put_audio_mixer),
  12962. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12963. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12964. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12965. msm_routing_put_audio_mixer),
  12966. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12967. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12968. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12969. msm_routing_put_audio_mixer),
  12970. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12971. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12972. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12973. msm_routing_put_audio_mixer),
  12974. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12975. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12976. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12977. msm_routing_put_audio_mixer),
  12978. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12979. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12980. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12981. msm_routing_put_audio_mixer),
  12982. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12983. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12984. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12985. msm_routing_put_audio_mixer),
  12986. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12987. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12988. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12989. msm_routing_put_audio_mixer),
  12990. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12991. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12992. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12993. msm_routing_put_audio_mixer),
  12994. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12995. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12996. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12997. msm_routing_put_audio_mixer),
  12998. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12999. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13000. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13001. msm_routing_put_audio_mixer),
  13002. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13003. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13004. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13005. msm_routing_put_audio_mixer),
  13006. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13007. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13008. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13009. msm_routing_put_audio_mixer),
  13010. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13011. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13012. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13013. msm_routing_put_audio_mixer),
  13014. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13015. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13016. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13017. msm_routing_put_audio_mixer),
  13018. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13019. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13020. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13021. msm_routing_put_audio_mixer),
  13022. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13023. MSM_BACKEND_DAI_USB_TX,
  13024. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13025. msm_routing_put_audio_mixer),
  13026. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13027. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13028. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13029. msm_routing_put_audio_mixer),
  13030. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13031. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13032. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13033. msm_routing_put_audio_mixer),
  13034. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13035. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13036. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13037. msm_routing_put_audio_mixer),
  13038. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13039. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13040. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13041. msm_routing_put_audio_mixer),
  13042. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13043. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13044. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13045. msm_routing_put_audio_mixer),
  13046. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13047. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13048. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13049. msm_routing_put_audio_mixer),
  13050. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13051. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13052. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13053. msm_routing_put_audio_mixer),
  13054. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13055. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13056. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13057. msm_routing_put_audio_mixer),
  13058. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13059. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13060. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13061. msm_routing_put_audio_mixer),
  13062. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13063. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13064. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13065. msm_routing_put_audio_mixer),
  13066. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13067. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13068. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13069. msm_routing_put_audio_mixer),
  13070. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13071. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13072. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13073. msm_routing_put_audio_mixer),
  13074. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13075. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13076. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13077. msm_routing_put_audio_mixer),
  13078. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13079. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13080. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13081. msm_routing_put_audio_mixer),
  13082. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13083. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13084. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13085. msm_routing_put_audio_mixer),
  13086. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13087. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13088. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13089. msm_routing_put_audio_mixer),
  13090. };
  13091. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  13092. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13093. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13094. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13095. msm_routing_put_audio_mixer),
  13096. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13097. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13098. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13099. msm_routing_put_audio_mixer),
  13100. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13101. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13102. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13103. msm_routing_put_audio_mixer),
  13104. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13105. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13106. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13107. msm_routing_put_audio_mixer),
  13108. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13109. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13110. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13111. msm_routing_put_audio_mixer),
  13112. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13113. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13114. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13115. msm_routing_put_audio_mixer),
  13116. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13117. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13118. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13119. msm_routing_put_audio_mixer),
  13120. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13121. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13122. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13123. msm_routing_put_audio_mixer),
  13124. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13125. MSM_BACKEND_DAI_INT_FM_TX,
  13126. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13127. msm_routing_put_audio_mixer),
  13128. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13129. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13130. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13131. msm_routing_put_audio_mixer),
  13132. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13133. MSM_BACKEND_DAI_AFE_PCM_TX,
  13134. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13135. msm_routing_put_audio_mixer),
  13136. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13137. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13138. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13139. msm_routing_put_audio_mixer),
  13140. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13141. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13142. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13143. msm_routing_put_audio_mixer),
  13144. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13145. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13146. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13147. msm_routing_put_audio_mixer),
  13148. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13149. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13150. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13151. msm_routing_put_audio_mixer),
  13152. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13153. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13154. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13155. msm_routing_put_audio_mixer),
  13156. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13157. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13158. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13159. msm_routing_put_audio_mixer),
  13160. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13161. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13162. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13163. msm_routing_put_audio_mixer),
  13164. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13165. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13166. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13167. msm_routing_put_audio_mixer),
  13168. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13169. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13170. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13171. msm_routing_put_audio_mixer),
  13172. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13173. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13174. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13175. msm_routing_put_audio_mixer),
  13176. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13177. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13178. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13179. msm_routing_put_audio_mixer),
  13180. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13181. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13182. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13183. msm_routing_put_audio_mixer),
  13184. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13185. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13186. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13187. msm_routing_put_audio_mixer),
  13188. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13189. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13190. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13191. msm_routing_put_audio_mixer),
  13192. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13193. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13194. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13195. msm_routing_put_audio_mixer),
  13196. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13197. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13198. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13199. msm_routing_put_audio_mixer),
  13200. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13201. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13202. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13203. msm_routing_put_audio_mixer),
  13204. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13205. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13206. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13207. msm_routing_put_audio_mixer),
  13208. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13209. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13210. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13211. msm_routing_put_audio_mixer),
  13212. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13213. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13214. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13215. msm_routing_put_audio_mixer),
  13216. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13217. MSM_BACKEND_DAI_USB_TX,
  13218. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13219. msm_routing_put_audio_mixer),
  13220. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13221. MSM_BACKEND_DAI_MI2S_TX,
  13222. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13223. msm_routing_put_audio_mixer),
  13224. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13225. MSM_BACKEND_DAI_AUXPCM_TX,
  13226. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13227. msm_routing_put_audio_mixer),
  13228. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13229. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13230. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13231. msm_routing_put_audio_mixer),
  13232. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13233. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13234. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13235. msm_routing_put_audio_mixer),
  13236. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13237. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13238. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13239. msm_routing_put_audio_mixer),
  13240. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13241. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13242. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13243. msm_routing_put_audio_mixer),
  13244. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13245. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13246. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13247. msm_routing_put_audio_mixer),
  13248. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13249. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13250. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13251. msm_routing_put_audio_mixer),
  13252. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13253. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13254. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13255. msm_routing_put_audio_mixer),
  13256. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13257. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13258. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13259. msm_routing_put_audio_mixer),
  13260. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13261. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13262. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13263. msm_routing_get_audio_mixer,
  13264. msm_routing_put_audio_mixer),
  13265. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13266. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13267. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13268. msm_routing_get_audio_mixer,
  13269. msm_routing_put_audio_mixer),
  13270. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13271. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13272. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13273. msm_routing_get_audio_mixer,
  13274. msm_routing_put_audio_mixer),
  13275. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13276. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13277. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13278. msm_routing_get_audio_mixer,
  13279. msm_routing_put_audio_mixer),
  13280. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13281. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13282. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13283. msm_routing_get_audio_mixer,
  13284. msm_routing_put_audio_mixer),
  13285. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13286. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13287. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13288. msm_routing_get_audio_mixer,
  13289. msm_routing_put_audio_mixer),
  13290. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13291. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13292. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13293. msm_routing_put_audio_mixer),
  13294. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13295. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13296. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13297. msm_routing_put_audio_mixer),
  13298. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13299. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13300. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13301. msm_routing_put_audio_mixer),
  13302. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13303. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13304. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13305. msm_routing_put_audio_mixer),
  13306. };
  13307. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  13308. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13309. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13310. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13311. msm_routing_put_audio_mixer),
  13312. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13313. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13314. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13315. msm_routing_put_audio_mixer),
  13316. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13317. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13318. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13319. msm_routing_put_audio_mixer),
  13320. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13321. MSM_BACKEND_DAI_INT_FM_TX,
  13322. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13323. msm_routing_put_audio_mixer),
  13324. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13325. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13326. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13327. msm_routing_put_audio_mixer),
  13328. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13329. MSM_BACKEND_DAI_AFE_PCM_TX,
  13330. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13331. msm_routing_put_audio_mixer),
  13332. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13333. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13334. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13335. msm_routing_put_audio_mixer),
  13336. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13337. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13338. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13339. msm_routing_put_audio_mixer),
  13340. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13341. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13342. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13343. msm_routing_put_audio_mixer),
  13344. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13345. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13346. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13347. msm_routing_put_audio_mixer),
  13348. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13349. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13350. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13351. msm_routing_put_audio_mixer),
  13352. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13353. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13354. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13355. msm_routing_put_audio_mixer),
  13356. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13357. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13358. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13359. msm_routing_put_audio_mixer),
  13360. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13361. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13362. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13363. msm_routing_put_audio_mixer),
  13364. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13365. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13366. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13367. msm_routing_put_audio_mixer),
  13368. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13369. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13370. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13371. msm_routing_put_audio_mixer),
  13372. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13373. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13374. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13375. msm_routing_put_audio_mixer),
  13376. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13377. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13378. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13379. msm_routing_put_audio_mixer),
  13380. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13381. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13382. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13383. msm_routing_put_audio_mixer),
  13384. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13385. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13386. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13387. msm_routing_put_audio_mixer),
  13388. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13389. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13390. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13391. msm_routing_put_audio_mixer),
  13392. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13393. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13394. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13395. msm_routing_put_audio_mixer),
  13396. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13397. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13398. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13399. msm_routing_put_audio_mixer),
  13400. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13401. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13402. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13403. msm_routing_put_audio_mixer),
  13404. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13405. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13406. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13407. msm_routing_put_audio_mixer),
  13408. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13409. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13410. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13411. msm_routing_put_audio_mixer),
  13412. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13413. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13414. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13415. msm_routing_put_audio_mixer),
  13416. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13417. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13418. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13419. msm_routing_put_audio_mixer),
  13420. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13421. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13422. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13423. msm_routing_put_audio_mixer),
  13424. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13425. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13426. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13427. msm_routing_put_audio_mixer),
  13428. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13429. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13430. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13431. msm_routing_put_audio_mixer),
  13432. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13433. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13434. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13435. msm_routing_put_audio_mixer),
  13436. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13437. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13438. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13439. msm_routing_put_audio_mixer),
  13440. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13441. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13442. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13443. msm_routing_put_audio_mixer),
  13444. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13445. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13446. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13447. msm_routing_put_audio_mixer),
  13448. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13449. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13450. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13451. msm_routing_put_audio_mixer),
  13452. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13453. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13454. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13455. msm_routing_put_audio_mixer),
  13456. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13457. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13458. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13459. msm_routing_put_audio_mixer),
  13460. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13461. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13462. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13463. msm_routing_put_audio_mixer),
  13464. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13465. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13466. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13467. msm_routing_put_audio_mixer),
  13468. };
  13469. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  13470. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13471. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13472. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13473. msm_routing_put_audio_mixer),
  13474. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13475. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13476. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13477. msm_routing_put_audio_mixer),
  13478. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13479. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13480. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13481. msm_routing_put_audio_mixer),
  13482. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13483. MSM_BACKEND_DAI_INT_FM_TX,
  13484. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13485. msm_routing_put_audio_mixer),
  13486. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13487. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13488. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13489. msm_routing_put_audio_mixer),
  13490. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13491. MSM_BACKEND_DAI_AFE_PCM_TX,
  13492. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13493. msm_routing_put_audio_mixer),
  13494. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13495. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13496. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13497. msm_routing_put_audio_mixer),
  13498. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13499. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13500. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13501. msm_routing_put_audio_mixer),
  13502. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13503. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13504. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13505. msm_routing_put_audio_mixer),
  13506. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13507. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13508. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13509. msm_routing_put_audio_mixer),
  13510. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13511. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13512. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13513. msm_routing_put_audio_mixer),
  13514. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13515. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13516. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13517. msm_routing_put_audio_mixer),
  13518. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13519. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13520. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13521. msm_routing_put_audio_mixer),
  13522. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13523. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13524. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13525. msm_routing_put_audio_mixer),
  13526. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13527. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13528. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13529. msm_routing_put_audio_mixer),
  13530. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13531. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13532. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13533. msm_routing_put_audio_mixer),
  13534. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13535. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13536. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13537. msm_routing_put_audio_mixer),
  13538. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13539. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13540. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13541. msm_routing_put_audio_mixer),
  13542. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13543. MSM_BACKEND_DAI_USB_TX,
  13544. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13545. msm_routing_put_audio_mixer),
  13546. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13547. MSM_BACKEND_DAI_MI2S_TX,
  13548. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13549. msm_routing_put_audio_mixer),
  13550. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13551. MSM_BACKEND_DAI_AUXPCM_TX,
  13552. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13553. msm_routing_put_audio_mixer),
  13554. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13555. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13556. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13557. msm_routing_put_audio_mixer),
  13558. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  13559. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13560. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13561. msm_routing_put_audio_mixer),
  13562. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13563. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13564. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13565. msm_routing_put_audio_mixer),
  13566. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13567. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13568. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13569. msm_routing_put_audio_mixer),
  13570. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13571. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13572. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13573. msm_routing_put_audio_mixer),
  13574. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13575. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13576. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13577. msm_routing_put_audio_mixer),
  13578. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13579. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13580. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13581. msm_routing_put_audio_mixer),
  13582. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13583. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13584. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13585. msm_routing_put_audio_mixer),
  13586. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13587. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13588. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13589. msm_routing_put_audio_mixer),
  13590. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13591. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13592. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13593. msm_routing_put_audio_mixer),
  13594. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13595. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13596. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13597. msm_routing_put_audio_mixer),
  13598. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13599. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13600. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13601. msm_routing_put_audio_mixer),
  13602. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13603. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13604. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13605. msm_routing_get_audio_mixer,
  13606. msm_routing_put_audio_mixer),
  13607. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13608. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13609. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13610. msm_routing_get_audio_mixer,
  13611. msm_routing_put_audio_mixer),
  13612. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13613. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13614. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13615. msm_routing_get_audio_mixer,
  13616. msm_routing_put_audio_mixer),
  13617. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13618. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13619. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13620. msm_routing_get_audio_mixer,
  13621. msm_routing_put_audio_mixer),
  13622. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13623. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13624. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13625. 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_MULTIMEDIA10, 1, 0,
  13630. msm_routing_get_audio_mixer,
  13631. msm_routing_put_audio_mixer),
  13632. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13633. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13634. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13635. msm_routing_put_audio_mixer),
  13636. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13637. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13638. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13639. msm_routing_put_audio_mixer),
  13640. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13641. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13642. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13643. msm_routing_put_audio_mixer),
  13644. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13645. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13646. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13647. msm_routing_put_audio_mixer),
  13648. };
  13649. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  13650. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13651. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13652. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13653. msm_routing_put_audio_mixer),
  13654. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13655. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13656. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13657. msm_routing_put_audio_mixer),
  13658. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13659. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13660. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13661. msm_routing_put_audio_mixer),
  13662. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13663. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13664. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13665. msm_routing_put_audio_mixer),
  13666. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13667. MSM_BACKEND_DAI_INT_FM_TX,
  13668. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13669. msm_routing_put_audio_mixer),
  13670. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13671. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13672. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13673. msm_routing_put_audio_mixer),
  13674. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13675. MSM_BACKEND_DAI_AFE_PCM_TX,
  13676. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13677. msm_routing_put_audio_mixer),
  13678. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13679. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13680. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13681. msm_routing_put_audio_mixer),
  13682. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13683. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13684. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13685. msm_routing_put_audio_mixer),
  13686. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13687. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13688. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13689. msm_routing_put_audio_mixer),
  13690. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13691. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13692. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13693. msm_routing_put_audio_mixer),
  13694. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13695. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13696. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13697. msm_routing_put_audio_mixer),
  13698. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13699. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13700. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13701. msm_routing_put_audio_mixer),
  13702. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13703. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13704. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13705. msm_routing_put_audio_mixer),
  13706. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13707. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13708. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13709. msm_routing_put_audio_mixer),
  13710. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13711. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13712. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13713. msm_routing_put_audio_mixer),
  13714. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13715. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13716. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13717. msm_routing_put_audio_mixer),
  13718. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13719. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13720. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13721. msm_routing_get_audio_mixer,
  13722. msm_routing_put_audio_mixer),
  13723. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13724. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13725. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13726. msm_routing_get_audio_mixer,
  13727. msm_routing_put_audio_mixer),
  13728. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13729. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13730. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13731. msm_routing_get_audio_mixer,
  13732. msm_routing_put_audio_mixer),
  13733. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13734. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13735. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13736. msm_routing_get_audio_mixer,
  13737. msm_routing_put_audio_mixer),
  13738. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13739. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13740. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13741. msm_routing_get_audio_mixer,
  13742. msm_routing_put_audio_mixer),
  13743. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13744. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13745. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13746. msm_routing_get_audio_mixer,
  13747. msm_routing_put_audio_mixer),
  13748. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13749. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13750. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13751. msm_routing_put_audio_mixer),
  13752. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13753. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13754. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13755. msm_routing_put_audio_mixer),
  13756. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13757. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13758. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13759. msm_routing_put_audio_mixer),
  13760. };
  13761. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  13762. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13763. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13764. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13765. msm_routing_put_audio_mixer),
  13766. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13767. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13768. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13769. msm_routing_put_audio_mixer),
  13770. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13771. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13772. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13773. msm_routing_put_audio_mixer),
  13774. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13775. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13776. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13777. msm_routing_put_audio_mixer),
  13778. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13779. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13780. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13781. msm_routing_put_audio_mixer),
  13782. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13783. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13784. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13785. msm_routing_put_audio_mixer),
  13786. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13787. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13788. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13789. msm_routing_put_audio_mixer),
  13790. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13791. MSM_BACKEND_DAI_INT_FM_TX,
  13792. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13793. msm_routing_put_audio_mixer),
  13794. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13795. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13796. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13797. msm_routing_put_audio_mixer),
  13798. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13799. MSM_BACKEND_DAI_AFE_PCM_TX,
  13800. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13801. msm_routing_put_audio_mixer),
  13802. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13803. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13804. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13805. msm_routing_put_audio_mixer),
  13806. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13807. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13808. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13809. msm_routing_put_audio_mixer),
  13810. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13811. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13812. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13813. msm_routing_put_audio_mixer),
  13814. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13815. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13816. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13817. msm_routing_put_audio_mixer),
  13818. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13819. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13820. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13821. msm_routing_put_audio_mixer),
  13822. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13823. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13824. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13825. msm_routing_put_audio_mixer),
  13826. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13827. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13828. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13829. msm_routing_put_audio_mixer),
  13830. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13831. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13832. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13833. msm_routing_put_audio_mixer),
  13834. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13835. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13836. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13837. msm_routing_get_audio_mixer,
  13838. msm_routing_put_audio_mixer),
  13839. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13840. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13841. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13842. msm_routing_get_audio_mixer,
  13843. msm_routing_put_audio_mixer),
  13844. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13845. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13846. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13847. msm_routing_get_audio_mixer,
  13848. msm_routing_put_audio_mixer),
  13849. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13850. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13851. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13852. msm_routing_get_audio_mixer,
  13853. msm_routing_put_audio_mixer),
  13854. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13855. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13856. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13857. msm_routing_get_audio_mixer,
  13858. msm_routing_put_audio_mixer),
  13859. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13860. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13861. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13862. msm_routing_get_audio_mixer,
  13863. msm_routing_put_audio_mixer),
  13864. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13865. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13866. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13867. msm_routing_put_audio_mixer),
  13868. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13869. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13870. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13871. msm_routing_put_audio_mixer),
  13872. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13873. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13874. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13875. msm_routing_put_audio_mixer),
  13876. };
  13877. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  13878. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13879. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13880. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13881. msm_routing_put_audio_mixer),
  13882. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13883. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13884. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13885. msm_routing_put_audio_mixer),
  13886. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13887. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13888. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13889. msm_routing_put_audio_mixer),
  13890. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13891. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13892. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13893. msm_routing_put_audio_mixer),
  13894. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13895. MSM_BACKEND_DAI_INT_FM_TX,
  13896. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13897. msm_routing_put_audio_mixer),
  13898. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13899. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13900. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13901. msm_routing_put_audio_mixer),
  13902. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13903. MSM_BACKEND_DAI_AFE_PCM_TX,
  13904. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13905. msm_routing_put_audio_mixer),
  13906. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13907. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13908. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13909. msm_routing_put_audio_mixer),
  13910. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13911. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13912. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13913. msm_routing_put_audio_mixer),
  13914. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13915. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13916. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13917. msm_routing_put_audio_mixer),
  13918. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13919. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13920. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13921. msm_routing_put_audio_mixer),
  13922. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13923. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13924. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13925. msm_routing_put_audio_mixer),
  13926. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13927. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13928. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13929. msm_routing_put_audio_mixer),
  13930. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13931. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13932. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13933. msm_routing_put_audio_mixer),
  13934. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13935. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13936. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13937. msm_routing_put_audio_mixer),
  13938. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13939. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13940. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13941. msm_routing_put_audio_mixer),
  13942. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13943. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13944. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13945. msm_routing_put_audio_mixer),
  13946. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13947. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13948. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13949. msm_routing_put_audio_mixer),
  13950. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13951. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13952. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13953. msm_routing_get_audio_mixer,
  13954. msm_routing_put_audio_mixer),
  13955. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13956. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13957. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13958. msm_routing_get_audio_mixer,
  13959. msm_routing_put_audio_mixer),
  13960. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13961. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13962. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13963. msm_routing_get_audio_mixer,
  13964. msm_routing_put_audio_mixer),
  13965. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13966. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13967. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13968. msm_routing_get_audio_mixer,
  13969. msm_routing_put_audio_mixer),
  13970. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13971. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13972. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13973. msm_routing_get_audio_mixer,
  13974. msm_routing_put_audio_mixer),
  13975. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13976. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13977. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13978. msm_routing_get_audio_mixer,
  13979. msm_routing_put_audio_mixer),
  13980. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13981. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13982. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13983. msm_routing_put_audio_mixer),
  13984. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13985. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13986. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13987. msm_routing_put_audio_mixer),
  13988. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13989. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13990. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13991. msm_routing_put_audio_mixer),
  13992. };
  13993. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  13994. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13995. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13996. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13997. msm_routing_put_audio_mixer),
  13998. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13999. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14000. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14001. msm_routing_put_audio_mixer),
  14002. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14003. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14004. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14005. msm_routing_put_audio_mixer),
  14006. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14007. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14008. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14009. msm_routing_put_audio_mixer),
  14010. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14011. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14012. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14013. msm_routing_put_audio_mixer),
  14014. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14015. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14016. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14017. msm_routing_put_audio_mixer),
  14018. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14019. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14020. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14021. msm_routing_put_audio_mixer),
  14022. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14023. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14024. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14025. msm_routing_put_audio_mixer),
  14026. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14027. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14028. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14029. msm_routing_put_audio_mixer),
  14030. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14031. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14032. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14033. msm_routing_put_audio_mixer),
  14034. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14035. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14036. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14037. msm_routing_put_audio_mixer),
  14038. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14039. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14040. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14041. msm_routing_put_audio_mixer),
  14042. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14043. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14044. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14045. msm_routing_put_audio_mixer),
  14046. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14047. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14048. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14049. msm_routing_put_audio_mixer),
  14050. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14051. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14052. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14053. msm_routing_put_audio_mixer),
  14054. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14055. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14056. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14057. msm_routing_put_audio_mixer),
  14058. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14059. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14060. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14061. msm_routing_put_audio_mixer),
  14062. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14063. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14064. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14065. msm_routing_put_audio_mixer),
  14066. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14067. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14068. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14069. msm_routing_put_audio_mixer),
  14070. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14071. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14072. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14073. msm_routing_put_audio_mixer),
  14074. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14075. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14076. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14077. msm_routing_put_audio_mixer),
  14078. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14079. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14080. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14081. msm_routing_put_audio_mixer),
  14082. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14083. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14084. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14085. msm_routing_put_audio_mixer),
  14086. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14087. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14088. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14089. msm_routing_put_audio_mixer),
  14090. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14091. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14092. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14093. msm_routing_put_audio_mixer),
  14094. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14095. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14096. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14097. msm_routing_put_audio_mixer),
  14098. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14099. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14100. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14101. msm_routing_put_audio_mixer),
  14102. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14103. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14104. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14105. msm_routing_put_audio_mixer),
  14106. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14107. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14108. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14109. msm_routing_put_audio_mixer),
  14110. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14111. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14112. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14113. msm_routing_put_audio_mixer),
  14114. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14115. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14116. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14117. msm_routing_put_audio_mixer),
  14118. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14119. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14120. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14121. msm_routing_put_audio_mixer),
  14122. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14123. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14124. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14125. msm_routing_put_audio_mixer),
  14126. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14127. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14128. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14129. msm_routing_put_audio_mixer),
  14130. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14131. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14132. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14133. msm_routing_put_audio_mixer),
  14134. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14135. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14136. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14137. msm_routing_put_audio_mixer),
  14138. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14139. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14140. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14141. msm_routing_put_audio_mixer),
  14142. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14143. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14144. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14145. msm_routing_put_audio_mixer),
  14146. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14147. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14148. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14149. msm_routing_put_audio_mixer),
  14150. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14151. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14152. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14153. msm_routing_put_audio_mixer),
  14154. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14155. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14156. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14157. msm_routing_put_audio_mixer),
  14158. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14159. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14160. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14161. msm_routing_put_audio_mixer),
  14162. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14163. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14164. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14165. msm_routing_put_audio_mixer),
  14166. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14167. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14168. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14169. msm_routing_put_audio_mixer),
  14170. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14171. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14172. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14173. msm_routing_put_audio_mixer),
  14174. };
  14175. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  14176. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14177. MSM_BACKEND_DAI_AUXPCM_TX,
  14178. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14179. msm_routing_put_audio_mixer),
  14180. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14181. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14182. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14183. msm_routing_put_audio_mixer),
  14184. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14185. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14186. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14187. msm_routing_put_audio_mixer),
  14188. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14189. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14190. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14191. msm_routing_put_audio_mixer),
  14192. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14193. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14194. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14195. msm_routing_put_audio_mixer),
  14196. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14197. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14198. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14199. msm_routing_put_audio_mixer),
  14200. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14201. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14202. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14203. msm_routing_put_audio_mixer),
  14204. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14205. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14206. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14207. msm_routing_put_audio_mixer),
  14208. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14209. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14210. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14211. msm_routing_put_audio_mixer),
  14212. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14213. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14214. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14215. msm_routing_put_audio_mixer),
  14216. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14217. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14218. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14219. msm_routing_put_audio_mixer),
  14220. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14221. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14222. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14223. msm_routing_put_audio_mixer),
  14224. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14225. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14226. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14227. msm_routing_put_audio_mixer),
  14228. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14229. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14230. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14231. msm_routing_put_audio_mixer),
  14232. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14233. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14234. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14235. msm_routing_put_audio_mixer),
  14236. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14237. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14238. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14239. msm_routing_put_audio_mixer),
  14240. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14241. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14242. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14243. msm_routing_put_audio_mixer),
  14244. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14245. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14246. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14247. msm_routing_put_audio_mixer),
  14248. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14249. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14250. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14251. msm_routing_put_audio_mixer),
  14252. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14253. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14254. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14255. msm_routing_put_audio_mixer),
  14256. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14257. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14258. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14259. msm_routing_put_audio_mixer),
  14260. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14261. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14262. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14263. msm_routing_put_audio_mixer),
  14264. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14265. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14266. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14267. msm_routing_put_audio_mixer),
  14268. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14269. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14270. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14271. msm_routing_put_audio_mixer),
  14272. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14273. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14274. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14275. msm_routing_put_audio_mixer),
  14276. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14277. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14278. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14279. msm_routing_put_audio_mixer),
  14280. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14281. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14282. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14283. msm_routing_put_audio_mixer),
  14284. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14285. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14286. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14287. msm_routing_put_audio_mixer),
  14288. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14289. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14290. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14291. msm_routing_put_audio_mixer),
  14292. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14293. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14294. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14295. msm_routing_put_audio_mixer),
  14296. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14297. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14298. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14299. msm_routing_put_audio_mixer),
  14300. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14301. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14302. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14303. msm_routing_put_audio_mixer),
  14304. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14305. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14306. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14307. msm_routing_put_audio_mixer),
  14308. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14309. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14310. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14311. msm_routing_put_audio_mixer),
  14312. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14313. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14314. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14315. msm_routing_put_audio_mixer),
  14316. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14317. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14318. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14319. msm_routing_put_audio_mixer),
  14320. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14321. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14322. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14323. msm_routing_put_audio_mixer),
  14324. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14325. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14326. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14327. msm_routing_put_audio_mixer),
  14328. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14329. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14330. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14331. msm_routing_put_audio_mixer),
  14332. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14333. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14334. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14335. msm_routing_put_audio_mixer),
  14336. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14337. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14338. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14339. msm_routing_put_audio_mixer),
  14340. };
  14341. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  14342. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14343. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14344. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14345. msm_routing_put_audio_mixer),
  14346. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14347. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14348. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14349. msm_routing_put_audio_mixer),
  14350. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14351. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14352. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14353. msm_routing_put_audio_mixer),
  14354. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14355. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14356. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14357. msm_routing_put_audio_mixer),
  14358. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14359. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14360. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14361. msm_routing_put_audio_mixer),
  14362. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14363. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14364. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14365. msm_routing_put_audio_mixer),
  14366. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14367. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14368. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14369. msm_routing_put_audio_mixer),
  14370. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14371. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14372. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14373. msm_routing_put_audio_mixer),
  14374. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14375. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14376. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14377. msm_routing_put_audio_mixer),
  14378. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14379. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14380. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14381. msm_routing_put_audio_mixer),
  14382. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14383. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14384. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14385. msm_routing_put_audio_mixer),
  14386. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14387. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14388. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14389. msm_routing_put_audio_mixer),
  14390. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14391. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14392. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14393. msm_routing_put_audio_mixer),
  14394. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14395. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14396. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14397. msm_routing_put_audio_mixer),
  14398. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14399. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14400. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14401. msm_routing_put_audio_mixer),
  14402. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14403. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14404. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14405. msm_routing_put_audio_mixer),
  14406. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14407. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14408. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14409. msm_routing_put_audio_mixer),
  14410. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14411. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14412. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14413. msm_routing_put_audio_mixer),
  14414. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14415. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14416. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14417. msm_routing_put_audio_mixer),
  14418. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14419. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14420. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14421. msm_routing_put_audio_mixer),
  14422. };
  14423. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  14424. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14425. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14426. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14427. msm_routing_put_audio_mixer),
  14428. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14429. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14430. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14431. msm_routing_put_audio_mixer),
  14432. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  14433. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  14434. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14435. msm_routing_put_audio_mixer),
  14436. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14437. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14438. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14439. msm_routing_put_audio_mixer),
  14440. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14441. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14442. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14443. msm_routing_put_audio_mixer),
  14444. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14445. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14446. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14447. msm_routing_put_audio_mixer),
  14448. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14449. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14450. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14451. msm_routing_put_audio_mixer),
  14452. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14453. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14454. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14455. msm_routing_put_audio_mixer),
  14456. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14457. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14458. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14459. msm_routing_put_audio_mixer),
  14460. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14461. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14462. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14463. msm_routing_put_audio_mixer),
  14464. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14465. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14466. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14467. msm_routing_put_audio_mixer),
  14468. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14469. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14470. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14471. msm_routing_put_audio_mixer),
  14472. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14473. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14474. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14475. msm_routing_put_audio_mixer),
  14476. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14477. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14478. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14479. msm_routing_put_audio_mixer),
  14480. };
  14481. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  14482. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14483. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14484. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14485. msm_routing_put_audio_mixer),
  14486. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14487. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14488. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14489. msm_routing_put_audio_mixer),
  14490. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14491. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14492. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14493. msm_routing_put_audio_mixer),
  14494. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14495. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14496. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14497. msm_routing_put_audio_mixer),
  14498. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14499. MSM_BACKEND_DAI_INT_FM_TX,
  14500. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14501. msm_routing_put_audio_mixer),
  14502. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14503. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14504. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14505. msm_routing_put_audio_mixer),
  14506. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14507. MSM_BACKEND_DAI_AFE_PCM_TX,
  14508. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14509. msm_routing_put_audio_mixer),
  14510. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14511. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14512. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14513. msm_routing_put_audio_mixer),
  14514. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14515. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14516. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14517. msm_routing_put_audio_mixer),
  14518. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14519. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14520. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14521. msm_routing_put_audio_mixer),
  14522. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14523. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14524. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14525. msm_routing_put_audio_mixer),
  14526. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14527. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14528. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14529. msm_routing_put_audio_mixer),
  14530. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14531. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14532. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14533. msm_routing_put_audio_mixer),
  14534. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14535. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14536. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14537. msm_routing_put_audio_mixer),
  14538. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14539. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14540. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14541. msm_routing_put_audio_mixer),
  14542. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14543. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14544. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14545. msm_routing_put_audio_mixer),
  14546. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14547. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14548. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14549. msm_routing_put_audio_mixer),
  14550. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14551. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14552. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14553. msm_routing_put_audio_mixer),
  14554. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14555. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14556. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14557. msm_routing_get_audio_mixer,
  14558. msm_routing_put_audio_mixer),
  14559. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14560. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14561. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14562. msm_routing_get_audio_mixer,
  14563. msm_routing_put_audio_mixer),
  14564. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14565. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14566. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14567. msm_routing_get_audio_mixer,
  14568. msm_routing_put_audio_mixer),
  14569. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14570. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14571. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14572. msm_routing_get_audio_mixer,
  14573. msm_routing_put_audio_mixer),
  14574. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14575. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14576. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14577. msm_routing_get_audio_mixer,
  14578. msm_routing_put_audio_mixer),
  14579. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14580. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14581. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14582. msm_routing_get_audio_mixer,
  14583. msm_routing_put_audio_mixer),
  14584. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14585. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14586. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14587. msm_routing_put_audio_mixer),
  14588. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14589. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14590. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14591. msm_routing_put_audio_mixer),
  14592. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14593. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14594. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14595. msm_routing_put_audio_mixer),
  14596. };
  14597. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  14598. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14599. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14600. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14601. msm_routing_put_audio_mixer),
  14602. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14603. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14604. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14605. msm_routing_put_audio_mixer),
  14606. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14607. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14608. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14609. msm_routing_put_audio_mixer),
  14610. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14611. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14612. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14613. msm_routing_put_audio_mixer),
  14614. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14615. MSM_BACKEND_DAI_INT_FM_TX,
  14616. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14617. msm_routing_put_audio_mixer),
  14618. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14619. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14620. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14621. msm_routing_put_audio_mixer),
  14622. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14623. MSM_BACKEND_DAI_AFE_PCM_TX,
  14624. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14625. msm_routing_put_audio_mixer),
  14626. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14627. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14628. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14629. msm_routing_put_audio_mixer),
  14630. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14631. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14632. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14633. msm_routing_put_audio_mixer),
  14634. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14635. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14636. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14637. msm_routing_put_audio_mixer),
  14638. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14639. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14640. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14641. msm_routing_put_audio_mixer),
  14642. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14643. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14644. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14645. msm_routing_put_audio_mixer),
  14646. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14647. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14648. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14649. msm_routing_put_audio_mixer),
  14650. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14651. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14652. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14653. msm_routing_put_audio_mixer),
  14654. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14655. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14656. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14657. msm_routing_put_audio_mixer),
  14658. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14659. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14660. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14661. msm_routing_put_audio_mixer),
  14662. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14663. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14664. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14665. msm_routing_put_audio_mixer),
  14666. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14667. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14668. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14669. msm_routing_put_audio_mixer),
  14670. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14671. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14672. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14673. msm_routing_get_audio_mixer,
  14674. msm_routing_put_audio_mixer),
  14675. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14676. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14677. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14678. msm_routing_get_audio_mixer,
  14679. msm_routing_put_audio_mixer),
  14680. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14681. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14682. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14683. msm_routing_get_audio_mixer,
  14684. msm_routing_put_audio_mixer),
  14685. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14686. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14687. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14688. msm_routing_get_audio_mixer,
  14689. msm_routing_put_audio_mixer),
  14690. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14691. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14692. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14693. msm_routing_get_audio_mixer,
  14694. msm_routing_put_audio_mixer),
  14695. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14696. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14697. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14698. msm_routing_get_audio_mixer,
  14699. msm_routing_put_audio_mixer),
  14700. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14701. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14702. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14703. msm_routing_put_audio_mixer),
  14704. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14705. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14706. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14707. msm_routing_put_audio_mixer),
  14708. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14709. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14710. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14711. msm_routing_put_audio_mixer),
  14712. };
  14713. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  14714. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14715. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14716. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14717. msm_routing_put_audio_mixer),
  14718. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14719. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14720. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14721. msm_routing_put_audio_mixer),
  14722. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14723. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14724. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14725. msm_routing_put_audio_mixer),
  14726. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14727. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14728. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14729. msm_routing_put_audio_mixer),
  14730. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14731. MSM_BACKEND_DAI_INT_FM_TX,
  14732. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14733. msm_routing_put_audio_mixer),
  14734. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14735. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14736. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14737. msm_routing_put_audio_mixer),
  14738. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14739. MSM_BACKEND_DAI_AFE_PCM_TX,
  14740. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14741. msm_routing_put_audio_mixer),
  14742. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14743. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14744. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14745. msm_routing_put_audio_mixer),
  14746. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14747. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14748. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14749. msm_routing_put_audio_mixer),
  14750. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14751. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14752. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14753. msm_routing_put_audio_mixer),
  14754. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14755. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14756. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14757. msm_routing_put_audio_mixer),
  14758. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14759. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14760. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14761. msm_routing_put_audio_mixer),
  14762. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14763. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14764. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14765. msm_routing_put_audio_mixer),
  14766. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14767. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14768. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14769. msm_routing_put_audio_mixer),
  14770. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14771. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14772. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14773. msm_routing_put_audio_mixer),
  14774. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14775. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14776. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14777. msm_routing_put_audio_mixer),
  14778. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14779. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14780. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14781. msm_routing_put_audio_mixer),
  14782. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14783. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14784. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14785. msm_routing_get_audio_mixer,
  14786. msm_routing_put_audio_mixer),
  14787. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14788. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14789. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14790. msm_routing_get_audio_mixer,
  14791. msm_routing_put_audio_mixer),
  14792. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14793. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14794. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14795. msm_routing_get_audio_mixer,
  14796. msm_routing_put_audio_mixer),
  14797. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14798. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14799. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14800. msm_routing_get_audio_mixer,
  14801. msm_routing_put_audio_mixer),
  14802. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14803. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14804. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14805. msm_routing_get_audio_mixer,
  14806. msm_routing_put_audio_mixer),
  14807. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14808. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14809. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14810. msm_routing_get_audio_mixer,
  14811. msm_routing_put_audio_mixer),
  14812. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14813. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14814. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14815. msm_routing_put_audio_mixer),
  14816. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14817. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14818. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14819. msm_routing_put_audio_mixer),
  14820. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14821. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14822. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14823. msm_routing_put_audio_mixer),
  14824. };
  14825. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  14826. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14827. MSM_BACKEND_DAI_PRI_I2S_RX,
  14828. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14829. msm_routing_put_voice_mixer),
  14830. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14831. MSM_BACKEND_DAI_PRI_I2S_RX,
  14832. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14833. msm_routing_put_voice_mixer),
  14834. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14835. MSM_BACKEND_DAI_PRI_I2S_RX,
  14836. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14837. msm_routing_put_voice_mixer),
  14838. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14839. MSM_BACKEND_DAI_PRI_I2S_RX,
  14840. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14841. msm_routing_put_voice_mixer),
  14842. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14843. MSM_BACKEND_DAI_PRI_I2S_RX,
  14844. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14845. msm_routing_put_voice_mixer),
  14846. };
  14847. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  14848. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14849. MSM_BACKEND_DAI_SEC_I2S_RX,
  14850. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14851. msm_routing_put_voice_mixer),
  14852. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14853. MSM_BACKEND_DAI_SEC_I2S_RX,
  14854. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14855. msm_routing_put_voice_mixer),
  14856. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14857. MSM_BACKEND_DAI_SEC_I2S_RX,
  14858. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14859. msm_routing_put_voice_mixer),
  14860. };
  14861. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  14862. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14863. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14864. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14865. msm_routing_put_voice_mixer),
  14866. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14867. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14868. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14869. msm_routing_put_voice_mixer),
  14870. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14871. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14872. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14873. msm_routing_put_voice_mixer),
  14874. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14875. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14876. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14877. msm_routing_put_voice_mixer),
  14878. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14879. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14880. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14881. msm_routing_put_voice_mixer),
  14882. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14883. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14884. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14885. msm_routing_put_voice_mixer),
  14886. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14887. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14888. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14889. msm_routing_put_voice_mixer),
  14890. };
  14891. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  14892. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14893. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14894. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14895. msm_routing_put_voice_mixer),
  14896. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14897. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14898. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14899. msm_routing_put_voice_mixer),
  14900. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14901. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14902. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14903. msm_routing_put_voice_mixer),
  14904. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14905. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14906. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14907. msm_routing_put_voice_mixer),
  14908. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14909. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14910. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14911. msm_routing_put_voice_mixer),
  14912. };
  14913. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  14914. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14915. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14916. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14917. msm_routing_put_voice_mixer),
  14918. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14919. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14920. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14921. msm_routing_put_voice_mixer),
  14922. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14923. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14924. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14925. msm_routing_put_voice_mixer),
  14926. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14927. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14928. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14929. msm_routing_put_voice_mixer),
  14930. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14931. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14932. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14933. msm_routing_put_voice_mixer),
  14934. };
  14935. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  14936. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14937. MSM_BACKEND_DAI_USB_RX,
  14938. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14939. msm_routing_put_voice_mixer),
  14940. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14941. MSM_BACKEND_DAI_USB_RX,
  14942. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14943. msm_routing_put_voice_mixer),
  14944. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14945. MSM_BACKEND_DAI_USB_RX,
  14946. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14947. msm_routing_put_voice_mixer),
  14948. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14949. MSM_BACKEND_DAI_USB_RX,
  14950. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14951. msm_routing_put_voice_mixer),
  14952. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14953. MSM_BACKEND_DAI_USB_RX,
  14954. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14955. msm_routing_put_voice_mixer),
  14956. };
  14957. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  14958. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14959. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14960. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14961. msm_routing_put_voice_mixer),
  14962. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14963. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14964. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14965. msm_routing_put_voice_mixer),
  14966. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14967. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14968. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14969. msm_routing_put_voice_mixer),
  14970. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14971. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14972. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14973. msm_routing_put_voice_mixer),
  14974. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14975. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14976. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14977. msm_routing_put_voice_mixer),
  14978. };
  14979. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  14980. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14981. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14982. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14983. msm_routing_put_voice_mixer),
  14984. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14985. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14986. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14987. msm_routing_put_voice_mixer),
  14988. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14989. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14990. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14991. msm_routing_put_voice_mixer),
  14992. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14993. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14994. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14995. msm_routing_put_voice_mixer),
  14996. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14997. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14998. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14999. msm_routing_put_voice_mixer),
  15000. };
  15001. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  15002. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15003. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15004. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15005. msm_routing_put_voice_mixer),
  15006. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15007. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15008. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15009. msm_routing_put_voice_mixer),
  15010. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15011. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15012. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15013. msm_routing_put_voice_mixer),
  15014. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15015. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15016. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15017. msm_routing_put_voice_mixer),
  15018. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15019. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15020. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15021. msm_routing_put_voice_mixer),
  15022. };
  15023. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  15024. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15025. MSM_BACKEND_DAI_MI2S_RX,
  15026. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15027. msm_routing_put_voice_mixer),
  15028. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15029. MSM_BACKEND_DAI_MI2S_RX,
  15030. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15031. msm_routing_put_voice_mixer),
  15032. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15033. MSM_BACKEND_DAI_MI2S_RX,
  15034. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15035. msm_routing_put_voice_mixer),
  15036. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15037. MSM_BACKEND_DAI_MI2S_RX,
  15038. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15039. msm_routing_put_voice_mixer),
  15040. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15041. MSM_BACKEND_DAI_MI2S_RX,
  15042. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15043. msm_routing_put_voice_mixer),
  15044. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15045. MSM_BACKEND_DAI_MI2S_RX,
  15046. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15047. msm_routing_put_voice_mixer),
  15048. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15049. MSM_BACKEND_DAI_MI2S_RX,
  15050. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15051. msm_routing_put_voice_mixer),
  15052. };
  15053. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  15054. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15055. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15056. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15057. msm_routing_put_voice_mixer),
  15058. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15059. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15060. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15061. msm_routing_put_voice_mixer),
  15062. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15063. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15064. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15065. msm_routing_put_voice_mixer),
  15066. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15067. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15068. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15069. msm_routing_put_voice_mixer),
  15070. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15071. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15072. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15073. msm_routing_put_voice_mixer),
  15074. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15075. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15076. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15077. msm_routing_put_voice_mixer),
  15078. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15079. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15080. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15081. msm_routing_put_voice_mixer),
  15082. };
  15083. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  15084. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15085. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15086. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15087. msm_routing_put_voice_mixer),
  15088. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15089. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15090. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15091. msm_routing_put_voice_mixer),
  15092. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15093. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15094. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15095. msm_routing_put_voice_mixer),
  15096. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15097. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15098. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15099. msm_routing_put_voice_mixer),
  15100. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15101. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15102. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15103. msm_routing_put_voice_mixer),
  15104. };
  15105. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  15106. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15107. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15108. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15109. msm_routing_put_voice_mixer),
  15110. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15111. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15112. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15113. msm_routing_put_voice_mixer),
  15114. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15115. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15116. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15117. msm_routing_put_voice_mixer),
  15118. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15119. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15120. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15121. msm_routing_put_voice_mixer),
  15122. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15123. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15124. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15125. msm_routing_put_voice_mixer),
  15126. };
  15127. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  15128. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15129. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15130. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15131. msm_routing_put_voice_mixer),
  15132. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15133. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15134. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15135. msm_routing_put_voice_mixer),
  15136. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15137. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15138. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15139. msm_routing_put_voice_mixer),
  15140. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15141. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15142. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15143. msm_routing_put_voice_mixer),
  15144. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15145. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15146. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15147. msm_routing_put_voice_mixer),
  15148. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15149. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15150. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15151. msm_routing_put_voice_mixer),
  15152. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15153. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15154. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15155. msm_routing_put_voice_mixer),
  15156. };
  15157. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  15158. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15159. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15160. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15161. msm_routing_put_voice_mixer),
  15162. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15163. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15164. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15165. msm_routing_put_voice_mixer),
  15166. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15167. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15168. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15169. msm_routing_put_voice_mixer),
  15170. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15171. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15172. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15173. msm_routing_put_voice_mixer),
  15174. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15175. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15176. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15177. msm_routing_put_voice_mixer),
  15178. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15179. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15180. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15181. msm_routing_put_voice_mixer),
  15182. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15183. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15184. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15185. msm_routing_put_voice_mixer),
  15186. };
  15187. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  15188. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15189. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15190. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15191. msm_routing_put_voice_mixer),
  15192. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15193. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15194. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15195. msm_routing_put_voice_stub_mixer),
  15196. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15197. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15198. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15199. msm_routing_put_voice_stub_mixer),
  15200. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15201. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15202. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15203. msm_routing_put_voice_mixer),
  15204. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15205. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15206. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15207. msm_routing_put_voice_mixer),
  15208. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15209. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15210. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15211. msm_routing_put_voice_mixer),
  15212. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15213. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15214. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15215. msm_routing_put_voice_mixer),
  15216. };
  15217. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  15218. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15219. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15220. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15221. msm_routing_put_voice_mixer),
  15222. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15223. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15224. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15225. msm_routing_put_voice_mixer),
  15226. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15227. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15228. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15229. msm_routing_put_voice_mixer),
  15230. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15231. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15232. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15233. msm_routing_put_voice_mixer),
  15234. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15235. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15236. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15237. msm_routing_put_voice_mixer),
  15238. };
  15239. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  15240. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15241. MSM_BACKEND_DAI_AFE_PCM_RX,
  15242. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15243. msm_routing_put_voice_mixer),
  15244. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15245. MSM_BACKEND_DAI_AFE_PCM_RX,
  15246. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15247. msm_routing_put_voice_mixer),
  15248. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15249. MSM_BACKEND_DAI_AFE_PCM_RX,
  15250. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15251. msm_routing_put_voice_mixer),
  15252. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15253. MSM_BACKEND_DAI_AFE_PCM_RX,
  15254. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15255. msm_routing_put_voice_mixer),
  15256. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15257. MSM_BACKEND_DAI_AFE_PCM_RX,
  15258. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15259. msm_routing_put_voice_mixer),
  15260. };
  15261. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  15262. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15263. MSM_BACKEND_DAI_AUXPCM_RX,
  15264. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15265. msm_routing_put_voice_mixer),
  15266. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15267. MSM_BACKEND_DAI_AUXPCM_RX,
  15268. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15269. msm_routing_put_voice_mixer),
  15270. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15271. MSM_BACKEND_DAI_AUXPCM_RX,
  15272. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15273. msm_routing_put_voice_mixer),
  15274. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15275. MSM_BACKEND_DAI_AUXPCM_RX,
  15276. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15277. msm_routing_put_voice_mixer),
  15278. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15279. MSM_BACKEND_DAI_AUXPCM_RX,
  15280. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15281. msm_routing_put_voice_mixer),
  15282. };
  15283. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  15284. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15285. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15286. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15287. msm_routing_put_voice_mixer),
  15288. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15289. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15290. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15291. msm_routing_put_voice_mixer),
  15292. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15293. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15294. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15295. msm_routing_put_voice_mixer),
  15296. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15297. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15298. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15299. msm_routing_put_voice_mixer),
  15300. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15301. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15302. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15303. msm_routing_put_voice_mixer),
  15304. };
  15305. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  15306. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15307. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15308. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15309. msm_routing_put_voice_mixer),
  15310. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15311. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15312. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15313. msm_routing_put_voice_mixer),
  15314. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15315. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15316. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15317. msm_routing_put_voice_mixer),
  15318. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15319. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15320. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15321. msm_routing_put_voice_mixer),
  15322. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15323. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15324. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15325. msm_routing_put_voice_mixer),
  15326. };
  15327. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  15328. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15329. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15330. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15331. msm_routing_put_voice_mixer),
  15332. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15333. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15334. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15335. msm_routing_put_voice_mixer),
  15336. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15337. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15338. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15339. msm_routing_put_voice_mixer),
  15340. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15341. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15342. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15343. msm_routing_put_voice_mixer),
  15344. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15345. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15346. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15347. msm_routing_put_voice_mixer),
  15348. };
  15349. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  15350. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15351. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15352. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15353. msm_routing_put_voice_mixer),
  15354. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15355. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15356. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15357. msm_routing_put_voice_mixer),
  15358. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15359. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15360. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15361. msm_routing_put_voice_mixer),
  15362. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15363. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15364. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15365. msm_routing_put_voice_mixer),
  15366. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15367. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15368. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15369. msm_routing_put_voice_mixer),
  15370. };
  15371. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  15372. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15373. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15374. msm_routing_put_voice_mixer),
  15375. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15376. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15377. msm_routing_put_voice_mixer),
  15378. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15379. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15380. msm_routing_put_voice_mixer),
  15381. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15382. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15383. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15384. msm_routing_put_voice_mixer),
  15385. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15386. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15387. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15388. msm_routing_put_voice_mixer),
  15389. };
  15390. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  15391. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15392. MSM_BACKEND_DAI_HDMI_RX,
  15393. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15394. msm_routing_put_voice_mixer),
  15395. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15396. MSM_BACKEND_DAI_HDMI_RX,
  15397. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15398. msm_routing_put_voice_mixer),
  15399. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15400. MSM_BACKEND_DAI_HDMI_RX,
  15401. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15402. msm_routing_put_voice_mixer),
  15403. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15404. MSM_BACKEND_DAI_HDMI_RX,
  15405. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15406. msm_routing_put_voice_mixer),
  15407. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15408. MSM_BACKEND_DAI_HDMI_RX,
  15409. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15410. msm_routing_put_voice_mixer),
  15411. };
  15412. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  15413. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15414. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15415. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15416. msm_routing_put_voice_mixer),
  15417. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15418. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15419. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15420. msm_routing_put_voice_mixer),
  15421. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15422. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15423. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15424. msm_routing_put_voice_mixer),
  15425. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15426. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15427. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15428. msm_routing_put_voice_mixer),
  15429. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15430. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15431. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15432. msm_routing_put_voice_mixer),
  15433. };
  15434. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  15435. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15436. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15437. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15438. msm_routing_put_voice_mixer),
  15439. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15440. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15441. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15442. msm_routing_put_voice_mixer),
  15443. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15444. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15445. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15446. msm_routing_put_voice_mixer),
  15447. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15448. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15449. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15450. msm_routing_put_voice_mixer),
  15451. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15452. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15453. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15454. msm_routing_put_voice_mixer),
  15455. };
  15456. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  15457. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15458. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15459. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15460. msm_routing_put_voice_mixer),
  15461. };
  15462. static const struct snd_kcontrol_new quin_tdm_rx_2_voice_mixer_controls[] = {
  15463. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15464. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15465. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15466. msm_routing_put_voice_mixer),
  15467. };
  15468. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  15469. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15470. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15471. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15472. msm_routing_put_voice_mixer),
  15473. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15474. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15475. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15476. msm_routing_put_voice_mixer),
  15477. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15478. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15479. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15480. msm_routing_put_voice_mixer),
  15481. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15482. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15483. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15484. msm_routing_put_voice_mixer),
  15485. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15486. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15487. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15488. msm_routing_put_voice_mixer),
  15489. };
  15490. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  15491. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15492. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15493. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15494. msm_routing_put_voice_mixer),
  15495. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15496. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15497. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15498. msm_routing_put_voice_mixer),
  15499. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15500. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15501. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15502. msm_routing_put_voice_mixer),
  15503. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15504. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15505. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15506. msm_routing_put_voice_mixer),
  15507. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15508. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15509. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15510. msm_routing_put_voice_mixer),
  15511. };
  15512. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  15513. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15514. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15515. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15516. msm_routing_put_voice_mixer),
  15517. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15518. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15519. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15520. msm_routing_put_voice_mixer),
  15521. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15522. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15523. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15524. msm_routing_put_voice_mixer),
  15525. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15526. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15527. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15528. msm_routing_put_voice_mixer),
  15529. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15530. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15531. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15532. msm_routing_put_voice_mixer),
  15533. };
  15534. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  15535. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15536. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15537. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15538. msm_routing_put_voice_mixer),
  15539. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15540. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15541. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15542. msm_routing_put_voice_mixer),
  15543. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15544. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15545. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15546. msm_routing_put_voice_mixer),
  15547. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15548. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15549. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15550. msm_routing_put_voice_mixer),
  15551. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15552. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15553. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15554. msm_routing_put_voice_mixer),
  15555. };
  15556. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  15557. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15558. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15559. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15560. msm_routing_put_voice_mixer),
  15561. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15562. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15563. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15564. msm_routing_put_voice_mixer),
  15565. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15566. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15567. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15568. msm_routing_put_voice_mixer),
  15569. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15570. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15571. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15572. msm_routing_put_voice_mixer),
  15573. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15574. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15575. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15576. msm_routing_put_voice_mixer),
  15577. };
  15578. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  15579. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15580. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15581. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15582. msm_routing_put_voice_mixer),
  15583. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15584. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15585. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15586. msm_routing_put_voice_mixer),
  15587. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15588. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15589. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15590. msm_routing_put_voice_mixer),
  15591. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15592. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15593. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15594. msm_routing_put_voice_mixer),
  15595. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15596. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15597. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15598. msm_routing_put_voice_mixer),
  15599. };
  15600. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  15601. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15602. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15603. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15604. msm_routing_put_voice_mixer),
  15605. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15606. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15607. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15608. msm_routing_put_voice_mixer),
  15609. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15610. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15611. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15612. msm_routing_put_voice_mixer),
  15613. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15614. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15615. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15616. msm_routing_put_voice_mixer),
  15617. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15618. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15619. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15620. msm_routing_put_voice_mixer),
  15621. };
  15622. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  15623. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15624. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15625. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15626. msm_routing_put_voice_mixer),
  15627. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15628. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15629. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15630. msm_routing_put_voice_mixer),
  15631. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15632. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15633. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15634. msm_routing_put_voice_mixer),
  15635. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15636. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15637. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15638. msm_routing_put_voice_mixer),
  15639. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15640. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15641. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15642. msm_routing_put_voice_mixer),
  15643. };
  15644. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  15645. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15646. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15647. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15648. msm_routing_put_voice_mixer),
  15649. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15650. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15651. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15652. msm_routing_put_voice_mixer),
  15653. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15654. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15655. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15656. msm_routing_put_voice_mixer),
  15657. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15658. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15659. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15660. msm_routing_put_voice_mixer),
  15661. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15662. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15663. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15664. msm_routing_put_voice_mixer),
  15665. };
  15666. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  15667. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15668. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15669. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15670. msm_routing_put_voice_mixer),
  15671. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15672. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15673. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15674. msm_routing_put_voice_mixer),
  15675. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15676. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15677. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15678. msm_routing_put_voice_mixer),
  15679. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15680. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15681. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15682. msm_routing_put_voice_mixer),
  15683. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15684. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15685. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15686. msm_routing_put_voice_mixer),
  15687. };
  15688. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  15689. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15690. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15691. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15692. msm_routing_put_voice_mixer),
  15693. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15694. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15695. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15696. msm_routing_put_voice_stub_mixer),
  15697. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15698. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15699. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15700. msm_routing_put_voice_stub_mixer),
  15701. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15702. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15703. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15704. msm_routing_put_voice_mixer),
  15705. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15706. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15707. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15708. msm_routing_put_voice_mixer),
  15709. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15710. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15711. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15712. msm_routing_put_voice_mixer),
  15713. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15714. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15715. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15716. msm_routing_put_voice_mixer),
  15717. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15718. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15719. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15720. msm_routing_put_voice_mixer),
  15721. };
  15722. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  15723. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15724. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15725. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15726. msm_routing_put_voice_mixer),
  15727. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15728. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15729. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15730. msm_routing_put_voice_stub_mixer),
  15731. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15732. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15733. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15734. msm_routing_put_voice_stub_mixer),
  15735. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15736. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15737. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15738. msm_routing_put_voice_mixer),
  15739. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15740. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15741. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15742. msm_routing_put_voice_mixer),
  15743. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15744. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15745. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15746. msm_routing_put_voice_mixer),
  15747. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15748. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15749. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15750. msm_routing_put_voice_mixer),
  15751. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15752. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15753. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15754. msm_routing_put_voice_mixer),
  15755. };
  15756. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  15757. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15758. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15759. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15760. msm_routing_put_voice_mixer),
  15761. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15762. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15763. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15764. msm_routing_put_voice_stub_mixer),
  15765. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15766. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15767. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15768. msm_routing_put_voice_stub_mixer),
  15769. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15770. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15771. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15772. msm_routing_put_voice_mixer),
  15773. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15774. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15775. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15776. msm_routing_put_voice_mixer),
  15777. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15778. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15779. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15780. msm_routing_put_voice_mixer),
  15781. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15782. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15783. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15784. msm_routing_put_voice_mixer),
  15785. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15786. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15787. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15788. msm_routing_put_voice_mixer),
  15789. };
  15790. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  15791. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15792. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15793. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15794. msm_routing_put_voice_mixer),
  15795. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15796. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15797. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15798. msm_routing_put_voice_stub_mixer),
  15799. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15800. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15801. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15802. msm_routing_put_voice_stub_mixer),
  15803. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15804. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15805. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15806. msm_routing_put_voice_mixer),
  15807. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15808. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15809. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15810. msm_routing_put_voice_mixer),
  15811. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15812. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15813. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15814. msm_routing_put_voice_mixer),
  15815. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15816. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15817. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15818. msm_routing_put_voice_mixer),
  15819. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15820. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15821. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15822. msm_routing_put_voice_mixer),
  15823. };
  15824. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  15825. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15826. MSM_BACKEND_DAI_EXTPROC_RX,
  15827. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15828. msm_routing_put_voice_mixer),
  15829. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15830. MSM_BACKEND_DAI_EXTPROC_RX,
  15831. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15832. msm_routing_put_voice_mixer),
  15833. };
  15834. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  15835. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15836. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15837. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15838. msm_routing_put_voice_mixer),
  15839. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15840. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15841. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15842. msm_routing_put_voice_mixer),
  15843. };
  15844. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  15845. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15846. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15847. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15848. msm_routing_put_voice_mixer),
  15849. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15850. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15851. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15852. msm_routing_put_voice_mixer),
  15853. };
  15854. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  15855. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  15856. MSM_BACKEND_DAI_PRI_I2S_TX,
  15857. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15858. msm_routing_put_voice_mixer),
  15859. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  15860. MSM_BACKEND_DAI_MI2S_TX,
  15861. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15862. msm_routing_put_voice_mixer),
  15863. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  15864. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15865. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15866. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  15867. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15868. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15869. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  15870. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15871. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15872. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15873. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15874. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15875. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15876. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15877. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15878. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15879. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15880. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15881. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15882. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15883. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15884. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15885. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15886. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15887. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15888. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15889. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15890. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  15891. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15892. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15893. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  15894. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15895. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15896. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  15897. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15898. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15899. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  15900. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15901. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15902. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  15903. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15904. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15905. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  15906. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15907. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15908. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  15909. MSM_BACKEND_DAI_USB_TX,
  15910. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15911. msm_routing_put_voice_mixer),
  15912. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  15913. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15914. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15915. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  15916. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15917. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15918. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  15919. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  15920. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15921. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  15922. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  15923. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15924. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  15925. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15926. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15927. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  15928. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  15929. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15930. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  15931. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  15932. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15933. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  15934. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  15935. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15936. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  15937. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  15938. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15939. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  15940. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  15941. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15942. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  15943. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15944. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15945. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  15946. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15947. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15948. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  15949. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  15950. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15951. };
  15952. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  15953. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  15954. MSM_BACKEND_DAI_PRI_I2S_TX,
  15955. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15956. msm_routing_put_voice_mixer),
  15957. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  15958. MSM_BACKEND_DAI_MI2S_TX,
  15959. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15960. msm_routing_put_voice_mixer),
  15961. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  15962. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15963. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15964. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  15965. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15966. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15967. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  15968. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15969. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15970. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15971. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15972. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15973. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15974. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15975. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15976. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15977. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15978. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15979. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15980. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15981. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15982. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15983. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15984. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15985. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15986. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15987. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15988. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  15989. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15990. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15991. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  15992. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15993. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15994. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  15995. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15996. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15997. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  15998. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15999. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16000. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  16001. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16002. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16003. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  16004. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16005. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16006. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  16007. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16008. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16009. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16010. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16011. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16012. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16013. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16014. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16015. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16016. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16017. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16018. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16019. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16020. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16021. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16022. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16023. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16024. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16025. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16026. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16027. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  16028. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16029. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16030. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  16031. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  16032. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16033. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  16034. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  16035. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16036. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16037. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16038. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16039. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  16040. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16041. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16042. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  16043. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16044. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16045. };
  16046. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  16047. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  16048. MSM_BACKEND_DAI_PRI_I2S_TX,
  16049. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16050. msm_routing_put_voice_mixer),
  16051. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  16052. MSM_BACKEND_DAI_MI2S_TX,
  16053. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16054. msm_routing_put_voice_mixer),
  16055. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  16056. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16057. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16058. msm_routing_put_voice_mixer),
  16059. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  16060. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16061. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16062. msm_routing_put_voice_mixer),
  16063. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  16064. MSM_BACKEND_DAI_AFE_PCM_TX,
  16065. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16066. msm_routing_put_voice_mixer),
  16067. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16068. MSM_BACKEND_DAI_AUXPCM_TX,
  16069. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16070. msm_routing_put_voice_mixer),
  16071. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16072. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16073. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16074. msm_routing_put_voice_mixer),
  16075. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16076. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16077. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16078. msm_routing_put_voice_mixer),
  16079. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16080. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16081. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16082. msm_routing_put_voice_mixer),
  16083. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16084. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16085. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16086. msm_routing_put_voice_mixer),
  16087. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16088. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16089. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16090. msm_routing_put_voice_mixer),
  16091. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  16092. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16093. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16094. msm_routing_put_voice_mixer),
  16095. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  16096. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  16097. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16098. msm_routing_put_voice_mixer),
  16099. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  16100. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16101. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16102. msm_routing_put_voice_mixer),
  16103. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  16104. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16105. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16106. msm_routing_put_voice_mixer),
  16107. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  16108. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16109. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16110. msm_routing_put_voice_mixer),
  16111. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  16112. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16113. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16114. msm_routing_put_voice_mixer),
  16115. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  16116. MSM_BACKEND_DAI_USB_TX,
  16117. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16118. msm_routing_put_voice_mixer),
  16119. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16120. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16121. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16122. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16123. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16124. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16125. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16126. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16127. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16128. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16129. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16130. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16131. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16132. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16133. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16134. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16135. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16136. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16137. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  16138. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  16139. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16140. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  16141. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  16142. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16143. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  16144. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  16145. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16146. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  16147. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16148. msm_routing_put_voice_mixer),
  16149. };
  16150. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  16151. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16152. MSM_BACKEND_DAI_EXTPROC_TX,
  16153. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16154. msm_routing_put_voice_stub_mixer),
  16155. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16156. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16157. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16158. msm_routing_put_voice_stub_mixer),
  16159. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16160. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16161. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16162. msm_routing_put_voice_stub_mixer),
  16163. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16164. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16165. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16166. msm_routing_put_voice_stub_mixer),
  16167. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16168. MSM_BACKEND_DAI_MI2S_TX,
  16169. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16170. msm_routing_put_voice_stub_mixer),
  16171. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16172. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16173. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16174. msm_routing_put_voice_stub_mixer),
  16175. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16176. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16177. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16178. msm_routing_put_voice_stub_mixer),
  16179. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16180. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16181. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16182. msm_routing_put_voice_stub_mixer),
  16183. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16184. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16185. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16186. msm_routing_put_voice_stub_mixer),
  16187. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16188. MSM_BACKEND_DAI_AUXPCM_TX,
  16189. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16190. msm_routing_put_voice_stub_mixer),
  16191. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16192. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16193. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16194. msm_routing_put_voice_stub_mixer),
  16195. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16196. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16197. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16198. msm_routing_put_voice_stub_mixer),
  16199. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16200. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16201. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16202. msm_routing_put_voice_stub_mixer),
  16203. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16204. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16205. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16206. msm_routing_put_voice_stub_mixer),
  16207. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16208. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16209. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16210. msm_routing_put_voice_stub_mixer),
  16211. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16212. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16213. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16214. msm_routing_put_voice_stub_mixer),
  16215. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16216. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16217. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16218. msm_routing_put_voice_stub_mixer),
  16219. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16220. MSM_BACKEND_DAI_AFE_PCM_TX,
  16221. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16222. msm_routing_put_voice_stub_mixer),
  16223. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16224. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16225. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16226. msm_routing_put_voice_stub_mixer),
  16227. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16228. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16229. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16230. msm_routing_put_voice_stub_mixer),
  16231. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16232. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16233. 1, 0, msm_routing_get_voice_stub_mixer,
  16234. msm_routing_put_voice_stub_mixer),
  16235. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16236. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16237. 1, 0, msm_routing_get_voice_stub_mixer,
  16238. msm_routing_put_voice_stub_mixer),
  16239. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16240. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16241. 1, 0, msm_routing_get_voice_stub_mixer,
  16242. msm_routing_put_voice_stub_mixer),
  16243. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16244. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16245. 1, 0, msm_routing_get_voice_stub_mixer,
  16246. msm_routing_put_voice_stub_mixer),
  16247. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16248. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16249. 1, 0, msm_routing_get_voice_stub_mixer,
  16250. msm_routing_put_voice_stub_mixer),
  16251. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16252. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16253. 1, 0, msm_routing_get_voice_stub_mixer,
  16254. msm_routing_put_voice_stub_mixer),
  16255. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16256. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  16257. 1, 0, msm_routing_get_voice_stub_mixer,
  16258. msm_routing_put_voice_stub_mixer),
  16259. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16260. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  16261. 1, 0, msm_routing_get_voice_stub_mixer,
  16262. msm_routing_put_voice_stub_mixer),
  16263. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16264. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  16265. 1, 0, msm_routing_get_voice_stub_mixer,
  16266. msm_routing_put_voice_stub_mixer),
  16267. };
  16268. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  16269. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16270. MSM_BACKEND_DAI_EXTPROC_TX,
  16271. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16272. msm_routing_put_voice_stub_mixer),
  16273. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16274. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16275. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16276. msm_routing_put_voice_stub_mixer),
  16277. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16278. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16279. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16280. msm_routing_put_voice_stub_mixer),
  16281. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16282. MSM_BACKEND_DAI_AUXPCM_TX,
  16283. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16284. msm_routing_put_voice_stub_mixer),
  16285. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16286. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16287. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16288. msm_routing_put_voice_stub_mixer),
  16289. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16290. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16291. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16292. msm_routing_put_voice_stub_mixer),
  16293. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16294. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16295. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16296. msm_routing_put_voice_stub_mixer),
  16297. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16298. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16299. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16300. msm_routing_put_voice_stub_mixer),
  16301. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16302. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16303. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16304. msm_routing_put_voice_stub_mixer),
  16305. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16306. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16307. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16308. msm_routing_put_voice_stub_mixer),
  16309. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16310. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16311. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16312. msm_routing_put_voice_stub_mixer),
  16313. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16314. MSM_BACKEND_DAI_AFE_PCM_TX,
  16315. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16316. msm_routing_put_voice_stub_mixer),
  16317. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16318. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16319. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16320. msm_routing_put_voice_stub_mixer),
  16321. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16322. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16323. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16324. msm_routing_put_voice_stub_mixer),
  16325. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16326. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16327. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16328. msm_routing_put_voice_stub_mixer),
  16329. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16330. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16331. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16332. msm_routing_put_voice_stub_mixer),
  16333. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16334. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16335. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16336. msm_routing_put_voice_stub_mixer),
  16337. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16338. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16339. 1, 0, msm_routing_get_voice_stub_mixer,
  16340. msm_routing_put_voice_stub_mixer),
  16341. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16342. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16343. 1, 0, msm_routing_get_voice_stub_mixer,
  16344. msm_routing_put_voice_stub_mixer),
  16345. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16346. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16347. 1, 0, msm_routing_get_voice_stub_mixer,
  16348. msm_routing_put_voice_stub_mixer),
  16349. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16350. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16351. 1, 0, msm_routing_get_voice_stub_mixer,
  16352. msm_routing_put_voice_stub_mixer),
  16353. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16354. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16355. 1, 0, msm_routing_get_voice_stub_mixer,
  16356. msm_routing_put_voice_stub_mixer),
  16357. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16358. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16359. 1, 0, msm_routing_get_voice_stub_mixer,
  16360. msm_routing_put_voice_stub_mixer),
  16361. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16362. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  16363. 1, 0, msm_routing_get_voice_stub_mixer,
  16364. msm_routing_put_voice_stub_mixer),
  16365. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16366. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  16367. 1, 0, msm_routing_get_voice_stub_mixer,
  16368. msm_routing_put_voice_stub_mixer),
  16369. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16370. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  16371. 1, 0, msm_routing_get_voice_stub_mixer,
  16372. msm_routing_put_voice_stub_mixer),
  16373. };
  16374. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  16375. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16376. MSM_BACKEND_DAI_EXTPROC_TX,
  16377. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16378. msm_routing_put_voice_stub_mixer),
  16379. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16380. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16381. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16382. msm_routing_put_voice_stub_mixer),
  16383. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16384. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16385. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16386. msm_routing_put_voice_stub_mixer),
  16387. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16388. MSM_BACKEND_DAI_AUXPCM_TX,
  16389. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16390. msm_routing_put_voice_stub_mixer),
  16391. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16392. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16393. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16394. msm_routing_put_voice_stub_mixer),
  16395. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16396. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16397. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16398. msm_routing_put_voice_stub_mixer),
  16399. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16400. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16401. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16402. msm_routing_put_voice_stub_mixer),
  16403. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16404. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16405. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16406. msm_routing_put_voice_stub_mixer),
  16407. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16408. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16409. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16410. msm_routing_put_voice_stub_mixer),
  16411. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16412. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16413. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16414. msm_routing_put_voice_stub_mixer),
  16415. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16416. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16417. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16418. msm_routing_put_voice_stub_mixer),
  16419. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16420. MSM_BACKEND_DAI_AFE_PCM_TX,
  16421. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16422. msm_routing_put_voice_stub_mixer),
  16423. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16424. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16425. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16426. msm_routing_put_voice_stub_mixer),
  16427. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16428. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16429. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16430. msm_routing_put_voice_stub_mixer),
  16431. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16432. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16433. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16434. msm_routing_put_voice_stub_mixer),
  16435. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16436. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16437. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16438. msm_routing_put_voice_stub_mixer),
  16439. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16440. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  16441. 1, 0, msm_routing_get_voice_stub_mixer,
  16442. msm_routing_put_voice_stub_mixer),
  16443. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16444. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  16445. 1, 0, msm_routing_get_voice_stub_mixer,
  16446. msm_routing_put_voice_stub_mixer),
  16447. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16448. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  16449. 1, 0, msm_routing_get_voice_stub_mixer,
  16450. msm_routing_put_voice_stub_mixer),
  16451. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16452. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  16453. 1, 0, msm_routing_get_voice_stub_mixer,
  16454. msm_routing_put_voice_stub_mixer),
  16455. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16456. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  16457. 1, 0, msm_routing_get_voice_stub_mixer,
  16458. msm_routing_put_voice_stub_mixer),
  16459. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16460. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  16461. 1, 0, msm_routing_get_voice_stub_mixer,
  16462. msm_routing_put_voice_stub_mixer),
  16463. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16464. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  16465. 1, 0, msm_routing_get_voice_stub_mixer,
  16466. msm_routing_put_voice_stub_mixer),
  16467. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16468. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  16469. 1, 0, msm_routing_get_voice_stub_mixer,
  16470. msm_routing_put_voice_stub_mixer),
  16471. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16472. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  16473. 1, 0, msm_routing_get_voice_stub_mixer,
  16474. msm_routing_put_voice_stub_mixer),
  16475. };
  16476. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  16477. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  16478. MSM_BACKEND_DAI_PRI_I2S_TX,
  16479. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16480. msm_routing_put_voice_mixer),
  16481. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  16482. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16483. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16484. msm_routing_put_voice_mixer),
  16485. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  16486. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16487. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  16488. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16489. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  16490. MSM_BACKEND_DAI_AFE_PCM_TX,
  16491. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16492. msm_routing_put_voice_mixer),
  16493. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16494. MSM_BACKEND_DAI_AUXPCM_TX,
  16495. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16496. msm_routing_put_voice_mixer),
  16497. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16498. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16499. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16500. msm_routing_put_voice_mixer),
  16501. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16502. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16503. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16504. msm_routing_put_voice_mixer),
  16505. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16506. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16507. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16508. msm_routing_put_voice_mixer),
  16509. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16510. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16511. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16512. msm_routing_put_voice_mixer),
  16513. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16514. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16515. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16516. msm_routing_put_voice_mixer),
  16517. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  16518. MSM_BACKEND_DAI_MI2S_TX,
  16519. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16520. msm_routing_put_voice_mixer),
  16521. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16522. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16523. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16524. msm_routing_put_voice_mixer),
  16525. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16526. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16527. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16528. msm_routing_put_voice_mixer),
  16529. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16530. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16531. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16532. msm_routing_put_voice_mixer),
  16533. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  16534. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16535. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16536. msm_routing_put_voice_mixer),
  16537. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  16538. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16539. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16540. msm_routing_put_voice_mixer),
  16541. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  16542. MSM_BACKEND_DAI_USB_TX,
  16543. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16544. msm_routing_put_voice_mixer),
  16545. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  16546. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  16547. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16548. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  16549. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  16550. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16551. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  16552. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  16553. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16554. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  16555. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  16556. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16557. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  16558. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  16559. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16560. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  16561. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  16562. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16563. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  16564. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  16565. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16566. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  16567. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  16568. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16569. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  16570. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  16571. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16572. };
  16573. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  16574. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16575. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16576. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16577. msm_routing_put_port_mixer),
  16578. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16579. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16580. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16581. msm_routing_put_port_mixer),
  16582. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16583. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16584. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16585. msm_routing_put_port_mixer),
  16586. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16587. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16588. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16589. msm_routing_put_port_mixer),
  16590. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16591. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16592. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16593. msm_routing_put_port_mixer),
  16594. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16595. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16596. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16597. msm_routing_put_port_mixer),
  16598. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16599. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16600. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16601. msm_routing_put_port_mixer),
  16602. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16603. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16604. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16605. msm_routing_put_port_mixer),
  16606. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16607. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16608. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16609. msm_routing_put_port_mixer),
  16610. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16611. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16612. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16613. msm_routing_put_port_mixer),
  16614. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16615. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16616. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16617. msm_routing_put_port_mixer),
  16618. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16619. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16620. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16621. msm_routing_put_port_mixer),
  16622. };
  16623. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  16624. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16625. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16626. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16627. msm_routing_put_port_mixer),
  16628. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16629. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16630. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16631. msm_routing_put_port_mixer),
  16632. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16633. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16634. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16635. msm_routing_put_port_mixer),
  16636. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16637. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16638. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16639. msm_routing_put_port_mixer),
  16640. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16641. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16642. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16643. msm_routing_put_port_mixer),
  16644. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16645. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16646. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16647. msm_routing_put_port_mixer),
  16648. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16649. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16650. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16651. msm_routing_put_port_mixer),
  16652. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16653. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16654. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16655. msm_routing_put_port_mixer),
  16656. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16657. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16658. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16659. msm_routing_put_port_mixer),
  16660. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16661. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16662. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16663. msm_routing_put_port_mixer),
  16664. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16665. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16666. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16667. msm_routing_put_port_mixer),
  16668. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16669. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16670. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16671. msm_routing_put_port_mixer),
  16672. };
  16673. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  16674. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16675. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16676. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  16677. msm_routing_put_port_mixer),
  16678. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16679. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16680. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16681. msm_routing_put_port_mixer),
  16682. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16683. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16684. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16685. msm_routing_put_port_mixer),
  16686. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16687. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16688. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16689. msm_routing_put_port_mixer),
  16690. };
  16691. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  16692. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16693. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16694. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16695. msm_routing_put_port_mixer),
  16696. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16697. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16698. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16699. msm_routing_put_port_mixer),
  16700. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16701. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16702. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16703. msm_routing_put_port_mixer),
  16704. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16705. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16706. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16707. msm_routing_put_port_mixer),
  16708. };
  16709. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  16710. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16711. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16712. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16713. msm_routing_put_port_mixer),
  16714. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16715. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16716. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16717. msm_routing_put_port_mixer),
  16718. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16719. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16720. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16721. msm_routing_put_port_mixer),
  16722. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16723. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16724. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16725. msm_routing_put_port_mixer),
  16726. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16727. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16728. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16729. msm_routing_put_port_mixer),
  16730. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16731. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16732. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16733. msm_routing_put_port_mixer),
  16734. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16735. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16736. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16737. msm_routing_put_port_mixer),
  16738. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16739. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16740. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16741. msm_routing_put_port_mixer),
  16742. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16743. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16744. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16745. msm_routing_put_port_mixer),
  16746. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16747. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16748. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16749. msm_routing_put_port_mixer),
  16750. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16751. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16752. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16753. msm_routing_put_port_mixer),
  16754. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16755. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16756. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16757. msm_routing_put_port_mixer),
  16758. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16759. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16760. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16761. msm_routing_put_port_mixer),
  16762. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16763. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16764. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16765. msm_routing_put_port_mixer),
  16766. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16767. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16768. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16769. msm_routing_put_port_mixer),
  16770. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16771. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16772. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16773. msm_routing_put_port_mixer),
  16774. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16775. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16776. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16777. msm_routing_put_port_mixer),
  16778. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16779. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16780. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16781. msm_routing_put_port_mixer),
  16782. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16783. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16784. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16785. msm_routing_put_port_mixer),
  16786. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  16787. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16788. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16789. msm_routing_put_port_mixer),
  16790. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  16791. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16792. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16793. msm_routing_put_port_mixer),
  16794. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  16795. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16796. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16797. msm_routing_put_port_mixer),
  16798. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  16799. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16800. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16801. msm_routing_put_port_mixer),
  16802. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  16803. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16804. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16805. msm_routing_put_port_mixer),
  16806. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  16807. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16808. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16809. msm_routing_put_port_mixer),
  16810. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16811. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16812. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16813. msm_routing_put_port_mixer),
  16814. };
  16815. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  16816. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16817. MSM_BACKEND_DAI_AUXPCM_RX,
  16818. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16819. msm_routing_put_port_mixer),
  16820. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16821. MSM_BACKEND_DAI_AUXPCM_RX,
  16822. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16823. msm_routing_put_port_mixer),
  16824. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16825. MSM_BACKEND_DAI_AUXPCM_RX,
  16826. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16827. msm_routing_put_port_mixer),
  16828. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16829. MSM_BACKEND_DAI_AUXPCM_RX,
  16830. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16831. msm_routing_put_port_mixer),
  16832. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16833. MSM_BACKEND_DAI_AUXPCM_RX,
  16834. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  16835. msm_routing_put_port_mixer),
  16836. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16837. MSM_BACKEND_DAI_AUXPCM_RX,
  16838. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16839. msm_routing_put_port_mixer),
  16840. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16841. MSM_BACKEND_DAI_AUXPCM_RX,
  16842. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  16843. msm_routing_put_port_mixer),
  16844. };
  16845. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  16846. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16847. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16848. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16849. msm_routing_put_port_mixer),
  16850. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16851. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16852. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16853. msm_routing_put_port_mixer),
  16854. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16855. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16856. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16857. msm_routing_put_port_mixer),
  16858. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16859. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16860. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16861. msm_routing_put_port_mixer),
  16862. };
  16863. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  16864. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16865. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16866. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16867. msm_routing_put_port_mixer),
  16868. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16869. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16870. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16871. msm_routing_put_port_mixer),
  16872. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16873. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16874. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16875. msm_routing_put_port_mixer),
  16876. };
  16877. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  16878. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16879. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16880. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16881. msm_routing_put_port_mixer),
  16882. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16883. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16884. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16885. msm_routing_put_port_mixer),
  16886. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16887. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16888. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16889. msm_routing_put_port_mixer),
  16890. };
  16891. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  16892. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16893. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16894. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16895. msm_routing_put_port_mixer),
  16896. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16897. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16898. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16899. msm_routing_put_port_mixer),
  16900. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16901. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16902. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16903. msm_routing_put_port_mixer),
  16904. };
  16905. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  16906. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16907. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16908. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16909. msm_routing_put_port_mixer),
  16910. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16911. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16912. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16913. msm_routing_put_port_mixer),
  16914. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16915. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16916. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16917. msm_routing_put_port_mixer),
  16918. };
  16919. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  16920. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16921. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16922. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16923. msm_routing_put_port_mixer),
  16924. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16925. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16926. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  16927. msm_routing_put_port_mixer),
  16928. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16929. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16930. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16931. msm_routing_put_port_mixer),
  16932. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16933. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16934. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16935. msm_routing_put_port_mixer),
  16936. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16937. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16938. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16939. msm_routing_put_port_mixer),
  16940. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16941. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16942. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16943. msm_routing_put_port_mixer),
  16944. };
  16945. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  16946. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  16947. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16948. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  16949. msm_routing_put_port_mixer),
  16950. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16951. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16952. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16953. msm_routing_put_port_mixer),
  16954. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  16955. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16956. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  16957. msm_routing_put_port_mixer),
  16958. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  16959. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16960. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  16961. msm_routing_put_port_mixer),
  16962. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  16963. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16964. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  16965. msm_routing_put_port_mixer),
  16966. };
  16967. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  16968. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16969. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16970. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16971. msm_routing_put_port_mixer),
  16972. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16973. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16974. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16975. msm_routing_put_port_mixer),
  16976. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16977. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16978. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16979. msm_routing_put_port_mixer),
  16980. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16981. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16982. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16983. msm_routing_put_port_mixer),
  16984. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16985. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16986. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16987. msm_routing_put_port_mixer),
  16988. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16989. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16990. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16991. msm_routing_put_port_mixer),
  16992. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16993. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16994. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16995. msm_routing_put_port_mixer),
  16996. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16997. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16998. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16999. msm_routing_put_port_mixer),
  17000. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17001. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17002. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17003. msm_routing_put_port_mixer),
  17004. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17005. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17006. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17007. msm_routing_put_port_mixer),
  17008. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17009. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17010. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17011. msm_routing_put_port_mixer),
  17012. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17013. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17014. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17015. msm_routing_put_port_mixer),
  17016. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17017. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17018. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17019. msm_routing_put_port_mixer),
  17020. };
  17021. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  17022. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17023. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17024. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17025. msm_routing_put_port_mixer),
  17026. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17027. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17028. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17029. msm_routing_put_port_mixer),
  17030. };
  17031. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  17032. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17033. MSM_BACKEND_DAI_AFE_PCM_RX,
  17034. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17035. msm_routing_put_port_mixer),
  17036. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17037. MSM_BACKEND_DAI_AFE_PCM_RX,
  17038. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17039. msm_routing_put_port_mixer),
  17040. };
  17041. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  17042. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17043. MSM_BACKEND_DAI_HDMI_RX,
  17044. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17045. msm_routing_put_port_mixer),
  17046. };
  17047. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  17048. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17049. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  17050. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17051. msm_routing_put_port_mixer),
  17052. };
  17053. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  17054. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17055. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  17056. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17057. msm_routing_put_port_mixer),
  17058. };
  17059. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  17060. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17061. MSM_BACKEND_DAI_SEC_I2S_RX,
  17062. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17063. msm_routing_put_port_mixer),
  17064. };
  17065. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  17066. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17067. MSM_BACKEND_DAI_MI2S_RX,
  17068. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17069. msm_routing_put_port_mixer),
  17070. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17071. MSM_BACKEND_DAI_MI2S_RX,
  17072. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17073. msm_routing_put_port_mixer),
  17074. };
  17075. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  17076. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17077. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17078. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17079. msm_routing_put_port_mixer),
  17080. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17081. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17082. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17083. msm_routing_put_port_mixer),
  17084. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17085. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17086. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17087. msm_routing_put_port_mixer),
  17088. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17089. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17090. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17091. msm_routing_put_port_mixer),
  17092. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17093. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17094. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17095. msm_routing_put_port_mixer),
  17096. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17097. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17098. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17099. msm_routing_put_port_mixer),
  17100. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17101. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17102. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17103. msm_routing_put_port_mixer),
  17104. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17105. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17106. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17107. msm_routing_put_port_mixer),
  17108. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17109. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17110. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17111. msm_routing_put_port_mixer),
  17112. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17113. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17114. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17115. msm_routing_put_port_mixer),
  17116. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17117. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17118. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17119. msm_routing_put_port_mixer),
  17120. };
  17121. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  17122. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  17123. MSM_BACKEND_DAI_USB_RX,
  17124. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  17125. msm_routing_put_port_mixer),
  17126. };
  17127. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  17128. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17129. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17130. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17131. msm_routing_put_port_mixer),
  17132. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17133. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17134. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17135. msm_routing_put_port_mixer),
  17136. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17137. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17138. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17139. msm_routing_put_port_mixer),
  17140. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17141. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17142. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17143. msm_routing_put_port_mixer),
  17144. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17145. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17146. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17147. msm_routing_put_port_mixer),
  17148. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17149. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17150. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17151. msm_routing_put_port_mixer),
  17152. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17153. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17154. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17155. msm_routing_put_port_mixer),
  17156. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17157. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17158. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17159. msm_routing_put_port_mixer),
  17160. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17161. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17162. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17163. msm_routing_put_port_mixer),
  17164. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17165. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17166. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17167. msm_routing_put_port_mixer),
  17168. };
  17169. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  17170. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17171. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17172. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17173. msm_routing_put_port_mixer),
  17174. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17175. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17176. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17177. msm_routing_put_port_mixer),
  17178. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17179. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17180. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17181. msm_routing_put_port_mixer),
  17182. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17183. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17184. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17185. msm_routing_put_port_mixer),
  17186. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17187. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17188. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17189. msm_routing_put_port_mixer),
  17190. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17191. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17192. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17193. msm_routing_put_port_mixer),
  17194. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17195. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17196. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17197. msm_routing_put_port_mixer),
  17198. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17199. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17200. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17201. msm_routing_put_port_mixer),
  17202. };
  17203. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  17204. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17205. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17206. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17207. msm_routing_put_port_mixer),
  17208. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17209. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17210. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17211. msm_routing_put_port_mixer),
  17212. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17213. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17214. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17215. msm_routing_put_port_mixer),
  17216. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17217. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17218. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17219. msm_routing_put_port_mixer),
  17220. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17221. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17222. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17223. msm_routing_put_port_mixer),
  17224. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17225. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17226. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17227. msm_routing_put_port_mixer),
  17228. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17229. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17230. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17231. msm_routing_put_port_mixer),
  17232. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17233. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17234. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17235. msm_routing_put_port_mixer),
  17236. };
  17237. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  17238. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17239. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17240. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17241. msm_routing_get_port_mixer,
  17242. msm_routing_put_port_mixer),
  17243. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17244. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17245. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17246. msm_routing_get_port_mixer,
  17247. msm_routing_put_port_mixer),
  17248. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17249. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17250. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17251. msm_routing_get_port_mixer,
  17252. msm_routing_put_port_mixer),
  17253. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17254. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17255. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17256. msm_routing_get_port_mixer,
  17257. msm_routing_put_port_mixer),
  17258. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17259. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17260. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17261. msm_routing_get_port_mixer,
  17262. msm_routing_put_port_mixer),
  17263. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17264. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17265. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17266. msm_routing_get_port_mixer,
  17267. msm_routing_put_port_mixer),
  17268. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17269. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17270. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17271. msm_routing_get_port_mixer,
  17272. msm_routing_put_port_mixer),
  17273. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17274. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17275. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17276. msm_routing_get_port_mixer,
  17277. msm_routing_put_port_mixer),
  17278. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17279. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17280. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17281. msm_routing_get_port_mixer,
  17282. msm_routing_put_port_mixer),
  17283. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17284. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17285. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17286. msm_routing_get_port_mixer,
  17287. msm_routing_put_port_mixer),
  17288. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17289. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17290. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17291. msm_routing_get_port_mixer,
  17292. msm_routing_put_port_mixer),
  17293. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17294. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17295. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17296. msm_routing_get_port_mixer,
  17297. msm_routing_put_port_mixer),
  17298. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17299. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17300. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17301. msm_routing_get_port_mixer,
  17302. msm_routing_put_port_mixer),
  17303. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17304. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17305. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17306. msm_routing_get_port_mixer,
  17307. msm_routing_put_port_mixer),
  17308. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17309. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17310. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17311. msm_routing_get_port_mixer,
  17312. msm_routing_put_port_mixer),
  17313. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17314. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17315. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17316. msm_routing_get_port_mixer,
  17317. msm_routing_put_port_mixer),
  17318. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17319. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17320. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17321. msm_routing_get_port_mixer,
  17322. msm_routing_put_port_mixer),
  17323. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17324. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17325. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17326. msm_routing_get_port_mixer,
  17327. msm_routing_put_port_mixer),
  17328. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17329. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17330. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17331. msm_routing_get_port_mixer,
  17332. msm_routing_put_port_mixer),
  17333. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17334. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17335. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17336. msm_routing_get_port_mixer,
  17337. msm_routing_put_port_mixer),
  17338. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17339. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17340. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17341. msm_routing_get_port_mixer,
  17342. msm_routing_put_port_mixer),
  17343. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17344. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17345. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17346. msm_routing_get_port_mixer,
  17347. msm_routing_put_port_mixer),
  17348. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17349. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17350. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17351. msm_routing_get_port_mixer,
  17352. msm_routing_put_port_mixer),
  17353. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17354. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17355. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17356. msm_routing_get_port_mixer,
  17357. msm_routing_put_port_mixer),
  17358. };
  17359. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  17360. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17361. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17362. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17363. msm_routing_get_port_mixer,
  17364. msm_routing_put_port_mixer),
  17365. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17366. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17367. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17368. msm_routing_get_port_mixer,
  17369. msm_routing_put_port_mixer),
  17370. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17371. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17372. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17373. msm_routing_get_port_mixer,
  17374. msm_routing_put_port_mixer),
  17375. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17376. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17377. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17378. msm_routing_get_port_mixer,
  17379. msm_routing_put_port_mixer),
  17380. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17381. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17382. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17383. msm_routing_get_port_mixer,
  17384. msm_routing_put_port_mixer),
  17385. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17386. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17387. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17388. msm_routing_get_port_mixer,
  17389. msm_routing_put_port_mixer),
  17390. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17391. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17392. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17393. msm_routing_get_port_mixer,
  17394. msm_routing_put_port_mixer),
  17395. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17396. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17397. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17398. msm_routing_get_port_mixer,
  17399. msm_routing_put_port_mixer),
  17400. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17401. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17402. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17403. msm_routing_get_port_mixer,
  17404. msm_routing_put_port_mixer),
  17405. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17406. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17407. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17408. msm_routing_get_port_mixer,
  17409. msm_routing_put_port_mixer),
  17410. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17411. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17412. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17413. msm_routing_get_port_mixer,
  17414. msm_routing_put_port_mixer),
  17415. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17416. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17417. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17418. msm_routing_get_port_mixer,
  17419. msm_routing_put_port_mixer),
  17420. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17421. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17422. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17423. msm_routing_get_port_mixer,
  17424. msm_routing_put_port_mixer),
  17425. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17426. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17427. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17428. msm_routing_get_port_mixer,
  17429. msm_routing_put_port_mixer),
  17430. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17431. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17432. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17433. msm_routing_get_port_mixer,
  17434. msm_routing_put_port_mixer),
  17435. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17436. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17437. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17438. msm_routing_get_port_mixer,
  17439. msm_routing_put_port_mixer),
  17440. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17441. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17442. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17443. msm_routing_get_port_mixer,
  17444. msm_routing_put_port_mixer),
  17445. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17446. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17447. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17448. msm_routing_get_port_mixer,
  17449. msm_routing_put_port_mixer),
  17450. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17451. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17452. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17453. msm_routing_get_port_mixer,
  17454. msm_routing_put_port_mixer),
  17455. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17456. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17457. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17458. msm_routing_get_port_mixer,
  17459. msm_routing_put_port_mixer),
  17460. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17461. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17462. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17463. msm_routing_get_port_mixer,
  17464. msm_routing_put_port_mixer),
  17465. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17466. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17467. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17468. msm_routing_get_port_mixer,
  17469. msm_routing_put_port_mixer),
  17470. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17471. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17472. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17473. msm_routing_get_port_mixer,
  17474. msm_routing_put_port_mixer),
  17475. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17476. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17477. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17478. msm_routing_get_port_mixer,
  17479. msm_routing_put_port_mixer),
  17480. };
  17481. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  17482. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17483. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17484. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17485. msm_routing_get_port_mixer,
  17486. msm_routing_put_port_mixer),
  17487. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17488. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17489. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17490. msm_routing_get_port_mixer,
  17491. msm_routing_put_port_mixer),
  17492. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17493. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17494. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17495. msm_routing_get_port_mixer,
  17496. msm_routing_put_port_mixer),
  17497. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17498. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17499. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17500. msm_routing_get_port_mixer,
  17501. msm_routing_put_port_mixer),
  17502. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17503. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17504. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17505. msm_routing_get_port_mixer,
  17506. msm_routing_put_port_mixer),
  17507. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17508. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17509. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17510. msm_routing_get_port_mixer,
  17511. msm_routing_put_port_mixer),
  17512. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17513. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17514. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17515. msm_routing_get_port_mixer,
  17516. msm_routing_put_port_mixer),
  17517. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17518. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17519. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17520. msm_routing_get_port_mixer,
  17521. msm_routing_put_port_mixer),
  17522. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17523. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17524. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17525. msm_routing_get_port_mixer,
  17526. msm_routing_put_port_mixer),
  17527. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17528. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17529. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17530. msm_routing_get_port_mixer,
  17531. msm_routing_put_port_mixer),
  17532. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17533. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17534. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17535. msm_routing_get_port_mixer,
  17536. msm_routing_put_port_mixer),
  17537. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17538. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17539. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17540. msm_routing_get_port_mixer,
  17541. msm_routing_put_port_mixer),
  17542. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17543. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17544. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17545. msm_routing_get_port_mixer,
  17546. msm_routing_put_port_mixer),
  17547. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17548. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17549. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17550. msm_routing_get_port_mixer,
  17551. msm_routing_put_port_mixer),
  17552. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17553. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17554. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17555. msm_routing_get_port_mixer,
  17556. msm_routing_put_port_mixer),
  17557. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17558. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17559. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17560. msm_routing_get_port_mixer,
  17561. msm_routing_put_port_mixer),
  17562. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17563. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17564. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17565. msm_routing_get_port_mixer,
  17566. msm_routing_put_port_mixer),
  17567. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17568. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17569. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17570. msm_routing_get_port_mixer,
  17571. msm_routing_put_port_mixer),
  17572. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17573. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17574. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17575. msm_routing_get_port_mixer,
  17576. msm_routing_put_port_mixer),
  17577. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17578. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17579. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17580. msm_routing_get_port_mixer,
  17581. msm_routing_put_port_mixer),
  17582. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17583. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17584. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17585. msm_routing_get_port_mixer,
  17586. msm_routing_put_port_mixer),
  17587. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17588. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17589. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17590. msm_routing_get_port_mixer,
  17591. msm_routing_put_port_mixer),
  17592. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17593. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17594. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17595. msm_routing_get_port_mixer,
  17596. msm_routing_put_port_mixer),
  17597. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17598. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17599. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17600. msm_routing_get_port_mixer,
  17601. msm_routing_put_port_mixer),
  17602. };
  17603. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  17604. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17605. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17606. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17607. msm_routing_get_port_mixer,
  17608. msm_routing_put_port_mixer),
  17609. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17610. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17611. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17612. msm_routing_get_port_mixer,
  17613. msm_routing_put_port_mixer),
  17614. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17615. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17616. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17617. msm_routing_get_port_mixer,
  17618. msm_routing_put_port_mixer),
  17619. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17620. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17621. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17622. msm_routing_get_port_mixer,
  17623. msm_routing_put_port_mixer),
  17624. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17625. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17626. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17627. msm_routing_get_port_mixer,
  17628. msm_routing_put_port_mixer),
  17629. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17630. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17631. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17632. msm_routing_get_port_mixer,
  17633. msm_routing_put_port_mixer),
  17634. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17635. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17636. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17637. msm_routing_get_port_mixer,
  17638. msm_routing_put_port_mixer),
  17639. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17640. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17641. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17642. msm_routing_get_port_mixer,
  17643. msm_routing_put_port_mixer),
  17644. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17645. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17646. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17647. msm_routing_get_port_mixer,
  17648. msm_routing_put_port_mixer),
  17649. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17650. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17651. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17652. msm_routing_get_port_mixer,
  17653. msm_routing_put_port_mixer),
  17654. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17655. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17656. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17657. msm_routing_get_port_mixer,
  17658. msm_routing_put_port_mixer),
  17659. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17660. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17661. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17662. msm_routing_get_port_mixer,
  17663. msm_routing_put_port_mixer),
  17664. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17665. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17666. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17667. msm_routing_get_port_mixer,
  17668. msm_routing_put_port_mixer),
  17669. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17670. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17671. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17672. msm_routing_get_port_mixer,
  17673. msm_routing_put_port_mixer),
  17674. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17675. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17676. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17677. msm_routing_get_port_mixer,
  17678. msm_routing_put_port_mixer),
  17679. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17680. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17681. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17682. msm_routing_get_port_mixer,
  17683. msm_routing_put_port_mixer),
  17684. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17685. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17686. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17687. msm_routing_get_port_mixer,
  17688. msm_routing_put_port_mixer),
  17689. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17690. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17691. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17692. msm_routing_get_port_mixer,
  17693. msm_routing_put_port_mixer),
  17694. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17695. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17696. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17697. msm_routing_get_port_mixer,
  17698. msm_routing_put_port_mixer),
  17699. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17700. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17701. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17702. msm_routing_get_port_mixer,
  17703. msm_routing_put_port_mixer),
  17704. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17705. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17706. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17707. msm_routing_get_port_mixer,
  17708. msm_routing_put_port_mixer),
  17709. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17710. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17711. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17712. msm_routing_get_port_mixer,
  17713. msm_routing_put_port_mixer),
  17714. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17715. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17716. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17717. msm_routing_get_port_mixer,
  17718. msm_routing_put_port_mixer),
  17719. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17720. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17721. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17722. msm_routing_get_port_mixer,
  17723. msm_routing_put_port_mixer),
  17724. };
  17725. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  17726. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17727. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17728. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17729. msm_routing_get_port_mixer,
  17730. msm_routing_put_port_mixer),
  17731. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17732. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17733. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17734. msm_routing_get_port_mixer,
  17735. msm_routing_put_port_mixer),
  17736. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17737. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17738. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17739. msm_routing_get_port_mixer,
  17740. msm_routing_put_port_mixer),
  17741. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17742. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17743. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17744. msm_routing_get_port_mixer,
  17745. msm_routing_put_port_mixer),
  17746. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17747. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17748. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17749. msm_routing_get_port_mixer,
  17750. msm_routing_put_port_mixer),
  17751. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17752. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17753. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17754. msm_routing_get_port_mixer,
  17755. msm_routing_put_port_mixer),
  17756. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17757. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17758. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17759. msm_routing_get_port_mixer,
  17760. msm_routing_put_port_mixer),
  17761. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17762. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17763. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17764. msm_routing_get_port_mixer,
  17765. msm_routing_put_port_mixer),
  17766. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17767. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17768. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17769. msm_routing_get_port_mixer,
  17770. msm_routing_put_port_mixer),
  17771. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17772. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17773. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17774. msm_routing_get_port_mixer,
  17775. msm_routing_put_port_mixer),
  17776. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17777. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17778. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17779. msm_routing_get_port_mixer,
  17780. msm_routing_put_port_mixer),
  17781. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17782. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17783. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17784. msm_routing_get_port_mixer,
  17785. msm_routing_put_port_mixer),
  17786. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17787. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17788. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17789. msm_routing_get_port_mixer,
  17790. msm_routing_put_port_mixer),
  17791. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17792. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17793. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17794. msm_routing_get_port_mixer,
  17795. msm_routing_put_port_mixer),
  17796. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17797. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17798. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17799. msm_routing_get_port_mixer,
  17800. msm_routing_put_port_mixer),
  17801. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17802. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17803. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17804. msm_routing_get_port_mixer,
  17805. msm_routing_put_port_mixer),
  17806. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17807. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17808. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17809. msm_routing_get_port_mixer,
  17810. msm_routing_put_port_mixer),
  17811. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17812. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17813. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17814. msm_routing_get_port_mixer,
  17815. msm_routing_put_port_mixer),
  17816. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17817. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17818. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17819. msm_routing_get_port_mixer,
  17820. msm_routing_put_port_mixer),
  17821. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17822. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17823. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17824. msm_routing_get_port_mixer,
  17825. msm_routing_put_port_mixer),
  17826. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17827. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17828. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17829. msm_routing_get_port_mixer,
  17830. msm_routing_put_port_mixer),
  17831. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17832. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17833. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17834. msm_routing_get_port_mixer,
  17835. msm_routing_put_port_mixer),
  17836. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17837. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17838. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17839. msm_routing_get_port_mixer,
  17840. msm_routing_put_port_mixer),
  17841. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17842. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17843. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17844. msm_routing_get_port_mixer,
  17845. msm_routing_put_port_mixer),
  17846. };
  17847. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  17848. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17849. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17850. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17851. msm_routing_get_port_mixer,
  17852. msm_routing_put_port_mixer),
  17853. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17854. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17855. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17856. msm_routing_get_port_mixer,
  17857. msm_routing_put_port_mixer),
  17858. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17859. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17860. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17861. msm_routing_get_port_mixer,
  17862. msm_routing_put_port_mixer),
  17863. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17864. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17865. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17866. msm_routing_get_port_mixer,
  17867. msm_routing_put_port_mixer),
  17868. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17869. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17870. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17871. msm_routing_get_port_mixer,
  17872. msm_routing_put_port_mixer),
  17873. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17874. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17875. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17876. msm_routing_get_port_mixer,
  17877. msm_routing_put_port_mixer),
  17878. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17879. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17880. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17881. msm_routing_get_port_mixer,
  17882. msm_routing_put_port_mixer),
  17883. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17884. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17885. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17886. msm_routing_get_port_mixer,
  17887. msm_routing_put_port_mixer),
  17888. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17889. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17890. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17891. msm_routing_get_port_mixer,
  17892. msm_routing_put_port_mixer),
  17893. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17894. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17895. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17896. msm_routing_get_port_mixer,
  17897. msm_routing_put_port_mixer),
  17898. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17899. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17900. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17901. msm_routing_get_port_mixer,
  17902. msm_routing_put_port_mixer),
  17903. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17904. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17905. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17906. msm_routing_get_port_mixer,
  17907. msm_routing_put_port_mixer),
  17908. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17909. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17910. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17911. msm_routing_get_port_mixer,
  17912. msm_routing_put_port_mixer),
  17913. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17914. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17915. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17916. msm_routing_get_port_mixer,
  17917. msm_routing_put_port_mixer),
  17918. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17919. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17920. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17921. msm_routing_get_port_mixer,
  17922. msm_routing_put_port_mixer),
  17923. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17924. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17925. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17926. msm_routing_get_port_mixer,
  17927. msm_routing_put_port_mixer),
  17928. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17929. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17930. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17931. msm_routing_get_port_mixer,
  17932. msm_routing_put_port_mixer),
  17933. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17934. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17935. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17936. msm_routing_get_port_mixer,
  17937. msm_routing_put_port_mixer),
  17938. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17939. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17940. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17941. msm_routing_get_port_mixer,
  17942. msm_routing_put_port_mixer),
  17943. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17944. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17945. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17946. msm_routing_get_port_mixer,
  17947. msm_routing_put_port_mixer),
  17948. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17949. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17950. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17951. msm_routing_get_port_mixer,
  17952. msm_routing_put_port_mixer),
  17953. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17954. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17955. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17956. msm_routing_get_port_mixer,
  17957. msm_routing_put_port_mixer),
  17958. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17959. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17960. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17961. msm_routing_get_port_mixer,
  17962. msm_routing_put_port_mixer),
  17963. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17964. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17965. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17966. msm_routing_get_port_mixer,
  17967. msm_routing_put_port_mixer),
  17968. };
  17969. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  17970. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17971. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17972. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17973. msm_routing_get_port_mixer,
  17974. msm_routing_put_port_mixer),
  17975. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17976. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17977. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17978. msm_routing_get_port_mixer,
  17979. msm_routing_put_port_mixer),
  17980. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17981. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17982. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17983. msm_routing_get_port_mixer,
  17984. msm_routing_put_port_mixer),
  17985. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17986. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17987. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17988. msm_routing_get_port_mixer,
  17989. msm_routing_put_port_mixer),
  17990. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17991. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17992. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17993. msm_routing_get_port_mixer,
  17994. msm_routing_put_port_mixer),
  17995. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17996. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17997. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17998. msm_routing_get_port_mixer,
  17999. msm_routing_put_port_mixer),
  18000. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18001. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18002. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18003. msm_routing_get_port_mixer,
  18004. msm_routing_put_port_mixer),
  18005. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18006. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18007. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18008. msm_routing_get_port_mixer,
  18009. msm_routing_put_port_mixer),
  18010. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18011. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18012. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18013. msm_routing_get_port_mixer,
  18014. msm_routing_put_port_mixer),
  18015. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18016. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18017. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18018. msm_routing_get_port_mixer,
  18019. msm_routing_put_port_mixer),
  18020. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18021. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18022. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18023. msm_routing_get_port_mixer,
  18024. msm_routing_put_port_mixer),
  18025. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18026. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18027. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18028. msm_routing_get_port_mixer,
  18029. msm_routing_put_port_mixer),
  18030. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18031. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18032. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18033. msm_routing_get_port_mixer,
  18034. msm_routing_put_port_mixer),
  18035. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18036. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18037. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18038. msm_routing_get_port_mixer,
  18039. msm_routing_put_port_mixer),
  18040. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18041. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18042. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18043. msm_routing_get_port_mixer,
  18044. msm_routing_put_port_mixer),
  18045. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18046. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18047. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18048. msm_routing_get_port_mixer,
  18049. msm_routing_put_port_mixer),
  18050. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18051. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18052. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18053. msm_routing_get_port_mixer,
  18054. msm_routing_put_port_mixer),
  18055. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18056. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18057. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18058. msm_routing_get_port_mixer,
  18059. msm_routing_put_port_mixer),
  18060. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18061. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18062. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18063. msm_routing_get_port_mixer,
  18064. msm_routing_put_port_mixer),
  18065. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18066. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18067. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18068. msm_routing_get_port_mixer,
  18069. msm_routing_put_port_mixer),
  18070. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18071. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18072. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18073. msm_routing_get_port_mixer,
  18074. msm_routing_put_port_mixer),
  18075. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18076. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18077. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18078. msm_routing_get_port_mixer,
  18079. msm_routing_put_port_mixer),
  18080. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18081. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18082. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18083. msm_routing_get_port_mixer,
  18084. msm_routing_put_port_mixer),
  18085. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18086. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18087. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18088. msm_routing_get_port_mixer,
  18089. msm_routing_put_port_mixer),
  18090. };
  18091. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  18092. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18093. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18094. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18095. msm_routing_get_port_mixer,
  18096. msm_routing_put_port_mixer),
  18097. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18098. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18099. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18100. msm_routing_get_port_mixer,
  18101. msm_routing_put_port_mixer),
  18102. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18103. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18104. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18105. msm_routing_get_port_mixer,
  18106. msm_routing_put_port_mixer),
  18107. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18108. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18109. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18110. msm_routing_get_port_mixer,
  18111. msm_routing_put_port_mixer),
  18112. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18113. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18114. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18115. msm_routing_get_port_mixer,
  18116. msm_routing_put_port_mixer),
  18117. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18118. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18119. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18120. msm_routing_get_port_mixer,
  18121. msm_routing_put_port_mixer),
  18122. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18123. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18124. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18125. msm_routing_get_port_mixer,
  18126. msm_routing_put_port_mixer),
  18127. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18128. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18129. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18130. msm_routing_get_port_mixer,
  18131. msm_routing_put_port_mixer),
  18132. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18133. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18134. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18135. msm_routing_get_port_mixer,
  18136. msm_routing_put_port_mixer),
  18137. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18138. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18139. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18140. msm_routing_get_port_mixer,
  18141. msm_routing_put_port_mixer),
  18142. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18143. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18144. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18145. msm_routing_get_port_mixer,
  18146. msm_routing_put_port_mixer),
  18147. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18148. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18149. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18150. msm_routing_get_port_mixer,
  18151. msm_routing_put_port_mixer),
  18152. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18153. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18154. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18155. msm_routing_get_port_mixer,
  18156. msm_routing_put_port_mixer),
  18157. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18158. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18159. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18160. msm_routing_get_port_mixer,
  18161. msm_routing_put_port_mixer),
  18162. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18163. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18164. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18165. msm_routing_get_port_mixer,
  18166. msm_routing_put_port_mixer),
  18167. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18168. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18169. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18170. msm_routing_get_port_mixer,
  18171. msm_routing_put_port_mixer),
  18172. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18173. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18174. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18175. msm_routing_get_port_mixer,
  18176. msm_routing_put_port_mixer),
  18177. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18178. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18179. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18180. msm_routing_get_port_mixer,
  18181. msm_routing_put_port_mixer),
  18182. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18183. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18184. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18185. msm_routing_get_port_mixer,
  18186. msm_routing_put_port_mixer),
  18187. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18188. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18189. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18190. msm_routing_get_port_mixer,
  18191. msm_routing_put_port_mixer),
  18192. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18193. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18194. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18195. msm_routing_get_port_mixer,
  18196. msm_routing_put_port_mixer),
  18197. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18198. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18199. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18200. msm_routing_get_port_mixer,
  18201. msm_routing_put_port_mixer),
  18202. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18203. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18204. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18205. msm_routing_get_port_mixer,
  18206. msm_routing_put_port_mixer),
  18207. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18208. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18209. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18210. msm_routing_get_port_mixer,
  18211. msm_routing_put_port_mixer),
  18212. };
  18213. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  18214. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  18215. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  18216. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  18217. msm_routing_get_port_mixer,
  18218. msm_routing_put_port_mixer),
  18219. };
  18220. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  18221. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18222. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18223. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18224. msm_routing_get_port_mixer,
  18225. msm_routing_put_port_mixer),
  18226. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18227. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18228. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18229. msm_routing_get_port_mixer,
  18230. msm_routing_put_port_mixer),
  18231. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18232. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18233. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18234. msm_routing_get_port_mixer,
  18235. msm_routing_put_port_mixer),
  18236. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18237. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18238. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18239. msm_routing_get_port_mixer,
  18240. msm_routing_put_port_mixer),
  18241. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18242. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18243. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18244. msm_routing_get_port_mixer,
  18245. msm_routing_put_port_mixer),
  18246. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18247. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18248. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18249. msm_routing_get_port_mixer,
  18250. msm_routing_put_port_mixer),
  18251. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18252. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18253. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18254. msm_routing_get_port_mixer,
  18255. msm_routing_put_port_mixer),
  18256. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18257. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18258. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18259. msm_routing_get_port_mixer,
  18260. msm_routing_put_port_mixer),
  18261. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18262. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18263. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18264. msm_routing_get_port_mixer,
  18265. msm_routing_put_port_mixer),
  18266. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18267. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18268. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18269. msm_routing_get_port_mixer,
  18270. msm_routing_put_port_mixer),
  18271. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18272. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18273. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18274. msm_routing_get_port_mixer,
  18275. msm_routing_put_port_mixer),
  18276. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18277. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18278. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18279. msm_routing_get_port_mixer,
  18280. msm_routing_put_port_mixer),
  18281. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18282. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18283. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18284. msm_routing_get_port_mixer,
  18285. msm_routing_put_port_mixer),
  18286. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18287. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18288. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18289. msm_routing_get_port_mixer,
  18290. msm_routing_put_port_mixer),
  18291. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18292. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18293. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18294. msm_routing_get_port_mixer,
  18295. msm_routing_put_port_mixer),
  18296. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18297. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18298. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18299. msm_routing_get_port_mixer,
  18300. msm_routing_put_port_mixer),
  18301. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18302. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18303. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18304. msm_routing_get_port_mixer,
  18305. msm_routing_put_port_mixer),
  18306. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18307. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18308. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18309. msm_routing_get_port_mixer,
  18310. msm_routing_put_port_mixer),
  18311. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18312. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18313. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18314. msm_routing_get_port_mixer,
  18315. msm_routing_put_port_mixer),
  18316. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18317. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18318. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18319. msm_routing_get_port_mixer,
  18320. msm_routing_put_port_mixer),
  18321. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18322. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18323. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18324. msm_routing_get_port_mixer,
  18325. msm_routing_put_port_mixer),
  18326. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18327. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18328. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18329. msm_routing_get_port_mixer,
  18330. msm_routing_put_port_mixer),
  18331. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18332. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18333. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18334. msm_routing_get_port_mixer,
  18335. msm_routing_put_port_mixer),
  18336. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18337. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18338. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18339. msm_routing_get_port_mixer,
  18340. msm_routing_put_port_mixer),
  18341. };
  18342. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  18343. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18344. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18345. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18346. msm_routing_get_port_mixer,
  18347. msm_routing_put_port_mixer),
  18348. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18349. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18350. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18351. msm_routing_get_port_mixer,
  18352. msm_routing_put_port_mixer),
  18353. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18354. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18355. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18356. msm_routing_get_port_mixer,
  18357. msm_routing_put_port_mixer),
  18358. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18359. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18360. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18361. msm_routing_get_port_mixer,
  18362. msm_routing_put_port_mixer),
  18363. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18364. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18365. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18366. msm_routing_get_port_mixer,
  18367. msm_routing_put_port_mixer),
  18368. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18369. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18370. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18371. msm_routing_get_port_mixer,
  18372. msm_routing_put_port_mixer),
  18373. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18374. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18375. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18376. msm_routing_get_port_mixer,
  18377. msm_routing_put_port_mixer),
  18378. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18379. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18380. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18381. msm_routing_get_port_mixer,
  18382. msm_routing_put_port_mixer),
  18383. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18384. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18385. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18386. msm_routing_get_port_mixer,
  18387. msm_routing_put_port_mixer),
  18388. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18389. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18390. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18391. msm_routing_get_port_mixer,
  18392. msm_routing_put_port_mixer),
  18393. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18394. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18395. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18396. msm_routing_get_port_mixer,
  18397. msm_routing_put_port_mixer),
  18398. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18399. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18400. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18401. msm_routing_get_port_mixer,
  18402. msm_routing_put_port_mixer),
  18403. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18404. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18405. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18406. msm_routing_get_port_mixer,
  18407. msm_routing_put_port_mixer),
  18408. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18409. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18410. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18411. msm_routing_get_port_mixer,
  18412. msm_routing_put_port_mixer),
  18413. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18414. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18415. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18416. msm_routing_get_port_mixer,
  18417. msm_routing_put_port_mixer),
  18418. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18419. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18420. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18421. msm_routing_get_port_mixer,
  18422. msm_routing_put_port_mixer),
  18423. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18424. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18425. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18426. msm_routing_get_port_mixer,
  18427. msm_routing_put_port_mixer),
  18428. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18429. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18430. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18431. msm_routing_get_port_mixer,
  18432. msm_routing_put_port_mixer),
  18433. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18434. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18435. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18436. msm_routing_get_port_mixer,
  18437. msm_routing_put_port_mixer),
  18438. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18439. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18440. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18441. msm_routing_get_port_mixer,
  18442. msm_routing_put_port_mixer),
  18443. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18444. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18445. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18446. msm_routing_get_port_mixer,
  18447. msm_routing_put_port_mixer),
  18448. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18449. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18450. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18451. msm_routing_get_port_mixer,
  18452. msm_routing_put_port_mixer),
  18453. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18454. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18455. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18456. msm_routing_get_port_mixer,
  18457. msm_routing_put_port_mixer),
  18458. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18459. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18460. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18461. msm_routing_get_port_mixer,
  18462. msm_routing_put_port_mixer),
  18463. };
  18464. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  18465. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18466. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18467. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18468. msm_routing_get_port_mixer,
  18469. msm_routing_put_port_mixer),
  18470. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18471. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18472. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18473. msm_routing_get_port_mixer,
  18474. msm_routing_put_port_mixer),
  18475. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18476. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18477. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18478. msm_routing_get_port_mixer,
  18479. msm_routing_put_port_mixer),
  18480. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18481. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18482. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18483. msm_routing_get_port_mixer,
  18484. msm_routing_put_port_mixer),
  18485. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18486. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18487. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18488. msm_routing_get_port_mixer,
  18489. msm_routing_put_port_mixer),
  18490. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18491. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18492. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18493. msm_routing_get_port_mixer,
  18494. msm_routing_put_port_mixer),
  18495. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18496. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18497. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18498. msm_routing_get_port_mixer,
  18499. msm_routing_put_port_mixer),
  18500. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18501. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18502. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18503. msm_routing_get_port_mixer,
  18504. msm_routing_put_port_mixer),
  18505. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18506. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18507. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18508. msm_routing_get_port_mixer,
  18509. msm_routing_put_port_mixer),
  18510. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18511. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18512. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18513. msm_routing_get_port_mixer,
  18514. msm_routing_put_port_mixer),
  18515. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18516. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18517. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18518. msm_routing_get_port_mixer,
  18519. msm_routing_put_port_mixer),
  18520. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18521. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18522. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18523. msm_routing_get_port_mixer,
  18524. msm_routing_put_port_mixer),
  18525. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18526. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18527. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18528. msm_routing_get_port_mixer,
  18529. msm_routing_put_port_mixer),
  18530. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18531. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18532. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18533. msm_routing_get_port_mixer,
  18534. msm_routing_put_port_mixer),
  18535. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18536. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18537. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18538. msm_routing_get_port_mixer,
  18539. msm_routing_put_port_mixer),
  18540. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18541. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18542. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18543. msm_routing_get_port_mixer,
  18544. msm_routing_put_port_mixer),
  18545. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18546. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18547. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18548. msm_routing_get_port_mixer,
  18549. msm_routing_put_port_mixer),
  18550. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18551. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18552. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18553. msm_routing_get_port_mixer,
  18554. msm_routing_put_port_mixer),
  18555. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18556. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18557. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18558. msm_routing_get_port_mixer,
  18559. msm_routing_put_port_mixer),
  18560. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18561. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18562. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18563. msm_routing_get_port_mixer,
  18564. msm_routing_put_port_mixer),
  18565. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18566. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18567. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18568. msm_routing_get_port_mixer,
  18569. msm_routing_put_port_mixer),
  18570. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18571. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18572. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18573. msm_routing_get_port_mixer,
  18574. msm_routing_put_port_mixer),
  18575. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18576. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18577. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18578. msm_routing_get_port_mixer,
  18579. msm_routing_put_port_mixer),
  18580. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18581. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18582. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18583. msm_routing_get_port_mixer,
  18584. msm_routing_put_port_mixer),
  18585. };
  18586. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  18587. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18588. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18589. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18590. msm_routing_get_port_mixer,
  18591. msm_routing_put_port_mixer),
  18592. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18593. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18594. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18595. msm_routing_get_port_mixer,
  18596. msm_routing_put_port_mixer),
  18597. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18598. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18599. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18600. msm_routing_get_port_mixer,
  18601. msm_routing_put_port_mixer),
  18602. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18603. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18604. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18605. msm_routing_get_port_mixer,
  18606. msm_routing_put_port_mixer),
  18607. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18608. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18609. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18610. msm_routing_get_port_mixer,
  18611. msm_routing_put_port_mixer),
  18612. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18613. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18614. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18615. msm_routing_get_port_mixer,
  18616. msm_routing_put_port_mixer),
  18617. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18618. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18619. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18620. msm_routing_get_port_mixer,
  18621. msm_routing_put_port_mixer),
  18622. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18623. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18624. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18625. msm_routing_get_port_mixer,
  18626. msm_routing_put_port_mixer),
  18627. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18628. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18629. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18630. msm_routing_get_port_mixer,
  18631. msm_routing_put_port_mixer),
  18632. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18633. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18634. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18635. msm_routing_get_port_mixer,
  18636. msm_routing_put_port_mixer),
  18637. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18638. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18639. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18640. msm_routing_get_port_mixer,
  18641. msm_routing_put_port_mixer),
  18642. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18643. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18644. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18645. msm_routing_get_port_mixer,
  18646. msm_routing_put_port_mixer),
  18647. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18648. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18649. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18650. msm_routing_get_port_mixer,
  18651. msm_routing_put_port_mixer),
  18652. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18653. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18654. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18655. msm_routing_get_port_mixer,
  18656. msm_routing_put_port_mixer),
  18657. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18658. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18659. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18660. msm_routing_get_port_mixer,
  18661. msm_routing_put_port_mixer),
  18662. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18663. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18664. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18665. msm_routing_get_port_mixer,
  18666. msm_routing_put_port_mixer),
  18667. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18668. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18669. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18670. msm_routing_get_port_mixer,
  18671. msm_routing_put_port_mixer),
  18672. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18673. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18674. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18675. msm_routing_get_port_mixer,
  18676. msm_routing_put_port_mixer),
  18677. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18678. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18679. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18680. msm_routing_get_port_mixer,
  18681. msm_routing_put_port_mixer),
  18682. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18683. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18684. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18685. msm_routing_get_port_mixer,
  18686. msm_routing_put_port_mixer),
  18687. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18688. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18689. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18690. msm_routing_get_port_mixer,
  18691. msm_routing_put_port_mixer),
  18692. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18693. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18694. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18695. msm_routing_get_port_mixer,
  18696. msm_routing_put_port_mixer),
  18697. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18698. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18699. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18700. msm_routing_get_port_mixer,
  18701. msm_routing_put_port_mixer),
  18702. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18703. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18704. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18705. msm_routing_get_port_mixer,
  18706. msm_routing_put_port_mixer),
  18707. };
  18708. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  18709. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18710. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18711. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18712. msm_routing_get_port_mixer,
  18713. msm_routing_put_port_mixer),
  18714. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18715. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18716. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18717. msm_routing_get_port_mixer,
  18718. msm_routing_put_port_mixer),
  18719. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18720. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18721. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18722. msm_routing_get_port_mixer,
  18723. msm_routing_put_port_mixer),
  18724. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18725. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18726. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18727. msm_routing_get_port_mixer,
  18728. msm_routing_put_port_mixer),
  18729. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18730. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18731. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18732. msm_routing_get_port_mixer,
  18733. msm_routing_put_port_mixer),
  18734. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18735. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18736. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18737. msm_routing_get_port_mixer,
  18738. msm_routing_put_port_mixer),
  18739. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18740. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18741. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18742. msm_routing_get_port_mixer,
  18743. msm_routing_put_port_mixer),
  18744. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18745. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18746. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18747. msm_routing_get_port_mixer,
  18748. msm_routing_put_port_mixer),
  18749. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18750. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18751. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18752. msm_routing_get_port_mixer,
  18753. msm_routing_put_port_mixer),
  18754. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18755. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18756. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18757. msm_routing_get_port_mixer,
  18758. msm_routing_put_port_mixer),
  18759. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18760. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18761. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18762. msm_routing_get_port_mixer,
  18763. msm_routing_put_port_mixer),
  18764. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18765. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18766. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18767. msm_routing_get_port_mixer,
  18768. msm_routing_put_port_mixer),
  18769. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18770. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18771. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18772. msm_routing_get_port_mixer,
  18773. msm_routing_put_port_mixer),
  18774. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18775. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18776. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18777. msm_routing_get_port_mixer,
  18778. msm_routing_put_port_mixer),
  18779. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18780. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18781. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18782. msm_routing_get_port_mixer,
  18783. msm_routing_put_port_mixer),
  18784. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18785. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18786. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18787. msm_routing_get_port_mixer,
  18788. msm_routing_put_port_mixer),
  18789. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18790. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18791. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18792. msm_routing_get_port_mixer,
  18793. msm_routing_put_port_mixer),
  18794. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18795. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18796. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18797. msm_routing_get_port_mixer,
  18798. msm_routing_put_port_mixer),
  18799. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18800. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18801. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18802. msm_routing_get_port_mixer,
  18803. msm_routing_put_port_mixer),
  18804. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18805. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18806. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18807. msm_routing_get_port_mixer,
  18808. msm_routing_put_port_mixer),
  18809. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18810. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18811. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18812. msm_routing_get_port_mixer,
  18813. msm_routing_put_port_mixer),
  18814. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18815. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18816. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18817. msm_routing_get_port_mixer,
  18818. msm_routing_put_port_mixer),
  18819. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18820. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18821. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18822. msm_routing_get_port_mixer,
  18823. msm_routing_put_port_mixer),
  18824. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18825. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18826. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18827. msm_routing_get_port_mixer,
  18828. msm_routing_put_port_mixer),
  18829. };
  18830. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  18831. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18832. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18833. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18834. msm_routing_get_port_mixer,
  18835. msm_routing_put_port_mixer),
  18836. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18837. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18838. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18839. msm_routing_get_port_mixer,
  18840. msm_routing_put_port_mixer),
  18841. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18842. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18843. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18844. msm_routing_get_port_mixer,
  18845. msm_routing_put_port_mixer),
  18846. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18847. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18848. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18849. msm_routing_get_port_mixer,
  18850. msm_routing_put_port_mixer),
  18851. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18852. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18853. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18854. msm_routing_get_port_mixer,
  18855. msm_routing_put_port_mixer),
  18856. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18857. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18858. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18859. msm_routing_get_port_mixer,
  18860. msm_routing_put_port_mixer),
  18861. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18862. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18863. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18864. msm_routing_get_port_mixer,
  18865. msm_routing_put_port_mixer),
  18866. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18867. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18868. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18869. msm_routing_get_port_mixer,
  18870. msm_routing_put_port_mixer),
  18871. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18872. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18873. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18874. msm_routing_get_port_mixer,
  18875. msm_routing_put_port_mixer),
  18876. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18877. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18878. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18879. msm_routing_get_port_mixer,
  18880. msm_routing_put_port_mixer),
  18881. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18882. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18883. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18884. msm_routing_get_port_mixer,
  18885. msm_routing_put_port_mixer),
  18886. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18887. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18888. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18889. msm_routing_get_port_mixer,
  18890. msm_routing_put_port_mixer),
  18891. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18892. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18893. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18894. msm_routing_get_port_mixer,
  18895. msm_routing_put_port_mixer),
  18896. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18897. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18898. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18899. msm_routing_get_port_mixer,
  18900. msm_routing_put_port_mixer),
  18901. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18902. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18903. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18904. msm_routing_get_port_mixer,
  18905. msm_routing_put_port_mixer),
  18906. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18907. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18908. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18909. msm_routing_get_port_mixer,
  18910. msm_routing_put_port_mixer),
  18911. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18912. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18913. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18914. msm_routing_get_port_mixer,
  18915. msm_routing_put_port_mixer),
  18916. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18917. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18918. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18919. msm_routing_get_port_mixer,
  18920. msm_routing_put_port_mixer),
  18921. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18922. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18923. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18924. msm_routing_get_port_mixer,
  18925. msm_routing_put_port_mixer),
  18926. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18927. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18928. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18929. msm_routing_get_port_mixer,
  18930. msm_routing_put_port_mixer),
  18931. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18932. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18933. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18934. msm_routing_get_port_mixer,
  18935. msm_routing_put_port_mixer),
  18936. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18937. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18938. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18939. msm_routing_get_port_mixer,
  18940. msm_routing_put_port_mixer),
  18941. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18942. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18943. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18944. msm_routing_get_port_mixer,
  18945. msm_routing_put_port_mixer),
  18946. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18947. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18948. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18949. msm_routing_get_port_mixer,
  18950. msm_routing_put_port_mixer),
  18951. };
  18952. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  18953. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18954. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18955. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18956. msm_routing_get_port_mixer,
  18957. msm_routing_put_port_mixer),
  18958. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18959. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18960. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18961. msm_routing_get_port_mixer,
  18962. msm_routing_put_port_mixer),
  18963. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18964. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18965. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18966. msm_routing_get_port_mixer,
  18967. msm_routing_put_port_mixer),
  18968. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18969. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18970. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18971. msm_routing_get_port_mixer,
  18972. msm_routing_put_port_mixer),
  18973. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18974. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18975. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18976. msm_routing_get_port_mixer,
  18977. msm_routing_put_port_mixer),
  18978. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18979. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18980. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18981. msm_routing_get_port_mixer,
  18982. msm_routing_put_port_mixer),
  18983. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18984. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18985. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18986. msm_routing_get_port_mixer,
  18987. msm_routing_put_port_mixer),
  18988. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18989. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18990. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18991. msm_routing_get_port_mixer,
  18992. msm_routing_put_port_mixer),
  18993. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18994. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18995. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18996. msm_routing_get_port_mixer,
  18997. msm_routing_put_port_mixer),
  18998. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18999. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19000. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19001. msm_routing_get_port_mixer,
  19002. msm_routing_put_port_mixer),
  19003. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19004. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19005. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19006. msm_routing_get_port_mixer,
  19007. msm_routing_put_port_mixer),
  19008. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19009. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19010. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19011. msm_routing_get_port_mixer,
  19012. msm_routing_put_port_mixer),
  19013. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19014. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19015. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19016. msm_routing_get_port_mixer,
  19017. msm_routing_put_port_mixer),
  19018. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19019. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19020. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19021. msm_routing_get_port_mixer,
  19022. msm_routing_put_port_mixer),
  19023. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19024. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19025. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19026. msm_routing_get_port_mixer,
  19027. msm_routing_put_port_mixer),
  19028. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19029. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19030. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19031. msm_routing_get_port_mixer,
  19032. msm_routing_put_port_mixer),
  19033. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19034. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19035. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19036. msm_routing_get_port_mixer,
  19037. msm_routing_put_port_mixer),
  19038. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19039. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19040. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19041. msm_routing_get_port_mixer,
  19042. msm_routing_put_port_mixer),
  19043. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19044. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19045. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19046. msm_routing_get_port_mixer,
  19047. msm_routing_put_port_mixer),
  19048. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19049. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19050. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19051. msm_routing_get_port_mixer,
  19052. msm_routing_put_port_mixer),
  19053. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19054. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19055. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19056. msm_routing_get_port_mixer,
  19057. msm_routing_put_port_mixer),
  19058. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19059. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19060. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19061. msm_routing_get_port_mixer,
  19062. msm_routing_put_port_mixer),
  19063. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19064. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19065. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19066. msm_routing_get_port_mixer,
  19067. msm_routing_put_port_mixer),
  19068. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19069. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19070. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19071. msm_routing_get_port_mixer,
  19072. msm_routing_put_port_mixer),
  19073. };
  19074. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  19075. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19076. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19077. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19078. msm_routing_get_port_mixer,
  19079. msm_routing_put_port_mixer),
  19080. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19081. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19082. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19083. msm_routing_get_port_mixer,
  19084. msm_routing_put_port_mixer),
  19085. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19086. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19087. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19088. msm_routing_get_port_mixer,
  19089. msm_routing_put_port_mixer),
  19090. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19091. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19092. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19093. msm_routing_get_port_mixer,
  19094. msm_routing_put_port_mixer),
  19095. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19096. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19097. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19098. msm_routing_get_port_mixer,
  19099. msm_routing_put_port_mixer),
  19100. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19101. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19102. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19103. msm_routing_get_port_mixer,
  19104. msm_routing_put_port_mixer),
  19105. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19106. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19107. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19108. msm_routing_get_port_mixer,
  19109. msm_routing_put_port_mixer),
  19110. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19111. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19112. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19113. msm_routing_get_port_mixer,
  19114. msm_routing_put_port_mixer),
  19115. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19116. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19117. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19118. msm_routing_get_port_mixer,
  19119. msm_routing_put_port_mixer),
  19120. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19121. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19122. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19123. msm_routing_get_port_mixer,
  19124. msm_routing_put_port_mixer),
  19125. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19126. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19127. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19128. msm_routing_get_port_mixer,
  19129. msm_routing_put_port_mixer),
  19130. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19131. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19132. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19133. msm_routing_get_port_mixer,
  19134. msm_routing_put_port_mixer),
  19135. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19136. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19137. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19138. msm_routing_get_port_mixer,
  19139. msm_routing_put_port_mixer),
  19140. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19141. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19142. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19143. msm_routing_get_port_mixer,
  19144. msm_routing_put_port_mixer),
  19145. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19146. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19147. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19148. msm_routing_get_port_mixer,
  19149. msm_routing_put_port_mixer),
  19150. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19151. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19152. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19153. msm_routing_get_port_mixer,
  19154. msm_routing_put_port_mixer),
  19155. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19156. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19157. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19158. msm_routing_get_port_mixer,
  19159. msm_routing_put_port_mixer),
  19160. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19161. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19162. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19163. msm_routing_get_port_mixer,
  19164. msm_routing_put_port_mixer),
  19165. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19166. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19167. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19168. msm_routing_get_port_mixer,
  19169. msm_routing_put_port_mixer),
  19170. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19171. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19172. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19173. msm_routing_get_port_mixer,
  19174. msm_routing_put_port_mixer),
  19175. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19176. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19177. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19178. msm_routing_get_port_mixer,
  19179. msm_routing_put_port_mixer),
  19180. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19181. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19182. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19183. msm_routing_get_port_mixer,
  19184. msm_routing_put_port_mixer),
  19185. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19186. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19187. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19188. msm_routing_get_port_mixer,
  19189. msm_routing_put_port_mixer),
  19190. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19191. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19192. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19193. msm_routing_get_port_mixer,
  19194. msm_routing_put_port_mixer),
  19195. };
  19196. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  19197. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  19198. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19199. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  19200. msm_routing_get_port_mixer,
  19201. msm_routing_put_port_mixer),
  19202. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  19203. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19204. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  19205. msm_routing_get_port_mixer,
  19206. msm_routing_put_port_mixer),
  19207. };
  19208. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  19209. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19210. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19211. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19212. msm_routing_get_port_mixer,
  19213. msm_routing_put_port_mixer),
  19214. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19215. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19216. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19217. msm_routing_get_port_mixer,
  19218. msm_routing_put_port_mixer),
  19219. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19220. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19221. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19222. msm_routing_get_port_mixer,
  19223. msm_routing_put_port_mixer),
  19224. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19225. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19226. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19227. msm_routing_get_port_mixer,
  19228. msm_routing_put_port_mixer),
  19229. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19230. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19231. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19232. msm_routing_get_port_mixer,
  19233. msm_routing_put_port_mixer),
  19234. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19235. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19236. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19237. msm_routing_get_port_mixer,
  19238. msm_routing_put_port_mixer),
  19239. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19240. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19241. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19242. msm_routing_get_port_mixer,
  19243. msm_routing_put_port_mixer),
  19244. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19245. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19246. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19247. msm_routing_get_port_mixer,
  19248. msm_routing_put_port_mixer),
  19249. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19250. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19251. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19252. msm_routing_get_port_mixer,
  19253. msm_routing_put_port_mixer),
  19254. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19255. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19256. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19257. msm_routing_get_port_mixer,
  19258. msm_routing_put_port_mixer),
  19259. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19260. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19261. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19262. msm_routing_get_port_mixer,
  19263. msm_routing_put_port_mixer),
  19264. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19265. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19266. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19267. msm_routing_get_port_mixer,
  19268. msm_routing_put_port_mixer),
  19269. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19270. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19271. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19272. msm_routing_get_port_mixer,
  19273. msm_routing_put_port_mixer),
  19274. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19275. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19276. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19277. msm_routing_get_port_mixer,
  19278. msm_routing_put_port_mixer),
  19279. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19280. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19281. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19282. msm_routing_get_port_mixer,
  19283. msm_routing_put_port_mixer),
  19284. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19285. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19286. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19287. msm_routing_get_port_mixer,
  19288. msm_routing_put_port_mixer),
  19289. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19290. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19291. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19292. msm_routing_get_port_mixer,
  19293. msm_routing_put_port_mixer),
  19294. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19295. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19296. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19297. msm_routing_get_port_mixer,
  19298. msm_routing_put_port_mixer),
  19299. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19300. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19301. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19302. msm_routing_get_port_mixer,
  19303. msm_routing_put_port_mixer),
  19304. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19305. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19306. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19307. msm_routing_get_port_mixer,
  19308. msm_routing_put_port_mixer),
  19309. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19310. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19311. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19312. msm_routing_get_port_mixer,
  19313. msm_routing_put_port_mixer),
  19314. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19315. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19316. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19317. msm_routing_get_port_mixer,
  19318. msm_routing_put_port_mixer),
  19319. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19320. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19321. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19322. msm_routing_get_port_mixer,
  19323. msm_routing_put_port_mixer),
  19324. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19325. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19326. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19327. msm_routing_get_port_mixer,
  19328. msm_routing_put_port_mixer),
  19329. };
  19330. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  19331. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19332. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19333. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19334. msm_routing_get_port_mixer,
  19335. msm_routing_put_port_mixer),
  19336. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19337. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19338. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19339. msm_routing_get_port_mixer,
  19340. msm_routing_put_port_mixer),
  19341. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19342. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19343. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19344. msm_routing_get_port_mixer,
  19345. msm_routing_put_port_mixer),
  19346. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19347. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19348. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19349. msm_routing_get_port_mixer,
  19350. msm_routing_put_port_mixer),
  19351. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19352. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19353. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19354. msm_routing_get_port_mixer,
  19355. msm_routing_put_port_mixer),
  19356. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19357. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19358. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19359. msm_routing_get_port_mixer,
  19360. msm_routing_put_port_mixer),
  19361. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19362. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19363. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19364. msm_routing_get_port_mixer,
  19365. msm_routing_put_port_mixer),
  19366. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19367. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19368. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19369. msm_routing_get_port_mixer,
  19370. msm_routing_put_port_mixer),
  19371. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19372. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19373. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19374. msm_routing_get_port_mixer,
  19375. msm_routing_put_port_mixer),
  19376. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19377. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19378. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19379. msm_routing_get_port_mixer,
  19380. msm_routing_put_port_mixer),
  19381. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19382. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19383. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19384. msm_routing_get_port_mixer,
  19385. msm_routing_put_port_mixer),
  19386. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19387. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19388. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19389. msm_routing_get_port_mixer,
  19390. msm_routing_put_port_mixer),
  19391. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19392. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19393. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19394. msm_routing_get_port_mixer,
  19395. msm_routing_put_port_mixer),
  19396. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19397. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19398. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19399. msm_routing_get_port_mixer,
  19400. msm_routing_put_port_mixer),
  19401. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19402. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19403. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19404. msm_routing_get_port_mixer,
  19405. msm_routing_put_port_mixer),
  19406. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19407. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19408. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19409. msm_routing_get_port_mixer,
  19410. msm_routing_put_port_mixer),
  19411. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19412. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19413. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19414. msm_routing_get_port_mixer,
  19415. msm_routing_put_port_mixer),
  19416. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19417. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19418. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19419. msm_routing_get_port_mixer,
  19420. msm_routing_put_port_mixer),
  19421. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19422. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19423. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19424. msm_routing_get_port_mixer,
  19425. msm_routing_put_port_mixer),
  19426. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19427. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19428. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19429. msm_routing_get_port_mixer,
  19430. msm_routing_put_port_mixer),
  19431. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19432. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19433. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19434. msm_routing_get_port_mixer,
  19435. msm_routing_put_port_mixer),
  19436. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19437. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19438. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19439. msm_routing_get_port_mixer,
  19440. msm_routing_put_port_mixer),
  19441. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19442. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19443. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19444. msm_routing_get_port_mixer,
  19445. msm_routing_put_port_mixer),
  19446. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19447. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19448. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19449. msm_routing_get_port_mixer,
  19450. msm_routing_put_port_mixer),
  19451. };
  19452. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  19453. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19454. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19455. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19456. msm_routing_get_port_mixer,
  19457. msm_routing_put_port_mixer),
  19458. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19459. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19460. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19461. msm_routing_get_port_mixer,
  19462. msm_routing_put_port_mixer),
  19463. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19464. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19465. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19466. msm_routing_get_port_mixer,
  19467. msm_routing_put_port_mixer),
  19468. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19469. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19470. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19471. msm_routing_get_port_mixer,
  19472. msm_routing_put_port_mixer),
  19473. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19474. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19475. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19476. msm_routing_get_port_mixer,
  19477. msm_routing_put_port_mixer),
  19478. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19479. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19480. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19481. msm_routing_get_port_mixer,
  19482. msm_routing_put_port_mixer),
  19483. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19484. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19485. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19486. msm_routing_get_port_mixer,
  19487. msm_routing_put_port_mixer),
  19488. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19489. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19490. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19491. msm_routing_get_port_mixer,
  19492. msm_routing_put_port_mixer),
  19493. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19494. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19495. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19496. msm_routing_get_port_mixer,
  19497. msm_routing_put_port_mixer),
  19498. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19499. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19500. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19501. msm_routing_get_port_mixer,
  19502. msm_routing_put_port_mixer),
  19503. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19504. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19505. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19506. msm_routing_get_port_mixer,
  19507. msm_routing_put_port_mixer),
  19508. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19509. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19510. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19511. msm_routing_get_port_mixer,
  19512. msm_routing_put_port_mixer),
  19513. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19514. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19515. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19516. msm_routing_get_port_mixer,
  19517. msm_routing_put_port_mixer),
  19518. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19519. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19520. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19521. msm_routing_get_port_mixer,
  19522. msm_routing_put_port_mixer),
  19523. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19524. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19525. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19526. msm_routing_get_port_mixer,
  19527. msm_routing_put_port_mixer),
  19528. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19529. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19530. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19531. msm_routing_get_port_mixer,
  19532. msm_routing_put_port_mixer),
  19533. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19534. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19535. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19536. msm_routing_get_port_mixer,
  19537. msm_routing_put_port_mixer),
  19538. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19539. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19540. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19541. msm_routing_get_port_mixer,
  19542. msm_routing_put_port_mixer),
  19543. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19544. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19545. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19546. msm_routing_get_port_mixer,
  19547. msm_routing_put_port_mixer),
  19548. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19549. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19550. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19551. msm_routing_get_port_mixer,
  19552. msm_routing_put_port_mixer),
  19553. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19554. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19555. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19556. msm_routing_get_port_mixer,
  19557. msm_routing_put_port_mixer),
  19558. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19559. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19560. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19561. msm_routing_get_port_mixer,
  19562. msm_routing_put_port_mixer),
  19563. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19564. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19565. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19566. msm_routing_get_port_mixer,
  19567. msm_routing_put_port_mixer),
  19568. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19569. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19570. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19571. msm_routing_get_port_mixer,
  19572. msm_routing_put_port_mixer),
  19573. };
  19574. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  19575. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19576. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19577. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19578. msm_routing_get_port_mixer,
  19579. msm_routing_put_port_mixer),
  19580. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19581. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19582. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19583. msm_routing_get_port_mixer,
  19584. msm_routing_put_port_mixer),
  19585. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19586. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19587. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19588. msm_routing_get_port_mixer,
  19589. msm_routing_put_port_mixer),
  19590. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19591. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19592. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19593. msm_routing_get_port_mixer,
  19594. msm_routing_put_port_mixer),
  19595. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19596. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19597. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19598. msm_routing_get_port_mixer,
  19599. msm_routing_put_port_mixer),
  19600. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19601. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19602. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19603. msm_routing_get_port_mixer,
  19604. msm_routing_put_port_mixer),
  19605. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19606. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19607. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19608. msm_routing_get_port_mixer,
  19609. msm_routing_put_port_mixer),
  19610. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19611. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19612. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19613. msm_routing_get_port_mixer,
  19614. msm_routing_put_port_mixer),
  19615. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19616. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19617. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19618. msm_routing_get_port_mixer,
  19619. msm_routing_put_port_mixer),
  19620. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19621. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19622. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19623. msm_routing_get_port_mixer,
  19624. msm_routing_put_port_mixer),
  19625. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19626. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19627. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19628. msm_routing_get_port_mixer,
  19629. msm_routing_put_port_mixer),
  19630. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19631. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19632. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19633. msm_routing_get_port_mixer,
  19634. msm_routing_put_port_mixer),
  19635. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19636. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19637. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19638. msm_routing_get_port_mixer,
  19639. msm_routing_put_port_mixer),
  19640. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19641. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19642. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19643. msm_routing_get_port_mixer,
  19644. msm_routing_put_port_mixer),
  19645. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19646. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19647. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19648. msm_routing_get_port_mixer,
  19649. msm_routing_put_port_mixer),
  19650. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19651. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19652. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19653. msm_routing_get_port_mixer,
  19654. msm_routing_put_port_mixer),
  19655. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19656. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19657. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19658. msm_routing_get_port_mixer,
  19659. msm_routing_put_port_mixer),
  19660. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19661. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19662. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19663. msm_routing_get_port_mixer,
  19664. msm_routing_put_port_mixer),
  19665. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19666. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19667. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19668. msm_routing_get_port_mixer,
  19669. msm_routing_put_port_mixer),
  19670. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19671. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19672. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19673. msm_routing_get_port_mixer,
  19674. msm_routing_put_port_mixer),
  19675. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19676. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19677. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19678. msm_routing_get_port_mixer,
  19679. msm_routing_put_port_mixer),
  19680. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19681. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19682. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19683. msm_routing_get_port_mixer,
  19684. msm_routing_put_port_mixer),
  19685. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19686. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19687. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19688. msm_routing_get_port_mixer,
  19689. msm_routing_put_port_mixer),
  19690. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19691. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19692. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19693. msm_routing_get_port_mixer,
  19694. msm_routing_put_port_mixer),
  19695. };
  19696. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  19697. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19698. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19699. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19700. msm_routing_get_port_mixer,
  19701. msm_routing_put_port_mixer),
  19702. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19703. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19704. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19705. msm_routing_get_port_mixer,
  19706. msm_routing_put_port_mixer),
  19707. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19708. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19709. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19710. msm_routing_get_port_mixer,
  19711. msm_routing_put_port_mixer),
  19712. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19713. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19714. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19715. msm_routing_get_port_mixer,
  19716. msm_routing_put_port_mixer),
  19717. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19718. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19719. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19720. msm_routing_get_port_mixer,
  19721. msm_routing_put_port_mixer),
  19722. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19723. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19724. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19725. msm_routing_get_port_mixer,
  19726. msm_routing_put_port_mixer),
  19727. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19728. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19729. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19730. msm_routing_get_port_mixer,
  19731. msm_routing_put_port_mixer),
  19732. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19733. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19734. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19735. msm_routing_get_port_mixer,
  19736. msm_routing_put_port_mixer),
  19737. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19738. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19739. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19740. msm_routing_get_port_mixer,
  19741. msm_routing_put_port_mixer),
  19742. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19743. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19744. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19745. msm_routing_get_port_mixer,
  19746. msm_routing_put_port_mixer),
  19747. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19748. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19749. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19750. msm_routing_get_port_mixer,
  19751. msm_routing_put_port_mixer),
  19752. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19753. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19754. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19755. msm_routing_get_port_mixer,
  19756. msm_routing_put_port_mixer),
  19757. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19758. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19759. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19760. msm_routing_get_port_mixer,
  19761. msm_routing_put_port_mixer),
  19762. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19763. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19764. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19765. msm_routing_get_port_mixer,
  19766. msm_routing_put_port_mixer),
  19767. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19768. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19769. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19770. msm_routing_get_port_mixer,
  19771. msm_routing_put_port_mixer),
  19772. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19773. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19774. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19775. msm_routing_get_port_mixer,
  19776. msm_routing_put_port_mixer),
  19777. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19778. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19779. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19780. msm_routing_get_port_mixer,
  19781. msm_routing_put_port_mixer),
  19782. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19783. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19784. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19785. msm_routing_get_port_mixer,
  19786. msm_routing_put_port_mixer),
  19787. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19788. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19789. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19790. msm_routing_get_port_mixer,
  19791. msm_routing_put_port_mixer),
  19792. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19793. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19794. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19795. msm_routing_get_port_mixer,
  19796. msm_routing_put_port_mixer),
  19797. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19798. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19799. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19800. msm_routing_get_port_mixer,
  19801. msm_routing_put_port_mixer),
  19802. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19803. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19804. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19805. msm_routing_get_port_mixer,
  19806. msm_routing_put_port_mixer),
  19807. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19808. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19809. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19810. msm_routing_get_port_mixer,
  19811. msm_routing_put_port_mixer),
  19812. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19813. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19814. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19815. msm_routing_get_port_mixer,
  19816. msm_routing_put_port_mixer),
  19817. };
  19818. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  19819. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19820. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19821. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19822. msm_routing_get_port_mixer,
  19823. msm_routing_put_port_mixer),
  19824. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19825. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19826. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19827. msm_routing_get_port_mixer,
  19828. msm_routing_put_port_mixer),
  19829. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19830. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19831. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19832. msm_routing_get_port_mixer,
  19833. msm_routing_put_port_mixer),
  19834. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19835. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19836. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19837. msm_routing_get_port_mixer,
  19838. msm_routing_put_port_mixer),
  19839. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19840. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19841. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19842. msm_routing_get_port_mixer,
  19843. msm_routing_put_port_mixer),
  19844. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19845. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19846. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19847. msm_routing_get_port_mixer,
  19848. msm_routing_put_port_mixer),
  19849. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19850. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19851. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19852. msm_routing_get_port_mixer,
  19853. msm_routing_put_port_mixer),
  19854. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19855. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19856. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19857. msm_routing_get_port_mixer,
  19858. msm_routing_put_port_mixer),
  19859. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19860. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19861. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19862. msm_routing_get_port_mixer,
  19863. msm_routing_put_port_mixer),
  19864. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19865. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19866. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19867. msm_routing_get_port_mixer,
  19868. msm_routing_put_port_mixer),
  19869. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19870. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19871. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19872. msm_routing_get_port_mixer,
  19873. msm_routing_put_port_mixer),
  19874. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19875. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19876. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19877. msm_routing_get_port_mixer,
  19878. msm_routing_put_port_mixer),
  19879. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19880. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19881. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19882. msm_routing_get_port_mixer,
  19883. msm_routing_put_port_mixer),
  19884. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19885. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19886. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19887. msm_routing_get_port_mixer,
  19888. msm_routing_put_port_mixer),
  19889. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19890. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19891. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19892. msm_routing_get_port_mixer,
  19893. msm_routing_put_port_mixer),
  19894. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19895. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19896. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19897. msm_routing_get_port_mixer,
  19898. msm_routing_put_port_mixer),
  19899. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19900. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19901. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19902. msm_routing_get_port_mixer,
  19903. msm_routing_put_port_mixer),
  19904. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19905. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19906. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19907. msm_routing_get_port_mixer,
  19908. msm_routing_put_port_mixer),
  19909. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19910. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19911. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19912. msm_routing_get_port_mixer,
  19913. msm_routing_put_port_mixer),
  19914. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19915. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19916. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19917. msm_routing_get_port_mixer,
  19918. msm_routing_put_port_mixer),
  19919. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19920. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19921. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19922. msm_routing_get_port_mixer,
  19923. msm_routing_put_port_mixer),
  19924. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19925. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19926. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19927. msm_routing_get_port_mixer,
  19928. msm_routing_put_port_mixer),
  19929. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19930. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19931. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19932. msm_routing_get_port_mixer,
  19933. msm_routing_put_port_mixer),
  19934. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19935. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19936. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19937. msm_routing_get_port_mixer,
  19938. msm_routing_put_port_mixer),
  19939. };
  19940. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  19941. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19942. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19943. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19944. msm_routing_get_port_mixer,
  19945. msm_routing_put_port_mixer),
  19946. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19947. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19948. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19949. msm_routing_get_port_mixer,
  19950. msm_routing_put_port_mixer),
  19951. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19952. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19953. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19954. msm_routing_get_port_mixer,
  19955. msm_routing_put_port_mixer),
  19956. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19957. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19958. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19959. msm_routing_get_port_mixer,
  19960. msm_routing_put_port_mixer),
  19961. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19962. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19963. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19964. msm_routing_get_port_mixer,
  19965. msm_routing_put_port_mixer),
  19966. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19967. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19968. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19969. msm_routing_get_port_mixer,
  19970. msm_routing_put_port_mixer),
  19971. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19972. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19973. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19974. msm_routing_get_port_mixer,
  19975. msm_routing_put_port_mixer),
  19976. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19977. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19978. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19979. msm_routing_get_port_mixer,
  19980. msm_routing_put_port_mixer),
  19981. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19982. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19983. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19984. msm_routing_get_port_mixer,
  19985. msm_routing_put_port_mixer),
  19986. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19987. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19988. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19989. msm_routing_get_port_mixer,
  19990. msm_routing_put_port_mixer),
  19991. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19992. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19993. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19994. msm_routing_get_port_mixer,
  19995. msm_routing_put_port_mixer),
  19996. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19997. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19998. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19999. msm_routing_get_port_mixer,
  20000. msm_routing_put_port_mixer),
  20001. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20002. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20003. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20004. msm_routing_get_port_mixer,
  20005. msm_routing_put_port_mixer),
  20006. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20007. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20008. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20009. msm_routing_get_port_mixer,
  20010. msm_routing_put_port_mixer),
  20011. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20012. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20013. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20014. msm_routing_get_port_mixer,
  20015. msm_routing_put_port_mixer),
  20016. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20017. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20018. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20019. msm_routing_get_port_mixer,
  20020. msm_routing_put_port_mixer),
  20021. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20022. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20023. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20024. msm_routing_get_port_mixer,
  20025. msm_routing_put_port_mixer),
  20026. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20027. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20028. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20029. msm_routing_get_port_mixer,
  20030. msm_routing_put_port_mixer),
  20031. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20032. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20033. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20034. msm_routing_get_port_mixer,
  20035. msm_routing_put_port_mixer),
  20036. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20037. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20038. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20039. msm_routing_get_port_mixer,
  20040. msm_routing_put_port_mixer),
  20041. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20042. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20043. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20044. msm_routing_get_port_mixer,
  20045. msm_routing_put_port_mixer),
  20046. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20047. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20048. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20049. msm_routing_get_port_mixer,
  20050. msm_routing_put_port_mixer),
  20051. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20052. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20053. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20054. msm_routing_get_port_mixer,
  20055. msm_routing_put_port_mixer),
  20056. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20057. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20058. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20059. msm_routing_get_port_mixer,
  20060. msm_routing_put_port_mixer),
  20061. };
  20062. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  20063. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20064. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20065. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20066. msm_routing_get_port_mixer,
  20067. msm_routing_put_port_mixer),
  20068. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20069. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20070. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20071. msm_routing_get_port_mixer,
  20072. msm_routing_put_port_mixer),
  20073. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20074. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20075. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20076. msm_routing_get_port_mixer,
  20077. msm_routing_put_port_mixer),
  20078. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20079. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20080. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20081. msm_routing_get_port_mixer,
  20082. msm_routing_put_port_mixer),
  20083. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20084. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20085. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20086. msm_routing_get_port_mixer,
  20087. msm_routing_put_port_mixer),
  20088. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20089. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20090. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20091. msm_routing_get_port_mixer,
  20092. msm_routing_put_port_mixer),
  20093. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20094. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20095. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20096. msm_routing_get_port_mixer,
  20097. msm_routing_put_port_mixer),
  20098. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20099. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20100. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20101. msm_routing_get_port_mixer,
  20102. msm_routing_put_port_mixer),
  20103. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20104. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20105. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20106. msm_routing_get_port_mixer,
  20107. msm_routing_put_port_mixer),
  20108. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20109. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20110. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20111. msm_routing_get_port_mixer,
  20112. msm_routing_put_port_mixer),
  20113. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20114. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20115. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20116. msm_routing_get_port_mixer,
  20117. msm_routing_put_port_mixer),
  20118. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20119. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20120. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20121. msm_routing_get_port_mixer,
  20122. msm_routing_put_port_mixer),
  20123. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20124. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20125. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20126. msm_routing_get_port_mixer,
  20127. msm_routing_put_port_mixer),
  20128. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20129. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20130. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20131. msm_routing_get_port_mixer,
  20132. msm_routing_put_port_mixer),
  20133. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20134. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20135. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20136. msm_routing_get_port_mixer,
  20137. msm_routing_put_port_mixer),
  20138. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20139. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20140. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20141. msm_routing_get_port_mixer,
  20142. msm_routing_put_port_mixer),
  20143. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20144. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20145. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20146. msm_routing_get_port_mixer,
  20147. msm_routing_put_port_mixer),
  20148. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20149. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20150. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20151. msm_routing_get_port_mixer,
  20152. msm_routing_put_port_mixer),
  20153. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20154. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20155. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20156. msm_routing_get_port_mixer,
  20157. msm_routing_put_port_mixer),
  20158. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20159. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20160. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20161. msm_routing_get_port_mixer,
  20162. msm_routing_put_port_mixer),
  20163. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20164. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20165. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20166. msm_routing_get_port_mixer,
  20167. msm_routing_put_port_mixer),
  20168. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20169. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20170. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20171. msm_routing_get_port_mixer,
  20172. msm_routing_put_port_mixer),
  20173. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20174. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20175. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20176. msm_routing_get_port_mixer,
  20177. msm_routing_put_port_mixer),
  20178. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20179. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20180. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20181. msm_routing_get_port_mixer,
  20182. msm_routing_put_port_mixer),
  20183. };
  20184. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  20185. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  20186. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20187. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  20188. msm_routing_get_port_mixer,
  20189. msm_routing_put_port_mixer),
  20190. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  20191. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20192. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  20193. msm_routing_get_port_mixer,
  20194. msm_routing_put_port_mixer),
  20195. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  20196. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20197. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  20198. msm_routing_get_port_mixer,
  20199. msm_routing_put_port_mixer),
  20200. };
  20201. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  20202. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20203. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20204. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20205. msm_routing_put_port_mixer),
  20206. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20207. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20208. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20209. msm_routing_put_port_mixer),
  20210. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20211. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20212. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20213. msm_routing_put_port_mixer),
  20214. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20215. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20216. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20217. msm_routing_put_port_mixer),
  20218. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20219. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20220. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20221. msm_routing_put_port_mixer),
  20222. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20223. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20224. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20225. msm_routing_put_port_mixer),
  20226. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20227. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20228. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20229. msm_routing_put_port_mixer),
  20230. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20231. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20232. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20233. msm_routing_put_port_mixer),
  20234. };
  20235. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  20236. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20237. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20238. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20239. msm_routing_put_port_mixer),
  20240. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20241. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20242. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20243. msm_routing_put_port_mixer),
  20244. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20245. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20246. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20247. msm_routing_put_port_mixer),
  20248. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20249. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20250. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20251. msm_routing_put_port_mixer),
  20252. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20253. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20254. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20255. msm_routing_put_port_mixer),
  20256. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20257. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20258. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20259. msm_routing_put_port_mixer),
  20260. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20261. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20262. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20263. msm_routing_put_port_mixer),
  20264. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20265. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20266. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  20267. msm_routing_put_port_mixer),
  20268. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20269. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20270. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20271. msm_routing_put_port_mixer),
  20272. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20273. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20274. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  20275. msm_routing_put_port_mixer),
  20276. };
  20277. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  20278. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20279. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20280. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20281. msm_routing_put_listen_mixer),
  20282. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20283. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20284. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20285. msm_routing_put_listen_mixer),
  20286. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20287. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20288. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20289. msm_routing_put_listen_mixer),
  20290. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20291. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20292. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20293. msm_routing_put_listen_mixer),
  20294. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20295. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20296. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20297. msm_routing_put_listen_mixer),
  20298. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20299. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20300. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20301. msm_routing_put_listen_mixer),
  20302. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20303. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20304. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20305. msm_routing_put_listen_mixer),
  20306. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20307. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20308. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20309. msm_routing_put_listen_mixer),
  20310. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20311. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20312. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20313. msm_routing_put_listen_mixer),
  20314. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20315. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20316. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20317. msm_routing_put_listen_mixer),
  20318. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20319. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20320. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20321. msm_routing_put_listen_mixer),
  20322. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20323. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20324. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20325. msm_routing_put_listen_mixer),
  20326. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20327. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20328. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20329. msm_routing_put_listen_mixer),
  20330. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20331. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20332. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20333. msm_routing_put_listen_mixer),
  20334. };
  20335. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  20336. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20337. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20338. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20339. msm_routing_put_listen_mixer),
  20340. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  20341. SND_SOC_NOPM,
  20342. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20343. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20344. msm_routing_put_listen_mixer),
  20345. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20346. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20347. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20348. msm_routing_put_listen_mixer),
  20349. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20350. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20351. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20352. msm_routing_put_listen_mixer),
  20353. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20354. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20355. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20356. msm_routing_put_listen_mixer),
  20357. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20358. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20359. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20360. msm_routing_put_listen_mixer),
  20361. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20362. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20363. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20364. msm_routing_put_listen_mixer),
  20365. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20366. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20367. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20368. msm_routing_put_listen_mixer),
  20369. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20370. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20371. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20372. msm_routing_put_listen_mixer),
  20373. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20374. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20375. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20376. msm_routing_put_listen_mixer),
  20377. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20378. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20379. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20380. msm_routing_put_listen_mixer),
  20381. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20382. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20383. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20384. msm_routing_put_listen_mixer),
  20385. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20386. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20387. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20388. msm_routing_put_listen_mixer),
  20389. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20390. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20391. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20392. msm_routing_put_listen_mixer),
  20393. };
  20394. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  20395. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20396. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20397. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20398. msm_routing_put_listen_mixer),
  20399. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20400. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20401. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20402. msm_routing_put_listen_mixer),
  20403. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20404. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20405. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20406. msm_routing_put_listen_mixer),
  20407. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20408. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20409. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20410. msm_routing_put_listen_mixer),
  20411. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20412. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20413. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20414. msm_routing_put_listen_mixer),
  20415. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20416. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20417. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20418. msm_routing_put_listen_mixer),
  20419. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20420. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20421. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20422. msm_routing_put_listen_mixer),
  20423. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20424. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20425. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20426. msm_routing_put_listen_mixer),
  20427. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20428. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20429. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20430. msm_routing_put_listen_mixer),
  20431. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20432. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20433. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20434. msm_routing_put_listen_mixer),
  20435. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20436. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20437. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20438. msm_routing_put_listen_mixer),
  20439. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20440. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20441. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20442. msm_routing_put_listen_mixer),
  20443. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20444. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20445. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20446. msm_routing_put_listen_mixer),
  20447. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20448. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20449. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20450. msm_routing_put_listen_mixer),
  20451. };
  20452. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  20453. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20454. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20455. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20456. msm_routing_put_listen_mixer),
  20457. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20458. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20459. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20460. msm_routing_put_listen_mixer),
  20461. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20462. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20463. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20464. msm_routing_put_listen_mixer),
  20465. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20466. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20467. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20468. msm_routing_put_listen_mixer),
  20469. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20470. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20471. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20472. msm_routing_put_listen_mixer),
  20473. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20474. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20475. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20476. msm_routing_put_listen_mixer),
  20477. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20478. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20479. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20480. msm_routing_put_listen_mixer),
  20481. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20482. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20483. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20484. msm_routing_put_listen_mixer),
  20485. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20486. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20487. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20488. msm_routing_put_listen_mixer),
  20489. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20490. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20491. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20492. msm_routing_put_listen_mixer),
  20493. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20494. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20495. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20496. msm_routing_put_listen_mixer),
  20497. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20498. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20499. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20500. msm_routing_put_listen_mixer),
  20501. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20502. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20503. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20504. msm_routing_put_listen_mixer),
  20505. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20506. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20507. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20508. msm_routing_put_listen_mixer),
  20509. };
  20510. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  20511. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20512. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20513. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20514. msm_routing_put_listen_mixer),
  20515. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20516. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20517. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20518. msm_routing_put_listen_mixer),
  20519. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20520. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20521. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20522. msm_routing_put_listen_mixer),
  20523. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20524. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20525. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20526. msm_routing_put_listen_mixer),
  20527. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20528. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20529. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20530. msm_routing_put_listen_mixer),
  20531. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20532. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20533. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20534. msm_routing_put_listen_mixer),
  20535. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20536. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20537. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20538. msm_routing_put_listen_mixer),
  20539. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20540. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20541. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20542. msm_routing_put_listen_mixer),
  20543. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20544. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20545. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20546. msm_routing_put_listen_mixer),
  20547. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20548. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20549. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20550. msm_routing_put_listen_mixer),
  20551. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20552. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20553. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20554. msm_routing_put_listen_mixer),
  20555. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20556. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20557. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20558. msm_routing_put_listen_mixer),
  20559. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20560. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20561. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20562. msm_routing_put_listen_mixer),
  20563. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20564. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20565. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20566. msm_routing_put_listen_mixer),
  20567. };
  20568. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  20569. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20570. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20571. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20572. msm_routing_put_listen_mixer),
  20573. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20574. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20575. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20576. msm_routing_put_listen_mixer),
  20577. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20578. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20579. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20580. msm_routing_put_listen_mixer),
  20581. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20582. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20583. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20584. msm_routing_put_listen_mixer),
  20585. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20586. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20587. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20588. msm_routing_put_listen_mixer),
  20589. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20590. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20591. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20592. msm_routing_put_listen_mixer),
  20593. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20594. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20595. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20596. msm_routing_put_listen_mixer),
  20597. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20598. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20599. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20600. msm_routing_put_listen_mixer),
  20601. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20602. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20603. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20604. msm_routing_put_listen_mixer),
  20605. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20606. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20607. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20608. msm_routing_put_listen_mixer),
  20609. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20610. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20611. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20612. msm_routing_put_listen_mixer),
  20613. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20614. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20615. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20616. msm_routing_put_listen_mixer),
  20617. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20618. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20619. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20620. msm_routing_put_listen_mixer),
  20621. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20622. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20623. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20624. msm_routing_put_listen_mixer),
  20625. };
  20626. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  20627. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20628. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20629. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20630. msm_routing_put_listen_mixer),
  20631. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20632. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20633. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20634. msm_routing_put_listen_mixer),
  20635. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20636. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20637. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20638. msm_routing_put_listen_mixer),
  20639. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20640. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20641. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20642. msm_routing_put_listen_mixer),
  20643. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20644. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20645. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20646. msm_routing_put_listen_mixer),
  20647. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20648. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20649. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20650. msm_routing_put_listen_mixer),
  20651. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20652. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20653. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20654. msm_routing_put_listen_mixer),
  20655. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20656. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20657. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20658. msm_routing_put_listen_mixer),
  20659. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20660. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20661. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20662. msm_routing_put_listen_mixer),
  20663. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20664. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20665. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20666. msm_routing_put_listen_mixer),
  20667. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20668. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20669. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20670. msm_routing_put_listen_mixer),
  20671. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20672. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20673. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20674. msm_routing_put_listen_mixer),
  20675. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20676. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20677. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20678. msm_routing_put_listen_mixer),
  20679. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20680. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20681. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20682. msm_routing_put_listen_mixer),
  20683. };
  20684. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  20685. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20686. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20687. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20688. msm_routing_put_listen_mixer),
  20689. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20690. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20691. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20692. msm_routing_put_listen_mixer),
  20693. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20694. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20695. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20696. msm_routing_put_listen_mixer),
  20697. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20698. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20699. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20700. msm_routing_put_listen_mixer),
  20701. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20702. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20703. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20704. msm_routing_put_listen_mixer),
  20705. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20706. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20707. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20708. msm_routing_put_listen_mixer),
  20709. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20710. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20711. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20712. msm_routing_put_listen_mixer),
  20713. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20714. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20715. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20716. msm_routing_put_listen_mixer),
  20717. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20718. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20719. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20720. msm_routing_put_listen_mixer),
  20721. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20722. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20723. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20724. msm_routing_put_listen_mixer),
  20725. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20726. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20727. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20728. msm_routing_put_listen_mixer),
  20729. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20730. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20731. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20732. msm_routing_put_listen_mixer),
  20733. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20734. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20735. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20736. msm_routing_put_listen_mixer),
  20737. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20738. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20739. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20740. msm_routing_put_listen_mixer),
  20741. };
  20742. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  20743. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20744. 0, 1, 0, msm_routing_get_switch_mixer,
  20745. msm_routing_put_switch_mixer);
  20746. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  20747. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20748. 0, 1, 0, msm_routing_get_switch_mixer,
  20749. msm_routing_put_switch_mixer);
  20750. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  20751. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20752. 0, 1, 0, msm_routing_get_switch_mixer,
  20753. msm_routing_put_switch_mixer);
  20754. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  20755. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20756. 0, 1, 0, msm_routing_get_switch_mixer,
  20757. msm_routing_put_switch_mixer);
  20758. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  20759. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20760. 0, 1, 0, msm_routing_get_switch_mixer,
  20761. msm_routing_put_switch_mixer);
  20762. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  20763. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20764. 0, 1, 0, msm_routing_get_switch_mixer,
  20765. msm_routing_put_switch_mixer);
  20766. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  20767. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20768. 0, 1, 0, msm_routing_get_switch_mixer,
  20769. msm_routing_put_switch_mixer);
  20770. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  20771. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20772. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  20773. msm_routing_put_fm_pcmrx_switch_mixer);
  20774. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  20775. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20776. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  20777. msm_routing_put_int0_mi2s_switch_mixer);
  20778. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  20779. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20780. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  20781. msm_routing_put_int4_mi2s_switch_mixer);
  20782. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  20783. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20784. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  20785. msm_routing_put_pri_mi2s_switch_mixer);
  20786. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  20787. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20788. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  20789. msm_routing_put_sec_mi2s_switch_mixer);
  20790. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  20791. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20792. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  20793. msm_routing_put_tert_mi2s_switch_mixer);
  20794. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  20795. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20796. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  20797. msm_routing_put_quat_mi2s_switch_mixer);
  20798. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  20799. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20800. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  20801. msm_routing_put_quin_mi2s_switch_mixer);
  20802. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  20803. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20804. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  20805. msm_routing_put_sen_mi2s_switch_mixer);
  20806. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  20807. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20808. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20809. msm_routing_put_hfp_switch_mixer);
  20810. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  20811. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20812. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20813. msm_routing_put_hfp_switch_mixer);
  20814. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  20815. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20816. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20817. msm_routing_put_hfp_switch_mixer);
  20818. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  20819. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20820. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20821. msm_routing_put_hfp_switch_mixer);
  20822. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  20823. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20824. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  20825. msm_routing_put_usb_switch_mixer);
  20826. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  20827. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20828. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  20829. msm_routing_a2dp_switch_mixer_put);
  20830. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  20831. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20832. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  20833. msm_routing_sco_switch_mixer_put);
  20834. static const struct soc_enum lsm_port_enum =
  20835. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  20836. static const char * const lsm_func_text[] = {
  20837. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  20838. };
  20839. static const struct soc_enum lsm_func_enum =
  20840. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  20841. static const struct snd_kcontrol_new lsm_controls[] = {
  20842. /* kcontrol of lsm_function */
  20843. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20844. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20845. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20846. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20847. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20848. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20849. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20850. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20851. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20852. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20853. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20854. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20855. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20856. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20857. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20858. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20859. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20860. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20861. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20862. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20863. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20864. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20865. SOC_ENUM_EXT(TERT_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20866. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20867. /* kcontrol of lsm_port */
  20868. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  20869. msm_routing_lsm_port_get,
  20870. msm_routing_lsm_port_put),
  20871. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  20872. msm_routing_lsm_port_get,
  20873. msm_routing_lsm_port_put),
  20874. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  20875. msm_routing_lsm_port_get,
  20876. msm_routing_lsm_port_put),
  20877. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  20878. msm_routing_lsm_port_get,
  20879. msm_routing_lsm_port_put),
  20880. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  20881. msm_routing_lsm_port_get,
  20882. msm_routing_lsm_port_put),
  20883. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  20884. msm_routing_lsm_port_get,
  20885. msm_routing_lsm_port_put),
  20886. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  20887. msm_routing_lsm_port_get,
  20888. msm_routing_lsm_port_put),
  20889. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  20890. msm_routing_lsm_port_get,
  20891. msm_routing_lsm_port_put),
  20892. };
  20893. static const char * const aanc_slim_0_rx_text[] = {
  20894. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  20895. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  20896. };
  20897. static const struct soc_enum aanc_slim_0_rx_enum =
  20898. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  20899. aanc_slim_0_rx_text);
  20900. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  20901. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  20902. msm_routing_slim_0_rx_aanc_mux_get,
  20903. msm_routing_slim_0_rx_aanc_mux_put)
  20904. };
  20905. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  20906. struct snd_ctl_elem_value *ucontrol)
  20907. {
  20908. ucontrol->value.integer.value[0] = aanc_level;
  20909. return 0;
  20910. }
  20911. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  20912. struct snd_ctl_elem_value *ucontrol)
  20913. {
  20914. int ret = 0;
  20915. mutex_lock(&routing_lock);
  20916. aanc_level = ucontrol->value.integer.value[0];
  20917. pr_debug("%s: value: %ld\n",
  20918. __func__, ucontrol->value.integer.value[0]);
  20919. ret = afe_set_aanc_noise_level(aanc_level);
  20920. mutex_unlock(&routing_lock);
  20921. return ret;
  20922. }
  20923. static const struct snd_kcontrol_new aanc_noise_level[] = {
  20924. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  20925. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  20926. };
  20927. static int msm_routing_get_stereo_to_custom_stereo_control(
  20928. struct snd_kcontrol *kcontrol,
  20929. struct snd_ctl_elem_value *ucontrol)
  20930. {
  20931. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  20932. return 0;
  20933. }
  20934. static int msm_routing_put_stereo_to_custom_stereo_control(
  20935. struct snd_kcontrol *kcontrol,
  20936. struct snd_ctl_elem_value *ucontrol)
  20937. {
  20938. int flag = 0, i = 0, rc = 0, idx = 0;
  20939. int be_index = 0, port_id, topo_id;
  20940. unsigned int session_id = 0;
  20941. uint16_t op_FL_ip_FL_weight = 0;
  20942. uint16_t op_FL_ip_FR_weight = 0;
  20943. uint16_t op_FR_ip_FL_weight = 0;
  20944. uint16_t op_FR_ip_FR_weight = 0;
  20945. flag = ucontrol->value.integer.value[0];
  20946. pr_debug("%s E flag %d\n", __func__, flag);
  20947. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  20948. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  20949. __func__, is_custom_stereo_on, flag);
  20950. return 0;
  20951. }
  20952. is_custom_stereo_on = flag ? true : false;
  20953. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  20954. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  20955. port_id = msm_bedais[be_index].port_id;
  20956. if (!msm_bedais[be_index].active)
  20957. continue;
  20958. if ((port_id != SLIMBUS_0_RX) &&
  20959. (port_id != RT_PROXY_PORT_001_RX) &&
  20960. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  20961. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  20962. continue;
  20963. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  20964. MSM_FRONTEND_DAI_MM_SIZE) {
  20965. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  20966. LEGACY_PCM_MODE)
  20967. goto skip_send_custom_stereo;
  20968. session_id =
  20969. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  20970. if (is_custom_stereo_on) {
  20971. op_FL_ip_FL_weight =
  20972. Q14_GAIN_ZERO_POINT_FIVE;
  20973. op_FL_ip_FR_weight =
  20974. Q14_GAIN_ZERO_POINT_FIVE;
  20975. op_FR_ip_FL_weight =
  20976. Q14_GAIN_ZERO_POINT_FIVE;
  20977. op_FR_ip_FR_weight =
  20978. Q14_GAIN_ZERO_POINT_FIVE;
  20979. } else {
  20980. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  20981. op_FL_ip_FR_weight = 0;
  20982. op_FR_ip_FL_weight = 0;
  20983. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  20984. }
  20985. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  20986. unsigned long copp =
  20987. session_copp_map[i]
  20988. [SESSION_TYPE_RX][be_index];
  20989. if (!test_bit(idx, &copp))
  20990. goto skip_send_custom_stereo;
  20991. topo_id = adm_get_topology_for_port_copp_idx(
  20992. msm_bedais[be_index].port_id, idx);
  20993. if (topo_id < 0)
  20994. pr_debug("%s:Err:custom stereo topo %d",
  20995. __func__, topo_id);
  20996. pr_debug("idx %d\n", idx);
  20997. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  20998. rc = msm_ds2_dap_set_custom_stereo_onoff
  20999. (msm_bedais[be_index].port_id,
  21000. idx, is_custom_stereo_on);
  21001. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  21002. rc = dolby_dap_set_custom_stereo_onoff(
  21003. msm_bedais[be_index].port_id,
  21004. idx, is_custom_stereo_on);
  21005. else
  21006. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  21007. (msm_bedais[be_index].port_id,
  21008. idx, session_id,
  21009. op_FL_ip_FL_weight,
  21010. op_FL_ip_FR_weight,
  21011. op_FR_ip_FL_weight,
  21012. op_FR_ip_FR_weight);
  21013. if (rc < 0)
  21014. skip_send_custom_stereo:
  21015. pr_err("%s: err setting custom stereo\n",
  21016. __func__);
  21017. }
  21018. }
  21019. }
  21020. return 0;
  21021. }
  21022. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  21023. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  21024. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  21025. msm_routing_put_stereo_to_custom_stereo_control),
  21026. };
  21027. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21028. struct snd_ctl_elem_value *ucontrol)
  21029. {
  21030. return 0;
  21031. }
  21032. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21033. struct snd_ctl_elem_value *ucontrol)
  21034. {
  21035. int i = 0, j;
  21036. int num_app_types = ucontrol->value.integer.value[i++];
  21037. pr_debug("%s\n", __func__);
  21038. memset(app_type_cfg, 0, MAX_APP_TYPES*
  21039. sizeof(struct msm_pcm_routing_app_type_data));
  21040. if (num_app_types > MAX_APP_TYPES) {
  21041. pr_err("%s: number of app types exceed the max supported\n",
  21042. __func__);
  21043. return -EINVAL;
  21044. }
  21045. for (j = 0; j < num_app_types; j++) {
  21046. app_type_cfg[j].app_type =
  21047. ucontrol->value.integer.value[i++];
  21048. app_type_cfg[j].sample_rate =
  21049. ucontrol->value.integer.value[i++];
  21050. app_type_cfg[j].bit_width =
  21051. ucontrol->value.integer.value[i++];
  21052. }
  21053. return 0;
  21054. }
  21055. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  21056. struct snd_ctl_elem_value *ucontrol)
  21057. {
  21058. int j, fe_id, be_id, port_type;
  21059. int ret = 0;
  21060. unsigned long copp;
  21061. struct msm_pcm_routing_bdai_data *bedai;
  21062. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21063. SESSION_TYPE_RX;
  21064. int app_type = ucontrol->value.integer.value[1];
  21065. int gain = (ucontrol->value.integer.value[2] +
  21066. ucontrol->value.integer.value[3])/2;
  21067. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21068. MSM_AFE_PORT_TYPE_TX;
  21069. mutex_lock(&routing_lock);
  21070. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21071. if (is_be_dai_extproc(be_id))
  21072. continue;
  21073. bedai = &msm_bedais[be_id];
  21074. if (afe_get_port_type(bedai->port_id) != port_type)
  21075. continue;
  21076. if (!bedai->active)
  21077. continue;
  21078. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21079. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21080. continue;
  21081. if (app_type !=
  21082. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21083. continue;
  21084. copp = session_copp_map[fe_id][dir][be_id];
  21085. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  21086. if (!test_bit(j, &copp))
  21087. continue;
  21088. ret |= adm_set_volume(bedai->port_id, j, gain);
  21089. }
  21090. }
  21091. }
  21092. mutex_unlock(&routing_lock);
  21093. return ret ? -EINVAL : 0;
  21094. }
  21095. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  21096. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  21097. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  21098. msm_routing_put_app_type_cfg_control),
  21099. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  21100. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  21101. };
  21102. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  21103. struct snd_ctl_elem_value *ucontrol)
  21104. {
  21105. int copp_idx, fe_id, be_id, port_type;
  21106. int ret = 0;
  21107. unsigned long copp;
  21108. struct msm_pcm_routing_bdai_data *bedai;
  21109. u8 *packed_params = NULL;
  21110. struct param_hdr_v3 param_hdr;
  21111. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  21112. sizeof(uint32_t));
  21113. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21114. SESSION_TYPE_RX;
  21115. int app_type = ucontrol->value.integer.value[1];
  21116. int module_id = ucontrol->value.integer.value[2];
  21117. int instance_id = ucontrol->value.integer.value[3];
  21118. int param_id = ucontrol->value.integer.value[4];
  21119. int param_value = ucontrol->value.integer.value[5];
  21120. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21121. MSM_AFE_PORT_TYPE_TX;
  21122. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  21123. __func__, app_type, module_id,
  21124. instance_id, param_id, param_value);
  21125. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  21126. if (!packed_params)
  21127. return -ENOMEM;
  21128. memset(&param_hdr, 0, sizeof(param_hdr));
  21129. param_hdr.module_id = module_id;
  21130. param_hdr.instance_id = instance_id;
  21131. param_hdr.param_id = param_id;
  21132. param_hdr.param_size = sizeof(uint32_t);
  21133. packed_param_size = 0;
  21134. mutex_lock(&routing_lock);
  21135. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21136. if (is_be_dai_extproc(be_id))
  21137. continue;
  21138. bedai = &msm_bedais[be_id];
  21139. if (afe_get_port_type(bedai->port_id) != port_type)
  21140. continue;
  21141. if (!bedai->active)
  21142. continue;
  21143. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21144. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21145. continue;
  21146. if (app_type !=
  21147. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21148. continue;
  21149. copp = session_copp_map[fe_id][dir][be_id];
  21150. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  21151. copp_idx++) {
  21152. if (!test_bit(copp_idx, &copp))
  21153. continue;
  21154. ret = q6common_pack_pp_params(packed_params,
  21155. &param_hdr,
  21156. (u8 *) &param_value,
  21157. &packed_param_size);
  21158. if (ret) {
  21159. pr_err("%s: Failed to pack params, error %d\n",
  21160. __func__, ret);
  21161. goto done;
  21162. }
  21163. ret = adm_set_pp_params(bedai->port_id,
  21164. copp_idx, NULL,
  21165. packed_params,
  21166. packed_param_size);
  21167. if (ret) {
  21168. pr_err("%s: Setting param failed with err=%d\n",
  21169. __func__, ret);
  21170. ret = -EINVAL;
  21171. goto done;
  21172. }
  21173. }
  21174. }
  21175. }
  21176. done:
  21177. mutex_unlock(&routing_lock);
  21178. kfree(packed_params);
  21179. return ret;
  21180. }
  21181. static const struct snd_kcontrol_new module_cfg_controls[] = {
  21182. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  21183. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  21184. };
  21185. static int msm_routing_get_lsm_app_type_cfg_control(
  21186. struct snd_kcontrol *kcontrol,
  21187. struct snd_ctl_elem_value *ucontrol)
  21188. {
  21189. int shift = ((struct soc_multi_mixer_control *)
  21190. kcontrol->private_value)->shift;
  21191. int i = 0, j = 0;
  21192. ucontrol->value.integer.value[i] = num_app_cfg_types;
  21193. for (j = 0; j < num_app_cfg_types; ++j) {
  21194. ucontrol->value.integer.value[++i] =
  21195. lsm_app_type_cfg[j].app_type;
  21196. ucontrol->value.integer.value[++i] =
  21197. lsm_app_type_cfg[j].sample_rate;
  21198. ucontrol->value.integer.value[++i] =
  21199. lsm_app_type_cfg[j].bit_width;
  21200. if (shift == 1)
  21201. ucontrol->value.integer.value[++i] =
  21202. lsm_app_type_cfg[j].num_out_channels;
  21203. }
  21204. return 0;
  21205. }
  21206. static int msm_routing_put_lsm_app_type_cfg_control(
  21207. struct snd_kcontrol *kcontrol,
  21208. struct snd_ctl_elem_value *ucontrol)
  21209. {
  21210. int shift = ((struct soc_multi_mixer_control *)
  21211. kcontrol->private_value)->shift;
  21212. int i = 0, j;
  21213. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  21214. pr_err("%s: number of app types exceed the max supported\n",
  21215. __func__);
  21216. return -EINVAL;
  21217. }
  21218. num_app_cfg_types = ucontrol->value.integer.value[i++];
  21219. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  21220. sizeof(struct msm_pcm_routing_app_type_data));
  21221. for (j = 0; j < num_app_cfg_types; j++) {
  21222. lsm_app_type_cfg[j].app_type =
  21223. ucontrol->value.integer.value[i++];
  21224. lsm_app_type_cfg[j].sample_rate =
  21225. ucontrol->value.integer.value[i++];
  21226. lsm_app_type_cfg[j].bit_width =
  21227. ucontrol->value.integer.value[i++];
  21228. /* Shift of 1 indicates this is V2 mixer control */
  21229. if (shift == 1)
  21230. lsm_app_type_cfg[j].num_out_channels =
  21231. ucontrol->value.integer.value[i++];
  21232. }
  21233. return 0;
  21234. }
  21235. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  21236. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  21237. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21238. msm_routing_put_lsm_app_type_cfg_control),
  21239. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  21240. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21241. msm_routing_put_lsm_app_type_cfg_control),
  21242. };
  21243. static int msm_routing_get_use_ds1_or_ds2_control(
  21244. struct snd_kcontrol *kcontrol,
  21245. struct snd_ctl_elem_value *ucontrol)
  21246. {
  21247. ucontrol->value.integer.value[0] = is_ds2_on;
  21248. return 0;
  21249. }
  21250. static int msm_routing_put_use_ds1_or_ds2_control(
  21251. struct snd_kcontrol *kcontrol,
  21252. struct snd_ctl_elem_value *ucontrol)
  21253. {
  21254. is_ds2_on = ucontrol->value.integer.value[0];
  21255. return 0;
  21256. }
  21257. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  21258. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  21259. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  21260. msm_routing_put_use_ds1_or_ds2_control),
  21261. };
  21262. static int msm_routing_get_hifi_filter_control(
  21263. struct snd_kcontrol *kcontrol,
  21264. struct snd_ctl_elem_value *ucontrol)
  21265. {
  21266. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  21267. return 0;
  21268. }
  21269. static int msm_routing_put_hifi_filter_control(
  21270. struct snd_kcontrol *kcontrol,
  21271. struct snd_ctl_elem_value *ucontrol)
  21272. {
  21273. hifi_filter_enabled = ucontrol->value.integer.value[0];
  21274. return 0;
  21275. }
  21276. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  21277. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  21278. 1, 0, msm_routing_get_hifi_filter_control,
  21279. msm_routing_put_hifi_filter_control),
  21280. };
  21281. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  21282. struct snd_ctl_elem_value *ucontrol) {
  21283. int rc = 0;
  21284. int be_idx = 0;
  21285. char *param_value;
  21286. int *update_param_value;
  21287. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  21288. struct param_hdr_v3 param_hdr;
  21289. param_value = kzalloc(param_size, GFP_KERNEL);
  21290. if (!param_value)
  21291. return -ENOMEM;
  21292. memset(&param_hdr, 0, sizeof(param_hdr));
  21293. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  21294. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  21295. break;
  21296. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  21297. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  21298. param_hdr.instance_id = INSTANCE_ID_0;
  21299. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  21300. param_hdr.param_size = param_size;
  21301. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  21302. NULL, &param_hdr, (u8 *) param_value);
  21303. if (rc) {
  21304. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  21305. kfree(param_value);
  21306. return -EINVAL;
  21307. }
  21308. update_param_value = (int *)param_value;
  21309. ucontrol->value.integer.value[0] = update_param_value[0];
  21310. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  21311. __func__, update_param_value[0]);
  21312. }
  21313. kfree(param_value);
  21314. return 0;
  21315. }
  21316. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  21317. struct snd_ctl_elem_value *ucontrol)
  21318. {
  21319. voc_session_id = ucontrol->value.integer.value[0];
  21320. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  21321. return 0;
  21322. }
  21323. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  21324. struct snd_ctl_elem_value *ucontrol)
  21325. {
  21326. ucontrol->value.integer.value[0] = voc_session_id;
  21327. return 0;
  21328. }
  21329. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  21330. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  21331. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  21332. msm_voc_session_id_put),
  21333. };
  21334. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  21335. struct snd_ctl_elem_info *uinfo)
  21336. {
  21337. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21338. uinfo->count = sizeof(struct sound_focus_param);
  21339. return 0;
  21340. }
  21341. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  21342. struct snd_ctl_elem_value *ucontrol)
  21343. {
  21344. int ret = 0;
  21345. struct sound_focus_param soundFocusData;
  21346. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21347. sizeof(struct sound_focus_param));
  21348. ret = voc_set_sound_focus(soundFocusData);
  21349. if (ret) {
  21350. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21351. __func__, ret);
  21352. ret = -EINVAL;
  21353. }
  21354. return ret;
  21355. }
  21356. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  21357. struct snd_ctl_elem_value *ucontrol)
  21358. {
  21359. int ret = 0;
  21360. struct sound_focus_param soundFocusData;
  21361. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  21362. ret = voc_get_sound_focus(&soundFocusData);
  21363. if (ret) {
  21364. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  21365. __func__, ret);
  21366. ret = -EINVAL;
  21367. goto done;
  21368. }
  21369. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21370. sizeof(struct sound_focus_param));
  21371. done:
  21372. return ret;
  21373. }
  21374. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  21375. struct snd_ctl_elem_info *uinfo)
  21376. {
  21377. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21378. uinfo->count = sizeof(struct source_tracking_param);
  21379. return 0;
  21380. }
  21381. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  21382. struct snd_ctl_elem_value *ucontrol)
  21383. {
  21384. int ret = 0;
  21385. struct source_tracking_param sourceTrackingData;
  21386. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  21387. ret = voc_get_source_tracking(&sourceTrackingData);
  21388. if (ret) {
  21389. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  21390. __func__, ret);
  21391. ret = -EINVAL;
  21392. goto done;
  21393. }
  21394. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  21395. sizeof(struct source_tracking_param));
  21396. done:
  21397. return ret;
  21398. }
  21399. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  21400. int *copp_idx)
  21401. {
  21402. int i, idx, be_idx;
  21403. int ret = 0;
  21404. unsigned long copp;
  21405. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  21406. ret = q6audio_validate_port(port_id);
  21407. if (ret < 0) {
  21408. pr_err("%s: port validation failed id 0x%x ret %d\n",
  21409. __func__, port_id, ret);
  21410. ret = -EINVAL;
  21411. goto done;
  21412. }
  21413. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  21414. if (msm_bedais[be_idx].port_id == port_id)
  21415. break;
  21416. }
  21417. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  21418. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  21419. ret = -EINVAL;
  21420. goto done;
  21421. }
  21422. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  21423. MSM_FRONTEND_DAI_MAX) {
  21424. if (!(is_mm_lsm_fe_id(i) &&
  21425. route_check_fe_id_adm_support(i)))
  21426. continue;
  21427. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21428. copp = session_copp_map[i]
  21429. [session_type][be_idx];
  21430. if (test_bit(idx, &copp))
  21431. break;
  21432. }
  21433. if (idx >= MAX_COPPS_PER_PORT)
  21434. continue;
  21435. else
  21436. break;
  21437. }
  21438. if (i >= MSM_FRONTEND_DAI_MAX) {
  21439. pr_debug("%s: Invalid FE, exiting\n", __func__);
  21440. ret = -EINVAL;
  21441. goto done;
  21442. }
  21443. *copp_idx = idx;
  21444. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  21445. done:
  21446. return ret;
  21447. }
  21448. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  21449. const char *prefix, int *port_id)
  21450. {
  21451. int ret = 0;
  21452. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  21453. /*
  21454. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  21455. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  21456. * and compare the string with the backend name to derive the port id.
  21457. */
  21458. if (!strcmp(kcontrol->id.name + strlen(prefix),
  21459. "SLIMBUS_0")) {
  21460. *port_id = SLIMBUS_0_TX;
  21461. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21462. "TERT_MI2S")) {
  21463. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  21464. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21465. "INT3_MI2S")) {
  21466. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  21467. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21468. "VA_CDC_DMA_TX_0")) {
  21469. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  21470. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21471. "TX_CDC_DMA_TX_3")) {
  21472. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  21473. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21474. "QUIN_TDM_TX_0")) {
  21475. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  21476. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21477. "PRIMARY_TDM")) {
  21478. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  21479. } else {
  21480. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  21481. __func__, kcontrol->id.name);
  21482. ret = -EINVAL;
  21483. goto done;
  21484. }
  21485. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  21486. __func__, kcontrol->id.name, *port_id);
  21487. done:
  21488. return ret;
  21489. }
  21490. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  21491. struct snd_ctl_elem_value *ucontrol)
  21492. {
  21493. int ret = 0;
  21494. struct sound_focus_param soundFocusData;
  21495. int port_id, copp_idx;
  21496. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21497. "Sound Focus Audio Tx ", &port_id);
  21498. if (ret != 0) {
  21499. pr_err("%s: Error in deriving port id, err=%d\n",
  21500. __func__, ret);
  21501. ret = -EINVAL;
  21502. goto done;
  21503. }
  21504. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21505. &copp_idx);
  21506. if (ret) {
  21507. pr_err("%s: Could not get copp idx for port_id=%d\n",
  21508. __func__, port_id);
  21509. ret = -EINVAL;
  21510. goto done;
  21511. }
  21512. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21513. sizeof(struct sound_focus_param));
  21514. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  21515. if (ret) {
  21516. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21517. __func__, ret);
  21518. ret = -EINVAL;
  21519. goto done;
  21520. }
  21521. done:
  21522. return ret;
  21523. }
  21524. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  21525. struct snd_ctl_elem_value *ucontrol)
  21526. {
  21527. int ret = 0;
  21528. struct sound_focus_param soundFocusData;
  21529. int port_id, copp_idx;
  21530. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21531. "Sound Focus Audio Tx ", &port_id);
  21532. if (ret) {
  21533. pr_err("%s: Error in deriving port id, err=%d\n",
  21534. __func__, ret);
  21535. ret = -EINVAL;
  21536. goto done;
  21537. }
  21538. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21539. &copp_idx);
  21540. if (ret) {
  21541. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  21542. __func__, port_id);
  21543. ret = -EINVAL;
  21544. goto done;
  21545. }
  21546. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  21547. if (ret) {
  21548. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  21549. __func__, ret);
  21550. ret = -EINVAL;
  21551. goto done;
  21552. }
  21553. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21554. sizeof(struct sound_focus_param));
  21555. done:
  21556. return ret;
  21557. }
  21558. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  21559. struct snd_ctl_elem_value *ucontrol)
  21560. {
  21561. int ret = 0;
  21562. struct source_tracking_param sourceTrackingData;
  21563. int port_id, copp_idx;
  21564. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21565. "Source Tracking Audio Tx ", &port_id);
  21566. if (ret) {
  21567. pr_err("%s: Error in deriving port id, err=%d\n",
  21568. __func__, ret);
  21569. ret = -EINVAL;
  21570. goto done;
  21571. }
  21572. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21573. &copp_idx);
  21574. if (ret) {
  21575. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  21576. __func__, port_id);
  21577. ret = -EINVAL;
  21578. goto done;
  21579. }
  21580. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  21581. if (ret) {
  21582. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  21583. __func__, ret);
  21584. ret = -EINVAL;
  21585. goto done;
  21586. }
  21587. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  21588. sizeof(struct source_tracking_param));
  21589. done:
  21590. return ret;
  21591. }
  21592. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  21593. struct snd_ctl_elem_info *uinfo)
  21594. {
  21595. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21596. uinfo->count = sizeof(struct doa_tracking_mon_param);
  21597. return 0;
  21598. }
  21599. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  21600. struct snd_ctl_elem_value *ucontrol)
  21601. {
  21602. int ret = 0;
  21603. struct doa_tracking_mon_param doa_tracking_data;
  21604. int port_id, copp_idx;
  21605. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  21606. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21607. "Doa Tracking Monitor Listen ", &port_id);
  21608. if (ret) {
  21609. pr_err("%s: Error in deriving port id, err=%d\n",
  21610. __func__, ret);
  21611. ret = -EINVAL;
  21612. goto done;
  21613. }
  21614. /*
  21615. * If copp id exists for given port id, query adm to get doa data.
  21616. * Else query afe for doa tracking params.
  21617. * This is to support in cases where LSM directly connects to
  21618. * AFE for FFNS.
  21619. */
  21620. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21621. &copp_idx);
  21622. if (!ret)
  21623. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  21624. &doa_tracking_data);
  21625. else
  21626. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  21627. if (ret) {
  21628. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  21629. __func__, ret);
  21630. ret = -EINVAL;
  21631. goto done;
  21632. }
  21633. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  21634. sizeof(struct doa_tracking_mon_param));
  21635. done:
  21636. return ret;
  21637. }
  21638. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  21639. {
  21640. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21641. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21642. .name = "Sound Focus Voice Tx SLIMBUS_0",
  21643. .info = msm_sound_focus_info,
  21644. .get = msm_voice_sound_focus_get,
  21645. .put = msm_voice_sound_focus_put,
  21646. },
  21647. {
  21648. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21649. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21650. .name = "Source Tracking Voice Tx SLIMBUS_0",
  21651. .info = msm_source_tracking_info,
  21652. .get = msm_voice_source_tracking_get,
  21653. },
  21654. {
  21655. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21656. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21657. .name = "Sound Focus Audio Tx SLIMBUS_0",
  21658. .info = msm_sound_focus_info,
  21659. .get = msm_audio_sound_focus_get,
  21660. .put = msm_audio_sound_focus_put,
  21661. },
  21662. {
  21663. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21664. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21665. .name = "Source Tracking Audio Tx SLIMBUS_0",
  21666. .info = msm_source_tracking_info,
  21667. .get = msm_audio_source_tracking_get,
  21668. },
  21669. {
  21670. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21671. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21672. .name = "Sound Focus Voice Tx TERT_MI2S",
  21673. .info = msm_sound_focus_info,
  21674. .get = msm_voice_sound_focus_get,
  21675. .put = msm_voice_sound_focus_put,
  21676. },
  21677. {
  21678. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21679. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21680. .name = "Source Tracking Voice Tx TERT_MI2S",
  21681. .info = msm_source_tracking_info,
  21682. .get = msm_voice_source_tracking_get,
  21683. },
  21684. {
  21685. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21686. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21687. .name = "Sound Focus Audio Tx TERT_MI2S",
  21688. .info = msm_sound_focus_info,
  21689. .get = msm_audio_sound_focus_get,
  21690. .put = msm_audio_sound_focus_put,
  21691. },
  21692. {
  21693. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21694. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21695. .name = "Source Tracking Audio Tx TERT_MI2S",
  21696. .info = msm_source_tracking_info,
  21697. .get = msm_audio_source_tracking_get,
  21698. },
  21699. {
  21700. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21701. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21702. .name = "Sound Focus Voice Tx INT3_MI2S",
  21703. .info = msm_sound_focus_info,
  21704. .get = msm_voice_sound_focus_get,
  21705. .put = msm_voice_sound_focus_put,
  21706. },
  21707. {
  21708. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21709. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21710. .name = "Source Tracking Voice Tx INT3_MI2S",
  21711. .info = msm_source_tracking_info,
  21712. .get = msm_voice_source_tracking_get,
  21713. },
  21714. {
  21715. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21716. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21717. .name = "Sound Focus Audio Tx INT3_MI2S",
  21718. .info = msm_sound_focus_info,
  21719. .get = msm_audio_sound_focus_get,
  21720. .put = msm_audio_sound_focus_put,
  21721. },
  21722. {
  21723. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21724. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21725. .name = "Source Tracking Audio Tx INT3_MI2S",
  21726. .info = msm_source_tracking_info,
  21727. .get = msm_audio_source_tracking_get,
  21728. },
  21729. {
  21730. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21731. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21732. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  21733. .info = msm_sound_focus_info,
  21734. .get = msm_voice_sound_focus_get,
  21735. .put = msm_voice_sound_focus_put,
  21736. },
  21737. {
  21738. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21739. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21740. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  21741. .info = msm_source_tracking_info,
  21742. .get = msm_voice_source_tracking_get,
  21743. },
  21744. {
  21745. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21746. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21747. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  21748. .info = msm_sound_focus_info,
  21749. .get = msm_audio_sound_focus_get,
  21750. .put = msm_audio_sound_focus_put,
  21751. },
  21752. {
  21753. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21754. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21755. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  21756. .info = msm_source_tracking_info,
  21757. .get = msm_audio_source_tracking_get,
  21758. },
  21759. {
  21760. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21761. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21762. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  21763. .info = msm_sound_focus_info,
  21764. .get = msm_voice_sound_focus_get,
  21765. .put = msm_voice_sound_focus_put,
  21766. },
  21767. {
  21768. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21769. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21770. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  21771. .info = msm_source_tracking_info,
  21772. .get = msm_voice_source_tracking_get,
  21773. },
  21774. {
  21775. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21776. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21777. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  21778. .info = msm_sound_focus_info,
  21779. .get = msm_audio_sound_focus_get,
  21780. .put = msm_audio_sound_focus_put,
  21781. },
  21782. {
  21783. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21784. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21785. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  21786. .info = msm_source_tracking_info,
  21787. .get = msm_audio_source_tracking_get,
  21788. },
  21789. {
  21790. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21791. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21792. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  21793. .info = msm_sound_focus_info,
  21794. .get = msm_voice_sound_focus_get,
  21795. .put = msm_voice_sound_focus_put,
  21796. },
  21797. {
  21798. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21799. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21800. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  21801. .info = msm_source_tracking_info,
  21802. .get = msm_voice_source_tracking_get,
  21803. },
  21804. {
  21805. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21806. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21807. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  21808. .info = msm_sound_focus_info,
  21809. .get = msm_audio_sound_focus_get,
  21810. .put = msm_audio_sound_focus_put,
  21811. },
  21812. {
  21813. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21814. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21815. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  21816. .info = msm_source_tracking_info,
  21817. .get = msm_audio_source_tracking_get,
  21818. },
  21819. {
  21820. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21821. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21822. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  21823. .info = msm_sound_focus_info,
  21824. .get = msm_audio_sound_focus_get,
  21825. .put = msm_audio_sound_focus_put,
  21826. },
  21827. {
  21828. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21829. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21830. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  21831. .info = msm_source_tracking_info,
  21832. .get = msm_audio_source_tracking_get,
  21833. },
  21834. {
  21835. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21836. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21837. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  21838. .info = msm_doa_tracking_mon_info,
  21839. .get = msm_doa_tracking_mon_get,
  21840. },
  21841. };
  21842. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  21843. struct snd_ctl_elem_value *ucontrol)
  21844. {
  21845. int ret = 0;
  21846. int item;
  21847. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  21848. pr_debug("%s item is %d\n", __func__,
  21849. ucontrol->value.enumerated.item[0]);
  21850. mutex_lock(&routing_lock);
  21851. item = ucontrol->value.enumerated.item[0];
  21852. if (item < e->items) {
  21853. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  21854. __func__, e->shift_l, e->values[item]);
  21855. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  21856. e->values[item] < MSM_BACKEND_DAI_MAX)
  21857. /* Enable feedback TX path */
  21858. ret = afe_spk_prot_feed_back_cfg(
  21859. msm_bedais[e->values[item]].port_id,
  21860. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  21861. else {
  21862. pr_debug("%s values are out of range item %d\n",
  21863. __func__, e->values[item]);
  21864. /* Disable feedback TX path */
  21865. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  21866. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  21867. else
  21868. ret = -EINVAL;
  21869. }
  21870. } else {
  21871. pr_err("%s item value is out of range item\n", __func__);
  21872. ret = -EINVAL;
  21873. }
  21874. mutex_unlock(&routing_lock);
  21875. return ret;
  21876. }
  21877. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  21878. struct snd_ctl_elem_value *ucontrol)
  21879. {
  21880. int ret = 0;
  21881. int item;
  21882. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  21883. pr_debug("%s item is %d\n", __func__,
  21884. ucontrol->value.enumerated.item[0]);
  21885. mutex_lock(&routing_lock);
  21886. item = ucontrol->value.enumerated.item[0];
  21887. if (item < e->items) {
  21888. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  21889. __func__, e->shift_l, e->values[item]);
  21890. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  21891. e->values[item] < MSM_BACKEND_DAI_MAX)
  21892. /* Enable feedback TX path */
  21893. ret = afe_spk_prot_feed_back_cfg(
  21894. msm_bedais[e->values[item]].port_id,
  21895. msm_bedais[e->shift_l].port_id,
  21896. 1, 1, 1);
  21897. else {
  21898. pr_debug("%s values are out of range item %d\n",
  21899. __func__, e->values[item]);
  21900. /* Disable feedback TX path */
  21901. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  21902. ret = afe_spk_prot_feed_back_cfg(0,
  21903. 0, 0, 0, 0);
  21904. else
  21905. ret = -EINVAL;
  21906. }
  21907. } else {
  21908. pr_err("%s item value is out of range item\n", __func__);
  21909. ret = -EINVAL;
  21910. }
  21911. mutex_unlock(&routing_lock);
  21912. return ret;
  21913. }
  21914. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  21915. struct snd_ctl_elem_value *ucontrol)
  21916. {
  21917. pr_debug("%s\n", __func__);
  21918. return 0;
  21919. }
  21920. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  21921. struct snd_ctl_elem_value *ucontrol)
  21922. {
  21923. pr_debug("%s\n", __func__);
  21924. ucontrol->value.enumerated.item[0] = 0;
  21925. return 0;
  21926. }
  21927. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  21928. "ZERO", "SLIM4_TX"
  21929. };
  21930. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  21931. "ZERO", "SLIM4_TX"
  21932. };
  21933. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  21934. "ZERO", "WSA_CDC_DMA_TX_0"
  21935. };
  21936. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  21937. "ZERO", "WSA_CDC_DMA_TX_0"
  21938. };
  21939. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  21940. "ZERO", "SENARY_TX"
  21941. };
  21942. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  21943. "ZERO", "INT5_MI2S_TX"
  21944. };
  21945. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  21946. "ZERO", "INT5_MI2S_TX"
  21947. };
  21948. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  21949. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  21950. };
  21951. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  21952. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  21953. };
  21954. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  21955. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  21956. };
  21957. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  21958. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  21959. };
  21960. static const int mi2s_rx_vi_fb_tx_value[] = {
  21961. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  21962. };
  21963. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  21964. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  21965. };
  21966. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  21967. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  21968. };
  21969. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  21970. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  21971. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  21972. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  21973. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  21974. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  21975. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  21976. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  21977. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  21978. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  21979. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  21980. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  21981. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  21982. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  21983. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  21984. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  21985. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  21986. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  21987. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  21988. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  21989. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  21990. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  21991. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  21992. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  21993. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  21994. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  21995. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  21996. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  21997. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  21998. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  21999. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  22000. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  22001. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22002. spkr_prot_put_vi_lch_port);
  22003. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  22004. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  22005. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22006. spkr_prot_put_vi_rch_port);
  22007. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  22008. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  22009. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22010. spkr_prot_put_vi_lch_port);
  22011. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  22012. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  22013. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22014. spkr_prot_put_vi_rch_port);
  22015. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  22016. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  22017. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  22018. spkr_prot_put_vi_lch_port);
  22019. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  22020. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  22021. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  22022. spkr_prot_put_vi_lch_port);
  22023. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  22024. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  22025. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  22026. spkr_prot_put_vi_rch_port);
  22027. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  22028. /* Frontend AIF */
  22029. /* Widget name equals to Front-End DAI name<Need confirmation>,
  22030. * Stream name must contains substring of front-end dai name
  22031. */
  22032. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  22033. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  22034. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  22035. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  22036. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  22037. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  22038. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  22039. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  22040. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  22041. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  22042. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  22043. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  22044. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  22045. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  22046. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  22047. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  22048. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  22049. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  22050. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  22051. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  22052. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  22053. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  22054. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  22055. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  22056. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  22057. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  22058. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  22059. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  22060. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  22061. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  22062. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  22063. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  22064. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  22065. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  22066. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  22067. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  22068. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  22069. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  22070. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  22071. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  22072. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  22073. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  22074. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  22075. "VoiceMMode1 Playback", 0, 0, 0, 0),
  22076. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  22077. "VoiceMMode1 Capture", 0, 0, 0, 0),
  22078. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  22079. "VoiceMMode2 Playback", 0, 0, 0, 0),
  22080. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  22081. "VoiceMMode2 Capture", 0, 0, 0, 0),
  22082. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  22083. 0, 0, 0, 0),
  22084. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  22085. 0, 0, 0, 0),
  22086. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  22087. 0, 0, 0, 0),
  22088. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  22089. 0, 0, 0, 0),
  22090. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  22091. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  22092. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  22093. 0, 0, 0, 0),
  22094. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  22095. 0, 0, 0, 0),
  22096. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  22097. 0, 0, 0, 0),
  22098. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  22099. 0, 0, 0, 0),
  22100. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  22101. 0, 0, 0, 0),
  22102. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  22103. 0, 0, 0, 0),
  22104. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  22105. 0, 0, 0, 0),
  22106. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  22107. 0, 0, 0, 0),
  22108. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  22109. 0, 0, 0, 0),
  22110. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  22111. 0, 0, 0, 0),
  22112. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  22113. 0, 0, 0, 0),
  22114. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  22115. 0, 0, 0, 0),
  22116. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  22117. 0, 0, 0, 0),
  22118. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  22119. 0, 0, 0, 0),
  22120. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  22121. 0, 0, 0, 0),
  22122. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  22123. 0, 0, 0, 0),
  22124. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  22125. 0, 0, 0, 0),
  22126. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  22127. 0, 0, 0, 0),
  22128. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  22129. 0, 0, 0, 0),
  22130. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  22131. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  22132. 0, 0, 0, 0),
  22133. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  22134. "INT0 MI2S_RX Hostless Playback",
  22135. 0, 0, 0, 0),
  22136. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  22137. "INT4 MI2S_RX Hostless Playback",
  22138. 0, 0, 0, 0),
  22139. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  22140. "Primary MI2S_RX Hostless Playback",
  22141. 0, 0, 0, 0),
  22142. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  22143. "Secondary MI2S_RX Hostless Playback",
  22144. 0, 0, 0, 0),
  22145. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  22146. "Tertiary MI2S_RX Hostless Playback",
  22147. 0, 0, 0, 0),
  22148. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  22149. "Quaternary MI2S_RX Hostless Playback",
  22150. 0, 0, 0, 0),
  22151. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  22152. "Quinary MI2S_RX Hostless Playback",
  22153. 0, 0, 0, 0),
  22154. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  22155. "Senary MI2S_RX Hostless Playback",
  22156. 0, 0, 0, 0),
  22157. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  22158. 0, 0, 0, 0),
  22159. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  22160. 0, 0, 0, 0),
  22161. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  22162. 0, 0, 0, 0),
  22163. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  22164. 0, 0, 0, 0),
  22165. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  22166. 0, 0, 0, 0),
  22167. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  22168. "INT3 MI2S_TX Hostless Capture",
  22169. 0, 0, 0, 0),
  22170. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  22171. "Tertiary MI2S_TX Hostless Capture",
  22172. 0, 0, 0, 0),
  22173. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  22174. "Secondary MI2S_TX Hostless Capture",
  22175. 0, 0, 0, 0),
  22176. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  22177. "Primary MI2S_TX Hostless Capture",
  22178. 0, 0, 0, 0),
  22179. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  22180. 0, 0, 0, 0),
  22181. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  22182. 0, 0, 0, 0),
  22183. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  22184. "Quaternary MI2S_TX Hostless Capture",
  22185. 0, 0, 0, 0),
  22186. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  22187. "Quinary MI2S_TX Hostless Capture",
  22188. 0, 0, 0, 0),
  22189. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  22190. "Senary MI2S_TX Hostless Capture",
  22191. 0, 0, 0, 0),
  22192. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  22193. "Primary TDM0 Hostless Playback",
  22194. 0, 0, 0, 0),
  22195. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  22196. "Primary TDM0 Hostless Capture",
  22197. 0, 0, 0, 0),
  22198. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  22199. "Primary TDM1 Hostless Playback",
  22200. 0, 0, 0, 0),
  22201. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  22202. "Primary TDM1 Hostless Capture",
  22203. 0, 0, 0, 0),
  22204. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  22205. "Primary TDM2 Hostless Playback",
  22206. 0, 0, 0, 0),
  22207. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  22208. "Primary TDM2 Hostless Capture",
  22209. 0, 0, 0, 0),
  22210. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  22211. "Primary TDM3 Hostless Playback",
  22212. 0, 0, 0, 0),
  22213. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  22214. "Primary TDM3 Hostless Capture",
  22215. 0, 0, 0, 0),
  22216. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  22217. "Primary TDM4 Hostless Playback",
  22218. 0, 0, 0, 0),
  22219. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  22220. "Primary TDM4 Hostless Capture",
  22221. 0, 0, 0, 0),
  22222. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  22223. "Primary TDM5 Hostless Playback",
  22224. 0, 0, 0, 0),
  22225. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  22226. "Primary TDM5 Hostless Capture",
  22227. 0, 0, 0, 0),
  22228. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  22229. "Primary TDM6 Hostless Playback",
  22230. 0, 0, 0, 0),
  22231. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  22232. "Primary TDM6 Hostless Capture",
  22233. 0, 0, 0, 0),
  22234. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  22235. "Primary TDM7 Hostless Playback",
  22236. 0, 0, 0, 0),
  22237. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  22238. "Primary TDM7 Hostless Capture",
  22239. 0, 0, 0, 0),
  22240. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  22241. "Secondary TDM0 Hostless Playback",
  22242. 0, 0, 0, 0),
  22243. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  22244. "Secondary TDM0 Hostless Capture",
  22245. 0, 0, 0, 0),
  22246. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  22247. "Secondary TDM1 Hostless Playback",
  22248. 0, 0, 0, 0),
  22249. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  22250. "Secondary TDM1 Hostless Capture",
  22251. 0, 0, 0, 0),
  22252. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  22253. "Secondary TDM2 Hostless Playback",
  22254. 0, 0, 0, 0),
  22255. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  22256. "Secondary TDM2 Hostless Capture",
  22257. 0, 0, 0, 0),
  22258. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  22259. "Secondary TDM3 Hostless Playback",
  22260. 0, 0, 0, 0),
  22261. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  22262. "Secondary TDM3 Hostless Capture",
  22263. 0, 0, 0, 0),
  22264. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  22265. "Secondary TDM4 Hostless Playback",
  22266. 0, 0, 0, 0),
  22267. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  22268. "Secondary TDM4 Hostless Capture",
  22269. 0, 0, 0, 0),
  22270. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  22271. "Secondary TDM5 Hostless Playback",
  22272. 0, 0, 0, 0),
  22273. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  22274. "Secondary TDM5 Hostless Capture",
  22275. 0, 0, 0, 0),
  22276. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  22277. "Secondary TDM6 Hostless Playback",
  22278. 0, 0, 0, 0),
  22279. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  22280. "Secondary TDM6 Hostless Capture",
  22281. 0, 0, 0, 0),
  22282. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  22283. "Secondary TDM7 Hostless Playback",
  22284. 0, 0, 0, 0),
  22285. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  22286. "Secondary TDM7 Hostless Capture",
  22287. 0, 0, 0, 0),
  22288. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  22289. "Tertiary TDM0 Hostless Playback",
  22290. 0, 0, 0, 0),
  22291. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  22292. "Tertiary TDM0 Hostless Capture",
  22293. 0, 0, 0, 0),
  22294. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  22295. "Tertiary TDM1 Hostless Playback",
  22296. 0, 0, 0, 0),
  22297. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  22298. "Tertiary TDM1 Hostless Capture",
  22299. 0, 0, 0, 0),
  22300. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  22301. "Tertiary TDM2 Hostless Playback",
  22302. 0, 0, 0, 0),
  22303. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  22304. "Tertiary TDM2 Hostless Capture",
  22305. 0, 0, 0, 0),
  22306. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  22307. "Tertiary TDM3 Hostless Playback",
  22308. 0, 0, 0, 0),
  22309. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  22310. "Tertiary TDM3 Hostless Capture",
  22311. 0, 0, 0, 0),
  22312. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  22313. "Tertiary TDM4 Hostless Playback",
  22314. 0, 0, 0, 0),
  22315. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  22316. "Tertiary TDM4 Hostless Capture",
  22317. 0, 0, 0, 0),
  22318. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  22319. "Tertiary TDM5 Hostless Playback",
  22320. 0, 0, 0, 0),
  22321. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  22322. "Tertiary TDM5 Hostless Capture",
  22323. 0, 0, 0, 0),
  22324. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  22325. "Tertiary TDM6 Hostless Playback",
  22326. 0, 0, 0, 0),
  22327. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  22328. "Tertiary TDM6 Hostless Capture",
  22329. 0, 0, 0, 0),
  22330. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  22331. "Tertiary TDM7 Hostless Playback",
  22332. 0, 0, 0, 0),
  22333. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  22334. "Tertiary TDM7 Hostless Capture",
  22335. 0, 0, 0, 0),
  22336. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  22337. "Quaternary TDM0 Hostless Playback",
  22338. 0, 0, 0, 0),
  22339. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  22340. "Quaternary TDM0 Hostless Capture",
  22341. 0, 0, 0, 0),
  22342. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  22343. "Quaternary TDM1 Hostless Playback",
  22344. 0, 0, 0, 0),
  22345. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  22346. "Quaternary TDM1 Hostless Capture",
  22347. 0, 0, 0, 0),
  22348. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  22349. "Quaternary TDM2 Hostless Playback",
  22350. 0, 0, 0, 0),
  22351. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  22352. "Quaternary TDM2 Hostless Capture",
  22353. 0, 0, 0, 0),
  22354. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  22355. "Quaternary TDM3 Hostless Playback",
  22356. 0, 0, 0, 0),
  22357. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  22358. "Quaternary TDM3 Hostless Capture",
  22359. 0, 0, 0, 0),
  22360. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  22361. "Quaternary TDM4 Hostless Playback",
  22362. 0, 0, 0, 0),
  22363. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  22364. "Quaternary TDM4 Hostless Capture",
  22365. 0, 0, 0, 0),
  22366. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  22367. "Quaternary TDM5 Hostless Playback",
  22368. 0, 0, 0, 0),
  22369. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  22370. "Quaternary TDM5 Hostless Capture",
  22371. 0, 0, 0, 0),
  22372. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  22373. "Quaternary TDM6 Hostless Playback",
  22374. 0, 0, 0, 0),
  22375. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  22376. "Quaternary TDM6 Hostless Capture",
  22377. 0, 0, 0, 0),
  22378. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  22379. "Quaternary TDM7 Hostless Playback",
  22380. 0, 0, 0, 0),
  22381. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  22382. "Quaternary TDM7 Hostless Capture",
  22383. 0, 0, 0, 0),
  22384. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  22385. "Quinary TDM0 Hostless Playback",
  22386. 0, 0, 0, 0),
  22387. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  22388. "Quinary TDM0 Hostless Capture",
  22389. 0, 0, 0, 0),
  22390. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  22391. "Quinary TDM1 Hostless Playback",
  22392. 0, 0, 0, 0),
  22393. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  22394. "Quinary TDM1 Hostless Capture",
  22395. 0, 0, 0, 0),
  22396. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  22397. "Quinary TDM2 Hostless Playback",
  22398. 0, 0, 0, 0),
  22399. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  22400. "Quinary TDM2 Hostless Capture",
  22401. 0, 0, 0, 0),
  22402. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  22403. "Quinary TDM3 Hostless Playback",
  22404. 0, 0, 0, 0),
  22405. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  22406. "Quinary TDM3 Hostless Capture",
  22407. 0, 0, 0, 0),
  22408. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  22409. "Quinary TDM4 Hostless Playback",
  22410. 0, 0, 0, 0),
  22411. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  22412. "Quinary TDM4 Hostless Capture",
  22413. 0, 0, 0, 0),
  22414. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  22415. "Quinary TDM5 Hostless Playback",
  22416. 0, 0, 0, 0),
  22417. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  22418. "Quinary TDM5 Hostless Capture",
  22419. 0, 0, 0, 0),
  22420. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  22421. "Quinary TDM6 Hostless Playback",
  22422. 0, 0, 0, 0),
  22423. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  22424. "Quinary TDM6 Hostless Capture",
  22425. 0, 0, 0, 0),
  22426. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  22427. "Quinary TDM7 Hostless Playback",
  22428. 0, 0, 0, 0),
  22429. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  22430. "Quinary TDM7 Hostless Capture",
  22431. 0, 0, 0, 0),
  22432. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  22433. "Senary TDM0 Hostless Playback",
  22434. 0, 0, 0, 0),
  22435. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  22436. "Senary TDM0 Hostless Capture",
  22437. 0, 0, 0, 0),
  22438. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  22439. "Senary TDM1 Hostless Playback",
  22440. 0, 0, 0, 0),
  22441. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  22442. "Senary TDM1 Hostless Capture",
  22443. 0, 0, 0, 0),
  22444. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  22445. "Senary TDM2 Hostless Playback",
  22446. 0, 0, 0, 0),
  22447. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  22448. "Senary TDM2 Hostless Capture",
  22449. 0, 0, 0, 0),
  22450. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  22451. "Senary TDM3 Hostless Playback",
  22452. 0, 0, 0, 0),
  22453. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  22454. "Senary TDM3 Hostless Capture",
  22455. 0, 0, 0, 0),
  22456. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  22457. "Senary TDM4 Hostless Playback",
  22458. 0, 0, 0, 0),
  22459. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  22460. "Senary TDM4 Hostless Capture",
  22461. 0, 0, 0, 0),
  22462. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  22463. "Senary TDM5 Hostless Playback",
  22464. 0, 0, 0, 0),
  22465. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  22466. "Senary TDM5 Hostless Capture",
  22467. 0, 0, 0, 0),
  22468. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  22469. "Senary TDM6 Hostless Playback",
  22470. 0, 0, 0, 0),
  22471. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  22472. "Senary TDM6 Hostless Capture",
  22473. 0, 0, 0, 0),
  22474. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  22475. "Senary TDM7 Hostless Playback",
  22476. 0, 0, 0, 0),
  22477. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  22478. "Senary TDM7 Hostless Capture",
  22479. 0, 0, 0, 0),
  22480. /* LSM */
  22481. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  22482. 0, 0, 0, 0),
  22483. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  22484. 0, 0, 0, 0),
  22485. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  22486. 0, 0, 0, 0),
  22487. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  22488. 0, 0, 0, 0),
  22489. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  22490. 0, 0, 0, 0),
  22491. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  22492. 0, 0, 0, 0),
  22493. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  22494. 0, 0, 0, 0),
  22495. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  22496. 0, 0, 0, 0),
  22497. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  22498. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  22499. /* Backend AIF */
  22500. /* Stream name equals to backend dai link stream name */
  22501. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  22502. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  22503. 0, 0, 0, 0),
  22504. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  22505. 0, 0, 0, 0),
  22506. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  22507. 0, 0, 0, 0),
  22508. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  22509. 0, 0, 0, 0),
  22510. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  22511. 0, 0, 0, 0),
  22512. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  22513. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  22514. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  22515. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  22516. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  22517. 0, 0, 0, 0),
  22518. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  22519. 0, 0, 0, 0),
  22520. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  22521. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  22522. 0, 0, 0, 0),
  22523. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  22524. 0, 0, 0, 0),
  22525. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  22526. 0, 0, 0, 0),
  22527. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  22528. "Secondary MI2S Playback SD1",
  22529. 0, 0, 0, 0),
  22530. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  22531. 0, 0, 0, 0),
  22532. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  22533. 0, 0, 0, 0),
  22534. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  22535. 0, 0, 0, 0),
  22536. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  22537. 0, 0, 0, 0),
  22538. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  22539. 0, 0, 0, 0),
  22540. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  22541. 0, 0, 0, 0),
  22542. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  22543. 0, 0, 0, 0),
  22544. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  22545. 0, 0, 0, 0),
  22546. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  22547. 0, 0, 0, 0),
  22548. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  22549. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  22550. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  22551. 0, 0, 0, 0),
  22552. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  22553. 0, 0, 0, 0),
  22554. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  22555. 0, 0, 0, 0),
  22556. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  22557. 0, 0, 0, 0),
  22558. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  22559. 0, 0, 0, 0),
  22560. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  22561. 0, 0, 0, 0),
  22562. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  22563. 0, 0, 0, 0),
  22564. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  22565. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  22566. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  22567. 0, 0, 0, 0),
  22568. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  22569. 0, 0, 0, 0),
  22570. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  22571. 0, 0, 0, 0),
  22572. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  22573. 0, 0, 0, 0),
  22574. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  22575. 0, 0, 0, 0),
  22576. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  22577. 0, 0, 0, 0),
  22578. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  22579. 0, 0, 0, 0),
  22580. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  22581. 0, 0, 0, 0),
  22582. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  22583. 0, 0, 0, 0),
  22584. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  22585. 0, 0, 0, 0),
  22586. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  22587. 0, 0, 0, 0),
  22588. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  22589. 0, 0, 0, 0),
  22590. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  22591. 0, 0, 0, 0),
  22592. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  22593. 0, 0, 0, 0),
  22594. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  22595. 0, 0, 0, 0),
  22596. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  22597. 0, 0, 0, 0),
  22598. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  22599. 0, 0, 0, 0),
  22600. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  22601. 0, 0, 0, 0),
  22602. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  22603. 0, 0, 0, 0),
  22604. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  22605. 0, 0, 0, 0),
  22606. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  22607. 0, 0, 0, 0),
  22608. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  22609. 0, 0, 0, 0),
  22610. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  22611. 0, 0, 0, 0),
  22612. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  22613. 0, 0, 0, 0),
  22614. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  22615. 0, 0, 0, 0),
  22616. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  22617. 0, 0, 0, 0),
  22618. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  22619. 0, 0, 0, 0),
  22620. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  22621. 0, 0, 0, 0),
  22622. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  22623. 0, 0, 0, 0),
  22624. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  22625. 0, 0, 0, 0),
  22626. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  22627. 0, 0, 0, 0),
  22628. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  22629. 0, 0, 0, 0),
  22630. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  22631. 0, 0, 0, 0),
  22632. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  22633. 0, 0, 0, 0),
  22634. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  22635. 0, 0, 0, 0),
  22636. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  22637. 0, 0, 0, 0),
  22638. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  22639. 0, 0, 0, 0),
  22640. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  22641. 0, 0, 0, 0),
  22642. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  22643. 0, 0, 0, 0),
  22644. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  22645. 0, 0, 0, 0),
  22646. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  22647. 0, 0, 0, 0),
  22648. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  22649. 0, 0, 0, 0),
  22650. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  22651. 0, 0, 0, 0),
  22652. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  22653. 0, 0, 0, 0),
  22654. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  22655. 0, 0, 0, 0),
  22656. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  22657. 0, 0, 0, 0),
  22658. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  22659. 0, 0, 0, 0),
  22660. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  22661. 0, 0, 0, 0),
  22662. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  22663. 0, 0, 0, 0),
  22664. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  22665. 0, 0, 0, 0),
  22666. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  22667. 0, 0, 0, 0),
  22668. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  22669. 0, 0, 0, 0),
  22670. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  22671. 0, 0, 0, 0),
  22672. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  22673. 0, 0, 0, 0),
  22674. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  22675. 0, 0, 0, 0),
  22676. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  22677. 0, 0, 0, 0),
  22678. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  22679. 0, 0, 0, 0),
  22680. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  22681. 0, 0, 0, 0),
  22682. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  22683. 0, 0, 0, 0),
  22684. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  22685. 0, 0, 0, 0),
  22686. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  22687. 0, 0, 0, 0),
  22688. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  22689. 0, 0, 0, 0),
  22690. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  22691. 0, 0, 0, 0),
  22692. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  22693. 0, 0, 0, 0),
  22694. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  22695. 0, 0, 0, 0),
  22696. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  22697. 0, 0, 0, 0),
  22698. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  22699. 0, 0, 0, 0),
  22700. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  22701. 0, 0, 0, 0),
  22702. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  22703. 0, 0, 0, 0),
  22704. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  22705. 0, 0, 0, 0),
  22706. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  22707. 0, 0, 0, 0),
  22708. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  22709. 0, 0, 0, 0),
  22710. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  22711. 0, 0, 0, 0),
  22712. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  22713. 0, 0, 0, 0),
  22714. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  22715. 0, 0, 0, 0),
  22716. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  22717. 0, 0, 0, 0),
  22718. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  22719. 0, 0, 0, 0),
  22720. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  22721. 0, 0, 0, 0),
  22722. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  22723. 0, 0, 0, 0),
  22724. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  22725. 0, 0, 0, 0),
  22726. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  22727. 0, 0, 0, 0),
  22728. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  22729. 0, 0, 0, 0),
  22730. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  22731. 0, 0, 0, 0),
  22732. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  22733. 0, 0, 0, 0),
  22734. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  22735. 0, 0, 0, 0),
  22736. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  22737. 0, 0, 0, 0),
  22738. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  22739. 0, 0, 0, 0),
  22740. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  22741. 0, 0, 0, 0),
  22742. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  22743. 0, 0, 0, 0),
  22744. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  22745. 0, 0, 0, 0),
  22746. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  22747. 0, 0, 0, 0),
  22748. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  22749. 0, 0, 0, 0),
  22750. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  22751. 0, 0, 0, 0),
  22752. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  22753. 0, 0, 0, 0),
  22754. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  22755. 0, 0, 0, 0),
  22756. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  22757. 0, 0, 0, 0),
  22758. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  22759. 0, 0, 0, 0),
  22760. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  22761. 0, 0, 0, 0),
  22762. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  22763. 0, 0, 0, 0),
  22764. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  22765. 0, 0, 0, 0),
  22766. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  22767. 0, 0, 0, 0),
  22768. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  22769. 0, 0, 0, 0),
  22770. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  22771. 0, 0, 0, 0),
  22772. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  22773. 0, 0, 0, 0),
  22774. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  22775. 0, 0, 0, 0),
  22776. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  22777. 0, 0, 0, 0),
  22778. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  22779. 0, 0, 0, 0),
  22780. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  22781. 0, 0, 0, 0),
  22782. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  22783. 0, 0, 0, 0),
  22784. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  22785. 0, 0, 0, 0),
  22786. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  22787. 0, 0, 0, 0),
  22788. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  22789. 0, 0, 0, 0),
  22790. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  22791. 0, 0, 0, 0),
  22792. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  22793. 0, 0, 0, 0),
  22794. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  22795. 0, 0, 0, 0),
  22796. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  22797. 0, 0, 0, 0),
  22798. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  22799. 0, 0, 0, 0),
  22800. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  22801. 0, 0, 0, 0),
  22802. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  22803. 0, 0, 0, 0),
  22804. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  22805. 0, 0, 0, 0),
  22806. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  22807. 0, 0, 0, 0),
  22808. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  22809. 0, 0, 0, 0),
  22810. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  22811. 0, 0, 0, 0),
  22812. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  22813. 0, 0, 0, 0),
  22814. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  22815. 0, 0, 0, 0),
  22816. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  22817. 0, 0, 0, 0),
  22818. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  22819. 0, 0, 0, 0),
  22820. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  22821. 0, 0, 0, 0),
  22822. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  22823. 0, 0, 0, 0),
  22824. /* incall */
  22825. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  22826. 0, 0, 0, 0),
  22827. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  22828. 0, 0, 0, 0),
  22829. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  22830. 0, 0, 0, 0),
  22831. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  22832. 0, 0, 0, 0),
  22833. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  22834. 0, 0, 0, 0),
  22835. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  22836. 0, 0, 0, 0),
  22837. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  22838. 0, 0, 0, 0),
  22839. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  22840. 0, 0, 0, 0),
  22841. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  22842. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  22843. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  22844. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  22845. 0, 0, 0, 0),
  22846. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  22847. 0, 0, 0, 0),
  22848. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  22849. 0, 0, 0, 0),
  22850. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  22851. 0, 0, 0, 0),
  22852. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  22853. 0, 0, 0, 0),
  22854. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  22855. 0, 0, 0, 0),
  22856. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  22857. 0, 0, 0, 0),
  22858. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  22859. 0, 0, 0, 0),
  22860. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  22861. 0, 0, 0, 0),
  22862. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  22863. 0, 0, 0, 0),
  22864. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  22865. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  22866. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  22867. 0, 0, 0, 0),
  22868. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  22869. 0, 0, 0, 0),
  22870. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  22871. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  22872. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  22873. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  22874. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  22875. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  22876. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  22877. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  22878. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  22879. /* In- call recording */
  22880. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  22881. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  22882. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  22883. 0, 0, 0, 0),
  22884. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  22885. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  22886. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  22887. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  22888. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  22889. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  22890. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  22891. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  22892. /* Switch Definitions */
  22893. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  22894. &slim_fm_switch_mixer_controls),
  22895. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  22896. &slim1_fm_switch_mixer_controls),
  22897. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  22898. &slim3_fm_switch_mixer_controls),
  22899. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  22900. &slim4_fm_switch_mixer_controls),
  22901. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  22902. &slim6_fm_switch_mixer_controls),
  22903. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22904. &pcm_rx_switch_mixer_controls),
  22905. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22906. &int0_mi2s_rx_switch_mixer_controls),
  22907. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22908. &int4_mi2s_rx_switch_mixer_controls),
  22909. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22910. &pri_mi2s_rx_switch_mixer_controls),
  22911. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22912. &sec_mi2s_rx_switch_mixer_controls),
  22913. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22914. &tert_mi2s_rx_switch_mixer_controls),
  22915. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22916. &quat_mi2s_rx_switch_mixer_controls),
  22917. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22918. &quin_mi2s_rx_switch_mixer_controls),
  22919. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  22920. &sco_slim7_switch_mixer_controls),
  22921. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22922. &sen_mi2s_rx_switch_mixer_controls),
  22923. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  22924. &hfp_pri_aux_switch_mixer_controls),
  22925. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  22926. &hfp_aux_switch_mixer_controls),
  22927. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  22928. &hfp_int_switch_mixer_controls),
  22929. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  22930. &hfp_slim7_switch_mixer_controls),
  22931. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  22932. &usb_switch_mixer_controls),
  22933. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  22934. &a2dp_slim7_switch_mixer_controls),
  22935. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  22936. &cdc_dma_wsa_switch_mixer_controls),
  22937. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  22938. &cdc_dma_rx_switch_mixer_controls),
  22939. /* Mixer definitions */
  22940. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22941. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  22942. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22943. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  22944. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22945. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  22946. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22947. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  22948. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22949. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  22950. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22951. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  22952. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22953. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  22954. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  22955. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  22956. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  22957. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  22958. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  22959. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  22960. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22961. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  22962. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22963. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  22964. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22965. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  22966. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22967. quaternary_mi2s_rx_mixer_controls,
  22968. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  22969. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22970. tertiary_mi2s_rx_mixer_controls,
  22971. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  22972. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22973. secondary_mi2s_rx_mixer_controls,
  22974. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  22975. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22976. secondary_mi2s_rx2_mixer_controls,
  22977. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  22978. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22979. primary_mi2s_rx_mixer_controls,
  22980. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  22981. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22982. int0_mi2s_rx_mixer_controls,
  22983. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  22984. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22985. int4_mi2s_rx_mixer_controls,
  22986. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  22987. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22988. quinary_mi2s_rx_mixer_controls,
  22989. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  22990. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22991. senary_mi2s_rx_mixer_controls,
  22992. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  22993. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22994. pri_tdm_rx_0_mixer_controls,
  22995. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  22996. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22997. pri_tdm_rx_1_mixer_controls,
  22998. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  22999. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23000. pri_tdm_rx_2_mixer_controls,
  23001. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  23002. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23003. pri_tdm_rx_3_mixer_controls,
  23004. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  23005. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23006. pri_tdm_tx_0_mixer_controls,
  23007. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  23008. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23009. sec_tdm_rx_0_mixer_controls,
  23010. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  23011. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23012. sec_tdm_rx_1_mixer_controls,
  23013. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  23014. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23015. sec_tdm_rx_2_mixer_controls,
  23016. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  23017. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23018. sec_tdm_rx_3_mixer_controls,
  23019. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  23020. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23021. sec_tdm_tx_0_mixer_controls,
  23022. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  23023. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23024. tert_tdm_rx_0_mixer_controls,
  23025. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  23026. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23027. tert_tdm_tx_0_mixer_controls,
  23028. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  23029. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23030. tert_tdm_rx_1_mixer_controls,
  23031. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  23032. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23033. tert_tdm_rx_2_mixer_controls,
  23034. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  23035. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23036. tert_tdm_rx_3_mixer_controls,
  23037. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  23038. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23039. tert_tdm_rx_4_mixer_controls,
  23040. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  23041. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23042. quat_tdm_rx_0_mixer_controls,
  23043. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  23044. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23045. quat_tdm_tx_0_mixer_controls,
  23046. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  23047. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23048. quat_tdm_rx_1_mixer_controls,
  23049. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  23050. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23051. quat_tdm_rx_2_mixer_controls,
  23052. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  23053. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23054. quat_tdm_rx_3_mixer_controls,
  23055. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  23056. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23057. quin_tdm_rx_0_mixer_controls,
  23058. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  23059. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23060. quin_tdm_tx_0_mixer_controls,
  23061. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  23062. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23063. quin_tdm_rx_1_mixer_controls,
  23064. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  23065. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23066. quin_tdm_tx_1_mixer_controls,
  23067. ARRAY_SIZE(quin_tdm_tx_1_mixer_controls)),
  23068. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23069. quin_tdm_rx_2_mixer_controls,
  23070. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  23071. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23072. quin_tdm_tx_2_mixer_controls,
  23073. ARRAY_SIZE(quin_tdm_tx_2_mixer_controls)),
  23074. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23075. quin_tdm_rx_3_mixer_controls,
  23076. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  23077. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23078. quin_tdm_tx_3_mixer_controls,
  23079. ARRAY_SIZE(quin_tdm_tx_3_mixer_controls)),
  23080. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23081. sen_tdm_tx_0_mixer_controls,
  23082. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  23083. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23084. sen_tdm_rx_0_mixer_controls,
  23085. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  23086. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23087. sen_tdm_rx_1_mixer_controls,
  23088. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  23089. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23090. sen_tdm_rx_2_mixer_controls,
  23091. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  23092. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23093. sen_tdm_rx_3_mixer_controls,
  23094. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  23095. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23096. pri_meta_mi2s_rx_mixer_controls,
  23097. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  23098. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23099. sec_meta_mi2s_rx_mixer_controls,
  23100. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  23101. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23102. wsa_cdc_dma_rx_0_mixer_controls,
  23103. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  23104. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23105. wsa_cdc_dma_rx_1_mixer_controls,
  23106. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  23107. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23108. rx_cdc_dma_rx_0_mixer_controls,
  23109. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  23110. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23111. rx_cdc_dma_rx_1_mixer_controls,
  23112. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  23113. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23114. rx_cdc_dma_rx_2_mixer_controls,
  23115. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  23116. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23117. rx_cdc_dma_rx_3_mixer_controls,
  23118. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  23119. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23120. rx_cdc_dma_rx_4_mixer_controls,
  23121. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  23122. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23123. rx_cdc_dma_rx_5_mixer_controls,
  23124. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  23125. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23126. rx_cdc_dma_rx_6_mixer_controls,
  23127. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  23128. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23129. rx_cdc_dma_rx_7_mixer_controls,
  23130. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  23131. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  23132. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  23133. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  23134. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  23135. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  23136. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  23137. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  23138. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  23139. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  23140. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  23141. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  23142. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  23143. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  23144. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  23145. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  23146. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  23147. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  23148. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  23149. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  23150. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  23151. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  23152. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  23153. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  23154. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  23155. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  23156. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  23157. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  23158. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  23159. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  23160. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  23161. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  23162. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  23163. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  23164. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  23165. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  23166. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  23167. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  23168. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  23169. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  23170. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  23171. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23172. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  23173. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23174. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  23175. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23176. tert_auxpcm_rx_mixer_controls,
  23177. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  23178. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23179. quat_auxpcm_rx_mixer_controls,
  23180. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  23181. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23182. quin_auxpcm_rx_mixer_controls,
  23183. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  23184. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23185. sen_auxpcm_rx_mixer_controls,
  23186. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  23187. /* incall */
  23188. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  23189. incall_music_delivery_mixer_controls,
  23190. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  23191. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23192. incall_music2_delivery_mixer_controls,
  23193. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  23194. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23195. slimbus_4_rx_mixer_controls,
  23196. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  23197. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23198. slimbus_6_rx_mixer_controls,
  23199. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  23200. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23201. usb_audio_rx_mixer_controls,
  23202. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  23203. /* Voice Mixer */
  23204. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  23205. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  23206. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  23207. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  23208. SND_SOC_NOPM, 0, 0,
  23209. sec_i2s_rx_voice_mixer_controls,
  23210. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  23211. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  23212. SND_SOC_NOPM, 0, 0,
  23213. sec_mi2s_rx_voice_mixer_controls,
  23214. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  23215. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  23216. SND_SOC_NOPM, 0, 0,
  23217. slimbus_rx_voice_mixer_controls,
  23218. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  23219. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  23220. SND_SOC_NOPM, 0, 0,
  23221. bt_sco_rx_voice_mixer_controls,
  23222. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  23223. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  23224. SND_SOC_NOPM, 0, 0,
  23225. afe_pcm_rx_voice_mixer_controls,
  23226. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  23227. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  23228. SND_SOC_NOPM, 0, 0,
  23229. aux_pcm_rx_voice_mixer_controls,
  23230. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  23231. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  23232. SND_SOC_NOPM, 0, 0,
  23233. sec_aux_pcm_rx_voice_mixer_controls,
  23234. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  23235. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  23236. SND_SOC_NOPM, 0, 0,
  23237. tert_aux_pcm_rx_voice_mixer_controls,
  23238. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  23239. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  23240. SND_SOC_NOPM, 0, 0,
  23241. quat_aux_pcm_rx_voice_mixer_controls,
  23242. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  23243. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  23244. SND_SOC_NOPM, 0, 0,
  23245. quin_aux_pcm_rx_voice_mixer_controls,
  23246. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  23247. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  23248. SND_SOC_NOPM, 0, 0,
  23249. sen_aux_pcm_rx_voice_mixer_controls,
  23250. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  23251. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  23252. SND_SOC_NOPM, 0, 0,
  23253. hdmi_rx_voice_mixer_controls,
  23254. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  23255. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  23256. SND_SOC_NOPM, 0, 0,
  23257. mi2s_rx_voice_mixer_controls,
  23258. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  23259. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  23260. SND_SOC_NOPM, 0, 0,
  23261. pri_mi2s_rx_voice_mixer_controls,
  23262. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  23263. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  23264. SND_SOC_NOPM, 0, 0,
  23265. int0_mi2s_rx_voice_mixer_controls,
  23266. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  23267. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  23268. SND_SOC_NOPM, 0, 0,
  23269. int4_mi2s_rx_voice_mixer_controls,
  23270. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  23271. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  23272. SND_SOC_NOPM, 0, 0,
  23273. tert_mi2s_rx_voice_mixer_controls,
  23274. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  23275. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  23276. SND_SOC_NOPM, 0, 0,
  23277. quat_mi2s_rx_voice_mixer_controls,
  23278. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  23279. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  23280. SND_SOC_NOPM, 0, 0,
  23281. quin_mi2s_rx_voice_mixer_controls,
  23282. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  23283. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  23284. SND_SOC_NOPM, 0, 0,
  23285. pri_tdm_rx_0_voice_mixer_controls,
  23286. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  23287. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  23288. SND_SOC_NOPM, 0, 0,
  23289. pri_tdm_rx_1_voice_mixer_controls,
  23290. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  23291. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  23292. SND_SOC_NOPM, 0, 0,
  23293. pri_tdm_rx_2_voice_mixer_controls,
  23294. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  23295. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  23296. SND_SOC_NOPM, 0, 0,
  23297. pri_tdm_rx_3_voice_mixer_controls,
  23298. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  23299. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  23300. SND_SOC_NOPM, 0, 0,
  23301. sen_mi2s_rx_voice_mixer_controls,
  23302. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  23303. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  23304. SND_SOC_NOPM, 0, 0,
  23305. quat_tdm_rx_2_voice_mixer_controls,
  23306. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  23307. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2_Voice Mixer",
  23308. SND_SOC_NOPM, 0, 0,
  23309. quin_tdm_rx_2_voice_mixer_controls,
  23310. ARRAY_SIZE(quin_tdm_rx_2_voice_mixer_controls)),
  23311. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  23312. SND_SOC_NOPM, 0, 0,
  23313. wsa_cdc_dma_rx_0_voice_mixer_controls,
  23314. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  23315. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  23316. SND_SOC_NOPM, 0, 0,
  23317. rx_cdc_dma_rx_0_voice_mixer_controls,
  23318. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  23319. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  23320. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  23321. ARRAY_SIZE(tx_voip_mixer_controls)),
  23322. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  23323. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  23324. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  23325. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  23326. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  23327. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  23328. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23329. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  23330. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23331. int_bt_a2dp_rx_mixer_controls,
  23332. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  23333. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23334. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  23335. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23336. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  23337. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23338. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  23339. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23340. tx_voice2_stub_mixer_controls,
  23341. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  23342. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23343. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  23344. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  23345. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  23346. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  23347. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  23348. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23349. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  23350. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  23351. SND_SOC_NOPM, 0, 0,
  23352. slimbus_6_rx_voice_mixer_controls,
  23353. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  23354. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23355. slimbus_7_rx_voice_mixer_controls,
  23356. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  23357. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23358. slimbus_8_rx_voice_mixer_controls,
  23359. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  23360. /* port mixer */
  23361. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  23362. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  23363. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  23364. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  23365. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  23366. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  23367. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  23368. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  23369. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  23370. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  23371. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  23372. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  23373. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  23374. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  23375. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  23376. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  23377. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  23378. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  23379. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  23380. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  23381. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  23382. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23383. sbus_1_rx_port_mixer_controls,
  23384. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  23385. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23386. bt_sco_rx_port_mixer_controls,
  23387. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  23388. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  23389. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  23390. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  23391. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  23392. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  23393. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  23394. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  23395. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  23396. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  23397. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  23398. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  23399. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  23400. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  23401. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  23402. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  23403. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  23404. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  23405. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  23406. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  23407. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  23408. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  23409. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23410. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  23411. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23412. primary_mi2s_rx_port_mixer_controls,
  23413. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  23414. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23415. sec_mi2s_rx_port_mixer_controls,
  23416. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  23417. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23418. tert_mi2s_rx_port_mixer_controls,
  23419. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  23420. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23421. quat_mi2s_rx_port_mixer_controls,
  23422. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  23423. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23424. quin_mi2s_rx_port_mixer_controls,
  23425. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  23426. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23427. sen_mi2s_rx_port_mixer_controls,
  23428. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  23429. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23430. pri_tdm_rx_0_port_mixer_controls,
  23431. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  23432. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23433. pri_tdm_rx_1_port_mixer_controls,
  23434. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  23435. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23436. pri_tdm_rx_2_port_mixer_controls,
  23437. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  23438. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23439. pri_tdm_rx_3_port_mixer_controls,
  23440. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  23441. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23442. sec_tdm_rx_0_port_mixer_controls,
  23443. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  23444. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23445. sec_tdm_rx_1_port_mixer_controls,
  23446. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  23447. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23448. sec_tdm_rx_2_port_mixer_controls,
  23449. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  23450. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23451. sec_tdm_rx_3_port_mixer_controls,
  23452. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  23453. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23454. sec_tdm_rx_7_port_mixer_controls,
  23455. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  23456. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23457. tert_tdm_rx_0_port_mixer_controls,
  23458. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  23459. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23460. tert_tdm_rx_1_port_mixer_controls,
  23461. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  23462. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23463. tert_tdm_rx_2_port_mixer_controls,
  23464. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  23465. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23466. tert_tdm_rx_3_port_mixer_controls,
  23467. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  23468. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23469. quat_tdm_rx_0_port_mixer_controls,
  23470. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  23471. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23472. quat_tdm_rx_1_port_mixer_controls,
  23473. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  23474. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23475. quat_tdm_rx_2_port_mixer_controls,
  23476. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  23477. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23478. quat_tdm_rx_3_port_mixer_controls,
  23479. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  23480. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23481. quat_tdm_rx_7_port_mixer_controls,
  23482. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  23483. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23484. quin_tdm_rx_0_port_mixer_controls,
  23485. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  23486. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23487. quin_tdm_rx_1_port_mixer_controls,
  23488. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  23489. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23490. quin_tdm_rx_2_port_mixer_controls,
  23491. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  23492. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23493. quin_tdm_rx_3_port_mixer_controls,
  23494. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  23495. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23496. quin_tdm_rx_7_port_mixer_controls,
  23497. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  23498. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23499. sen_tdm_rx_0_port_mixer_controls,
  23500. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  23501. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23502. sen_tdm_rx_1_port_mixer_controls,
  23503. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  23504. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23505. sen_tdm_rx_2_port_mixer_controls,
  23506. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  23507. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23508. sen_tdm_rx_3_port_mixer_controls,
  23509. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  23510. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23511. int0_mi2s_rx_port_mixer_controls,
  23512. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  23513. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23514. int4_mi2s_rx_port_mixer_controls,
  23515. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  23516. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23517. wsa_cdc_dma_rx_0_port_mixer_controls,
  23518. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  23519. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23520. rx_cdc_dma_rx_0_port_mixer_controls,
  23521. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  23522. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  23523. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  23524. ARRAY_SIZE(tx_qchat_mixer_controls)),
  23525. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  23526. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  23527. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  23528. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  23529. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  23530. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  23531. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  23532. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  23533. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  23534. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  23535. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  23536. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  23537. /* lsm mixer definitions */
  23538. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  23539. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  23540. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  23541. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  23542. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  23543. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  23544. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  23545. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  23546. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  23547. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  23548. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  23549. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  23550. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  23551. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  23552. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  23553. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  23554. /* Virtual Pins to force backends ON atm */
  23555. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  23556. SND_SOC_DAPM_INPUT("BE_IN"),
  23557. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23558. &slim0_rx_vi_fb_lch_mux),
  23559. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23560. &slim0_rx_vi_fb_rch_mux),
  23561. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23562. &wsa_rx_0_vi_fb_lch_mux),
  23563. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23564. &wsa_rx_0_vi_fb_rch_mux),
  23565. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  23566. &mi2s_rx_vi_fb_mux),
  23567. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  23568. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  23569. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  23570. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  23571. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  23572. &voc_ext_ec_mux),
  23573. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  23574. &ext_ec_ref_mux_ul1),
  23575. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  23576. &ext_ec_ref_mux_ul2),
  23577. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  23578. &ext_ec_ref_mux_ul3),
  23579. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  23580. &ext_ec_ref_mux_ul4),
  23581. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  23582. &ext_ec_ref_mux_ul5),
  23583. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  23584. &ext_ec_ref_mux_ul6),
  23585. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  23586. &ext_ec_ref_mux_ul8),
  23587. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  23588. &ext_ec_ref_mux_ul9),
  23589. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  23590. &ext_ec_ref_mux_ul10),
  23591. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  23592. &ext_ec_ref_mux_ul16),
  23593. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  23594. &ext_ec_ref_mux_ul17),
  23595. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  23596. &ext_ec_ref_mux_ul18),
  23597. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  23598. &ext_ec_ref_mux_ul19),
  23599. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  23600. &ext_ec_ref_mux_ul28),
  23601. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  23602. &ext_ec_ref_mux_ul29),
  23603. };
  23604. static const struct snd_soc_dapm_route intercon[] = {
  23605. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23606. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23607. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23608. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23609. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23610. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23611. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23612. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23613. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23614. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23615. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23616. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23617. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23618. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23619. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23620. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23621. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23622. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  23623. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23624. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23625. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23626. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23627. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23628. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23629. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23630. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23631. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23632. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23633. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23634. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23635. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23636. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23637. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23638. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23639. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23640. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  23641. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23642. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23643. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23644. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23645. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23646. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23647. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23648. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23649. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23650. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23651. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23652. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23653. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23654. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23655. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23656. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23657. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23658. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  23659. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23660. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23661. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23662. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23663. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23664. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23665. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23666. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23667. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23668. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23669. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23670. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23671. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23672. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23673. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23674. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23675. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23676. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  23677. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23678. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23679. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23680. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23681. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23682. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23683. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23684. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23685. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23686. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23687. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23688. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23689. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23690. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23691. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23692. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23693. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23694. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  23695. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23696. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23697. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23698. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23699. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23700. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23701. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23702. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23703. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23704. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23705. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23706. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23707. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23708. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23709. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23710. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23711. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23712. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  23713. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23714. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23715. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23716. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23717. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23718. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23719. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23720. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23721. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23722. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23723. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23724. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23725. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23726. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23727. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23728. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23729. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23730. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  23731. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23732. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23733. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23734. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23735. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23736. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23737. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23738. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23739. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23740. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23741. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23742. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23743. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23744. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23745. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23746. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23747. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23748. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  23749. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23750. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23751. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23752. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23753. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23754. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23755. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23756. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23757. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23758. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23759. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23760. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23761. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23762. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23763. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23764. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23765. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23766. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  23767. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23768. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23769. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23770. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23771. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23772. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23773. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23774. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23775. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23776. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23777. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23778. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23779. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23780. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23781. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23782. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23783. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23784. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  23785. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23786. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23787. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23788. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23789. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23790. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23791. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23792. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23793. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23794. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23795. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23796. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23797. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23798. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23799. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23800. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23801. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23802. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  23803. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23804. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23805. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23806. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23807. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23808. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23809. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23810. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23811. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23812. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23813. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23814. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23815. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23816. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23817. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23818. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23819. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23820. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  23821. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23822. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23823. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23824. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23825. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23826. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23827. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23828. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23829. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23830. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23831. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23832. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23833. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23834. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23835. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23836. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23837. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23838. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  23839. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23840. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23841. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23842. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23843. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23844. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23845. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23846. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23847. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23848. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23849. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23850. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23851. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23852. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23853. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23854. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23855. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23856. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  23857. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23858. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23859. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23860. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23861. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23862. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23863. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23864. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23865. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23866. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23867. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23868. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23869. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23870. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23871. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23872. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23873. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23874. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  23875. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  23876. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  23877. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  23878. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  23879. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  23880. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  23881. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  23882. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  23883. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  23884. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  23885. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  23886. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  23887. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  23888. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  23889. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  23890. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  23891. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  23892. {"HDMI", NULL, "HDMI Mixer"},
  23893. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  23894. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  23895. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  23896. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  23897. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  23898. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  23899. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  23900. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  23901. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  23902. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  23903. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  23904. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  23905. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  23906. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  23907. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  23908. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  23909. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  23910. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  23911. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  23912. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  23913. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  23914. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  23915. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  23916. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  23917. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  23918. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  23919. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  23920. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  23921. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  23922. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  23923. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  23924. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  23925. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  23926. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  23927. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  23928. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  23929. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23930. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23931. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23932. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23933. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23934. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23935. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23936. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23937. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23938. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23939. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23940. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23941. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23942. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23943. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23944. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23945. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23946. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  23947. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23948. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23949. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23950. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23951. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23952. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23953. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23954. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23955. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23956. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23957. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23958. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23959. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23960. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23961. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23962. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23963. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23964. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  23965. /* incall */
  23966. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  23967. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  23968. {"Incall_Music Audio Mixer", "MultiMedia4", "MM_DL4"},
  23969. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  23970. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  23971. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  23972. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23973. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23974. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23975. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23976. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  23977. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23978. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23979. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23980. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23981. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  23982. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23983. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23984. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23985. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23986. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23987. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23988. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23989. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23990. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23991. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23992. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23993. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23994. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23995. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23996. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23997. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23998. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23999. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  24000. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24001. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24002. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24003. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24004. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24005. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24006. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24007. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24008. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24009. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24010. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24011. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24012. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24013. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24014. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24015. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24016. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24017. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  24018. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24019. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24020. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24021. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24022. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24023. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24024. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24025. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24026. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24027. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24028. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24029. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24030. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24031. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24032. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24033. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24034. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24035. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  24036. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24037. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24038. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24039. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24040. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24041. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24042. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24043. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24044. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24045. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24046. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24047. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24048. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24049. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24050. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24051. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24052. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24053. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  24054. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24055. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24056. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24057. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24058. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24059. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24060. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  24061. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24062. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24063. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24064. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24065. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24066. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24067. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24068. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24069. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24070. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24071. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24072. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24073. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24074. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24075. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24076. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24077. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24078. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24079. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24080. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24081. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24082. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24083. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24084. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24085. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24086. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24087. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24088. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24089. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24090. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24091. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24092. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24093. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24094. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24095. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24096. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24097. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24098. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24099. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24100. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24101. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24102. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24103. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24104. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24105. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24106. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24107. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24108. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24109. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24110. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24111. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24112. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24113. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24114. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24115. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24116. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24117. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24118. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24119. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24120. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24121. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24122. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24123. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24124. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24125. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24126. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24127. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24128. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24129. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24130. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24131. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24132. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24133. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24134. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24135. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24136. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24137. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24138. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24139. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24140. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24141. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24142. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24143. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24144. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24145. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24146. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24147. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24148. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24149. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24150. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24151. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  24152. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24153. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24154. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24155. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24156. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24157. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24158. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24159. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24160. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24161. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24162. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24163. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24164. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24165. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24166. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24167. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24168. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  24169. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24170. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24171. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24172. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24173. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24174. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24175. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24176. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24177. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24178. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24179. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24180. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24181. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24182. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24183. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24184. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  24185. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24186. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24187. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24188. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24189. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24190. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24191. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24192. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24193. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24194. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24195. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24196. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24197. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24198. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24199. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24200. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  24201. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24202. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  24203. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24204. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24205. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24206. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24207. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24208. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24209. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24210. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24211. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24212. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24213. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24214. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24215. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24216. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24217. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24218. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24219. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24220. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24221. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24222. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  24223. {"PRI_MI2S_RX Audio Mixer", "DTMF", "DTMF_DL_HL"},
  24224. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24225. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24226. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24227. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24228. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24229. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24230. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24231. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24232. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24233. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24234. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24235. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24236. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24237. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24238. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24239. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  24240. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24241. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24242. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24243. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24244. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24245. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24246. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24247. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24248. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24249. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24250. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24251. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24252. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24253. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24254. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24255. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  24256. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24257. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24258. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24259. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24260. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24261. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24262. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24263. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24264. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24265. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24266. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24267. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24268. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24269. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24270. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24271. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24272. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24273. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  24274. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24275. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24276. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24277. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24278. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24279. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24280. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24281. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24282. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24283. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24284. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24285. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24286. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24287. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24288. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24289. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  24290. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24291. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24292. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24293. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24294. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24295. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24296. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24297. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24298. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24299. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24300. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24301. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24302. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24303. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24304. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24305. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24306. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24307. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  24308. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24309. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24310. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24311. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24312. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24313. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24314. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24315. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24316. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24317. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24318. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24319. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24320. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24321. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24322. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24323. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24324. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24325. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  24326. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24327. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24328. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24329. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24330. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24331. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24332. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24333. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24334. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24335. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24336. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24337. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24338. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24339. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24340. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24341. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24342. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24343. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24344. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  24345. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24346. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24347. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24348. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24349. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24350. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24351. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24352. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24353. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24354. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24355. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24356. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24357. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24358. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24359. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24360. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24361. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24362. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24363. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  24364. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24365. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24366. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24367. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24368. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24369. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24370. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24371. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24372. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24373. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24374. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24375. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24376. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24377. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24378. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24379. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24380. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24381. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24382. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  24383. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24384. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24385. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24386. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24387. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24388. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24389. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24390. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24391. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24392. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24393. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24394. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24395. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24396. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24397. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24398. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24399. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24400. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24401. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  24402. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24403. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24404. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24405. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24406. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24407. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24408. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24409. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24410. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24411. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24412. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24413. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24414. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24415. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24416. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24417. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24418. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  24419. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24420. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24421. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24422. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24423. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24424. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24425. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24426. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24427. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24428. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24429. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24430. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24431. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24432. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24433. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24434. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24435. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24436. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24437. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  24438. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24439. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24440. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24441. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24442. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24443. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24444. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24445. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24446. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24447. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24448. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24449. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24450. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24451. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24452. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24453. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24454. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24455. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24456. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  24457. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24458. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24459. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24460. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24461. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24462. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24463. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24464. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24465. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24466. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24467. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24468. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24469. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24470. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24471. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24472. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24473. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24474. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24475. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  24476. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24477. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24478. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24479. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24480. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24481. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24482. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24483. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24484. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24485. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24486. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24487. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24488. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24489. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24490. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24491. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24492. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24493. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24494. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  24495. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24496. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24497. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24498. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24499. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24500. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24501. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24502. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24503. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24504. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24505. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24506. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24507. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24508. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24509. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24510. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24511. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  24512. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24513. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24514. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24515. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24516. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24517. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24518. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24519. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24520. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24521. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24522. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24523. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24524. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24525. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24526. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24527. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24528. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24529. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24530. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  24531. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24532. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24533. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24534. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24535. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24536. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24537. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24538. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24539. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24540. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24541. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24542. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24543. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24544. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24545. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24546. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24547. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  24548. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24549. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24550. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24551. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24552. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24553. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24554. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24555. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24556. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24557. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24558. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24559. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24560. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24561. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24562. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24563. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24564. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24565. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24566. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  24567. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24568. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24569. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24570. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24571. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24572. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24573. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24574. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24575. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24576. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24577. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24578. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24579. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24580. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24581. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24582. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24583. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24584. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24585. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  24586. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24587. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24588. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24589. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24590. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24591. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24592. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24593. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24594. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24595. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24596. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24597. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24598. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24599. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24600. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24601. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24602. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24603. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24604. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  24605. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24606. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24607. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24608. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24609. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24610. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24611. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24612. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24613. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24614. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24615. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24616. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24617. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24618. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24619. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24620. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24621. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24622. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24623. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  24624. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24625. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24626. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24627. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24628. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24629. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24630. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24631. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24632. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24633. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24634. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24635. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24636. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24637. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24638. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24639. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24640. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24641. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24642. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24643. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  24644. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24645. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24646. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24647. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24648. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24649. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24650. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24651. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24652. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24653. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24654. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24655. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24656. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24657. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24658. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24659. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24660. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  24661. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24662. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24663. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24664. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24665. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24666. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24667. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24668. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24669. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24670. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24671. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24672. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24673. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24674. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24675. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24676. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24677. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24678. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24679. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24680. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  24681. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24682. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24683. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24684. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24685. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24686. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24687. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24688. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24689. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24690. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24691. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24692. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24693. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24694. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24695. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24696. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24697. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24698. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24699. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24700. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  24701. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24702. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24703. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24704. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24705. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24706. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24707. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24708. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24709. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24710. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24711. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24712. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24713. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24714. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24715. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24716. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24717. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24718. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24719. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24720. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  24721. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24722. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24723. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24724. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24725. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24726. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24727. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24728. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24729. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24730. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24731. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24732. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24733. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24734. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24735. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24736. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24737. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24738. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24739. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24740. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  24741. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24742. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24743. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24744. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24745. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24746. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24747. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24748. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24749. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24750. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24751. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24752. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24753. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24754. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24755. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24756. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24757. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  24758. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24759. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24760. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24761. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24762. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24763. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24764. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24765. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24766. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24767. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24768. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24769. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24770. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24771. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24772. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24773. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24774. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24775. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24776. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24777. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  24778. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24779. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24780. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24781. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24782. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24783. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24784. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24785. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24786. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24787. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24788. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24789. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24790. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24791. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24792. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24793. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24794. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24795. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24796. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24797. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  24798. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24799. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24800. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24801. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24802. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24803. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24804. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24805. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24806. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24807. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24808. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24809. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24810. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24811. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24812. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24813. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24814. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24815. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24816. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24817. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  24818. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24819. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24820. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24821. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24822. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24823. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24824. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24825. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24826. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24827. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24828. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24829. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24830. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24831. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24832. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24833. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24834. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24835. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24836. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  24837. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24838. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24839. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24840. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24841. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24842. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24843. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24844. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24845. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24846. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24847. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24848. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24849. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24850. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24851. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24852. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24853. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  24854. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24855. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24856. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24857. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24858. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24859. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24860. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24861. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24862. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24863. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24864. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24865. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24866. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24867. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24868. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24869. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24870. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24871. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24872. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  24873. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24874. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24875. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24876. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24877. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24878. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24879. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24880. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24881. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24882. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24883. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24884. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24885. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24886. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24887. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24888. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24889. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24890. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24891. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  24892. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24893. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24894. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24895. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24896. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24897. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24898. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24899. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24900. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24901. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24902. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24903. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24904. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24905. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24906. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24907. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24908. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24909. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24910. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  24911. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  24912. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  24913. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  24914. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  24915. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  24916. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  24917. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  24918. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24919. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24920. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24921. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24922. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24923. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24924. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24925. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24926. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24927. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24928. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24929. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24930. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24931. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24932. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24933. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24934. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24935. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24936. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24937. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24938. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24939. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24940. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24941. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24942. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24943. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24944. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  24945. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24946. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24947. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24948. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  24949. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24950. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24951. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24952. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24953. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  24954. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  24955. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  24956. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  24957. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  24958. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  24959. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24960. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24961. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24962. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24963. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24964. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24965. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24966. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24967. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24968. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24969. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24970. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24971. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24972. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24973. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24974. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24975. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24976. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24977. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24978. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24979. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24980. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24981. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24982. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24983. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24984. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24985. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24986. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24987. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24988. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24989. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24990. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24991. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24992. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24993. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24994. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24995. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24996. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24997. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24998. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24999. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25000. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25001. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25002. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25003. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25004. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25005. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25006. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25007. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25008. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25009. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25010. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25011. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25012. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25013. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25014. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25015. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25016. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25017. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25018. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25019. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25020. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25021. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25022. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25023. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25024. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25025. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25026. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25027. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25028. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25029. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25030. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25031. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25032. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25033. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25034. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25035. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25036. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25037. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25038. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25039. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25040. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25041. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25042. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25043. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25044. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25045. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25046. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25047. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25048. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25049. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25050. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25051. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25052. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25053. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25054. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25055. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25056. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25057. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25058. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25059. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25060. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25061. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25062. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25063. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25064. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25065. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25066. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25067. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25068. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25069. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25070. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25071. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25072. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25073. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25074. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25075. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25076. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25077. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25078. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25079. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25080. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25081. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25082. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25083. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25084. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25085. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25086. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25087. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25088. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25089. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25090. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25091. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25092. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25093. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25094. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25095. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25096. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25097. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25098. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25099. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25100. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25101. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25102. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25103. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25104. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25105. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25106. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25107. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25108. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25109. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25110. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25111. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25112. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25113. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25114. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25115. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25116. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25117. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25118. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25119. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25120. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25121. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25122. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25123. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25124. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25125. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25126. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25127. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25128. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25129. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25130. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25131. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25132. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25133. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25134. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25135. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25136. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25137. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25138. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25139. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25140. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25141. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25142. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25143. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25144. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25145. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25146. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25147. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25148. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25149. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25150. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25151. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25152. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25153. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25154. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25155. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25156. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25157. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25158. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25159. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25160. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25161. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25162. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25163. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25164. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25165. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25166. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25167. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25168. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25169. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25170. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25171. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25172. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25173. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25174. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25175. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25176. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25177. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25178. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25179. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25180. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25181. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25182. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25183. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25184. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25185. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25186. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25187. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25188. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25189. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25190. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25191. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25192. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25193. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25194. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25195. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25196. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25197. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25198. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25199. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25200. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25201. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25202. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25203. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25204. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25205. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25206. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25207. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25208. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25209. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25210. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25211. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25212. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25213. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25214. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25215. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25216. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25217. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25218. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25219. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25220. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25221. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25222. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25223. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25224. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25225. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25226. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25227. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25228. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25229. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25230. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25231. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25232. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25233. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25234. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25235. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25236. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25237. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25238. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25239. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25240. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25241. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25242. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25243. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25244. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25245. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25246. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25247. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25248. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25249. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25250. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25251. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25252. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25253. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25254. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25255. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25256. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25257. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25258. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25259. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25260. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25261. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25262. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25263. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25264. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25265. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25266. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25267. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25268. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25269. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25270. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25271. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25272. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25273. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25274. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25275. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25276. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25277. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25278. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25279. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25280. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25281. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25282. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25283. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25284. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25285. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25286. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25287. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25288. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25289. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25290. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25291. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25292. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25293. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25294. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25295. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25296. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25297. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25298. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25299. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25300. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25301. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25302. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25303. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25304. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25305. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25306. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25307. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25308. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25309. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25310. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25311. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25312. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25313. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25314. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25315. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25316. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25317. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25318. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25319. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25320. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25321. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25322. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25323. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25324. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25325. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25326. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25327. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25328. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25329. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25330. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25331. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25332. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25333. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25334. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25335. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25336. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25337. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25338. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25339. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25340. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25341. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25342. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25343. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25344. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25345. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25346. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25347. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25348. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25349. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25350. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25351. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25352. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25353. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25354. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25355. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25356. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25357. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25358. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25359. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25360. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25361. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25362. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25363. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25364. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25365. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25366. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25367. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25368. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25369. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25370. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25371. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25372. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25373. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25374. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25375. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25376. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25377. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25378. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25379. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25380. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25381. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25382. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25383. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25384. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25385. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25386. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25387. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25388. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25389. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25390. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25391. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25392. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25393. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25394. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25395. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25396. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25397. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25398. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25399. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25400. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25401. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25402. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25403. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25404. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25405. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25406. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25407. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25408. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25409. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25410. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25411. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25412. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25413. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25414. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25415. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25416. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25417. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25418. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25419. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25420. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25421. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25422. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25423. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25424. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25425. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25426. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25427. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25428. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25429. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25430. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25431. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25432. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25433. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25434. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25435. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25436. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25437. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25438. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25439. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25440. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25441. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25442. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25443. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25444. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25445. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25446. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25447. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25448. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25449. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25450. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25451. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25452. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25453. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25454. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25455. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25456. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25457. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25458. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25459. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25460. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25461. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25462. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25463. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25464. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25465. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25466. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25467. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25468. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25469. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25470. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25471. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25472. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25473. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25474. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25475. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25476. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25477. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25478. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25479. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25480. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25481. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25482. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25483. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25484. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25485. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25486. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25487. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25488. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25489. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25490. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25491. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25492. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25493. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25494. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25495. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25496. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25497. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25498. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25499. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25500. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25501. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25502. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25503. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25504. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25505. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25506. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25507. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25508. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25509. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25510. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25511. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25512. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25513. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25514. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25515. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25516. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25517. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25518. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25519. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25520. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25521. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25522. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25523. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25524. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25525. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25526. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25527. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25528. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25529. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25530. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25531. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25532. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25533. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25534. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25535. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25536. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25537. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25538. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25539. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25540. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25541. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25542. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  25543. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25544. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25545. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25546. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25547. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25548. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25549. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25550. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25551. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25552. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25553. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25554. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25555. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25556. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25557. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25558. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25559. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25560. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  25561. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25562. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25563. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25564. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25565. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25566. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25567. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25568. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25569. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25570. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25571. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25572. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25573. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25574. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25575. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25576. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25577. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  25578. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25579. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25580. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25581. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25582. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25583. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25584. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25585. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25586. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25587. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25588. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25589. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25590. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25591. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25592. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25593. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25594. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  25595. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25596. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25597. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25598. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25599. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25600. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25601. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25602. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25603. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25604. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25605. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25606. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25607. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25608. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25609. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25610. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25611. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25612. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25613. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25614. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25615. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25616. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25617. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25618. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25619. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25620. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25621. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25622. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25623. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25624. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25625. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25626. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25627. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25628. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25629. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25630. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25631. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25632. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25633. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  25634. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25635. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  25636. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  25637. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  25638. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  25639. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  25640. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  25641. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  25642. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  25643. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  25644. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  25645. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  25646. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  25647. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  25648. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  25649. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  25650. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  25651. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  25652. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  25653. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  25654. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25655. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25656. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25657. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25658. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25659. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25660. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25661. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25662. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25663. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25664. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25665. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25666. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25667. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25668. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25669. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25670. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25671. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  25672. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25673. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25674. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25675. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25676. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25677. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25678. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25679. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25680. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25681. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25682. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25683. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25684. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25685. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25686. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25687. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25688. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25689. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  25690. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25691. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25692. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25693. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25694. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25695. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25696. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25697. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25698. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25699. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25700. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25701. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25702. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25703. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25704. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25705. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25706. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  25707. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25708. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25709. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25710. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25711. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25712. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25713. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25714. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25715. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25716. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25717. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25718. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25719. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25720. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25721. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25722. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25723. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  25724. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25725. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25726. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25727. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25728. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25729. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25730. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25731. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25732. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25733. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25734. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25735. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25736. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25737. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25738. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25739. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25740. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  25741. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25742. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25743. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25744. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25745. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25746. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25747. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25748. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25749. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25750. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25751. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25752. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25753. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25754. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25755. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25756. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25757. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  25758. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25759. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25760. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25761. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25762. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25763. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  25764. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25765. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25766. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25767. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  25768. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25769. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25770. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25771. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25772. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25773. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25774. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25775. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  25776. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25777. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25778. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25779. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25780. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25781. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  25782. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25783. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25784. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25785. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25786. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25787. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  25788. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25789. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25790. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25791. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25792. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25793. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  25794. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25795. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25796. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25797. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25798. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25799. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  25800. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  25801. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25802. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25803. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25804. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25805. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  25806. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25807. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25808. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25809. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25810. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25811. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  25812. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25813. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25814. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25815. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25816. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25817. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  25818. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25819. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25820. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25821. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25822. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25823. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  25824. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25825. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25826. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25827. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25828. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25829. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  25830. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25831. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25832. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25833. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25834. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25835. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  25836. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25837. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25838. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25839. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25840. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25841. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  25842. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25843. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25844. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25845. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25846. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25847. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  25848. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25849. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25850. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25851. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25852. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25853. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  25854. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25855. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25856. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25857. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25858. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25859. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  25860. {"HDMI", NULL, "HDMI_DL_HL"},
  25861. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25862. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25863. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25864. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25865. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25866. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25867. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25868. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  25869. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25870. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25871. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25872. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25873. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25874. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25875. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25876. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  25877. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25878. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25879. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25880. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25881. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25882. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  25883. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25884. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25885. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25886. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25887. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25888. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  25889. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25890. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25891. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25892. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25893. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25894. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25895. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25896. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  25897. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25898. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25899. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25900. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25901. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25902. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25903. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  25904. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25905. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25906. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25907. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25908. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25909. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25910. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  25911. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25912. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25913. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25914. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25915. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25916. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25917. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25918. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25919. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  25920. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  25921. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25922. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25923. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25924. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25925. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25926. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25927. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25928. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  25929. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  25930. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25931. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25932. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25933. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25934. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25935. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25936. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25937. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  25938. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  25939. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25940. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25941. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25942. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25943. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25944. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25945. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25946. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  25947. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25948. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25949. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25950. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25951. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  25952. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25953. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  25954. {"QUIN_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25955. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_Voice Mixer"},
  25956. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25957. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25958. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25959. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  25960. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25961. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25962. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25963. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  25964. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25965. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25966. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25967. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25968. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25969. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25970. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  25971. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  25972. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  25973. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  25974. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  25975. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25976. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25977. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25978. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25979. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25980. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25981. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  25982. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  25983. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  25984. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25985. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  25986. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25987. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25988. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25989. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25990. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25991. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25992. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25993. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25994. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25995. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25996. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25997. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25998. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25999. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26000. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26001. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26002. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26003. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26004. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26005. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26006. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26007. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26008. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26009. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26010. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26011. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26012. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26013. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26014. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26015. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26016. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26017. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26018. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26019. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26020. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26021. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  26022. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  26023. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  26024. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26025. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  26026. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26027. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26028. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26029. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26030. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26031. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26032. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26033. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26034. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26035. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26036. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26037. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26038. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26039. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26040. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26041. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26042. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26043. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26044. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26045. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26046. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26047. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26048. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26049. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26050. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26051. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26052. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26053. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26054. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26055. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26056. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26057. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26058. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26059. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26060. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  26061. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  26062. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  26063. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  26064. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  26065. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  26066. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  26067. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  26068. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  26069. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  26070. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  26071. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  26072. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  26073. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  26074. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  26075. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  26076. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  26077. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  26078. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  26079. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  26080. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  26081. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  26082. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  26083. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  26084. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  26085. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  26086. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  26087. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  26088. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  26089. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  26090. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  26091. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  26092. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  26093. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  26094. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  26095. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  26096. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  26097. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  26098. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  26099. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  26100. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  26101. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  26102. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  26103. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  26104. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  26105. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  26106. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  26107. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  26108. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  26109. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  26110. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  26111. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  26112. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  26113. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  26114. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  26115. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  26116. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  26117. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  26118. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  26119. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  26120. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  26121. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  26122. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  26123. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  26124. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  26125. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  26126. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  26127. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  26128. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  26129. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  26130. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  26131. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  26132. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  26133. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  26134. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  26135. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  26136. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  26137. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  26138. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  26139. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  26140. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  26141. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  26142. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  26143. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  26144. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  26145. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  26146. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  26147. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  26148. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  26149. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  26150. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  26151. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  26152. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  26153. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  26154. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  26155. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  26156. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  26157. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  26158. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  26159. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  26160. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  26161. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  26162. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  26163. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  26164. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  26165. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  26166. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  26167. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  26168. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  26169. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  26170. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  26171. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  26172. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  26173. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  26174. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  26175. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26176. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  26177. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  26178. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26179. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  26180. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  26181. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  26182. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26183. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26184. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26185. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26186. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26187. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26188. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26189. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26190. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26191. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26192. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26193. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26194. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26195. {"LSM1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26196. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  26197. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26198. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26199. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26200. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26201. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26202. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26203. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26204. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26205. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26206. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26207. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26208. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26209. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26210. {"LSM2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26211. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  26212. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26213. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26214. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26215. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26216. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26217. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26218. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26219. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26220. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26221. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26222. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26223. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26224. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26225. {"LSM3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26226. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  26227. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26228. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26229. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26230. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26231. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26232. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26233. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26234. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26235. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26236. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26237. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26238. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26239. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26240. {"LSM4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26241. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  26242. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26243. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26244. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26245. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26246. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26247. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26248. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26249. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26250. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26251. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26252. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26253. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26254. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26255. {"LSM5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26256. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  26257. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26258. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26259. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26260. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26261. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26262. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26263. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26264. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26265. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26266. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26267. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26268. {"LSM6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26269. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  26270. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26271. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26272. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26273. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26274. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26275. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26276. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26277. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26278. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26279. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26280. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26281. {"LSM7 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26282. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  26283. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26284. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26285. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26286. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26287. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26288. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26289. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26290. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26291. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26292. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26293. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26294. {"LSM8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26295. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  26296. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  26297. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  26298. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  26299. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  26300. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  26301. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  26302. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  26303. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  26304. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  26305. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  26306. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  26307. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  26308. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  26309. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  26310. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  26311. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  26312. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  26313. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  26314. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  26315. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  26316. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  26317. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  26318. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  26319. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  26320. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  26321. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  26322. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  26323. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  26324. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26325. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  26326. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  26327. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  26328. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26329. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  26330. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  26331. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  26332. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  26333. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  26334. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  26335. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  26336. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  26337. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  26338. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  26339. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  26340. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  26341. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  26342. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  26343. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  26344. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  26345. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  26346. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  26347. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  26348. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  26349. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  26350. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  26351. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  26352. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  26353. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  26354. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  26355. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  26356. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  26357. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  26358. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  26359. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  26360. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  26361. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  26362. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  26363. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  26364. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  26365. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  26366. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  26367. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  26368. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  26369. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  26370. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  26371. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  26372. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  26373. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  26374. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  26375. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  26376. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  26377. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  26378. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  26379. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  26380. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  26381. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  26382. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  26383. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  26384. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  26385. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  26386. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  26387. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  26388. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  26389. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  26390. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  26391. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  26392. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  26393. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  26394. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  26395. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  26396. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  26397. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  26398. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  26399. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  26400. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  26401. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  26402. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  26403. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  26404. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  26405. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  26406. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  26407. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  26408. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  26409. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  26410. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  26411. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  26412. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  26413. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  26414. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  26415. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  26416. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  26417. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26418. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26419. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26420. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26421. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26422. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26423. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26424. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26425. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26426. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26427. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26428. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26429. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26430. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26431. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26432. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26433. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26434. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26435. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26436. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26437. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26438. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26439. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26440. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26441. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  26442. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26443. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26444. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26445. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26446. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26447. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26448. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26449. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26450. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26451. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26452. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26453. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26454. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26455. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26456. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26457. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26458. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26459. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26460. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26461. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26462. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26463. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26464. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26465. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26466. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  26467. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26468. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26469. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26470. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26471. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26472. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26473. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26474. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26475. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26476. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26477. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26478. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26479. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26480. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26481. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26482. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26483. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26484. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26485. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26486. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26487. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26488. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26489. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26490. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26491. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  26492. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26493. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26494. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26495. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26496. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26497. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26498. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26499. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26500. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26501. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26502. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26503. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26504. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26505. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26506. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26507. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26508. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26509. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26510. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26511. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26512. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26513. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26514. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26515. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26516. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  26517. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26518. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26519. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26520. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26521. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26522. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26523. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26524. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26525. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26526. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26527. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26528. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26529. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26530. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26531. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26532. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26533. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26534. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26535. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26536. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26537. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26538. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26539. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26540. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26541. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  26542. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26543. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26544. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26545. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26546. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26547. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26548. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26549. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26550. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26551. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26552. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26553. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26554. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26555. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26556. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26557. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26558. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26559. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26560. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26561. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26562. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26563. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26564. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26565. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26566. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  26567. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26568. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26569. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26570. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26571. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26572. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26573. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26574. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26575. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26576. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26577. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26578. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26579. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26580. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26581. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26582. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26583. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26584. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26585. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26586. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26587. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26588. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26589. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26590. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26591. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  26592. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26593. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26594. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26595. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26596. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26597. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26598. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26599. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26600. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26601. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26602. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26603. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26604. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26605. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26606. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26607. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26608. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26609. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26610. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26611. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26612. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26613. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26614. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26615. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26616. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  26617. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  26618. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  26619. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26620. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26621. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26622. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26623. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26624. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26625. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26626. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26627. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26628. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26629. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26630. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26631. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26632. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26633. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26634. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26635. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26636. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26637. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26638. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26639. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26640. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26641. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26642. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26643. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  26644. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26645. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26646. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26647. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26648. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26649. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26650. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26651. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26652. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26653. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26654. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26655. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26656. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26657. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26658. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26659. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26660. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26661. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26662. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26663. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26664. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26665. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26666. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26667. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26668. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  26669. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26670. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26671. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26672. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26673. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26674. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26675. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26676. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26677. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26678. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26679. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26680. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26681. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26682. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26683. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26684. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26685. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26686. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26687. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26688. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26689. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26690. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26691. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26692. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26693. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  26694. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26695. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26696. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26697. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26698. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26699. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26700. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26701. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26702. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26703. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26704. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26705. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26706. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26707. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26708. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26709. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26710. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26711. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26712. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26713. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26714. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26715. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26716. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26717. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26718. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  26719. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26720. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26721. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26722. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26723. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26724. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26725. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26726. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26727. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26728. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26729. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26730. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26731. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26732. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26733. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26734. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26735. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26736. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26737. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26738. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26739. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26740. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26741. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26742. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26743. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  26744. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26745. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26746. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26747. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26748. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26749. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26750. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26751. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26752. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26753. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26754. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26755. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26756. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26757. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26758. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26759. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26760. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26761. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26762. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26763. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26764. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26765. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26766. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26767. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26768. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  26769. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26770. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26771. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26772. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26773. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26774. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26775. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26776. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26777. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26778. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26779. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26780. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26781. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26782. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26783. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26784. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26785. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26786. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26787. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26788. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26789. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26790. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26791. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26792. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26793. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  26794. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26795. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26796. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26797. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26798. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26799. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26800. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26801. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26802. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26803. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26804. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26805. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26806. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26807. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26808. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26809. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26810. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26811. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26812. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26813. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26814. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26815. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26816. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26817. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26818. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  26819. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  26820. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  26821. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  26822. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26823. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26824. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26825. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26826. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26827. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26828. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26829. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26830. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26831. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26832. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26833. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26834. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26835. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26836. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26837. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26838. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26839. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26840. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26841. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26842. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26843. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26844. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26845. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26846. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  26847. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26848. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26849. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26850. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26851. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26852. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26853. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26854. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26855. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26856. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26857. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26858. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26859. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26860. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26861. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26862. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26863. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26864. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26865. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26866. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26867. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26868. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26869. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26870. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26871. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  26872. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26873. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26874. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26875. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26876. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26877. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26878. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26879. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26880. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26881. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26882. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26883. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26884. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26885. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26886. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26887. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26888. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26889. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26890. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26891. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26892. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26893. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26894. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26895. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26896. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  26897. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26898. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26899. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26900. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26901. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26902. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26903. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26904. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26905. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26906. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26907. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26908. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26909. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26910. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26911. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26912. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26913. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26914. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26915. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26916. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26917. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26918. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26919. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26920. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26921. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  26922. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  26923. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  26924. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  26925. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  26926. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26927. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26928. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26929. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26930. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26931. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26932. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26933. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26934. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26935. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26936. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26937. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26938. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26939. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26940. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26941. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26942. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26943. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26944. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26945. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26946. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  26947. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26948. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26949. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26950. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26951. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26952. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26953. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26954. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26955. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26956. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26957. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26958. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26959. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26960. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26961. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26962. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26963. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26964. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26965. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26966. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26967. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  26968. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26969. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26970. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26971. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26972. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26973. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26974. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26975. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26976. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26977. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26978. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26979. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26980. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26981. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26982. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26983. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26984. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26985. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26986. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26987. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26988. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  26989. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26990. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26991. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26992. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26993. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26994. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26995. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26996. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26997. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26998. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26999. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27000. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27001. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27002. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27003. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27004. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27005. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27006. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27007. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27008. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27009. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  27010. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27011. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27012. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27013. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27014. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27015. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27016. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27017. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27018. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27019. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27020. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27021. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27022. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  27023. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27024. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27025. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27026. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27027. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27028. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27029. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27030. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27031. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27032. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27033. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27034. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27035. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  27036. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27037. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27038. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27039. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27040. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  27041. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27042. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27043. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27044. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  27045. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27046. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27047. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27048. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27049. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27050. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27051. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27052. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27053. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27054. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27055. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27056. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  27057. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27058. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27059. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27060. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27061. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27062. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27063. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27064. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27065. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  27066. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27067. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27068. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  27069. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  27070. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  27071. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  27072. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  27073. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  27074. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27075. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27076. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27077. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27078. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27079. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27080. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27081. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  27082. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27083. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27084. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27085. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27086. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  27087. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27088. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27089. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27090. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  27091. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27092. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27093. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27094. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  27095. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27096. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27097. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27098. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  27099. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27100. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27101. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27102. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27103. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27104. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27105. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27106. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27107. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27108. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  27109. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  27110. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27111. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27112. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27113. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27114. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27115. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27116. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27117. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27118. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27119. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  27120. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27121. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27122. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27123. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27124. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27125. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27126. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27127. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27128. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27129. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27130. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27131. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  27132. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27133. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27134. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27135. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27136. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27137. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27138. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27139. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27140. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27141. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27142. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27143. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27144. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  27145. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27146. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27147. {"STUB_RX", NULL, "STUB_RX Mixer"},
  27148. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27149. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27150. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  27151. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27152. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27153. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  27154. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27155. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27156. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27157. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27158. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27159. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  27160. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27161. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27162. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27163. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27164. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27165. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  27166. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27167. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27168. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27169. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  27170. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27171. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27172. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  27173. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  27174. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27175. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  27176. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  27177. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  27178. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  27179. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27180. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27181. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27182. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27183. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27184. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27185. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27186. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27187. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27188. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27189. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27190. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27191. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27192. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  27193. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27194. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  27195. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27196. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  27197. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  27198. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  27199. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27200. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  27201. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27202. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27203. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  27204. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27205. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27206. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27207. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27208. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27209. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27210. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27211. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27212. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27213. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27214. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27215. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  27216. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27217. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27218. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27219. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27220. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27221. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27222. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27223. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27224. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27225. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27226. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  27227. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27228. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27229. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27230. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27231. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27232. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27233. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27234. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27235. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  27236. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27237. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27238. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27239. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27240. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27241. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27242. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27243. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27244. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27245. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27246. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  27247. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27248. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27249. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27250. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27251. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27252. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27253. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27254. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27255. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  27256. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27257. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27258. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27259. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27260. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27261. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27262. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27263. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  27264. /* Backend Enablement */
  27265. {"BE_OUT", NULL, "PRI_I2S_RX"},
  27266. {"BE_OUT", NULL, "SEC_I2S_RX"},
  27267. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  27268. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  27269. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  27270. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27271. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  27272. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  27273. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  27274. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  27275. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  27276. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  27277. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  27278. {"BE_OUT", NULL, "HDMI"},
  27279. {"BE_OUT", NULL, "DISPLAY_PORT"},
  27280. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  27281. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  27282. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  27283. {"BE_OUT", NULL, "MI2S_RX"},
  27284. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  27285. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  27286. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  27287. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  27288. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  27289. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  27290. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  27291. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  27292. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  27293. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  27294. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  27295. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  27296. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  27297. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  27298. {"BE_OUT", NULL, "INT_FM_RX"},
  27299. {"BE_OUT", NULL, "PCM_RX"},
  27300. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27301. {"BE_OUT", NULL, "AUX_PCM_RX"},
  27302. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  27303. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  27304. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  27305. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  27306. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  27307. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  27308. {"BE_OUT", NULL, "INT_FM_RX"},
  27309. {"BE_OUT", NULL, "PCM_RX"},
  27310. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27311. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  27312. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  27313. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  27314. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  27315. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  27316. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  27317. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  27318. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  27319. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  27320. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  27321. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  27322. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  27323. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  27324. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  27325. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  27326. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  27327. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  27328. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  27329. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  27330. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  27331. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  27332. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  27333. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  27334. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  27335. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  27336. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  27337. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  27338. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  27339. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  27340. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  27341. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  27342. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  27343. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  27344. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  27345. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  27346. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  27347. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  27348. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  27349. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  27350. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  27351. {"PRI_I2S_TX", NULL, "BE_IN"},
  27352. {"MI2S_TX", NULL, "BE_IN"},
  27353. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  27354. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  27355. {"PRI_MI2S_TX", NULL, "BE_IN"},
  27356. {"TERT_MI2S_TX", NULL, "BE_IN"},
  27357. {"INT0_MI2S_TX", NULL, "BE_IN"},
  27358. {"INT2_MI2S_TX", NULL, "BE_IN"},
  27359. {"INT3_MI2S_TX", NULL, "BE_IN"},
  27360. {"INT4_MI2S_TX", NULL, "BE_IN"},
  27361. {"INT5_MI2S_TX", NULL, "BE_IN"},
  27362. {"SEC_MI2S_TX", NULL, "BE_IN"},
  27363. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  27364. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  27365. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  27366. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  27367. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  27368. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  27369. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  27370. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  27371. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  27372. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  27373. {"USB_AUDIO_TX", NULL, "BE_IN" },
  27374. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  27375. {"INT_FM_TX", NULL, "BE_IN"},
  27376. {"PCM_TX", NULL, "BE_IN"},
  27377. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27378. {"BE_OUT", NULL, "STUB_RX"},
  27379. {"STUB_TX", NULL, "BE_IN"},
  27380. {"STUB_1_TX", NULL, "BE_IN"},
  27381. {"BE_OUT", NULL, "AUX_PCM_RX"},
  27382. {"AUX_PCM_TX", NULL, "BE_IN"},
  27383. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  27384. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  27385. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  27386. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  27387. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  27388. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  27389. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  27390. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  27391. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  27392. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  27393. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  27394. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  27395. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  27396. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  27397. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  27398. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  27399. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  27400. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  27401. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  27402. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  27403. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  27404. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  27405. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  27406. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  27407. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  27408. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  27409. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  27410. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  27411. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  27412. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  27413. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  27414. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  27415. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  27416. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  27417. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  27418. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  27419. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  27420. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  27421. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  27422. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  27423. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  27424. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  27425. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  27426. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  27427. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  27428. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  27429. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  27430. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  27431. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  27432. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  27433. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  27434. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  27435. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  27436. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  27437. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  27438. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  27439. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  27440. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  27441. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  27442. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  27443. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  27444. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  27445. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  27446. };
  27447. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  27448. struct snd_pcm_hw_params *params)
  27449. {
  27450. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27451. unsigned int be_id = rtd->dai_link->id;
  27452. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27453. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27454. return -EINVAL;
  27455. }
  27456. mutex_lock(&routing_lock);
  27457. msm_bedais[be_id].sample_rate = params_rate(params);
  27458. msm_bedais[be_id].channel = params_channels(params);
  27459. msm_bedais[be_id].format = params_format(params);
  27460. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  27461. __func__, msm_bedais[be_id].sample_rate,
  27462. msm_bedais[be_id].format, be_id);
  27463. mutex_unlock(&routing_lock);
  27464. return 0;
  27465. }
  27466. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  27467. {
  27468. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27469. unsigned int be_id = rtd->dai_link->id;
  27470. int i, session_type, path_type, topology;
  27471. struct msm_pcm_routing_bdai_data *bedai;
  27472. struct msm_pcm_routing_fdai_data *fdai;
  27473. pr_debug("%s: substream->pcm->id:%s\n",
  27474. __func__, substream->pcm->id);
  27475. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27476. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27477. return -EINVAL;
  27478. }
  27479. bedai = &msm_bedais[be_id];
  27480. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  27481. 0 : 1);
  27482. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  27483. path_type = ADM_PATH_PLAYBACK;
  27484. else
  27485. path_type = ADM_PATH_LIVE_REC;
  27486. mutex_lock(&routing_lock);
  27487. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27488. if (!is_mm_lsm_fe_id(i))
  27489. continue;
  27490. fdai = &fe_dai_map[i][session_type];
  27491. if (fdai->strm_id != INVALID_SESSION) {
  27492. int idx;
  27493. int port_id;
  27494. unsigned long copp =
  27495. session_copp_map[i][session_type][be_id];
  27496. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  27497. if (test_bit(idx, &copp))
  27498. break;
  27499. if (idx >= MAX_COPPS_PER_PORT) {
  27500. pr_debug("%s: copp idx is invalid, exiting\n",
  27501. __func__);
  27502. continue;
  27503. }
  27504. fdai->be_srate = bedai->sample_rate;
  27505. port_id = get_port_id(bedai->port_id);
  27506. topology = adm_get_topology_for_port_copp_idx(port_id,
  27507. idx);
  27508. msm_routing_unload_topology(topology);
  27509. adm_close(port_id, fdai->perf_mode, idx);
  27510. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  27511. __func__, copp, i, session_type, be_id,
  27512. topology);
  27513. clear_bit(idx,
  27514. &session_copp_map[i][session_type][be_id]);
  27515. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  27516. (fdai->passthr_mode == LEGACY_PCM))
  27517. msm_pcm_routing_deinit_pp(port_id,
  27518. topology);
  27519. }
  27520. }
  27521. bedai->active = 0;
  27522. bedai->sample_rate = 0;
  27523. bedai->channel = 0;
  27524. mutex_unlock(&routing_lock);
  27525. return 0;
  27526. }
  27527. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  27528. {
  27529. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27530. unsigned int be_id = rtd->dai_link->id;
  27531. int i, path_type, topology;
  27532. int session_type = INVALID_SESSION;
  27533. struct msm_pcm_routing_bdai_data *bedai;
  27534. u32 channels, sample_rate;
  27535. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  27536. struct msm_pcm_routing_fdai_data *fdai;
  27537. u32 session_id;
  27538. struct media_format_info voc_be_media_format;
  27539. bool is_lsm;
  27540. pr_debug("%s: substream->pcm->id:%s\n",
  27541. __func__, substream->pcm->id);
  27542. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27543. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27544. return -EINVAL;
  27545. }
  27546. bedai = &msm_bedais[be_id];
  27547. mutex_lock(&routing_lock);
  27548. if (bedai->active == 1)
  27549. goto done; /* Ignore prepare if back-end already active */
  27550. /* AFE port is not active at this point. However, still
  27551. * go ahead setting active flag under the notion that
  27552. * QDSP6 is able to handle ADM starting before AFE port
  27553. * is started.
  27554. */
  27555. bedai->active = 1;
  27556. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27557. if (!(is_mm_lsm_fe_id(i) &&
  27558. route_check_fe_id_adm_support(i)))
  27559. continue;
  27560. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  27561. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27562. fdai = &fe_dai_map[i][session_type];
  27563. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  27564. if (fdai->passthr_mode != LEGACY_PCM)
  27565. path_type = ADM_PATH_COMPRESSED_RX;
  27566. else
  27567. path_type = ADM_PATH_PLAYBACK;
  27568. } else {
  27569. if ((fdai->passthr_mode != LEGACY_PCM) &&
  27570. (fdai->passthr_mode != LISTEN))
  27571. path_type = ADM_PATH_COMPRESSED_TX;
  27572. else
  27573. path_type = ADM_PATH_LIVE_REC;
  27574. }
  27575. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  27576. (i <= MSM_FRONTEND_DAI_LSM8);
  27577. if (fdai->strm_id != INVALID_SESSION) {
  27578. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  27579. int port_id = get_port_id(bedai->port_id);
  27580. if (session_type == SESSION_TYPE_TX &&
  27581. fdai->be_srate &&
  27582. (fdai->be_srate != bedai->sample_rate)) {
  27583. pr_debug("%s: flush strm %d diff BE rates\n",
  27584. __func__,
  27585. fdai->strm_id);
  27586. if (fdai->event_info.event_func)
  27587. fdai->event_info.event_func(
  27588. MSM_PCM_RT_EVT_BUF_RECFG,
  27589. fdai->event_info.priv_data);
  27590. fdai->be_srate = 0; /* might not need it */
  27591. }
  27592. bits_per_sample = msm_routing_get_bit_width(
  27593. bedai->format);
  27594. app_type =
  27595. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  27596. if (app_type && is_lsm) {
  27597. app_type_idx =
  27598. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  27599. sample_rate =
  27600. fe_dai_app_type_cfg[i][session_type][be_id]
  27601. .sample_rate;
  27602. bits_per_sample =
  27603. lsm_app_type_cfg[app_type_idx].bit_width;
  27604. } else if (app_type) {
  27605. app_type_idx =
  27606. msm_pcm_routing_get_app_type_idx(app_type);
  27607. sample_rate =
  27608. fe_dai_app_type_cfg[i][session_type]
  27609. [be_id].sample_rate;
  27610. bits_per_sample =
  27611. app_type_cfg[app_type_idx].bit_width;
  27612. } else
  27613. sample_rate = bedai->sample_rate;
  27614. /*
  27615. * check if ADM needs to be configured with different
  27616. * channel mapping than backend
  27617. */
  27618. if (!bedai->adm_override_ch)
  27619. channels = bedai->channel;
  27620. else
  27621. channels = bedai->adm_override_ch;
  27622. acdb_dev_id =
  27623. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  27624. topology = msm_routing_get_adm_topology(i, session_type,
  27625. be_id);
  27626. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  27627. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  27628. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  27629. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  27630. be_bit_width = msm_routing_get_bit_width(
  27631. bedai->format);
  27632. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  27633. || bedai->sample_rate == 352800) &&
  27634. be_bit_width == 32)
  27635. bits_per_sample = msm_routing_get_bit_width(
  27636. SNDRV_PCM_FORMAT_S32_LE);
  27637. copp_idx = adm_open(port_id, path_type,
  27638. sample_rate, channels, topology,
  27639. fdai->perf_mode, bits_per_sample,
  27640. app_type, acdb_dev_id,
  27641. session_type);
  27642. if ((copp_idx < 0) ||
  27643. (copp_idx >= MAX_COPPS_PER_PORT)) {
  27644. pr_err("%s: adm open failed\n", __func__);
  27645. mutex_unlock(&routing_lock);
  27646. return -EINVAL;
  27647. }
  27648. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  27649. __func__, i, session_type, be_id);
  27650. set_bit(copp_idx,
  27651. &session_copp_map[i][session_type][be_id]);
  27652. if (msm_is_resample_needed(
  27653. sample_rate,
  27654. bedai->sample_rate))
  27655. adm_copp_mfc_cfg(port_id, copp_idx,
  27656. bedai->sample_rate);
  27657. msm_pcm_routing_build_matrix(i, session_type, path_type,
  27658. fdai->perf_mode, fdai->passthr_mode);
  27659. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  27660. (fdai->passthr_mode == LEGACY_PCM))
  27661. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  27662. topology, channels);
  27663. }
  27664. }
  27665. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27666. session_id = msm_pcm_routing_get_voc_sessionid(i);
  27667. if (session_id) {
  27668. pr_debug("%s voice session_id: 0x%x\n", __func__,
  27669. session_id);
  27670. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  27671. voc_path_type = RX_PATH;
  27672. else
  27673. voc_path_type = TX_PATH;
  27674. voc_set_route_flag(session_id, voc_path_type, 1);
  27675. memset(&voc_be_media_format, 0,
  27676. sizeof(struct media_format_info));
  27677. voc_be_media_format.port_id = bedai->port_id;
  27678. voc_be_media_format.num_channels = bedai->channel;
  27679. voc_be_media_format.sample_rate = bedai->sample_rate;
  27680. voc_be_media_format.bits_per_sample = bedai->format;
  27681. /* Defaulting this to 1 for voice call usecases */
  27682. voc_be_media_format.channel_mapping[0] = 1;
  27683. voc_set_device_config(session_id, voc_path_type,
  27684. &voc_be_media_format);
  27685. if (voc_get_route_flag(session_id, RX_PATH) &&
  27686. voc_get_route_flag(session_id, TX_PATH))
  27687. voc_enable_device(session_id);
  27688. }
  27689. }
  27690. /* Check if backend is an external ec ref port and set as needed */
  27691. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  27692. memset(&voc_be_media_format, 0,
  27693. sizeof(struct media_format_info));
  27694. /* Get format info for ec ref port from msm_bedais[] */
  27695. voc_be_media_format.port_id = bedai->port_id;
  27696. voc_be_media_format.num_channels = bedai->channel;
  27697. voc_be_media_format.bits_per_sample = bedai->format;
  27698. voc_be_media_format.sample_rate = bedai->sample_rate;
  27699. /* Defaulting this to 1 for voice call usecases */
  27700. voc_be_media_format.channel_mapping[0] = 1;
  27701. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  27702. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  27703. __func__, voc_be_media_format.port_id,
  27704. voc_be_media_format.num_channels,
  27705. voc_be_media_format.bits_per_sample,
  27706. voc_be_media_format.sample_rate);
  27707. }
  27708. done:
  27709. mutex_unlock(&routing_lock);
  27710. return 0;
  27711. }
  27712. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  27713. int fe_id)
  27714. {
  27715. int index, topo_id, be_idx;
  27716. unsigned long pp_config = 0;
  27717. bool mute_on;
  27718. int latency, session_type;
  27719. bool compr_passthr_mode = true;
  27720. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  27721. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  27722. pr_err("%s: Device pp params on invalid port %d\n",
  27723. __func__, port_id);
  27724. return -EINVAL;
  27725. }
  27726. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  27727. if (port_id == msm_bedais[be_idx].port_id)
  27728. break;
  27729. }
  27730. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  27731. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  27732. return -EINVAL;
  27733. }
  27734. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  27735. if (msm_bedais_pp_params[index].port_id == port_id)
  27736. break;
  27737. }
  27738. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  27739. pr_err("%s: Invalid backend pp params index %d\n",
  27740. __func__, index);
  27741. return -EINVAL;
  27742. }
  27743. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  27744. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  27745. pr_err("%s: Invalid passthrough topology 0x%x\n",
  27746. __func__, topo_id);
  27747. return -EINVAL;
  27748. }
  27749. session_type =
  27750. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  27751. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27752. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  27753. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  27754. compr_passthr_mode = false;
  27755. pp_config = msm_bedais_pp_params[index].pp_params_config;
  27756. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  27757. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  27758. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  27759. mute_on = msm_bedais_pp_params[index].mute_on;
  27760. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27761. adm_send_compressed_device_mute(port_id,
  27762. copp_idx,
  27763. mute_on);
  27764. }
  27765. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  27766. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  27767. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  27768. &pp_config);
  27769. latency = msm_bedais_pp_params[index].latency;
  27770. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27771. adm_send_compressed_device_latency(port_id,
  27772. copp_idx,
  27773. latency);
  27774. }
  27775. return 0;
  27776. }
  27777. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  27778. {
  27779. uint32_t topology = NULL_COPP_TOPOLOGY;
  27780. void *cal_info = NULL;
  27781. uint32_t size = 0;
  27782. /* Retrieve cal_info size from cal data*/
  27783. if (data_size < sizeof(struct audio_cal_type_basic) +
  27784. sizeof(struct audio_cal_info_adm_top)) {
  27785. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  27786. goto done;
  27787. }
  27788. size = data_size - sizeof(struct audio_cal_type_basic);
  27789. cal_info = kzalloc(size, GFP_KERNEL);
  27790. if (!cal_info)
  27791. goto done;
  27792. memcpy(cal_info,
  27793. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  27794. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  27795. kfree(cal_info);
  27796. cal_info = NULL;
  27797. done:
  27798. pr_debug("%s: Using topology %d\n", __func__, topology);
  27799. return topology;
  27800. }
  27801. static void msm_routing_load_topology(size_t data_size, void *data)
  27802. {
  27803. uint32_t topology_id;
  27804. int ret = -EINVAL;
  27805. topology_id = msm_routing_get_topology(data_size, data);
  27806. if (topology_id != NULL_COPP_TOPOLOGY)
  27807. ret = q6core_load_unload_topo_modules(topology_id,
  27808. CORE_LOAD_TOPOLOGY);
  27809. if (ret < 0)
  27810. pr_debug("%s %d load topology failed\n",
  27811. __func__, topology_id);
  27812. }
  27813. static void msm_routing_unload_topology(uint32_t topology_id)
  27814. {
  27815. int ret = -EINVAL;
  27816. if (topology_id != NULL_COPP_TOPOLOGY)
  27817. ret = q6core_load_unload_topo_modules(topology_id,
  27818. CORE_UNLOAD_TOPOLOGY);
  27819. if (ret < 0)
  27820. pr_debug("%s %d unload topology failed\n",
  27821. __func__, topology_id);
  27822. }
  27823. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  27824. struct snd_ctl_elem_value *ucontrol)
  27825. {
  27826. int pp_id = ucontrol->value.integer.value[0];
  27827. int port_id = 0;
  27828. int index, be_idx, i, topo_id, idx;
  27829. bool mute;
  27830. int latency, session_type;
  27831. bool compr_passthr_mode = true;
  27832. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  27833. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  27834. port_id = msm_bedais[be_idx].port_id;
  27835. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  27836. break;
  27837. }
  27838. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  27839. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  27840. return -EINVAL;
  27841. }
  27842. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  27843. if (msm_bedais_pp_params[index].port_id == port_id)
  27844. break;
  27845. }
  27846. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  27847. pr_err("%s: Invalid pp params backend index %d\n",
  27848. __func__, index);
  27849. return -EINVAL;
  27850. }
  27851. session_type =
  27852. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  27853. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27854. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  27855. MSM_FRONTEND_DAI_MM_SIZE) {
  27856. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  27857. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  27858. compr_passthr_mode = false;
  27859. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  27860. unsigned long copp =
  27861. session_copp_map[i]
  27862. [SESSION_TYPE_RX][be_idx];
  27863. if (!test_bit(idx, &copp))
  27864. continue;
  27865. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  27866. idx);
  27867. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  27868. continue;
  27869. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  27870. __func__, port_id, copp, msm_bedais[be_idx].active,
  27871. fe_dai_map[i][session_type].passthr_mode);
  27872. switch (pp_id) {
  27873. case ADM_PP_PARAM_MUTE_ID:
  27874. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  27875. mute = ucontrol->value.integer.value[1] ? true : false;
  27876. msm_bedais_pp_params[index].mute_on = mute;
  27877. set_bit(ADM_PP_PARAM_MUTE_BIT,
  27878. &msm_bedais_pp_params[index].pp_params_config);
  27879. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27880. adm_send_compressed_device_mute(port_id,
  27881. idx, mute);
  27882. break;
  27883. case ADM_PP_PARAM_LATENCY_ID:
  27884. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  27885. msm_bedais_pp_params[index].latency =
  27886. ucontrol->value.integer.value[1];
  27887. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  27888. &msm_bedais_pp_params[index].pp_params_config);
  27889. latency = msm_bedais_pp_params[index].latency =
  27890. ucontrol->value.integer.value[1];
  27891. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27892. adm_send_compressed_device_latency(port_id,
  27893. idx, latency);
  27894. break;
  27895. default:
  27896. pr_info("%s, device pp param %d not supported\n",
  27897. __func__, pp_id);
  27898. break;
  27899. }
  27900. }
  27901. }
  27902. return 0;
  27903. }
  27904. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  27905. struct snd_ctl_elem_value *ucontrol)
  27906. {
  27907. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  27908. return 0;
  27909. }
  27910. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  27911. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  27912. 0, 3, msm_routing_get_device_pp_params_mixer,
  27913. msm_routing_put_device_pp_params_mixer),
  27914. };
  27915. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  27916. struct snd_ctl_elem_value *ucontrol)
  27917. {
  27918. ucontrol->value.integer.value[0] =
  27919. core_get_license_status(ASM_MEDIA_FMT_APTX);
  27920. pr_debug("%s: status %ld\n", __func__,
  27921. ucontrol->value.integer.value[0]);
  27922. return 0;
  27923. }
  27924. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  27925. struct snd_ctl_elem_value *ucontrol)
  27926. {
  27927. int32_t status = 0;
  27928. status = core_set_license(ucontrol->value.integer.value[0],
  27929. APTX_CLASSIC_DEC_LICENSE_ID);
  27930. pr_debug("%s: status %d\n", __func__, status);
  27931. return status;
  27932. }
  27933. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  27934. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  27935. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  27936. msm_aptx_dec_license_control_put),
  27937. };
  27938. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  27939. struct snd_ctl_elem_value *ucontrol)
  27940. {
  27941. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  27942. uint32_t be_idx = ucontrol->value.integer.value[0];
  27943. int i;
  27944. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  27945. pr_err("%s: Invalid Backend index %d\n", __func__, be_idx);
  27946. return -EINVAL;
  27947. }
  27948. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  27949. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  27950. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  27951. pr_err("%s: Invalid channel map %d\n",
  27952. __func__, channel_map[i]);
  27953. return -EINVAL;
  27954. }
  27955. }
  27956. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  27957. return 0;
  27958. }
  27959. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  27960. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  27961. MSM_BACKEND_DAI_MAX, 0,
  27962. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  27963. msm_routing_put_port_chmap_mixer),
  27964. };
  27965. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  27966. struct snd_ctl_elem_info *uinfo)
  27967. {
  27968. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  27969. uinfo->count = sizeof(be_dai_name_table);
  27970. return 0;
  27971. }
  27972. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  27973. unsigned int __user *bytes,
  27974. unsigned int size)
  27975. {
  27976. int i;
  27977. int ret = 0;
  27978. if (size < sizeof(be_dai_name_table)) {
  27979. pr_err("%s: invalid size %d requested, returning\n",
  27980. __func__, size);
  27981. ret = -EINVAL;
  27982. goto done;
  27983. }
  27984. /*
  27985. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  27986. * needed when adding new backends
  27987. */
  27988. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  27989. be_dai_name_table[i].be_id = i;
  27990. strlcpy(be_dai_name_table[i].be_name,
  27991. msm_bedais[i].name,
  27992. LPASS_BE_NAME_MAX_LENGTH);
  27993. }
  27994. ret = copy_to_user(bytes, &be_dai_name_table,
  27995. sizeof(be_dai_name_table));
  27996. if (ret) {
  27997. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  27998. ret = -EFAULT;
  27999. }
  28000. done:
  28001. return ret;
  28002. }
  28003. static const struct snd_kcontrol_new
  28004. msm_routing_be_dai_name_table_mixer_controls[] = {
  28005. {
  28006. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  28007. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  28008. .info = msm_routing_be_dai_name_table_info,
  28009. .name = "Backend DAI Name Table",
  28010. .tlv.c = snd_soc_bytes_tlv_callback,
  28011. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  28012. .max = sizeof(be_dai_name_table),
  28013. .get = msm_routing_be_dai_name_table_tlv_get,
  28014. }
  28015. },
  28016. };
  28017. static int msm_routing_stereo_channel_reverse_control_get(
  28018. struct snd_kcontrol *kcontrol,
  28019. struct snd_ctl_elem_value *ucontrol)
  28020. {
  28021. ucontrol->value.integer.value[0] = swap_ch;
  28022. pr_debug("%s: Swap channel value: %ld\n", __func__,
  28023. ucontrol->value.integer.value[0]);
  28024. return 0;
  28025. }
  28026. static int msm_routing_stereo_channel_reverse_control_put(
  28027. struct snd_kcontrol *kcontrol,
  28028. struct snd_ctl_elem_value *ucontrol)
  28029. {
  28030. int i, idx, be_index, port_id;
  28031. int ret = 0;
  28032. unsigned long copp;
  28033. pr_debug("%s Swap channel value:%ld\n", __func__,
  28034. ucontrol->value.integer.value[0]);
  28035. swap_ch = ucontrol->value.integer.value[0];
  28036. mutex_lock(&routing_lock);
  28037. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  28038. port_id = msm_bedais[be_index].port_id;
  28039. if (!msm_bedais[be_index].active)
  28040. continue;
  28041. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  28042. MSM_FRONTEND_DAI_MM_SIZE) {
  28043. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  28044. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  28045. if (!test_bit(idx, &copp))
  28046. continue;
  28047. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  28048. __func__, port_id, idx);
  28049. ret = adm_swap_speaker_channels(
  28050. port_id, idx,
  28051. msm_bedais[be_index].sample_rate,
  28052. swap_ch);
  28053. if (ret) {
  28054. pr_err("%s:Swap_channel failed, err=%d\n",
  28055. __func__, ret);
  28056. goto done;
  28057. }
  28058. }
  28059. }
  28060. }
  28061. done:
  28062. mutex_unlock(&routing_lock);
  28063. return ret;
  28064. }
  28065. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  28066. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  28067. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  28068. msm_routing_stereo_channel_reverse_control_put),
  28069. };
  28070. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  28071. struct snd_ctl_elem_info *uinfo)
  28072. {
  28073. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  28074. uinfo->count = 1;
  28075. return 0;
  28076. }
  28077. static int msm_routing_instance_id_support_put(
  28078. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  28079. {
  28080. bool supported = ucontrol->value.integer.value[0] ? true : false;
  28081. q6common_update_instance_id_support(supported);
  28082. return 0;
  28083. }
  28084. static int msm_routing_instance_id_support_get(
  28085. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  28086. {
  28087. bool supported = false;
  28088. supported = q6common_is_instance_id_supported();
  28089. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  28090. return 0;
  28091. }
  28092. static const struct snd_kcontrol_new
  28093. msm_routing_feature_support_mixer_controls[] = {
  28094. {
  28095. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  28096. SNDRV_CTL_ELEM_ACCESS_WRITE,
  28097. .info = msm_routing_instance_id_support_info,
  28098. .name = "Instance ID Support",
  28099. .put = msm_routing_instance_id_support_put,
  28100. .get = msm_routing_instance_id_support_get,
  28101. },
  28102. };
  28103. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  28104. .hw_params = msm_pcm_routing_hw_params,
  28105. .close = msm_pcm_routing_close,
  28106. .prepare = msm_pcm_routing_prepare,
  28107. };
  28108. /* Not used but frame seems to require it */
  28109. static int msm_routing_probe(struct snd_soc_component *component)
  28110. {
  28111. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  28112. ARRAY_SIZE(msm_qdsp6_widgets));
  28113. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  28114. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  28115. snd_soc_dapm_add_routes(&component->dapm, intercon,
  28116. ARRAY_SIZE(intercon));
  28117. snd_soc_dapm_new_widgets(component->dapm.card);
  28118. snd_soc_add_component_controls(component, lsm_controls,
  28119. ARRAY_SIZE(lsm_controls));
  28120. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  28121. ARRAY_SIZE(aanc_slim_0_rx_mux));
  28122. snd_soc_add_component_controls(component, aanc_noise_level,
  28123. ARRAY_SIZE(aanc_noise_level));
  28124. snd_soc_add_component_controls(component, msm_voc_session_controls,
  28125. ARRAY_SIZE(msm_voc_session_controls));
  28126. snd_soc_add_component_controls(component, app_type_cfg_controls,
  28127. ARRAY_SIZE(app_type_cfg_controls));
  28128. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  28129. ARRAY_SIZE(lsm_app_type_cfg_controls));
  28130. snd_soc_add_component_controls(component, module_cfg_controls,
  28131. ARRAY_SIZE(module_cfg_controls));
  28132. snd_soc_add_component_controls(component,
  28133. stereo_to_custom_stereo_controls,
  28134. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  28135. snd_soc_add_component_controls(component, ec_ref_param_controls,
  28136. ARRAY_SIZE(ec_ref_param_controls));
  28137. snd_soc_add_component_controls(component, channel_mixer_controls,
  28138. ARRAY_SIZE(channel_mixer_controls));
  28139. msm_qti_pp_add_controls(component);
  28140. msm_dts_srs_tm_add_controls(component);
  28141. msm_dolby_dap_add_controls(component);
  28142. snd_soc_add_component_controls(component,
  28143. use_ds1_or_ds2_controls,
  28144. ARRAY_SIZE(use_ds1_or_ds2_controls));
  28145. snd_soc_add_component_controls(component,
  28146. hifi_filter_controls,
  28147. ARRAY_SIZE(hifi_filter_controls));
  28148. snd_soc_add_component_controls(component,
  28149. device_pp_params_mixer_controls,
  28150. ARRAY_SIZE(device_pp_params_mixer_controls));
  28151. snd_soc_add_component_controls(component,
  28152. msm_routing_be_dai_name_table_mixer_controls,
  28153. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  28154. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  28155. ARRAY_SIZE(msm_source_tracking_controls));
  28156. snd_soc_add_component_controls(component, adm_channel_config_controls,
  28157. ARRAY_SIZE(adm_channel_config_controls));
  28158. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  28159. ARRAY_SIZE(aptx_dec_license_controls));
  28160. snd_soc_add_component_controls(component,
  28161. stereo_channel_reverse_control,
  28162. ARRAY_SIZE(stereo_channel_reverse_control));
  28163. snd_soc_add_component_controls(
  28164. component, msm_routing_feature_support_mixer_controls,
  28165. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  28166. snd_soc_add_component_controls(component,
  28167. port_multi_channel_map_mixer_controls,
  28168. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  28169. return 0;
  28170. }
  28171. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  28172. {
  28173. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  28174. }
  28175. void msm_routing_pcm_free(struct snd_pcm *pcm)
  28176. {
  28177. msm_pcm_routing_hwdep_free(pcm);
  28178. }
  28179. static struct snd_soc_component_driver msm_soc_routing_component = {
  28180. .name = DRV_NAME,
  28181. .ops = &msm_routing_pcm_ops,
  28182. .probe = msm_routing_probe,
  28183. .pcm_new = msm_routing_pcm_new,
  28184. .pcm_free = msm_routing_pcm_free,
  28185. };
  28186. static int msm_routing_pcm_probe(struct platform_device *pdev)
  28187. {
  28188. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  28189. return snd_soc_register_component(&pdev->dev,
  28190. &msm_soc_routing_component,
  28191. NULL, 0);
  28192. }
  28193. static int msm_routing_pcm_remove(struct platform_device *pdev)
  28194. {
  28195. snd_soc_unregister_component(&pdev->dev);
  28196. return 0;
  28197. }
  28198. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  28199. {.compatible = "qcom,msm-pcm-routing"},
  28200. {}
  28201. };
  28202. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  28203. static struct platform_driver msm_routing_pcm_driver = {
  28204. .driver = {
  28205. .name = "msm-pcm-routing",
  28206. .owner = THIS_MODULE,
  28207. .of_match_table = msm_pcm_routing_dt_match,
  28208. .suppress_bind_attrs = true,
  28209. },
  28210. .probe = msm_routing_pcm_probe,
  28211. .remove = msm_routing_pcm_remove,
  28212. };
  28213. int msm_routing_check_backend_enabled(int fedai_id)
  28214. {
  28215. int i;
  28216. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  28217. /* bad ID assigned in machine driver */
  28218. pr_err("%s: bad MM ID\n", __func__);
  28219. return 0;
  28220. }
  28221. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  28222. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  28223. return msm_bedais[i].active;
  28224. }
  28225. return 0;
  28226. }
  28227. static int get_cal_type_index(int32_t cal_type)
  28228. {
  28229. int ret = -EINVAL;
  28230. switch (cal_type) {
  28231. case ADM_TOPOLOGY_CAL_TYPE:
  28232. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  28233. break;
  28234. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  28235. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  28236. break;
  28237. default:
  28238. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  28239. }
  28240. return ret;
  28241. }
  28242. static int msm_routing_set_cal(int32_t cal_type,
  28243. size_t data_size, void *data)
  28244. {
  28245. int ret = 0;
  28246. int cal_index;
  28247. pr_debug("%s\n", __func__);
  28248. cal_index = get_cal_type_index(cal_type);
  28249. if (cal_index < 0) {
  28250. pr_err("%s: Could not get cal index %d\n",
  28251. __func__, cal_index);
  28252. ret = -EINVAL;
  28253. goto done;
  28254. }
  28255. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  28256. if (ret < 0) {
  28257. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  28258. __func__, ret, cal_type);
  28259. ret = -EINVAL;
  28260. goto done;
  28261. }
  28262. /* Pre-load if it is ADM topology */
  28263. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  28264. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  28265. msm_routing_load_topology(data_size, data);
  28266. }
  28267. done:
  28268. return ret;
  28269. }
  28270. static void msm_routing_delete_cal_data(void)
  28271. {
  28272. pr_debug("%s\n", __func__);
  28273. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  28274. }
  28275. static int msm_routing_init_cal_data(void)
  28276. {
  28277. int ret = 0;
  28278. struct cal_type_info cal_type_info[] = {
  28279. {{ADM_TOPOLOGY_CAL_TYPE,
  28280. {NULL, NULL, NULL,
  28281. msm_routing_set_cal, NULL, NULL} },
  28282. {NULL, NULL, cal_utils_match_buf_num} },
  28283. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  28284. {NULL, NULL, NULL,
  28285. msm_routing_set_cal, NULL, NULL} },
  28286. {NULL, NULL, cal_utils_match_buf_num} },
  28287. };
  28288. pr_debug("%s\n", __func__);
  28289. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  28290. &cal_type_info[0]);
  28291. if (ret < 0) {
  28292. pr_err("%s: could not create cal type!\n",
  28293. __func__);
  28294. ret = -EINVAL;
  28295. goto err;
  28296. }
  28297. return ret;
  28298. err:
  28299. msm_routing_delete_cal_data();
  28300. return ret;
  28301. }
  28302. int __init msm_soc_routing_platform_init(void)
  28303. {
  28304. mutex_init(&routing_lock);
  28305. if (msm_routing_init_cal_data())
  28306. pr_err("%s: could not init cal data!\n", __func__);
  28307. afe_set_routing_callback(
  28308. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  28309. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  28310. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  28311. return platform_driver_register(&msm_routing_pcm_driver);
  28312. }
  28313. void msm_soc_routing_platform_exit(void)
  28314. {
  28315. msm_routing_delete_cal_data();
  28316. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  28317. mutex_destroy(&routing_lock);
  28318. platform_driver_unregister(&msm_routing_pcm_driver);
  28319. }
  28320. MODULE_DESCRIPTION("MSM routing platform driver");
  28321. MODULE_LICENSE("GPL v2");