msm-pcm-routing-v2.c 1.2 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/err.h>
  6. #include <linux/module.h>
  7. #include <linux/moduleparam.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/bitops.h>
  10. #include <linux/mutex.h>
  11. #include <linux/of_device.h>
  12. #include <linux/slab.h>
  13. #include <sound/core.h>
  14. #include <sound/soc.h>
  15. #include <sound/soc-dapm.h>
  16. #include <sound/pcm.h>
  17. #include <sound/initval.h>
  18. #include <sound/control.h>
  19. #include <sound/tlv.h>
  20. #include <sound/asound.h>
  21. #include <sound/pcm_params.h>
  22. #include <sound/hwdep.h>
  23. #include <audio/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[MAX_LSM_SESSIONS];
  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 ffecns_freeze_event;
  75. static bool swap_ch;
  76. static bool hifi_filter_enabled;
  77. static int aanc_level;
  78. static int num_app_cfg_types;
  79. static int msm_ec_ref_port_id;
  80. static int afe_loopback_tx_port_index;
  81. static int afe_loopback_tx_port_id = -1;
  82. #define WEIGHT_0_DB 0x4000
  83. /* all the FEs which can support channel mixer */
  84. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  85. /* all the FES which can support channel mixer for bidirection */
  86. static struct msm_pcm_channel_mixer
  87. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  88. /* input BE for each FE */
  89. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  90. enum {
  91. MADNONE,
  92. MADAUDIO,
  93. MADBEACON,
  94. MADULTRASOUND,
  95. MADSWAUDIO,
  96. };
  97. #define ADM_LSM_PORT_INDEX 9
  98. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  99. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  100. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  101. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  102. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  103. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  104. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  105. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  106. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  107. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  108. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  109. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  110. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  111. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  112. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  113. #define TERT_TDM_TX_TEXT "TERT_TDM_TX_0"
  114. #define LSM_FUNCTION_TEXT "LSM Function"
  115. static const char * const lsm_port_text[] = {
  116. "None",
  117. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  118. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  119. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  120. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  121. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT,
  122. TERT_TDM_TX_TEXT
  123. };
  124. struct msm_pcm_route_bdai_pp_params {
  125. u16 port_id; /* AFE port ID */
  126. unsigned long pp_params_config;
  127. bool mute_on;
  128. int latency;
  129. };
  130. static struct msm_pcm_route_bdai_pp_params
  131. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  132. {HDMI_RX, 0, 0, 0},
  133. {DISPLAY_PORT_RX, 0, 0, 0},
  134. };
  135. /*
  136. * The be_dai_name_table is passed to HAL so that it can specify the
  137. * BE ID for the BE it wants to enable based on the name. Thus there
  138. * is a matching table and structure in HAL that need to be updated
  139. * if any changes to these are made.
  140. */
  141. struct msm_pcm_route_bdai_name {
  142. unsigned int be_id;
  143. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  144. };
  145. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  146. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  147. int fe_id);
  148. static void msm_routing_load_topology(size_t data_size, void *data);
  149. static void msm_routing_unload_topology(uint32_t topology_id);
  150. static int msm_routing_get_bit_width(unsigned int format)
  151. {
  152. int bit_width;
  153. switch (format) {
  154. case SNDRV_PCM_FORMAT_S32_LE:
  155. bit_width = 32;
  156. break;
  157. case SNDRV_PCM_FORMAT_S24_LE:
  158. case SNDRV_PCM_FORMAT_S24_3LE:
  159. bit_width = 24;
  160. break;
  161. case SNDRV_PCM_FORMAT_S16_LE:
  162. default:
  163. bit_width = 16;
  164. }
  165. return bit_width;
  166. }
  167. static bool msm_is_resample_needed(int input_sr, int output_sr)
  168. {
  169. bool rc = false;
  170. if (input_sr != output_sr)
  171. rc = true;
  172. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  173. (rc ? "oh yes" : "not really"),
  174. input_sr, output_sr);
  175. return rc;
  176. }
  177. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  178. int channels)
  179. {
  180. int rc = 0;
  181. switch (topology) {
  182. case SRS_TRUMEDIA_TOPOLOGY_ID:
  183. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  184. msm_dts_srs_tm_init(port_id, copp_idx);
  185. break;
  186. case DS2_ADM_COPP_TOPOLOGY_ID:
  187. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  188. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  189. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  190. is_custom_stereo_on);
  191. if (rc < 0)
  192. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  193. __func__, topology, port_id,
  194. is_custom_stereo_on, rc);
  195. break;
  196. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  197. if (is_ds2_on) {
  198. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  199. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  200. is_custom_stereo_on);
  201. if (rc < 0)
  202. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  203. __func__, topology, port_id, rc);
  204. } else {
  205. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  206. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  207. is_custom_stereo_on);
  208. if (rc < 0)
  209. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  210. __func__, topology, port_id, rc);
  211. }
  212. break;
  213. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  214. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  215. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  216. if (rc < 0)
  217. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  218. __func__, topology, port_id, copp_idx, rc);
  219. break;
  220. default:
  221. /* custom topology specific feature param handlers */
  222. break;
  223. }
  224. }
  225. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  226. {
  227. switch (topology) {
  228. case SRS_TRUMEDIA_TOPOLOGY_ID:
  229. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  230. msm_dts_srs_tm_deinit(port_id);
  231. break;
  232. case DS2_ADM_COPP_TOPOLOGY_ID:
  233. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  234. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  235. msm_ds2_dap_deinit(port_id);
  236. break;
  237. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  238. if (is_ds2_on) {
  239. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  240. msm_ds2_dap_deinit(port_id);
  241. } else {
  242. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  243. msm_dolby_dap_deinit(port_id);
  244. }
  245. break;
  246. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  247. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  248. msm_qti_pp_asphere_deinit(port_id);
  249. break;
  250. default:
  251. /* custom topology specific feature deinit handlers */
  252. break;
  253. }
  254. }
  255. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  256. int path_type, int perf_mode)
  257. {
  258. int itr = 0, rc = 0;
  259. if ((path_type == ADM_PATH_PLAYBACK) &&
  260. (perf_mode == LEGACY_PCM_MODE) &&
  261. is_custom_stereo_on) {
  262. for (itr = 0; itr < payload.num_copps; itr++) {
  263. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  264. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  265. continue;
  266. }
  267. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  268. payload.port_id[itr],
  269. payload.copp_idx[itr],
  270. payload.session_id,
  271. Q14_GAIN_ZERO_POINT_FIVE,
  272. Q14_GAIN_ZERO_POINT_FIVE,
  273. Q14_GAIN_ZERO_POINT_FIVE,
  274. Q14_GAIN_ZERO_POINT_FIVE);
  275. if (rc < 0)
  276. pr_err("%s: err setting custom stereo\n",
  277. __func__);
  278. }
  279. }
  280. }
  281. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  282. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  283. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  284. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  285. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  286. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  287. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  288. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  289. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  290. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  291. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  292. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  293. LPASS_BE_AFE_PCM_RX},
  294. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  295. LPASS_BE_AFE_PCM_TX},
  296. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  297. LPASS_BE_AUXPCM_RX},
  298. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  299. LPASS_BE_AUXPCM_TX},
  300. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  301. LPASS_BE_VOICE_PLAYBACK_TX},
  302. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  303. LPASS_BE_VOICE2_PLAYBACK_TX},
  304. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  305. LPASS_BE_INCALL_RECORD_RX},
  306. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  307. LPASS_BE_INCALL_RECORD_TX},
  308. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  309. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  310. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  311. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  312. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  313. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  314. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  315. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  316. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  317. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  318. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  319. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  320. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  321. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  322. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  323. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  324. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  325. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  326. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  327. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  328. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  329. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  330. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  331. LPASS_BE_QUAT_MI2S_RX},
  332. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  333. LPASS_BE_QUAT_MI2S_TX},
  334. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  335. LPASS_BE_SEC_MI2S_RX},
  336. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  337. LPASS_BE_SEC_MI2S_TX},
  338. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  339. LPASS_BE_PRI_MI2S_RX},
  340. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  341. LPASS_BE_PRI_MI2S_TX},
  342. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  343. LPASS_BE_TERT_MI2S_RX},
  344. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  345. LPASS_BE_TERT_MI2S_TX},
  346. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  347. LPASS_BE_AUDIO_I2S_RX},
  348. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  349. LPASS_BE_SEC_AUXPCM_RX},
  350. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  351. LPASS_BE_SEC_AUXPCM_TX},
  352. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  353. LPASS_BE_PRI_SPDIF_RX},
  354. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  355. LPASS_BE_SEC_MI2S_RX_SD1},
  356. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  357. LPASS_BE_QUIN_MI2S_RX},
  358. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  359. LPASS_BE_QUIN_MI2S_TX},
  360. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  361. LPASS_BE_SENARY_MI2S_TX},
  362. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  363. LPASS_BE_PRI_TDM_RX_0},
  364. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  365. LPASS_BE_PRI_TDM_TX_0},
  366. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  367. LPASS_BE_PRI_TDM_RX_1},
  368. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  369. LPASS_BE_PRI_TDM_TX_1},
  370. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  371. LPASS_BE_PRI_TDM_RX_2},
  372. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  373. LPASS_BE_PRI_TDM_TX_2},
  374. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  375. LPASS_BE_PRI_TDM_RX_3},
  376. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  377. LPASS_BE_PRI_TDM_TX_3},
  378. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  379. LPASS_BE_PRI_TDM_RX_4},
  380. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  381. LPASS_BE_PRI_TDM_TX_4},
  382. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  383. LPASS_BE_PRI_TDM_RX_5},
  384. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  385. LPASS_BE_PRI_TDM_TX_5},
  386. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  387. LPASS_BE_PRI_TDM_RX_6},
  388. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  389. LPASS_BE_PRI_TDM_TX_6},
  390. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  391. LPASS_BE_PRI_TDM_RX_7},
  392. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  393. LPASS_BE_PRI_TDM_TX_7},
  394. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  395. LPASS_BE_SEC_TDM_RX_0},
  396. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  397. LPASS_BE_SEC_TDM_TX_0},
  398. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  399. LPASS_BE_SEC_TDM_RX_1},
  400. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  401. LPASS_BE_SEC_TDM_TX_1},
  402. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  403. LPASS_BE_SEC_TDM_RX_2},
  404. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  405. LPASS_BE_SEC_TDM_TX_2},
  406. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  407. LPASS_BE_SEC_TDM_RX_3},
  408. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  409. LPASS_BE_SEC_TDM_TX_3},
  410. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  411. LPASS_BE_SEC_TDM_RX_4},
  412. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  413. LPASS_BE_SEC_TDM_TX_4},
  414. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  415. LPASS_BE_SEC_TDM_RX_5},
  416. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  417. LPASS_BE_SEC_TDM_TX_5},
  418. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  419. LPASS_BE_SEC_TDM_RX_6},
  420. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  421. LPASS_BE_SEC_TDM_TX_6},
  422. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  423. LPASS_BE_SEC_TDM_RX_7},
  424. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  425. LPASS_BE_SEC_TDM_TX_7},
  426. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  427. LPASS_BE_TERT_TDM_RX_0},
  428. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  429. LPASS_BE_TERT_TDM_TX_0},
  430. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  431. LPASS_BE_TERT_TDM_RX_1},
  432. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  433. LPASS_BE_TERT_TDM_TX_1},
  434. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  435. LPASS_BE_TERT_TDM_RX_2},
  436. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  437. LPASS_BE_TERT_TDM_TX_2},
  438. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  439. LPASS_BE_TERT_TDM_RX_3},
  440. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  441. LPASS_BE_TERT_TDM_TX_3},
  442. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  443. LPASS_BE_TERT_TDM_RX_4},
  444. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  445. LPASS_BE_TERT_TDM_TX_4},
  446. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  447. LPASS_BE_TERT_TDM_RX_5},
  448. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  449. LPASS_BE_TERT_TDM_TX_5},
  450. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  451. LPASS_BE_TERT_TDM_RX_6},
  452. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  453. LPASS_BE_TERT_TDM_TX_6},
  454. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  455. LPASS_BE_TERT_TDM_RX_7},
  456. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  457. LPASS_BE_TERT_TDM_TX_7},
  458. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  459. LPASS_BE_QUAT_TDM_RX_0},
  460. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  461. LPASS_BE_QUAT_TDM_TX_0},
  462. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  463. LPASS_BE_QUAT_TDM_RX_1},
  464. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  465. LPASS_BE_QUAT_TDM_TX_1},
  466. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  467. LPASS_BE_QUAT_TDM_RX_2},
  468. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  469. LPASS_BE_QUAT_TDM_TX_2},
  470. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  471. LPASS_BE_QUAT_TDM_RX_3},
  472. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  473. LPASS_BE_QUAT_TDM_TX_3},
  474. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  475. LPASS_BE_QUAT_TDM_RX_4},
  476. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  477. LPASS_BE_QUAT_TDM_TX_4},
  478. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  479. LPASS_BE_QUAT_TDM_RX_5},
  480. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  481. LPASS_BE_QUAT_TDM_TX_5},
  482. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  483. LPASS_BE_QUAT_TDM_RX_6},
  484. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  485. LPASS_BE_QUAT_TDM_TX_6},
  486. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  487. LPASS_BE_QUAT_TDM_RX_7},
  488. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  489. LPASS_BE_QUAT_TDM_TX_7},
  490. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  491. LPASS_BE_QUIN_TDM_RX_0},
  492. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  493. LPASS_BE_QUIN_TDM_TX_0},
  494. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  495. LPASS_BE_QUIN_TDM_RX_1},
  496. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  497. LPASS_BE_QUIN_TDM_TX_1},
  498. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  499. LPASS_BE_QUIN_TDM_RX_2},
  500. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  501. LPASS_BE_QUIN_TDM_TX_2},
  502. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  503. LPASS_BE_QUIN_TDM_RX_3},
  504. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  505. LPASS_BE_QUIN_TDM_TX_3},
  506. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  507. LPASS_BE_QUIN_TDM_RX_4},
  508. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  509. LPASS_BE_QUIN_TDM_TX_4},
  510. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  511. LPASS_BE_QUIN_TDM_RX_5},
  512. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  513. LPASS_BE_QUIN_TDM_TX_5},
  514. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  515. LPASS_BE_QUIN_TDM_RX_6},
  516. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  517. LPASS_BE_QUIN_TDM_TX_6},
  518. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  519. LPASS_BE_QUIN_TDM_RX_7},
  520. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  521. LPASS_BE_QUIN_TDM_TX_7},
  522. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  523. LPASS_BE_SEN_TDM_RX_0},
  524. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  525. LPASS_BE_SEN_TDM_TX_0},
  526. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  527. LPASS_BE_SEN_TDM_RX_1},
  528. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  529. LPASS_BE_SEN_TDM_TX_1},
  530. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  531. LPASS_BE_SEN_TDM_RX_2},
  532. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  533. LPASS_BE_SEN_TDM_TX_2},
  534. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  535. LPASS_BE_SEN_TDM_RX_3},
  536. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  537. LPASS_BE_SEN_TDM_TX_3},
  538. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  539. LPASS_BE_SEN_TDM_RX_4},
  540. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  541. LPASS_BE_SEN_TDM_TX_4},
  542. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  543. LPASS_BE_SEN_TDM_RX_5},
  544. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  545. LPASS_BE_SEN_TDM_TX_5},
  546. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  547. LPASS_BE_SEN_TDM_RX_6},
  548. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  549. LPASS_BE_SEN_TDM_TX_6},
  550. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  551. LPASS_BE_SEN_TDM_RX_7},
  552. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  553. LPASS_BE_SEN_TDM_TX_7},
  554. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  555. LPASS_BE_INT_BT_A2DP_RX},
  556. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  557. LPASS_BE_USB_AUDIO_RX},
  558. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  559. LPASS_BE_USB_AUDIO_TX},
  560. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  561. LPASS_BE_DISPLAY_PORT},
  562. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  563. LPASS_BE_DISPLAY_PORT1},
  564. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  565. LPASS_BE_TERT_AUXPCM_RX},
  566. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  567. LPASS_BE_TERT_AUXPCM_TX},
  568. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  569. LPASS_BE_QUAT_AUXPCM_RX},
  570. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  571. LPASS_BE_QUAT_AUXPCM_TX},
  572. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  573. LPASS_BE_QUIN_AUXPCM_RX},
  574. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  575. LPASS_BE_QUIN_AUXPCM_TX},
  576. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  577. LPASS_BE_INT0_MI2S_RX},
  578. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  579. LPASS_BE_INT0_MI2S_TX},
  580. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  581. LPASS_BE_INT1_MI2S_RX},
  582. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  583. LPASS_BE_INT1_MI2S_TX},
  584. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  585. LPASS_BE_INT2_MI2S_RX},
  586. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  587. LPASS_BE_INT2_MI2S_TX},
  588. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  589. LPASS_BE_INT3_MI2S_RX},
  590. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  591. LPASS_BE_INT3_MI2S_TX},
  592. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  593. LPASS_BE_INT4_MI2S_RX},
  594. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  595. LPASS_BE_INT4_MI2S_TX},
  596. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  597. LPASS_BE_INT5_MI2S_RX},
  598. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  599. LPASS_BE_INT5_MI2S_TX},
  600. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  601. LPASS_BE_INT6_MI2S_RX},
  602. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  603. LPASS_BE_INT6_MI2S_TX},
  604. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  605. LPASS_BE_SEN_AUXPCM_RX},
  606. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  607. LPASS_BE_SEN_AUXPCM_TX},
  608. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  609. LPASS_BE_SENARY_MI2S_RX},
  610. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  611. LPASS_BE_WSA_CDC_DMA_RX_0},
  612. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  613. LPASS_BE_WSA_CDC_DMA_TX_0},
  614. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  615. LPASS_BE_WSA_CDC_DMA_RX_1},
  616. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  617. LPASS_BE_WSA_CDC_DMA_TX_1},
  618. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  619. LPASS_BE_WSA_CDC_DMA_TX_2},
  620. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  621. LPASS_BE_VA_CDC_DMA_TX_0},
  622. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  623. LPASS_BE_VA_CDC_DMA_TX_1},
  624. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  625. LPASS_BE_VA_CDC_DMA_TX_2},
  626. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  627. LPASS_BE_RX_CDC_DMA_RX_0},
  628. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  629. LPASS_BE_TX_CDC_DMA_TX_0},
  630. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  631. LPASS_BE_RX_CDC_DMA_RX_1},
  632. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  633. LPASS_BE_TX_CDC_DMA_TX_1},
  634. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  635. LPASS_BE_RX_CDC_DMA_RX_2},
  636. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  637. LPASS_BE_TX_CDC_DMA_TX_2},
  638. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  639. LPASS_BE_RX_CDC_DMA_RX_3},
  640. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  641. LPASS_BE_TX_CDC_DMA_TX_3},
  642. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  643. LPASS_BE_RX_CDC_DMA_RX_4},
  644. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  645. LPASS_BE_TX_CDC_DMA_TX_4},
  646. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  647. LPASS_BE_RX_CDC_DMA_RX_5},
  648. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  649. LPASS_BE_TX_CDC_DMA_TX_5},
  650. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  651. LPASS_BE_RX_CDC_DMA_RX_6},
  652. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  653. LPASS_BE_RX_CDC_DMA_RX_7},
  654. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  655. LPASS_BE_PRI_SPDIF_TX},
  656. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  657. LPASS_BE_SEC_SPDIF_RX},
  658. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  659. LPASS_BE_SEC_SPDIF_TX},
  660. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  661. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  662. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  663. { AFE_PORT_ID_PRIMARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  664. LPASS_BE_PRI_META_MI2S_RX},
  665. { AFE_PORT_ID_SECONDARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  666. LPASS_BE_SEC_META_MI2S_RX},
  667. { RT_PROXY_PORT_002_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PROXY_RX},
  668. { RT_PROXY_PORT_002_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PROXY_TX},
  669. };
  670. /* Track ASM playback & capture sessions of DAI
  671. * Track LSM listen sessions
  672. */
  673. static struct msm_pcm_routing_fdai_data
  674. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  675. /* MULTIMEDIA1 */
  676. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  677. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  678. /* MULTIMEDIA2 */
  679. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  680. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  681. /* MULTIMEDIA3 */
  682. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  683. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  684. /* MULTIMEDIA4 */
  685. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  686. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  687. /* MULTIMEDIA5 */
  688. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  689. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  690. /* MULTIMEDIA6 */
  691. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  692. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  693. /* MULTIMEDIA7*/
  694. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  695. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  696. /* MULTIMEDIA8 */
  697. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  698. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  699. /* MULTIMEDIA9 */
  700. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  701. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  702. /* MULTIMEDIA10 */
  703. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  704. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  705. /* MULTIMEDIA11 */
  706. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  707. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  708. /* MULTIMEDIA12 */
  709. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  710. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  711. /* MULTIMEDIA13 */
  712. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  713. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  714. /* MULTIMEDIA14 */
  715. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  716. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  717. /* MULTIMEDIA15 */
  718. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  719. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  720. /* MULTIMEDIA16 */
  721. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  722. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  723. /* MULTIMEDIA17 */
  724. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  725. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  726. /* MULTIMEDIA18 */
  727. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  728. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  729. /* MULTIMEDIA19 */
  730. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  731. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  732. /* MULTIMEDIA20 */
  733. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  734. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  735. /* MULTIMEDIA21 */
  736. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  737. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  738. /* MULTIMEDIA22 */
  739. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  740. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  741. /* MULTIMEDIA23 */
  742. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  743. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  744. /* MULTIMEDIA24 */
  745. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  746. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  747. /* MULTIMEDIA25 */
  748. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  749. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  750. /* MULTIMEDIA26 */
  751. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  752. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  753. /* MULTIMEDIA27 */
  754. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  755. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  756. /* MULTIMEDIA28 */
  757. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  758. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  759. /* MULTIMEDIA29 */
  760. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  761. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  762. /* MULTIMEDIA30 */
  763. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  764. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  765. /* VOIP */
  766. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  767. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  768. /* AFE_RX */
  769. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  770. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  771. /* AFE_TX */
  772. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  773. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  774. /* VOICE_STUB */
  775. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  776. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  777. /* DTMF_RX */
  778. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  779. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  780. /* QCHAT */
  781. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  782. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  783. /* VOLTE_STUB */
  784. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  785. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  786. /* LSM1 */
  787. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  788. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  789. /* LSM2 */
  790. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  791. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  792. /* LSM3 */
  793. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  794. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  795. /* LSM4 */
  796. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  797. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  798. /* LSM5 */
  799. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  800. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  801. /* LSM6 */
  802. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  803. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  804. /* LSM7 */
  805. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  806. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  807. /* LSM8 */
  808. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  809. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  810. /* VOICE2_STUB */
  811. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  812. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  813. /* VOICEMMODE1 */
  814. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  815. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  816. /* VOICEMMODE2 */
  817. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  818. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  819. };
  820. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  821. [MSM_BACKEND_DAI_MAX];
  822. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  823. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  824. static struct msm_pcm_stream_app_type_cfg
  825. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  826. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  827. /* The caller of this should acquire routing lock */
  828. void msm_pcm_routing_get_bedai_info(int be_idx,
  829. struct msm_pcm_routing_bdai_data *be_dai)
  830. {
  831. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  832. memcpy(be_dai, &msm_bedais[be_idx],
  833. sizeof(struct msm_pcm_routing_bdai_data));
  834. }
  835. /* The caller of this should acquire routing lock */
  836. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  837. struct msm_pcm_routing_fdai_data *fe_dai)
  838. {
  839. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  840. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  841. sizeof(struct msm_pcm_routing_fdai_data));
  842. }
  843. void msm_pcm_routing_acquire_lock(void)
  844. {
  845. mutex_lock(&routing_lock);
  846. }
  847. void msm_pcm_routing_release_lock(void)
  848. {
  849. mutex_unlock(&routing_lock);
  850. }
  851. static int msm_pcm_routing_get_app_type_idx(int app_type)
  852. {
  853. int idx;
  854. pr_debug("%s: app_type: %d\n", __func__, app_type);
  855. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  856. if (app_type_cfg[idx].app_type == app_type)
  857. return idx;
  858. }
  859. pr_info("%s: App type not available, fallback to default\n", __func__);
  860. return 0;
  861. }
  862. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  863. {
  864. int idx;
  865. pr_debug("%s: app_type: %d\n", __func__, app_type);
  866. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  867. if (lsm_app_type_cfg[idx].app_type == app_type)
  868. return idx;
  869. }
  870. pr_debug("%s: App type not available, fallback to default\n", __func__);
  871. return 0;
  872. }
  873. static int get_port_id(int port_id)
  874. {
  875. int ret = port_id;
  876. if (port_id == AFE_LOOPBACK_TX) {
  877. /*
  878. * Return afe_loopback_tx_port_id if set. Else return
  879. * msm_ec_ref_port_id to maintain backward compatibility.
  880. */
  881. if (afe_loopback_tx_port_id != -1)
  882. ret = afe_loopback_tx_port_id;
  883. else
  884. ret = msm_ec_ref_port_id;
  885. }
  886. return ret;
  887. }
  888. static bool is_mm_lsm_fe_id(int fe_id)
  889. {
  890. bool rc = true;
  891. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  892. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  893. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  894. rc = false;
  895. }
  896. return rc;
  897. }
  898. /*
  899. * msm_pcm_routing_send_chmix_cfg:
  900. * send the channel mixer command to mix the input channels
  901. * into output channels.
  902. *
  903. * @fe_id: front end id
  904. * @ip_channel_cnt: input channel count
  905. * @op_channel_cnt: output channel count
  906. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  907. * @session_type: indicates session is of type TX or RX
  908. * @stream_type: indicates either Audio or Listen stream type
  909. */
  910. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  911. int op_channel_cnt, int *ch_wght_coeff,
  912. int session_type, int stream_type)
  913. {
  914. int rc = 0, idx = 0;
  915. int be_index = 0, port_id;
  916. unsigned int session_id = 0;
  917. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  918. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  919. stream_type);
  920. if (!is_mm_lsm_fe_id(fe_id)) {
  921. /* bad ID assigned in machine driver */
  922. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  923. return -EINVAL;
  924. }
  925. if (ch_wght_coeff == NULL) {
  926. pr_err("%s: Null channel weightage coefficients passed\n",
  927. __func__);
  928. return -EINVAL;
  929. }
  930. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  931. port_id = msm_bedais[be_index].port_id;
  932. if (!msm_bedais[be_index].active ||
  933. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  934. continue;
  935. session_id = fe_dai_map[fe_id][session_type].strm_id;
  936. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  937. unsigned long copp =
  938. session_copp_map[fe_id][session_type][be_index];
  939. if (!test_bit(idx, &copp))
  940. continue;
  941. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  942. session_id, ip_channel_cnt,
  943. op_channel_cnt, ch_wght_coeff,
  944. session_type, stream_type);
  945. if (rc < 0)
  946. pr_err("%s: err setting channel mix config\n",
  947. __func__);
  948. }
  949. }
  950. return 0;
  951. }
  952. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  953. /**
  954. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  955. * setting before use case start.
  956. *
  957. * @fe_id: frontend idx
  958. * @type: stream direction type
  959. * @params: parameters of channel mixer setting
  960. *
  961. * Return 0 for success
  962. */
  963. int msm_pcm_routing_set_channel_mixer_cfg(
  964. int fe_id, int type,
  965. struct msm_pcm_channel_mixer *params)
  966. {
  967. int i, j = 0;
  968. channel_mixer_v2[fe_id][type].enable = params->enable;
  969. channel_mixer_v2[fe_id][type].rule = params->rule;
  970. channel_mixer_v2[fe_id][type].input_channel =
  971. params->input_channel;
  972. channel_mixer_v2[fe_id][type].output_channel =
  973. params->output_channel;
  974. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  975. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  976. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  977. params->in_ch_map[i];
  978. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  979. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  980. params->out_ch_map[i];
  981. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  982. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  983. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  984. params->channel_weight[i][j];
  985. channel_mixer_v2[fe_id][type].override_in_ch_map =
  986. params->override_in_ch_map;
  987. channel_mixer_v2[fe_id][type].override_out_ch_map =
  988. params->override_out_ch_map;
  989. return 0;
  990. }
  991. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  992. int msm_pcm_routing_reg_stream_app_type_cfg(
  993. int fedai_id, int session_type, int be_id,
  994. struct msm_pcm_stream_app_type_cfg *cfg_data)
  995. {
  996. int ret = 0;
  997. if (cfg_data == NULL) {
  998. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  999. ret = -EINVAL;
  1000. goto done;
  1001. }
  1002. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1003. __func__, fedai_id, session_type, be_id,
  1004. cfg_data->app_type, cfg_data->acdb_dev_id,
  1005. cfg_data->sample_rate);
  1006. if (!is_mm_lsm_fe_id(fedai_id)) {
  1007. pr_err("%s: Invalid machine driver ID %d\n",
  1008. __func__, fedai_id);
  1009. ret = -EINVAL;
  1010. goto done;
  1011. }
  1012. if (session_type != SESSION_TYPE_RX &&
  1013. session_type != SESSION_TYPE_TX) {
  1014. pr_err("%s: Invalid session type %d\n",
  1015. __func__, session_type);
  1016. ret = -EINVAL;
  1017. goto done;
  1018. }
  1019. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1020. pr_err("%s: Received out of bounds be_id %d\n",
  1021. __func__, be_id);
  1022. ret = -EINVAL;
  1023. goto done;
  1024. }
  1025. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1026. /*
  1027. * Store the BE ID of the configuration information set as the latest so
  1028. * the get mixer control knows what to return.
  1029. */
  1030. last_be_id_configured[fedai_id][session_type] = be_id;
  1031. done:
  1032. return ret;
  1033. }
  1034. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1035. /**
  1036. * msm_pcm_routing_get_stream_app_type_cfg
  1037. *
  1038. * Receives fedai_id, session_type, be_id, and populates app_type,
  1039. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1040. * -EINVAL and does not alter passed values.
  1041. *
  1042. * fedai_id - Passed value, front end ID for which app type config is wanted
  1043. * session_type - Passed value, session type for which app type config
  1044. * is wanted
  1045. * be_id - Returned value, back end device id the app type config data is for
  1046. * cfg_data - Returned value, configuration data used by app type config
  1047. */
  1048. int msm_pcm_routing_get_stream_app_type_cfg(
  1049. int fedai_id, int session_type, int *bedai_id,
  1050. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1051. {
  1052. int be_id;
  1053. int ret = 0;
  1054. if (bedai_id == NULL) {
  1055. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1056. ret = -EINVAL;
  1057. goto done;
  1058. } else if (cfg_data == NULL) {
  1059. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1060. ret = -EINVAL;
  1061. goto done;
  1062. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1063. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1064. ret = -EINVAL;
  1065. goto done;
  1066. } else if (session_type != SESSION_TYPE_RX &&
  1067. session_type != SESSION_TYPE_TX) {
  1068. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1069. ret = -EINVAL;
  1070. goto done;
  1071. }
  1072. be_id = last_be_id_configured[fedai_id][session_type];
  1073. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1074. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1075. ret = -EINVAL;
  1076. goto done;
  1077. }
  1078. *bedai_id = be_id;
  1079. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1080. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1081. __func__, fedai_id, session_type, *bedai_id,
  1082. cfg_data->app_type, cfg_data->acdb_dev_id,
  1083. cfg_data->sample_rate);
  1084. done:
  1085. return ret;
  1086. }
  1087. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1088. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1089. int cal_index)
  1090. {
  1091. struct list_head *ptr, *next;
  1092. struct cal_block_data *cal_block = NULL;
  1093. pr_debug("%s\n", __func__);
  1094. list_for_each_safe(ptr, next,
  1095. &cal_data[cal_index]->cal_blocks) {
  1096. cal_block = list_entry(ptr,
  1097. struct cal_block_data, list);
  1098. if (cal_utils_is_cal_stale(cal_block))
  1099. continue;
  1100. if (((struct audio_cal_info_adm_top *)cal_block
  1101. ->cal_info)->path == path) {
  1102. return cal_block;
  1103. }
  1104. }
  1105. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1106. return NULL;
  1107. }
  1108. static struct cal_block_data *msm_routing_find_topology(int path,
  1109. int app_type,
  1110. int acdb_id,
  1111. int cal_index,
  1112. bool exact)
  1113. {
  1114. struct list_head *ptr, *next;
  1115. struct cal_block_data *cal_block = NULL;
  1116. struct audio_cal_info_adm_top *cal_info;
  1117. pr_debug("%s\n", __func__);
  1118. list_for_each_safe(ptr, next,
  1119. &cal_data[cal_index]->cal_blocks) {
  1120. cal_block = list_entry(ptr,
  1121. struct cal_block_data, list);
  1122. if (cal_utils_is_cal_stale(cal_block))
  1123. continue;
  1124. cal_info = (struct audio_cal_info_adm_top *)
  1125. cal_block->cal_info;
  1126. if ((cal_info->path == path) &&
  1127. (cal_info->app_type == app_type) &&
  1128. (cal_info->acdb_id == acdb_id)) {
  1129. return cal_block;
  1130. }
  1131. }
  1132. pr_debug("%s: Can't find topology for path %d, app %d, "
  1133. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1134. exact ? "fail" : "defaulting to search by path");
  1135. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1136. cal_index);
  1137. }
  1138. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1139. int acdb_dev_id, int idx,
  1140. bool exact)
  1141. {
  1142. int topology = -EINVAL;
  1143. struct cal_block_data *cal_block = NULL;
  1144. mutex_lock(&cal_data[idx]->lock);
  1145. cal_block = msm_routing_find_topology(session_type, app_type,
  1146. acdb_dev_id, idx, exact);
  1147. if (cal_block != NULL) {
  1148. topology = ((struct audio_cal_info_adm_top *)
  1149. cal_block->cal_info)->topology;
  1150. }
  1151. mutex_unlock(&cal_data[idx]->lock);
  1152. return topology;
  1153. }
  1154. /*
  1155. * Retrieving cal_block will mark cal_block as stale.
  1156. * Hence it cannot be reused or resent unless the flag
  1157. * is reset.
  1158. */
  1159. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1160. int be_id)
  1161. {
  1162. int topology = NULL_COPP_TOPOLOGY;
  1163. int app_type = 0, acdb_dev_id = 0;
  1164. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1165. __func__, fedai_id, session_type, be_id);
  1166. if (cal_data == NULL)
  1167. goto done;
  1168. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1169. acdb_dev_id =
  1170. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1171. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1172. topology = msm_routing_find_topology_on_index(session_type,
  1173. app_type,
  1174. acdb_dev_id,
  1175. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1176. true /*exact*/);
  1177. if (topology < 0) {
  1178. pr_debug("%s: Check for compatible topology\n", __func__);
  1179. topology = msm_routing_find_topology_on_index(session_type,
  1180. app_type,
  1181. acdb_dev_id,
  1182. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1183. false /*exact*/);
  1184. if (topology < 0)
  1185. topology = NULL_COPP_TOPOLOGY;
  1186. }
  1187. done:
  1188. pr_debug("%s: Using topology %d\n", __func__, topology);
  1189. return topology;
  1190. }
  1191. static uint8_t is_be_dai_extproc(int be_dai)
  1192. {
  1193. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1194. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1195. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1196. return 1;
  1197. else
  1198. return 0;
  1199. }
  1200. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1201. int path_type, int perf_mode,
  1202. uint32_t passthr_mode)
  1203. {
  1204. int i, port_type, j, num_copps = 0;
  1205. struct route_payload payload;
  1206. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1207. path_type == ADM_PATH_COMPRESSED_RX) ?
  1208. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1209. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1210. if (!is_be_dai_extproc(i) &&
  1211. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1212. (msm_bedais[i].active) &&
  1213. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1214. int port_id = get_port_id(msm_bedais[i].port_id);
  1215. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1216. unsigned long copp =
  1217. session_copp_map[fedai_id][sess_type][i];
  1218. if (test_bit(j, &copp)) {
  1219. payload.port_id[num_copps] = port_id;
  1220. payload.copp_idx[num_copps] = j;
  1221. payload.app_type[num_copps] =
  1222. fe_dai_app_type_cfg
  1223. [fedai_id][sess_type][i]
  1224. .app_type;
  1225. payload.acdb_dev_id[num_copps] =
  1226. fe_dai_app_type_cfg
  1227. [fedai_id][sess_type][i]
  1228. .acdb_dev_id;
  1229. payload.sample_rate[num_copps] =
  1230. fe_dai_app_type_cfg
  1231. [fedai_id][sess_type][i]
  1232. .sample_rate;
  1233. num_copps++;
  1234. }
  1235. }
  1236. }
  1237. }
  1238. if (num_copps) {
  1239. payload.num_copps = num_copps;
  1240. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1241. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1242. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1243. }
  1244. }
  1245. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1246. int stream_type)
  1247. {
  1248. int i, session_type, path_type, port_type;
  1249. u32 mode = 0;
  1250. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1251. /* bad ID assigned in machine driver */
  1252. pr_err("%s: bad MM ID\n", __func__);
  1253. return;
  1254. }
  1255. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1256. session_type = SESSION_TYPE_RX;
  1257. path_type = ADM_PATH_PLAYBACK;
  1258. port_type = MSM_AFE_PORT_TYPE_RX;
  1259. } else {
  1260. session_type = SESSION_TYPE_TX;
  1261. path_type = ADM_PATH_LIVE_REC;
  1262. port_type = MSM_AFE_PORT_TYPE_TX;
  1263. }
  1264. mutex_lock(&routing_lock);
  1265. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1266. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1267. if (!is_be_dai_extproc(i) &&
  1268. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1269. (msm_bedais[i].active) &&
  1270. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1271. mode = afe_get_port_type(msm_bedais[i].port_id);
  1272. adm_connect_afe_port(mode, dspst_id,
  1273. msm_bedais[i].port_id);
  1274. break;
  1275. }
  1276. }
  1277. mutex_unlock(&routing_lock);
  1278. }
  1279. static bool route_check_fe_id_adm_support(int fe_id)
  1280. {
  1281. bool rc = true;
  1282. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1283. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1284. /* fe id is listen while port is set to afe */
  1285. if (lsm_port_index[fe_id - MSM_FRONTEND_DAI_LSM1] !=
  1286. ADM_LSM_PORT_INDEX) {
  1287. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1288. __func__, fe_id,
  1289. lsm_port_index[fe_id - MSM_FRONTEND_DAI_LSM1]);
  1290. rc = false;
  1291. }
  1292. }
  1293. return rc;
  1294. }
  1295. /*
  1296. * msm_pcm_routing_get_pp_ch_cnt:
  1297. * Read the processed channel count
  1298. *
  1299. * @fe_id: Front end ID
  1300. * @session_type: Inidicates RX or TX session type
  1301. */
  1302. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1303. {
  1304. struct msm_pcm_stream_app_type_cfg cfg_data;
  1305. int be_id = 0, app_type_idx = 0, app_type = 0;
  1306. int ret = -EINVAL;
  1307. memset(&cfg_data, 0, sizeof(cfg_data));
  1308. if (!is_mm_lsm_fe_id(fe_id)) {
  1309. pr_err("%s: bad MM ID\n", __func__);
  1310. return -EINVAL;
  1311. }
  1312. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1313. &be_id, &cfg_data);
  1314. if (ret) {
  1315. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1316. return ret;
  1317. }
  1318. app_type = cfg_data.app_type;
  1319. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1320. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1321. }
  1322. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1323. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1324. int dspst_id, int stream_type,
  1325. uint32_t passthr_mode)
  1326. {
  1327. int i, j, session_type, path_type, port_type, topology;
  1328. int num_copps = 0;
  1329. struct route_payload payload;
  1330. u32 channels, sample_rate;
  1331. u16 bit_width = 16, be_bit_width;
  1332. bool is_lsm;
  1333. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1334. __func__, fe_id, perf_mode, dspst_id,
  1335. stream_type, passthr_mode);
  1336. if (!is_mm_lsm_fe_id(fe_id)) {
  1337. /* bad ID assigned in machine driver */
  1338. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1339. return -EINVAL;
  1340. }
  1341. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1342. session_type = SESSION_TYPE_RX;
  1343. if (passthr_mode != LEGACY_PCM)
  1344. path_type = ADM_PATH_COMPRESSED_RX;
  1345. else
  1346. path_type = ADM_PATH_PLAYBACK;
  1347. port_type = MSM_AFE_PORT_TYPE_RX;
  1348. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1349. session_type = SESSION_TYPE_TX;
  1350. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1351. path_type = ADM_PATH_COMPRESSED_TX;
  1352. else
  1353. path_type = ADM_PATH_LIVE_REC;
  1354. port_type = MSM_AFE_PORT_TYPE_TX;
  1355. } else {
  1356. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1357. return -EINVAL;
  1358. }
  1359. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1360. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1361. mutex_lock(&routing_lock);
  1362. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1363. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1364. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1365. if (!route_check_fe_id_adm_support(fe_id)) {
  1366. /* ignore adm open if not supported for fe_id */
  1367. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1368. mutex_unlock(&routing_lock);
  1369. return 0;
  1370. }
  1371. payload.num_copps = 0; /* only RX needs to use payload */
  1372. /* re-enable EQ if active */
  1373. msm_qti_pp_send_eq_values(fe_id);
  1374. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1375. if (!is_be_dai_extproc(i) &&
  1376. (afe_get_port_type(msm_bedais[i].port_id) ==
  1377. port_type) &&
  1378. (msm_bedais[i].active) &&
  1379. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1380. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1381. int port_id = get_port_id(msm_bedais[i].port_id);
  1382. /*
  1383. * check if ADM needs to be configured with different
  1384. * channel mapping than backend
  1385. */
  1386. if (!msm_bedais[i].adm_override_ch)
  1387. channels = msm_bedais[i].channel;
  1388. else
  1389. channels = msm_bedais[i].adm_override_ch;
  1390. bit_width = msm_routing_get_bit_width(
  1391. msm_bedais[i].format);
  1392. app_type =
  1393. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1394. if (app_type && is_lsm) {
  1395. app_type_idx =
  1396. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1397. sample_rate =
  1398. fe_dai_app_type_cfg[fe_id][session_type][i]
  1399. .sample_rate;
  1400. bit_width =
  1401. lsm_app_type_cfg[app_type_idx].bit_width;
  1402. } else if (app_type) {
  1403. app_type_idx =
  1404. msm_pcm_routing_get_app_type_idx(
  1405. app_type);
  1406. sample_rate =
  1407. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1408. bit_width =
  1409. app_type_cfg[app_type_idx].bit_width;
  1410. } else {
  1411. sample_rate = msm_bedais[i].sample_rate;
  1412. }
  1413. acdb_dev_id =
  1414. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1415. topology = msm_routing_get_adm_topology(fe_id,
  1416. session_type,
  1417. i);
  1418. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1419. || (passthr_mode ==
  1420. COMPRESSED_PASSTHROUGH_GEN)
  1421. || (passthr_mode ==
  1422. COMPRESSED_PASSTHROUGH_IEC61937))
  1423. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1424. pr_debug("%s: Before adm open topology %d\n", __func__,
  1425. topology);
  1426. be_bit_width = msm_routing_get_bit_width(
  1427. msm_bedais[i].format);
  1428. if (hifi_filter_enabled && (msm_bedais[i].sample_rate
  1429. == 384000 || msm_bedais[i].sample_rate ==
  1430. 352800) && be_bit_width == 32)
  1431. bit_width = msm_routing_get_bit_width(
  1432. SNDRV_PCM_FORMAT_S32_LE);
  1433. copp_idx =
  1434. adm_open(port_id, path_type, sample_rate,
  1435. channels, topology, perf_mode,
  1436. bit_width, app_type, acdb_dev_id,
  1437. session_type);
  1438. if ((copp_idx < 0) ||
  1439. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1440. pr_err("%s:adm open failed coppid:%d\n",
  1441. __func__, copp_idx);
  1442. mutex_unlock(&routing_lock);
  1443. return -EINVAL;
  1444. }
  1445. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1446. __func__, fe_id, session_type, i);
  1447. set_bit(copp_idx,
  1448. &session_copp_map[fe_id][session_type][i]);
  1449. if (msm_is_resample_needed(
  1450. sample_rate,
  1451. msm_bedais[i].sample_rate))
  1452. adm_copp_mfc_cfg(port_id, copp_idx,
  1453. msm_bedais[i].sample_rate);
  1454. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1455. unsigned long copp =
  1456. session_copp_map[fe_id][session_type][i];
  1457. if (test_bit(j, &copp)) {
  1458. payload.port_id[num_copps] = port_id;
  1459. payload.copp_idx[num_copps] = j;
  1460. payload.app_type[num_copps] =
  1461. fe_dai_app_type_cfg
  1462. [fe_id][session_type][i]
  1463. .app_type;
  1464. payload.acdb_dev_id[num_copps] =
  1465. fe_dai_app_type_cfg
  1466. [fe_id][session_type][i]
  1467. .acdb_dev_id;
  1468. payload.sample_rate[num_copps] =
  1469. fe_dai_app_type_cfg
  1470. [fe_id][session_type][i]
  1471. .sample_rate;
  1472. num_copps++;
  1473. }
  1474. }
  1475. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1476. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1477. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1478. msm_routing_send_device_pp_params(port_id,
  1479. copp_idx, fe_id);
  1480. }
  1481. }
  1482. if (num_copps) {
  1483. payload.num_copps = num_copps;
  1484. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1485. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1486. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1487. }
  1488. mutex_unlock(&routing_lock);
  1489. return 0;
  1490. }
  1491. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1492. {
  1493. u32 session_id;
  1494. switch (val) {
  1495. case MSM_FRONTEND_DAI_QCHAT:
  1496. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1497. break;
  1498. case MSM_FRONTEND_DAI_VOIP:
  1499. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1500. break;
  1501. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1502. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1503. break;
  1504. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1505. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1506. break;
  1507. default:
  1508. session_id = 0;
  1509. }
  1510. pr_debug("%s session_id 0x%x", __func__, session_id);
  1511. return session_id;
  1512. }
  1513. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1514. int dspst_id, int stream_type)
  1515. {
  1516. int copp_idx = 0;
  1517. int sess_type = 0;
  1518. int j = 0, be_id = 0;
  1519. int ret = 0;
  1520. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1521. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1522. return 0;
  1523. }
  1524. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1525. sess_type = SESSION_TYPE_RX;
  1526. else
  1527. sess_type = SESSION_TYPE_TX;
  1528. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1529. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1530. __func__, fe_id, sess_type);
  1531. return 0;
  1532. }
  1533. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1534. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1535. channel_mixer_v2[fe_id][sess_type].input_channel;
  1536. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1537. __func__, sess_type, fe_id,
  1538. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1539. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1540. msm_bedais[be_id].active);
  1541. if ((msm_bedais[be_id].active) &&
  1542. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1543. unsigned long copp =
  1544. session_copp_map[fe_id][sess_type][be_id];
  1545. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1546. if (test_bit(j, &copp)) {
  1547. copp_idx = j;
  1548. break;
  1549. }
  1550. }
  1551. ret = adm_programable_channel_mixer(
  1552. msm_bedais[be_id].port_id,
  1553. copp_idx, dspst_id, sess_type,
  1554. &channel_mixer_v2[fe_id][sess_type], 0);
  1555. }
  1556. return ret;
  1557. }
  1558. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1559. int dspst_id, int stream_type)
  1560. {
  1561. int copp_idx = 0;
  1562. int sess_type = 0;
  1563. int i = 0, j = 0, be_id;
  1564. int ret = 0;
  1565. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1566. dspst_id, stream_type);
  1567. if (ret) {
  1568. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1569. fe_id);
  1570. return ret;
  1571. }
  1572. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1573. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1574. return 0;
  1575. }
  1576. if (!(channel_mixer[fe_id].enable)) {
  1577. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1578. __func__, fe_id);
  1579. return 0;
  1580. }
  1581. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1582. sess_type = SESSION_TYPE_RX;
  1583. else
  1584. sess_type = SESSION_TYPE_TX;
  1585. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1586. ++i) {
  1587. be_id = channel_input[fe_id][i] - 1;
  1588. channel_mixer[fe_id].input_channels[i] =
  1589. msm_bedais[be_id].channel;
  1590. if ((msm_bedais[be_id].active) &&
  1591. test_bit(fe_id,
  1592. &msm_bedais[be_id].fe_sessions[0])) {
  1593. unsigned long copp =
  1594. session_copp_map[fe_id][sess_type][be_id];
  1595. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1596. if (test_bit(j, &copp)) {
  1597. copp_idx = j;
  1598. break;
  1599. }
  1600. }
  1601. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1602. __func__,
  1603. fe_id, be_id, msm_bedais[be_id].channel,
  1604. copp_idx);
  1605. ret = adm_programable_channel_mixer(
  1606. get_port_id(msm_bedais[be_id].port_id),
  1607. copp_idx, dspst_id, sess_type,
  1608. channel_mixer + fe_id, i);
  1609. }
  1610. }
  1611. return ret;
  1612. }
  1613. /**
  1614. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1615. * setting during runtime.
  1616. *
  1617. * @be_id: backend index
  1618. * @session_id: session index
  1619. * @session_type: session type
  1620. * @params: parameters for channel mixer
  1621. *
  1622. * Retuen: 0 for success, else error
  1623. */
  1624. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1625. int session_type,
  1626. struct msm_pcm_channel_mixer *params)
  1627. {
  1628. int rc = 0;
  1629. int port_id, copp_idx = 0;
  1630. be_id--;
  1631. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1632. pr_err("%s: invalid backend id %d\n", __func__,
  1633. be_id);
  1634. return -EINVAL;
  1635. }
  1636. port_id = msm_bedais[be_id].port_id;
  1637. copp_idx = adm_get_default_copp_idx(port_id);
  1638. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1639. __func__, port_id, copp_idx, session_id);
  1640. if ((params->input_channel < 0) ||
  1641. (params->input_channel > ADM_MAX_CHANNELS)) {
  1642. pr_err("%s: invalid input channel %d\n", __func__,
  1643. params->input_channel);
  1644. return -EINVAL;
  1645. }
  1646. if ((params->output_channel < 0) ||
  1647. (params->output_channel > ADM_MAX_CHANNELS)) {
  1648. pr_err("%s: invalid output channel %d\n", __func__,
  1649. params->output_channel);
  1650. return -EINVAL;
  1651. }
  1652. params->input_channels[0] = params->input_channel;
  1653. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1654. __func__, session_type,
  1655. params->override_in_ch_map,
  1656. params->override_out_ch_map,
  1657. msm_bedais[be_id].active);
  1658. rc = adm_programable_channel_mixer(port_id,
  1659. copp_idx,
  1660. session_id,
  1661. session_type,
  1662. params,
  1663. 0);
  1664. if (rc) {
  1665. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1666. rc = -EINVAL;
  1667. }
  1668. return rc;
  1669. }
  1670. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1671. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1672. int dspst_id, int stream_type)
  1673. {
  1674. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1675. struct route_payload payload;
  1676. u32 channels, sample_rate;
  1677. uint16_t bits_per_sample = 16, be_bit_width;
  1678. uint32_t passthr_mode = LEGACY_PCM;
  1679. int ret = 0;
  1680. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1681. /* bad ID assigned in machine driver */
  1682. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1683. return -EINVAL;
  1684. }
  1685. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1686. session_type = SESSION_TYPE_RX;
  1687. path_type = ADM_PATH_PLAYBACK;
  1688. port_type = MSM_AFE_PORT_TYPE_RX;
  1689. } else {
  1690. session_type = SESSION_TYPE_TX;
  1691. path_type = ADM_PATH_LIVE_REC;
  1692. port_type = MSM_AFE_PORT_TYPE_TX;
  1693. }
  1694. mutex_lock(&routing_lock);
  1695. payload.num_copps = 0; /* only RX needs to use payload */
  1696. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1697. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1698. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1699. /* re-enable EQ if active */
  1700. msm_qti_pp_send_eq_values(fedai_id);
  1701. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1702. if (!is_be_dai_extproc(i) &&
  1703. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1704. (msm_bedais[i].active) &&
  1705. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1706. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1707. int port_id = get_port_id(msm_bedais[i].port_id);
  1708. /*
  1709. * check if ADM needs to be configured with different
  1710. * channel mapping than backend
  1711. */
  1712. if (!msm_bedais[i].adm_override_ch)
  1713. channels = msm_bedais[i].channel;
  1714. else
  1715. channels = msm_bedais[i].adm_override_ch;
  1716. bits_per_sample = msm_routing_get_bit_width(
  1717. msm_bedais[i].format);
  1718. app_type =
  1719. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1720. if (app_type) {
  1721. app_type_idx =
  1722. msm_pcm_routing_get_app_type_idx(app_type);
  1723. sample_rate =
  1724. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1725. .sample_rate;
  1726. bits_per_sample =
  1727. app_type_cfg[app_type_idx].bit_width;
  1728. } else
  1729. sample_rate = msm_bedais[i].sample_rate;
  1730. acdb_dev_id =
  1731. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1732. .acdb_dev_id;
  1733. topology = msm_routing_get_adm_topology(fedai_id,
  1734. session_type,
  1735. i);
  1736. be_bit_width = msm_routing_get_bit_width(
  1737. msm_bedais[i].format);
  1738. if (hifi_filter_enabled && (msm_bedais[i].sample_rate ==
  1739. 384000 ||msm_bedais[i].sample_rate == 352800)
  1740. && be_bit_width == 32)
  1741. bits_per_sample = msm_routing_get_bit_width(
  1742. SNDRV_PCM_FORMAT_S32_LE);
  1743. copp_idx = adm_open(port_id, path_type,
  1744. sample_rate, channels, topology,
  1745. perf_mode, bits_per_sample,
  1746. app_type, acdb_dev_id,
  1747. session_type);
  1748. if ((copp_idx < 0) ||
  1749. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1750. pr_err("%s: adm open failed copp_idx:%d\n",
  1751. __func__, copp_idx);
  1752. mutex_unlock(&routing_lock);
  1753. return -EINVAL;
  1754. }
  1755. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1756. __func__, fedai_id, session_type, i);
  1757. set_bit(copp_idx,
  1758. &session_copp_map[fedai_id][session_type][i]);
  1759. if (msm_is_resample_needed(
  1760. sample_rate,
  1761. msm_bedais[i].sample_rate))
  1762. adm_copp_mfc_cfg(port_id, copp_idx,
  1763. msm_bedais[i].sample_rate);
  1764. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1765. unsigned long copp =
  1766. session_copp_map[fedai_id][session_type][i];
  1767. if (test_bit(j, &copp)) {
  1768. payload.port_id[num_copps] = port_id;
  1769. payload.copp_idx[num_copps] = j;
  1770. payload.app_type[num_copps] =
  1771. fe_dai_app_type_cfg
  1772. [fedai_id][session_type]
  1773. [i].app_type;
  1774. payload.acdb_dev_id[num_copps] =
  1775. fe_dai_app_type_cfg
  1776. [fedai_id][session_type]
  1777. [i].acdb_dev_id;
  1778. payload.sample_rate[num_copps] =
  1779. fe_dai_app_type_cfg
  1780. [fedai_id][session_type]
  1781. [i].sample_rate;
  1782. num_copps++;
  1783. }
  1784. }
  1785. if (perf_mode == LEGACY_PCM_MODE)
  1786. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1787. topology, channels);
  1788. }
  1789. }
  1790. if (num_copps) {
  1791. payload.num_copps = num_copps;
  1792. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1793. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1794. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1795. }
  1796. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1797. dspst_id, stream_type);
  1798. mutex_unlock(&routing_lock);
  1799. return ret;
  1800. }
  1801. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1802. int dspst_id, int stream_type,
  1803. struct msm_pcm_routing_evt event_info)
  1804. {
  1805. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1806. stream_type)) {
  1807. pr_err("%s: failed to reg phy stream\n", __func__);
  1808. return -EINVAL;
  1809. }
  1810. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1811. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1812. else
  1813. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1814. return 0;
  1815. }
  1816. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1817. {
  1818. int i, port_type, session_type, path_type, topology, port_id;
  1819. struct msm_pcm_routing_fdai_data *fdai;
  1820. if (!is_mm_lsm_fe_id(fedai_id)) {
  1821. /* bad ID assigned in machine driver */
  1822. pr_err("%s: bad MM ID\n", __func__);
  1823. return;
  1824. }
  1825. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1826. port_type = MSM_AFE_PORT_TYPE_RX;
  1827. session_type = SESSION_TYPE_RX;
  1828. path_type = ADM_PATH_PLAYBACK;
  1829. } else {
  1830. port_type = MSM_AFE_PORT_TYPE_TX;
  1831. session_type = SESSION_TYPE_TX;
  1832. path_type = ADM_PATH_LIVE_REC;
  1833. }
  1834. mutex_lock(&routing_lock);
  1835. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1836. if (!is_be_dai_extproc(i) &&
  1837. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1838. (msm_bedais[i].active) &&
  1839. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1840. int idx;
  1841. unsigned long copp =
  1842. session_copp_map[fedai_id][session_type][i];
  1843. fdai = &fe_dai_map[fedai_id][session_type];
  1844. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1845. if (test_bit(idx, &copp))
  1846. break;
  1847. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1848. pr_debug("%s: copp idx is invalid, exiting\n",
  1849. __func__);
  1850. continue;
  1851. }
  1852. port_id = get_port_id(msm_bedais[i].port_id);
  1853. topology = adm_get_topology_for_port_copp_idx(
  1854. port_id, idx);
  1855. msm_routing_unload_topology(topology);
  1856. adm_close(port_id, fdai->perf_mode, idx);
  1857. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1858. __func__, copp, fedai_id, session_type, i);
  1859. clear_bit(idx,
  1860. &session_copp_map[fedai_id][session_type][i]);
  1861. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1862. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1863. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1864. (fdai->passthr_mode == LEGACY_PCM))
  1865. msm_pcm_routing_deinit_pp(port_id, topology);
  1866. }
  1867. }
  1868. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1869. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1870. mutex_unlock(&routing_lock);
  1871. }
  1872. /* Check if FE/BE route is set */
  1873. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1874. {
  1875. bool rc = false;
  1876. if (!is_mm_lsm_fe_id(fe_id)) {
  1877. /* recheck FE ID in the mixer control defined in this file */
  1878. pr_err("%s: bad MM ID\n", __func__);
  1879. return rc;
  1880. }
  1881. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1882. rc = true;
  1883. return rc;
  1884. }
  1885. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1886. {
  1887. int session_type, path_type, topology;
  1888. u32 channels, sample_rate;
  1889. uint16_t bits_per_sample = 16, be_bit_width;
  1890. struct msm_pcm_routing_fdai_data *fdai;
  1891. uint32_t passthr_mode;
  1892. bool is_lsm;
  1893. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1894. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1895. afe_get_port_type(msm_bedais[reg].port_id) ==
  1896. MSM_AFE_PORT_TYPE_RX) {
  1897. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1898. __func__, set, msm_bedais[reg].port_id);
  1899. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1900. } else if (!is_mm_lsm_fe_id(val)) {
  1901. /* recheck FE ID in the mixer control defined in this file */
  1902. pr_err("%s: bad MM ID\n", __func__);
  1903. return;
  1904. }
  1905. if (!route_check_fe_id_adm_support(val)) {
  1906. /* ignore adm open if not supported for fe_id */
  1907. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1908. if (set)
  1909. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1910. else
  1911. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1912. return;
  1913. }
  1914. session_type =
  1915. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1916. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1917. fdai = &fe_dai_map[val][session_type];
  1918. passthr_mode = fdai->passthr_mode;
  1919. if (session_type == SESSION_TYPE_RX) {
  1920. if (passthr_mode != LEGACY_PCM)
  1921. path_type = ADM_PATH_COMPRESSED_RX;
  1922. else
  1923. path_type = ADM_PATH_PLAYBACK;
  1924. } else {
  1925. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1926. path_type = ADM_PATH_COMPRESSED_TX;
  1927. else
  1928. path_type = ADM_PATH_LIVE_REC;
  1929. }
  1930. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1931. (val <= MSM_FRONTEND_DAI_LSM8);
  1932. mutex_lock(&routing_lock);
  1933. if (set) {
  1934. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1935. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1936. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1937. voc_start_playback(set, msm_bedais[reg].port_id);
  1938. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1939. if (msm_bedais[reg].active && fdai->strm_id !=
  1940. INVALID_SESSION) {
  1941. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1942. int port_id = get_port_id(msm_bedais[reg].port_id);
  1943. /*
  1944. * check if ADM needs to be configured with different
  1945. * channel mapping than backend
  1946. */
  1947. if (!msm_bedais[reg].adm_override_ch)
  1948. channels = msm_bedais[reg].channel;
  1949. else
  1950. channels = msm_bedais[reg].adm_override_ch;
  1951. if (session_type == SESSION_TYPE_TX &&
  1952. fdai->be_srate &&
  1953. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1954. pr_debug("%s: flush strm %d diff BE rates\n",
  1955. __func__, fdai->strm_id);
  1956. if (fdai->event_info.event_func)
  1957. fdai->event_info.event_func(
  1958. MSM_PCM_RT_EVT_BUF_RECFG,
  1959. fdai->event_info.priv_data);
  1960. fdai->be_srate = 0; /* might not need it */
  1961. }
  1962. bits_per_sample = msm_routing_get_bit_width(
  1963. msm_bedais[reg].format);
  1964. app_type =
  1965. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1966. if (app_type && is_lsm) {
  1967. app_type_idx =
  1968. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1969. sample_rate =
  1970. fe_dai_app_type_cfg[val][session_type][reg]
  1971. .sample_rate;
  1972. bits_per_sample =
  1973. lsm_app_type_cfg[app_type_idx].bit_width;
  1974. } else if (app_type) {
  1975. app_type_idx =
  1976. msm_pcm_routing_get_app_type_idx(app_type);
  1977. sample_rate =
  1978. fe_dai_app_type_cfg[val][session_type][reg]
  1979. .sample_rate;
  1980. bits_per_sample =
  1981. app_type_cfg[app_type_idx].bit_width;
  1982. } else
  1983. sample_rate = msm_bedais[reg].sample_rate;
  1984. topology = msm_routing_get_adm_topology(val,
  1985. session_type,
  1986. reg);
  1987. acdb_dev_id =
  1988. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1989. be_bit_width = msm_routing_get_bit_width(
  1990. msm_bedais[reg].format);
  1991. if (hifi_filter_enabled && (msm_bedais[reg].sample_rate
  1992. == 384000 ||msm_bedais[reg].sample_rate ==
  1993. 352800) && be_bit_width == 32)
  1994. bits_per_sample = msm_routing_get_bit_width(
  1995. SNDRV_PCM_FORMAT_S32_LE);
  1996. copp_idx = adm_open(port_id, path_type,
  1997. sample_rate, channels, topology,
  1998. fdai->perf_mode, bits_per_sample,
  1999. app_type, acdb_dev_id,
  2000. session_type);
  2001. if ((copp_idx < 0) ||
  2002. (copp_idx >= MAX_COPPS_PER_PORT)) {
  2003. pr_err("%s: adm open failed\n", __func__);
  2004. mutex_unlock(&routing_lock);
  2005. return;
  2006. }
  2007. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  2008. __func__, val, session_type, reg);
  2009. set_bit(copp_idx,
  2010. &session_copp_map[val][session_type][reg]);
  2011. if (msm_is_resample_needed(
  2012. sample_rate,
  2013. msm_bedais[reg].sample_rate))
  2014. adm_copp_mfc_cfg(port_id, copp_idx,
  2015. msm_bedais[reg].sample_rate);
  2016. if (session_type == SESSION_TYPE_RX &&
  2017. fdai->event_info.event_func)
  2018. fdai->event_info.event_func(
  2019. MSM_PCM_RT_EVT_DEVSWITCH,
  2020. fdai->event_info.priv_data);
  2021. msm_pcm_routing_build_matrix(val, session_type,
  2022. path_type,
  2023. fdai->perf_mode,
  2024. passthr_mode);
  2025. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  2026. (passthr_mode == LEGACY_PCM))
  2027. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  2028. topology, channels);
  2029. }
  2030. } else {
  2031. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2032. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2033. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2034. voc_start_playback(set, msm_bedais[reg].port_id);
  2035. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2036. if (msm_bedais[reg].active && fdai->strm_id !=
  2037. INVALID_SESSION) {
  2038. int idx;
  2039. int port_id;
  2040. unsigned long copp =
  2041. session_copp_map[val][session_type][reg];
  2042. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2043. if (test_bit(idx, &copp))
  2044. break;
  2045. if (idx >= MAX_COPPS_PER_PORT) {
  2046. pr_debug("%s: copp idx is invalid, exiting\n",
  2047. __func__);
  2048. mutex_unlock(&routing_lock);
  2049. return;
  2050. }
  2051. port_id = get_port_id(msm_bedais[reg].port_id);
  2052. topology = adm_get_topology_for_port_copp_idx(port_id,
  2053. idx);
  2054. msm_routing_unload_topology(topology);
  2055. adm_close(port_id, fdai->perf_mode, idx);
  2056. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2057. __func__, copp, val, session_type, reg,
  2058. topology);
  2059. clear_bit(idx,
  2060. &session_copp_map[val][session_type][reg]);
  2061. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2062. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2063. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2064. (passthr_mode == LEGACY_PCM))
  2065. msm_pcm_routing_deinit_pp(port_id, topology);
  2066. msm_pcm_routing_build_matrix(val, session_type,
  2067. path_type,
  2068. fdai->perf_mode,
  2069. passthr_mode);
  2070. }
  2071. }
  2072. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2073. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2074. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2075. mutex_unlock(&routing_lock);
  2076. }
  2077. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2078. struct snd_ctl_elem_value *ucontrol)
  2079. {
  2080. struct soc_mixer_control *mc =
  2081. (struct soc_mixer_control *)kcontrol->private_value;
  2082. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2083. ucontrol->value.integer.value[0] = 1;
  2084. else
  2085. ucontrol->value.integer.value[0] = 0;
  2086. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2087. ucontrol->value.integer.value[0]);
  2088. return 0;
  2089. }
  2090. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2091. struct snd_ctl_elem_value *ucontrol)
  2092. {
  2093. struct snd_soc_dapm_widget *widget =
  2094. snd_soc_dapm_kcontrol_widget(kcontrol);
  2095. struct soc_mixer_control *mc =
  2096. (struct soc_mixer_control *)kcontrol->private_value;
  2097. struct snd_soc_dapm_update *update = NULL;
  2098. if (ucontrol->value.integer.value[0] &&
  2099. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2100. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2101. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2102. update);
  2103. } else if (!ucontrol->value.integer.value[0] &&
  2104. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2105. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2106. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2107. update);
  2108. }
  2109. return 1;
  2110. }
  2111. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2112. struct snd_ctl_elem_value *ucontrol)
  2113. {
  2114. struct soc_mixer_control *mc =
  2115. (struct soc_mixer_control *)kcontrol->private_value;
  2116. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2117. ucontrol->value.integer.value[0] = 1;
  2118. else
  2119. ucontrol->value.integer.value[0] = 0;
  2120. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2121. ucontrol->value.integer.value[0]);
  2122. return 0;
  2123. }
  2124. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2125. struct snd_ctl_elem_value *ucontrol)
  2126. {
  2127. struct snd_soc_dapm_widget *widget =
  2128. snd_soc_dapm_kcontrol_widget(kcontrol);
  2129. struct soc_mixer_control *mc =
  2130. (struct soc_mixer_control *)kcontrol->private_value;
  2131. struct snd_soc_dapm_update *update = NULL;
  2132. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2133. ucontrol->value.integer.value[0]);
  2134. if (ucontrol->value.integer.value[0]) {
  2135. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2136. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2137. snd_soc_dapm_mixer_update_power(widget->dapm,
  2138. kcontrol, 1, update);
  2139. } else if (!ucontrol->value.integer.value[0]) {
  2140. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2141. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2142. snd_soc_dapm_mixer_update_power(widget->dapm,
  2143. kcontrol, 0, update);
  2144. }
  2145. return 1;
  2146. }
  2147. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2148. {
  2149. u32 session_id = 0;
  2150. u16 path_type;
  2151. struct media_format_info voc_be_media_format;
  2152. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2153. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2154. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2155. __func__, val, session_id);
  2156. mutex_lock(&routing_lock);
  2157. if (set)
  2158. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2159. else
  2160. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2161. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2162. afe_get_port_type(msm_bedais[reg].port_id) ==
  2163. MSM_AFE_PORT_TYPE_RX) {
  2164. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2165. __func__, set, msm_bedais[reg].port_id);
  2166. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2167. }
  2168. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2169. MSM_AFE_PORT_TYPE_RX)
  2170. path_type = RX_PATH;
  2171. else
  2172. path_type = TX_PATH;
  2173. if (set) {
  2174. if (msm_bedais[reg].active) {
  2175. voc_set_route_flag(session_id, path_type, 1);
  2176. memset(&voc_be_media_format, 0,
  2177. sizeof(struct media_format_info));
  2178. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2179. voc_be_media_format.num_channels =
  2180. msm_bedais[reg].channel;
  2181. voc_be_media_format.sample_rate =
  2182. msm_bedais[reg].sample_rate;
  2183. voc_be_media_format.bits_per_sample =
  2184. msm_bedais[reg].format;
  2185. /* Defaulting this to 1 for voice call usecases */
  2186. voc_be_media_format.channel_mapping[0] = 1;
  2187. voc_set_device_config(session_id, path_type,
  2188. &voc_be_media_format);
  2189. if (voc_get_route_flag(session_id, TX_PATH) &&
  2190. voc_get_route_flag(session_id, RX_PATH))
  2191. voc_enable_device(session_id);
  2192. } else {
  2193. pr_debug("%s BE is not active\n", __func__);
  2194. }
  2195. } else {
  2196. voc_set_route_flag(session_id, path_type, 0);
  2197. voc_disable_device(session_id);
  2198. }
  2199. mutex_unlock(&routing_lock);
  2200. }
  2201. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2202. struct snd_ctl_elem_value *ucontrol)
  2203. {
  2204. struct soc_mixer_control *mc =
  2205. (struct soc_mixer_control *)kcontrol->private_value;
  2206. mutex_lock(&routing_lock);
  2207. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2208. ucontrol->value.integer.value[0] = 1;
  2209. else
  2210. ucontrol->value.integer.value[0] = 0;
  2211. mutex_unlock(&routing_lock);
  2212. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2213. ucontrol->value.integer.value[0]);
  2214. return 0;
  2215. }
  2216. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2217. struct snd_ctl_elem_value *ucontrol)
  2218. {
  2219. struct snd_soc_dapm_widget *widget =
  2220. snd_soc_dapm_kcontrol_widget(kcontrol);
  2221. struct soc_mixer_control *mc =
  2222. (struct soc_mixer_control *)kcontrol->private_value;
  2223. struct snd_soc_dapm_update *update = NULL;
  2224. if (ucontrol->value.integer.value[0]) {
  2225. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2226. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2227. update);
  2228. } else {
  2229. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2230. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2231. update);
  2232. }
  2233. return 1;
  2234. }
  2235. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2236. struct snd_ctl_elem_value *ucontrol)
  2237. {
  2238. struct soc_mixer_control *mc =
  2239. (struct soc_mixer_control *)kcontrol->private_value;
  2240. mutex_lock(&routing_lock);
  2241. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2242. ucontrol->value.integer.value[0] = 1;
  2243. else
  2244. ucontrol->value.integer.value[0] = 0;
  2245. mutex_unlock(&routing_lock);
  2246. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2247. ucontrol->value.integer.value[0]);
  2248. return 0;
  2249. }
  2250. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2251. struct snd_ctl_elem_value *ucontrol)
  2252. {
  2253. struct snd_soc_dapm_widget *widget =
  2254. snd_soc_dapm_kcontrol_widget(kcontrol);
  2255. struct soc_mixer_control *mc =
  2256. (struct soc_mixer_control *)kcontrol->private_value;
  2257. struct snd_soc_dapm_update *update = NULL;
  2258. if (ucontrol->value.integer.value[0]) {
  2259. mutex_lock(&routing_lock);
  2260. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2261. mutex_unlock(&routing_lock);
  2262. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2263. update);
  2264. } else {
  2265. mutex_lock(&routing_lock);
  2266. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2267. mutex_unlock(&routing_lock);
  2268. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2269. update);
  2270. }
  2271. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2272. ucontrol->value.integer.value[0]);
  2273. return 1;
  2274. }
  2275. /*
  2276. * Return the mapping between port ID and backend ID to enable the AFE callback
  2277. * to determine the acdb_dev_id from the port id
  2278. */
  2279. int msm_pcm_get_be_id_from_port_id(int port_id)
  2280. {
  2281. int i;
  2282. int be_id = -EINVAL;
  2283. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2284. if (msm_bedais[i].port_id == port_id) {
  2285. be_id = i;
  2286. break;
  2287. }
  2288. }
  2289. return be_id;
  2290. }
  2291. /*
  2292. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2293. * correct AFE calibration information by comparing the header information.
  2294. */
  2295. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2296. {
  2297. int acdb_id = -EINVAL;
  2298. int i = 0;
  2299. int session;
  2300. int port_type = afe_get_port_type(port_id);
  2301. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2302. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2303. __func__, port_id, be_id, port_type);
  2304. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2305. session = SESSION_TYPE_TX;
  2306. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2307. session = SESSION_TYPE_RX;
  2308. } else {
  2309. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2310. acdb_id = -EINVAL;
  2311. goto exit;
  2312. }
  2313. if (be_id < 0) {
  2314. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2315. goto exit;
  2316. }
  2317. mutex_lock(&routing_lock);
  2318. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2319. MSM_FRONTEND_DAI_MAX);
  2320. if (i < MSM_FRONTEND_DAI_MAX)
  2321. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2322. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2323. __func__, i, session, be_id, acdb_id);
  2324. mutex_unlock(&routing_lock);
  2325. exit:
  2326. return acdb_id;
  2327. }
  2328. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2329. struct snd_ctl_elem_value *ucontrol)
  2330. {
  2331. ucontrol->value.integer.value[0] = fm_switch_enable;
  2332. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2333. ucontrol->value.integer.value[0]);
  2334. return 0;
  2335. }
  2336. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2337. struct snd_ctl_elem_value *ucontrol)
  2338. {
  2339. struct snd_soc_dapm_widget *widget =
  2340. snd_soc_dapm_kcontrol_widget(kcontrol);
  2341. struct snd_soc_dapm_update *update = NULL;
  2342. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2343. ucontrol->value.integer.value[0]);
  2344. if (ucontrol->value.integer.value[0])
  2345. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2346. update);
  2347. else
  2348. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2349. update);
  2350. fm_switch_enable = ucontrol->value.integer.value[0];
  2351. return 1;
  2352. }
  2353. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2354. struct snd_ctl_elem_value *ucontrol)
  2355. {
  2356. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2357. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2358. ucontrol->value.integer.value[0]);
  2359. return 0;
  2360. }
  2361. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2362. struct snd_ctl_elem_value *ucontrol)
  2363. {
  2364. struct snd_soc_dapm_widget *widget =
  2365. snd_soc_dapm_kcontrol_widget(kcontrol);
  2366. struct snd_soc_dapm_update *update = NULL;
  2367. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2368. ucontrol->value.integer.value[0]);
  2369. if (ucontrol->value.integer.value[0])
  2370. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2371. 1, update);
  2372. else
  2373. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2374. 0, update);
  2375. hfp_switch_enable = ucontrol->value.integer.value[0];
  2376. return 1;
  2377. }
  2378. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2379. struct snd_ctl_elem_value *ucontrol)
  2380. {
  2381. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2382. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2383. ucontrol->value.integer.value[0]);
  2384. return 0;
  2385. }
  2386. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2387. struct snd_ctl_elem_value *ucontrol)
  2388. {
  2389. struct snd_soc_dapm_widget *widget =
  2390. snd_soc_dapm_kcontrol_widget(kcontrol);
  2391. struct snd_soc_dapm_update *update = NULL;
  2392. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2393. ucontrol->value.integer.value[0]);
  2394. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2395. if (a2dp_switch_enable)
  2396. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2397. 1, update);
  2398. else
  2399. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2400. 0, update);
  2401. return 1;
  2402. }
  2403. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2404. struct snd_ctl_elem_value *ucontrol)
  2405. {
  2406. ucontrol->value.integer.value[0] = sco_switch_enable;
  2407. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2408. ucontrol->value.integer.value[0]);
  2409. return 0;
  2410. }
  2411. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2412. struct snd_ctl_elem_value *ucontrol)
  2413. {
  2414. struct snd_soc_dapm_widget *widget =
  2415. snd_soc_dapm_kcontrol_widget(kcontrol);
  2416. struct snd_soc_dapm_update *update = NULL;
  2417. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2418. ucontrol->value.integer.value[0]);
  2419. sco_switch_enable = ucontrol->value.integer.value[0];
  2420. if (sco_switch_enable)
  2421. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2422. 1, update);
  2423. else
  2424. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2425. 0, update);
  2426. return 1;
  2427. }
  2428. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2429. struct snd_ctl_elem_value *ucontrol)
  2430. {
  2431. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2432. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2433. ucontrol->value.integer.value[0]);
  2434. return 0;
  2435. }
  2436. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2437. struct snd_ctl_elem_value *ucontrol)
  2438. {
  2439. struct snd_soc_dapm_widget *widget =
  2440. snd_soc_dapm_kcontrol_widget(kcontrol);
  2441. struct snd_soc_dapm_update *update = NULL;
  2442. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2443. ucontrol->value.integer.value[0]);
  2444. if (ucontrol->value.integer.value[0])
  2445. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2446. update);
  2447. else
  2448. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2449. update);
  2450. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2451. return 1;
  2452. }
  2453. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2454. struct snd_ctl_elem_value *ucontrol)
  2455. {
  2456. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2457. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2458. ucontrol->value.integer.value[0]);
  2459. return 0;
  2460. }
  2461. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2462. struct snd_ctl_elem_value *ucontrol)
  2463. {
  2464. struct snd_soc_dapm_widget *widget =
  2465. snd_soc_dapm_kcontrol_widget(kcontrol);
  2466. struct snd_soc_dapm_update *update = NULL;
  2467. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2468. ucontrol->value.integer.value[0]);
  2469. if (ucontrol->value.integer.value[0])
  2470. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2471. update);
  2472. else
  2473. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2474. update);
  2475. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2476. return 1;
  2477. }
  2478. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2479. struct snd_ctl_elem_value *ucontrol)
  2480. {
  2481. ucontrol->value.integer.value[0] = usb_switch_enable;
  2482. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2483. ucontrol->value.integer.value[0]);
  2484. return 0;
  2485. }
  2486. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2487. struct snd_ctl_elem_value *ucontrol)
  2488. {
  2489. struct snd_soc_dapm_widget *widget =
  2490. snd_soc_dapm_kcontrol_widget(kcontrol);
  2491. struct snd_soc_dapm_update *update = NULL;
  2492. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2493. ucontrol->value.integer.value[0]);
  2494. if (ucontrol->value.integer.value[0])
  2495. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2496. 1, update);
  2497. else
  2498. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2499. 0, update);
  2500. usb_switch_enable = ucontrol->value.integer.value[0];
  2501. return 1;
  2502. }
  2503. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2504. struct snd_ctl_elem_value *ucontrol)
  2505. {
  2506. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2507. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2508. ucontrol->value.integer.value[0]);
  2509. return 0;
  2510. }
  2511. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2512. struct snd_ctl_elem_value *ucontrol)
  2513. {
  2514. struct snd_soc_dapm_widget *widget =
  2515. snd_soc_dapm_kcontrol_widget(kcontrol);
  2516. struct snd_soc_dapm_update *update = NULL;
  2517. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2518. ucontrol->value.integer.value[0]);
  2519. if (ucontrol->value.integer.value[0])
  2520. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2521. update);
  2522. else
  2523. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2524. update);
  2525. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2526. return 1;
  2527. }
  2528. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2529. struct snd_ctl_elem_value *ucontrol)
  2530. {
  2531. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2532. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2533. ucontrol->value.integer.value[0]);
  2534. return 0;
  2535. }
  2536. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2537. struct snd_ctl_elem_value *ucontrol)
  2538. {
  2539. struct snd_soc_dapm_widget *widget =
  2540. snd_soc_dapm_kcontrol_widget(kcontrol);
  2541. struct snd_soc_dapm_update *update = NULL;
  2542. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2543. ucontrol->value.integer.value[0]);
  2544. if (ucontrol->value.integer.value[0])
  2545. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2546. update);
  2547. else
  2548. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2549. update);
  2550. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2551. return 1;
  2552. }
  2553. static int msm_routing_get_tert_mi2s_switch_mixer(
  2554. struct snd_kcontrol *kcontrol,
  2555. struct snd_ctl_elem_value *ucontrol)
  2556. {
  2557. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2558. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2559. ucontrol->value.integer.value[0]);
  2560. return 0;
  2561. }
  2562. static int msm_routing_put_tert_mi2s_switch_mixer(
  2563. struct snd_kcontrol *kcontrol,
  2564. struct snd_ctl_elem_value *ucontrol)
  2565. {
  2566. struct snd_soc_dapm_widget *widget =
  2567. snd_soc_dapm_kcontrol_widget(kcontrol);
  2568. struct snd_soc_dapm_update *update = NULL;
  2569. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2570. ucontrol->value.integer.value[0]);
  2571. if (ucontrol->value.integer.value[0])
  2572. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2573. update);
  2574. else
  2575. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2576. update);
  2577. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2578. return 1;
  2579. }
  2580. static int msm_routing_get_quat_mi2s_switch_mixer(
  2581. struct snd_kcontrol *kcontrol,
  2582. struct snd_ctl_elem_value *ucontrol)
  2583. {
  2584. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2585. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2586. ucontrol->value.integer.value[0]);
  2587. return 0;
  2588. }
  2589. static int msm_routing_put_quat_mi2s_switch_mixer(
  2590. struct snd_kcontrol *kcontrol,
  2591. struct snd_ctl_elem_value *ucontrol)
  2592. {
  2593. struct snd_soc_dapm_widget *widget =
  2594. snd_soc_dapm_kcontrol_widget(kcontrol);
  2595. struct snd_soc_dapm_update *update = NULL;
  2596. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2597. ucontrol->value.integer.value[0]);
  2598. if (ucontrol->value.integer.value[0])
  2599. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2600. update);
  2601. else
  2602. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2603. update);
  2604. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2605. return 1;
  2606. }
  2607. static int msm_routing_get_quin_mi2s_switch_mixer(
  2608. struct snd_kcontrol *kcontrol,
  2609. struct snd_ctl_elem_value *ucontrol)
  2610. {
  2611. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2612. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2613. ucontrol->value.integer.value[0]);
  2614. return 0;
  2615. }
  2616. static int msm_routing_put_quin_mi2s_switch_mixer(
  2617. struct snd_kcontrol *kcontrol,
  2618. struct snd_ctl_elem_value *ucontrol)
  2619. {
  2620. struct snd_soc_dapm_widget *widget =
  2621. snd_soc_dapm_kcontrol_widget(kcontrol);
  2622. struct snd_soc_dapm_update *update = NULL;
  2623. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2624. ucontrol->value.integer.value[0]);
  2625. if (ucontrol->value.integer.value[0])
  2626. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2627. update);
  2628. else
  2629. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2630. update);
  2631. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2632. return 1;
  2633. }
  2634. static int msm_routing_get_sen_mi2s_switch_mixer(
  2635. struct snd_kcontrol *kcontrol,
  2636. struct snd_ctl_elem_value *ucontrol)
  2637. {
  2638. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2639. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2640. ucontrol->value.integer.value[0]);
  2641. return 0;
  2642. }
  2643. static int msm_routing_put_sen_mi2s_switch_mixer(
  2644. struct snd_kcontrol *kcontrol,
  2645. struct snd_ctl_elem_value *ucontrol)
  2646. {
  2647. struct snd_soc_dapm_widget *widget =
  2648. snd_soc_dapm_kcontrol_widget(kcontrol);
  2649. struct snd_soc_dapm_update *update = NULL;
  2650. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2651. ucontrol->value.integer.value[0]);
  2652. if (ucontrol->value.integer.value[0])
  2653. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2654. update);
  2655. else
  2656. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2657. update);
  2658. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2659. return 1;
  2660. }
  2661. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2662. struct snd_ctl_elem_value *ucontrol)
  2663. {
  2664. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2665. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2666. ucontrol->value.integer.value[0]);
  2667. return 0;
  2668. }
  2669. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2670. struct snd_ctl_elem_value *ucontrol)
  2671. {
  2672. struct snd_soc_dapm_widget *widget =
  2673. snd_soc_dapm_kcontrol_widget(kcontrol);
  2674. struct snd_soc_dapm_update *update = NULL;
  2675. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2676. ucontrol->value.integer.value[0]);
  2677. if (ucontrol->value.integer.value[0])
  2678. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2679. update);
  2680. else
  2681. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2682. update);
  2683. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2684. return 1;
  2685. }
  2686. static void msm_routing_get_lsm_fe_idx(struct snd_kcontrol *kcontrol,
  2687. u8 *fe_idx)
  2688. {
  2689. int fe_id = MSM_FRONTEND_DAI_LSM1;
  2690. if (strnstr(kcontrol->id.name, "LSM1", sizeof("LSM1"))) {
  2691. fe_id = MSM_FRONTEND_DAI_LSM1;
  2692. } else if (strnstr(kcontrol->id.name, "LSM2", sizeof("LSM2"))) {
  2693. fe_id = MSM_FRONTEND_DAI_LSM2;
  2694. } else if (strnstr(kcontrol->id.name, "LSM3", sizeof("LSM3"))) {
  2695. fe_id = MSM_FRONTEND_DAI_LSM3;
  2696. } else if (strnstr(kcontrol->id.name, "LSM4", sizeof("LSM4"))) {
  2697. fe_id = MSM_FRONTEND_DAI_LSM4;
  2698. } else if (strnstr(kcontrol->id.name, "LSM5", sizeof("LSM5"))) {
  2699. fe_id = MSM_FRONTEND_DAI_LSM5;
  2700. } else if (strnstr(kcontrol->id.name, "LSM6", sizeof("LSM6"))) {
  2701. fe_id = MSM_FRONTEND_DAI_LSM6;
  2702. } else if (strnstr(kcontrol->id.name, "LSM7", sizeof("LSM7"))) {
  2703. fe_id = MSM_FRONTEND_DAI_LSM7;
  2704. } else if (strnstr(kcontrol->id.name, "LSM8", sizeof("LSM8"))) {
  2705. fe_id = MSM_FRONTEND_DAI_LSM8;
  2706. } else {
  2707. pr_err("%s: Invalid kcontrol name:%s\n", __func__,
  2708. kcontrol->id.name);
  2709. return;
  2710. }
  2711. *fe_idx = fe_id - MSM_FRONTEND_DAI_LSM1;
  2712. pr_debug("%s: fe_id: %d, fe_idx:%d\n", __func__, fe_id, *fe_idx);
  2713. }
  2714. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2715. struct snd_ctl_elem_value *ucontrol)
  2716. {
  2717. u8 fe_idx = 0;
  2718. msm_routing_get_lsm_fe_idx(kcontrol, &fe_idx);
  2719. ucontrol->value.integer.value[0] = lsm_port_index[fe_idx];
  2720. return 0;
  2721. }
  2722. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2723. struct snd_ctl_elem_value *ucontrol)
  2724. {
  2725. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2726. int mux = ucontrol->value.enumerated.item[0];
  2727. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2728. u8 fe_idx = 0;
  2729. if (mux >= e->items) {
  2730. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2731. return -EINVAL;
  2732. }
  2733. pr_debug("%s: LSM enable %ld\n", __func__,
  2734. ucontrol->value.integer.value[0]);
  2735. switch (ucontrol->value.integer.value[0]) {
  2736. case 1:
  2737. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2738. break;
  2739. case 2:
  2740. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2741. break;
  2742. case 3:
  2743. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2744. break;
  2745. case 4:
  2746. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2747. break;
  2748. case 5:
  2749. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2750. break;
  2751. case 6:
  2752. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2753. break;
  2754. case 7:
  2755. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2756. break;
  2757. case 8:
  2758. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2759. break;
  2760. case 9:
  2761. lsm_port = ADM_LSM_PORT_ID;
  2762. break;
  2763. case 10:
  2764. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2765. break;
  2766. case 11:
  2767. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2768. break;
  2769. case 12:
  2770. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2771. break;
  2772. case 13:
  2773. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2774. break;
  2775. case 14:
  2776. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2777. break;
  2778. case 15:
  2779. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2780. break;
  2781. case 16:
  2782. lsm_port = AFE_PORT_ID_TERTIARY_TDM_TX;
  2783. break;
  2784. default:
  2785. pr_err("Default lsm port");
  2786. break;
  2787. }
  2788. set_lsm_port(lsm_port);
  2789. msm_routing_get_lsm_fe_idx(kcontrol, &fe_idx);
  2790. lsm_port_index[fe_idx] = ucontrol->value.integer.value[0];
  2791. return 0;
  2792. }
  2793. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2794. struct snd_ctl_elem_value *ucontrol)
  2795. {
  2796. int i;
  2797. u16 port_id;
  2798. enum afe_mad_type mad_type;
  2799. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2800. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2801. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2802. strlen(lsm_port_text[i])))
  2803. break;
  2804. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2805. pr_warn("%s: Invalid id name %s\n", __func__,
  2806. kcontrol->id.name);
  2807. return -EINVAL;
  2808. }
  2809. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2810. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2811. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2812. strlen(lsm_port_text[7])))
  2813. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2814. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2815. strlen(lsm_port_text[8])))
  2816. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2817. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2818. strlen(lsm_port_text[10])))
  2819. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2820. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2821. strlen(lsm_port_text[14])))
  2822. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2823. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2824. strlen(lsm_port_text[15])))
  2825. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2826. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2827. strlen(lsm_port_text[16])))
  2828. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2829. mad_type = afe_port_get_mad_type(port_id);
  2830. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2831. mad_type);
  2832. switch (mad_type) {
  2833. case MAD_HW_NONE:
  2834. ucontrol->value.integer.value[0] = MADNONE;
  2835. break;
  2836. case MAD_HW_AUDIO:
  2837. ucontrol->value.integer.value[0] = MADAUDIO;
  2838. break;
  2839. case MAD_HW_BEACON:
  2840. ucontrol->value.integer.value[0] = MADBEACON;
  2841. break;
  2842. case MAD_HW_ULTRASOUND:
  2843. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2844. break;
  2845. case MAD_SW_AUDIO:
  2846. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2847. break;
  2848. default:
  2849. pr_warn("%s: Unknown\n", __func__);
  2850. return -EINVAL;
  2851. }
  2852. return 0;
  2853. }
  2854. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2855. struct snd_ctl_elem_value *ucontrol)
  2856. {
  2857. int i;
  2858. u16 port_id;
  2859. enum afe_mad_type mad_type;
  2860. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2861. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2862. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2863. strlen(lsm_port_text[i])))
  2864. break;
  2865. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2866. pr_warn("%s: Invalid id name %s\n", __func__,
  2867. kcontrol->id.name);
  2868. return -EINVAL;
  2869. }
  2870. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2871. switch (ucontrol->value.integer.value[0]) {
  2872. case MADNONE:
  2873. mad_type = MAD_HW_NONE;
  2874. break;
  2875. case MADAUDIO:
  2876. mad_type = MAD_HW_AUDIO;
  2877. break;
  2878. case MADBEACON:
  2879. mad_type = MAD_HW_BEACON;
  2880. break;
  2881. case MADULTRASOUND:
  2882. mad_type = MAD_HW_ULTRASOUND;
  2883. break;
  2884. case MADSWAUDIO:
  2885. mad_type = MAD_SW_AUDIO;
  2886. break;
  2887. default:
  2888. pr_warn("%s: Unknown\n", __func__);
  2889. return -EINVAL;
  2890. }
  2891. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2892. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2893. strlen(lsm_port_text[7])))
  2894. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2895. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2896. strlen(lsm_port_text[8])))
  2897. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2898. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2899. strlen(lsm_port_text[10])))
  2900. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2901. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2902. strlen(lsm_port_text[14])))
  2903. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2904. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2905. strlen(lsm_port_text[15])))
  2906. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2907. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2908. strlen(lsm_port_text[16])))
  2909. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2910. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2911. mad_type);
  2912. return afe_port_set_mad_type(port_id, mad_type);
  2913. }
  2914. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2915. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  2916. adm_override_chs_text);
  2917. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2918. {
  2919. int backend_id;
  2920. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2921. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2922. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2923. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2924. } else {
  2925. pr_err("%s: unsupported backend id: %s",
  2926. __func__, kcontrol->id.name);
  2927. return -EINVAL;
  2928. }
  2929. return backend_id;
  2930. }
  2931. static int msm_routing_adm_channel_config_get(
  2932. struct snd_kcontrol *kcontrol,
  2933. struct snd_ctl_elem_value *ucontrol)
  2934. {
  2935. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2936. if (backend_id >= 0) {
  2937. mutex_lock(&routing_lock);
  2938. ucontrol->value.integer.value[0] =
  2939. msm_bedais[backend_id].adm_override_ch;
  2940. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2941. ucontrol->value.integer.value[0], backend_id);
  2942. mutex_unlock(&routing_lock);
  2943. }
  2944. return 0;
  2945. }
  2946. static int msm_routing_adm_channel_config_put(
  2947. struct snd_kcontrol *kcontrol,
  2948. struct snd_ctl_elem_value *ucontrol)
  2949. {
  2950. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2951. if (backend_id >= 0) {
  2952. mutex_lock(&routing_lock);
  2953. msm_bedais[backend_id].adm_override_ch =
  2954. ucontrol->value.integer.value[0];
  2955. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2956. __func__, backend_id,
  2957. msm_bedais[backend_id].adm_override_ch);
  2958. mutex_unlock(&routing_lock);
  2959. }
  2960. return 0;
  2961. }
  2962. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2963. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2964. msm_routing_adm_channel_config_get,
  2965. msm_routing_adm_channel_config_put),
  2966. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2967. msm_routing_adm_channel_config_get,
  2968. msm_routing_adm_channel_config_put),
  2969. };
  2970. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2971. struct snd_ctl_elem_value *ucontrol)
  2972. {
  2973. mutex_lock(&routing_lock);
  2974. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2975. mutex_unlock(&routing_lock);
  2976. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2977. ucontrol->value.integer.value[0]);
  2978. return 0;
  2979. };
  2980. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2981. struct snd_ctl_elem_value *ucontrol)
  2982. {
  2983. struct aanc_data aanc_info;
  2984. mutex_lock(&routing_lock);
  2985. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2986. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2987. ucontrol->value.integer.value[0]);
  2988. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2989. if (ucontrol->value.integer.value[0] == 0) {
  2990. aanc_info.aanc_active = false;
  2991. aanc_info.aanc_tx_port = 0;
  2992. aanc_info.aanc_rx_port = 0;
  2993. } else {
  2994. aanc_info.aanc_active = true;
  2995. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2996. aanc_info.aanc_tx_port =
  2997. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2998. }
  2999. afe_set_aanc_info(&aanc_info);
  3000. mutex_unlock(&routing_lock);
  3001. return 0;
  3002. };
  3003. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  3004. struct snd_ctl_elem_value *ucontrol)
  3005. {
  3006. int idx = 0, shift = 0;
  3007. struct soc_mixer_control *mc =
  3008. (struct soc_mixer_control *)kcontrol->private_value;
  3009. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3010. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3011. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  3012. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  3013. return -EINVAL;
  3014. }
  3015. if (test_bit(shift,
  3016. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  3017. ucontrol->value.integer.value[0] = 1;
  3018. else
  3019. ucontrol->value.integer.value[0] = 0;
  3020. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  3021. ucontrol->value.integer.value[0]);
  3022. return 0;
  3023. }
  3024. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  3025. struct snd_ctl_elem_value *ucontrol)
  3026. {
  3027. int idx = 0, shift = 0;
  3028. struct soc_mixer_control *mc =
  3029. (struct soc_mixer_control *)kcontrol->private_value;
  3030. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3031. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3032. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  3033. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  3034. return -EINVAL;
  3035. }
  3036. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  3037. __func__, mc->shift, mc->rshift,
  3038. ucontrol->value.integer.value[0], idx, shift);
  3039. if (ucontrol->value.integer.value[0]) {
  3040. afe_loopback(1, msm_bedais[mc->shift].port_id,
  3041. msm_bedais[mc->rshift].port_id);
  3042. set_bit(shift,
  3043. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3044. } else {
  3045. afe_loopback(0, msm_bedais[mc->shift].port_id,
  3046. msm_bedais[mc->rshift].port_id);
  3047. clear_bit(shift,
  3048. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3049. }
  3050. return 1;
  3051. }
  3052. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  3053. struct snd_ctl_elem_value *ucontrol)
  3054. {
  3055. u16 fe_id = 0;
  3056. fe_id = ((struct soc_mixer_control *)
  3057. kcontrol->private_value)->shift;
  3058. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3059. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3060. return -EINVAL;
  3061. }
  3062. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  3063. return 0;
  3064. }
  3065. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  3066. struct snd_ctl_elem_value *ucontrol)
  3067. {
  3068. u16 fe_id = 0;
  3069. fe_id = ((struct soc_mixer_control *)
  3070. kcontrol->private_value)->shift;
  3071. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3072. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3073. return -EINVAL;
  3074. }
  3075. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3076. return 1;
  3077. }
  3078. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3079. struct snd_ctl_elem_value *ucontrol)
  3080. {
  3081. u16 fe_id = 0;
  3082. fe_id = ((struct soc_multi_mixer_control *)
  3083. kcontrol->private_value)->shift;
  3084. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3085. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3086. return -EINVAL;
  3087. }
  3088. ucontrol->value.integer.value[0] =
  3089. channel_mixer[fe_id].output_channel;
  3090. return 0;
  3091. }
  3092. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3093. struct snd_ctl_elem_value *ucontrol)
  3094. {
  3095. u16 fe_id = 0;
  3096. fe_id = ((struct soc_multi_mixer_control *)
  3097. kcontrol->private_value)->shift;
  3098. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3099. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3100. return -EINVAL;
  3101. }
  3102. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3103. fe_id,
  3104. (unsigned int)(ucontrol->value.integer.value[0]));
  3105. channel_mixer[fe_id].output_channel =
  3106. (unsigned int)(ucontrol->value.integer.value[0]);
  3107. return 1;
  3108. }
  3109. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3110. /* If new backend is added, need update this array */
  3111. static const char *const be_name[] = {
  3112. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3113. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3114. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3115. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3116. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3117. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3118. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3119. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3120. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3121. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3122. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3123. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3124. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3125. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3126. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3127. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3128. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3129. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3130. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3131. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3132. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3133. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3134. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3135. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3136. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3137. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3138. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3139. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3140. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3141. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3142. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3143. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3144. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3145. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3146. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3147. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3148. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3149. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3150. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3151. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3152. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3153. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3154. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3155. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3156. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3157. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3158. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3159. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3160. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3161. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3162. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3163. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3164. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3165. "SEC_META_MI2S_RX", "PROXY_RX", "PROXY_TX"
  3166. };
  3167. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3168. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3169. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3170. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3171. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3172. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3173. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3174. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3175. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3176. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3177. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3178. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3179. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3180. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3181. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3182. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3183. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3184. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3185. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3186. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3187. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3188. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3189. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3190. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3191. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3192. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3193. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3194. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3195. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3196. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3197. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3198. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3199. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3200. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3201. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3202. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3203. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3204. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3205. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3206. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3207. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3208. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3209. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3210. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3211. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3212. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3213. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3214. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3215. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3216. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3217. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3218. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3219. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3220. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3221. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3222. unsigned int channels,
  3223. unsigned int items, const char *const names[])
  3224. {
  3225. if (uinfo->value.enumerated.item >= items)
  3226. uinfo->value.enumerated.item = items - 1;
  3227. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3228. sizeof(uinfo->value.enumerated.name),
  3229. "ALSA: too long item name '%s'\n",
  3230. names[uinfo->value.enumerated.item]);
  3231. strlcpy(uinfo->value.enumerated.name,
  3232. names[uinfo->value.enumerated.item],
  3233. sizeof(uinfo->value.enumerated.name));
  3234. return 0;
  3235. }
  3236. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3237. struct snd_ctl_elem_info *uinfo)
  3238. {
  3239. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3240. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3241. uinfo->count = 1;
  3242. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3243. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3244. return 0;
  3245. }
  3246. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3247. struct snd_ctl_elem_value *ucontrol)
  3248. {
  3249. u16 fe_id = 0;
  3250. fe_id = ((struct soc_enum *)
  3251. kcontrol->private_value)->shift_l;
  3252. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3253. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3254. return -EINVAL;
  3255. }
  3256. pr_debug("%s: FE %d %s\n", __func__,
  3257. fe_id,
  3258. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3259. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3260. return 0;
  3261. }
  3262. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3263. struct snd_ctl_elem_value *ucontrol)
  3264. {
  3265. u16 fe_id = 0;
  3266. fe_id = ((struct soc_enum *)
  3267. kcontrol->private_value)->shift_l;
  3268. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3269. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3270. return -EINVAL;
  3271. }
  3272. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3273. pr_debug("%s: %s FE %d\n", __func__,
  3274. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3275. fe_id);
  3276. return 0;
  3277. }
  3278. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3279. struct snd_ctl_elem_info *uinfo)
  3280. {
  3281. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3282. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3283. uinfo->count = 1;
  3284. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3285. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3286. return 0;
  3287. }
  3288. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3289. struct snd_ctl_elem_value *ucontrol)
  3290. {
  3291. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3292. u16 fe_id = 0, in_ch = 0;
  3293. fe_id = e->shift_l;
  3294. in_ch = e->shift_r;
  3295. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3296. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3297. return -EINVAL;
  3298. }
  3299. if (in_ch >= ADM_MAX_CHANNELS) {
  3300. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3301. return -EINVAL;
  3302. }
  3303. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3304. return 1;
  3305. }
  3306. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3307. struct snd_ctl_elem_value *ucontrol)
  3308. {
  3309. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3310. u16 fe_id = 0, in_ch = 0;
  3311. fe_id = e->shift_l;
  3312. in_ch = e->shift_r;
  3313. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3314. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3315. return -EINVAL;
  3316. }
  3317. if (in_ch >= ADM_MAX_CHANNELS) {
  3318. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3319. return -EINVAL;
  3320. }
  3321. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3322. return 1;
  3323. }
  3324. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3325. struct snd_ctl_elem_info *uinfo)
  3326. {
  3327. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3328. uinfo->count = ADM_MAX_CHANNELS;
  3329. uinfo->value.integer.min = 0;
  3330. uinfo->value.integer.max = WEIGHT_0_DB;
  3331. return 0;
  3332. }
  3333. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3334. struct snd_ctl_elem_value *ucontrol)
  3335. {
  3336. u16 fe_id = 0, out_ch = 0;
  3337. int i, weight;
  3338. fe_id = ((struct soc_multi_mixer_control *)
  3339. kcontrol->private_value)->shift;
  3340. out_ch = ((struct soc_multi_mixer_control *)
  3341. kcontrol->private_value)->rshift;
  3342. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3343. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3344. return -EINVAL;
  3345. }
  3346. if (out_ch >= ADM_MAX_CHANNELS) {
  3347. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3348. return -EINVAL;
  3349. }
  3350. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3351. __func__, fe_id,
  3352. ucontrol->value.integer.value[0],
  3353. ucontrol->value.integer.value[1],
  3354. ucontrol->value.integer.value[2],
  3355. ucontrol->value.integer.value[3],
  3356. ucontrol->value.integer.value[4],
  3357. ucontrol->value.integer.value[5],
  3358. ucontrol->value.integer.value[6],
  3359. ucontrol->value.integer.value[7]);
  3360. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3361. weight = ucontrol->value.integer.value[i];
  3362. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3363. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3364. __func__, fe_id, out_ch, i,
  3365. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3366. }
  3367. return 0;
  3368. }
  3369. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3370. struct snd_ctl_elem_value *ucontrol)
  3371. {
  3372. u16 fe_id = 0, out_ch = 0;
  3373. int i;
  3374. fe_id = ((struct soc_multi_mixer_control *)
  3375. kcontrol->private_value)->shift;
  3376. out_ch = ((struct soc_multi_mixer_control *)
  3377. kcontrol->private_value)->rshift;
  3378. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3379. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3380. return -EINVAL;
  3381. }
  3382. if (out_ch >= ADM_MAX_CHANNELS) {
  3383. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3384. return -EINVAL;
  3385. }
  3386. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3387. ucontrol->value.integer.value[i] =
  3388. channel_mixer[fe_id].channel_weight[out_ch][i];
  3389. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3390. __func__, fe_id,
  3391. ucontrol->value.integer.value[0],
  3392. ucontrol->value.integer.value[1],
  3393. ucontrol->value.integer.value[2],
  3394. ucontrol->value.integer.value[3],
  3395. ucontrol->value.integer.value[4],
  3396. ucontrol->value.integer.value[5],
  3397. ucontrol->value.integer.value[6],
  3398. ucontrol->value.integer.value[7]);
  3399. return 0;
  3400. }
  3401. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3402. struct snd_ctl_elem_info *uinfo)
  3403. {
  3404. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3405. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3406. /* Valid channel map value ranges from 1 to 64 */
  3407. uinfo->value.integer.min = 0;
  3408. uinfo->value.integer.max = 64;
  3409. return 0;
  3410. }
  3411. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3412. struct snd_ctl_elem_value *ucontrol)
  3413. {
  3414. u16 fe_id = 0;
  3415. int i, ch_map;
  3416. fe_id = ((struct soc_multi_mixer_control *)
  3417. kcontrol->private_value)->shift;
  3418. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3419. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3420. return -EINVAL;
  3421. }
  3422. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3423. ch_map = ucontrol->value.integer.value[i];
  3424. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3425. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3426. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3427. }
  3428. /* Make override_out_ch_map false if ch map is reset */
  3429. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3430. channel_mixer[fe_id].override_out_ch_map = false;
  3431. else
  3432. channel_mixer[fe_id].override_out_ch_map = true;
  3433. return 0;
  3434. }
  3435. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3436. struct snd_ctl_elem_value *ucontrol)
  3437. {
  3438. u16 fe_id = 0;
  3439. int i;
  3440. fe_id = ((struct soc_multi_mixer_control *)
  3441. kcontrol->private_value)->shift;
  3442. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3443. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3444. return -EINVAL;
  3445. }
  3446. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3447. ucontrol->value.integer.value[i] =
  3448. channel_mixer[fe_id].out_ch_map[i];
  3449. return 0;
  3450. }
  3451. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3452. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3453. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3454. msm_pcm_get_channel_rule_index,
  3455. msm_pcm_put_channel_rule_index),
  3456. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3457. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3458. msm_pcm_get_channel_rule_index,
  3459. msm_pcm_put_channel_rule_index),
  3460. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3461. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3462. msm_pcm_get_channel_rule_index,
  3463. msm_pcm_put_channel_rule_index),
  3464. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3465. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3466. msm_pcm_get_channel_rule_index,
  3467. msm_pcm_put_channel_rule_index),
  3468. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3469. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3470. msm_pcm_get_channel_rule_index,
  3471. msm_pcm_put_channel_rule_index),
  3472. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3473. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3474. msm_pcm_get_channel_rule_index,
  3475. msm_pcm_put_channel_rule_index),
  3476. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3477. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3478. msm_pcm_get_channel_rule_index,
  3479. msm_pcm_put_channel_rule_index),
  3480. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3481. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3482. msm_pcm_get_channel_rule_index,
  3483. msm_pcm_put_channel_rule_index),
  3484. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3485. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3486. msm_pcm_get_channel_rule_index,
  3487. msm_pcm_put_channel_rule_index),
  3488. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3489. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3490. msm_pcm_get_channel_rule_index,
  3491. msm_pcm_put_channel_rule_index),
  3492. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3493. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3494. msm_pcm_get_channel_rule_index,
  3495. msm_pcm_put_channel_rule_index),
  3496. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3497. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3498. msm_pcm_get_out_chs,
  3499. msm_pcm_put_out_chs),
  3500. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3501. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3502. msm_pcm_get_out_chs,
  3503. msm_pcm_put_out_chs),
  3504. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3505. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3506. msm_pcm_get_out_chs,
  3507. msm_pcm_put_out_chs),
  3508. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3509. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3510. msm_pcm_get_out_chs,
  3511. msm_pcm_put_out_chs),
  3512. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3513. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3514. msm_pcm_get_out_chs,
  3515. msm_pcm_put_out_chs),
  3516. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3517. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3518. msm_pcm_get_out_chs,
  3519. msm_pcm_put_out_chs),
  3520. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3521. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3522. msm_pcm_get_out_chs,
  3523. msm_pcm_put_out_chs),
  3524. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3525. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3526. msm_pcm_get_out_chs,
  3527. msm_pcm_put_out_chs),
  3528. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3529. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3530. msm_pcm_get_out_chs,
  3531. msm_pcm_put_out_chs),
  3532. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3533. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3534. msm_pcm_get_out_chs,
  3535. msm_pcm_put_out_chs),
  3536. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3537. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3538. msm_pcm_get_out_chs,
  3539. msm_pcm_put_out_chs),
  3540. {
  3541. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3542. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3543. .name = "MultiMedia1 Channel Mixer",
  3544. .info = msm_pcm_channel_mixer_info,
  3545. .get = msm_pcm_channel_mixer_get,
  3546. .put = msm_pcm_channel_mixer_put,
  3547. .private_value = (unsigned long)&(mm1_channel_mux)
  3548. },
  3549. {
  3550. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3551. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3552. .name = "MultiMedia2 Channel Mixer",
  3553. .info = msm_pcm_channel_mixer_info,
  3554. .get = msm_pcm_channel_mixer_get,
  3555. .put = msm_pcm_channel_mixer_put,
  3556. .private_value = (unsigned long)&(mm2_channel_mux)
  3557. },
  3558. {
  3559. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3560. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3561. .name = "MultiMedia3 Channel Mixer",
  3562. .info = msm_pcm_channel_mixer_info,
  3563. .get = msm_pcm_channel_mixer_get,
  3564. .put = msm_pcm_channel_mixer_put,
  3565. .private_value = (unsigned long)&(mm3_channel_mux)
  3566. },
  3567. {
  3568. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3569. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3570. .name = "MultiMedia4 Channel Mixer",
  3571. .info = msm_pcm_channel_mixer_info,
  3572. .get = msm_pcm_channel_mixer_get,
  3573. .put = msm_pcm_channel_mixer_put,
  3574. .private_value = (unsigned long)&(mm4_channel_mux)
  3575. },
  3576. {
  3577. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3578. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3579. .name = "MultiMedia18 Channel Mixer",
  3580. .info = msm_pcm_channel_mixer_info,
  3581. .get = msm_pcm_channel_mixer_get,
  3582. .put = msm_pcm_channel_mixer_put,
  3583. .private_value = (unsigned long)&(mm18_channel_mux)
  3584. },
  3585. {
  3586. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3587. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3588. .name = "MultiMedia19 Channel Mixer",
  3589. .info = msm_pcm_channel_mixer_info,
  3590. .get = msm_pcm_channel_mixer_get,
  3591. .put = msm_pcm_channel_mixer_put,
  3592. .private_value = (unsigned long)&(mm19_channel_mux)
  3593. },
  3594. {
  3595. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3596. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3597. .name = "MultiMedia28 Channel Mixer",
  3598. .info = msm_pcm_channel_mixer_info,
  3599. .get = msm_pcm_channel_mixer_get,
  3600. .put = msm_pcm_channel_mixer_put,
  3601. .private_value = (unsigned long)&(mm28_channel_mux)
  3602. },
  3603. {
  3604. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3605. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3606. .name = "MultiMedia29 Channel Mixer",
  3607. .info = msm_pcm_channel_mixer_info,
  3608. .get = msm_pcm_channel_mixer_get,
  3609. .put = msm_pcm_channel_mixer_put,
  3610. .private_value = (unsigned long)&(mm29_channel_mux)
  3611. },
  3612. {
  3613. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3614. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3615. .name = "MultiMedia30 Channel Mixer",
  3616. .info = msm_pcm_channel_mixer_info,
  3617. .get = msm_pcm_channel_mixer_get,
  3618. .put = msm_pcm_channel_mixer_put,
  3619. .private_value = (unsigned long)&(mm30_channel_mux)
  3620. },
  3621. {
  3622. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3623. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3624. .name = "MultiMedia1 Output Channel1",
  3625. .info = msm_pcm_channel_weight_info,
  3626. .get = msm_pcm_channel_weight_get,
  3627. .put = msm_pcm_channel_weight_put,
  3628. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3629. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3630. },
  3631. {
  3632. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3633. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3634. .name = "MultiMedia1 Output Channel2",
  3635. .info = msm_pcm_channel_weight_info,
  3636. .get = msm_pcm_channel_weight_get,
  3637. .put = msm_pcm_channel_weight_put,
  3638. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3639. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3640. },
  3641. {
  3642. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3643. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3644. .name = "MultiMedia1 Output Channel3",
  3645. .info = msm_pcm_channel_weight_info,
  3646. .get = msm_pcm_channel_weight_get,
  3647. .put = msm_pcm_channel_weight_put,
  3648. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3649. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3650. },
  3651. {
  3652. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3653. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3654. .name = "MultiMedia1 Output Channel4",
  3655. .info = msm_pcm_channel_weight_info,
  3656. .get = msm_pcm_channel_weight_get,
  3657. .put = msm_pcm_channel_weight_put,
  3658. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3659. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3660. },
  3661. {
  3662. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3663. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3664. .name = "MultiMedia1 Output Channel5",
  3665. .info = msm_pcm_channel_weight_info,
  3666. .get = msm_pcm_channel_weight_get,
  3667. .put = msm_pcm_channel_weight_put,
  3668. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3669. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3670. },
  3671. {
  3672. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3673. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3674. .name = "MultiMedia1 Output Channel6",
  3675. .info = msm_pcm_channel_weight_info,
  3676. .get = msm_pcm_channel_weight_get,
  3677. .put = msm_pcm_channel_weight_put,
  3678. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3679. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3680. },
  3681. {
  3682. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3683. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3684. .name = "MultiMedia1 Output Channel7",
  3685. .info = msm_pcm_channel_weight_info,
  3686. .get = msm_pcm_channel_weight_get,
  3687. .put = msm_pcm_channel_weight_put,
  3688. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3689. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3690. },
  3691. {
  3692. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3693. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3694. .name = "MultiMedia1 Output Channel8",
  3695. .info = msm_pcm_channel_weight_info,
  3696. .get = msm_pcm_channel_weight_get,
  3697. .put = msm_pcm_channel_weight_put,
  3698. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3699. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3700. },
  3701. {
  3702. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3703. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3704. .name = "MultiMedia1 Output Channel9",
  3705. .info = msm_pcm_channel_weight_info,
  3706. .get = msm_pcm_channel_weight_get,
  3707. .put = msm_pcm_channel_weight_put,
  3708. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3709. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3710. },
  3711. {
  3712. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3713. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3714. .name = "MultiMedia1 Output Channel10",
  3715. .info = msm_pcm_channel_weight_info,
  3716. .get = msm_pcm_channel_weight_get,
  3717. .put = msm_pcm_channel_weight_put,
  3718. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3719. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3720. },
  3721. {
  3722. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3723. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3724. .name = "MultiMedia1 Output Channel11",
  3725. .info = msm_pcm_channel_weight_info,
  3726. .get = msm_pcm_channel_weight_get,
  3727. .put = msm_pcm_channel_weight_put,
  3728. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3729. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3730. },
  3731. {
  3732. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3733. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3734. .name = "MultiMedia1 Output Channel12",
  3735. .info = msm_pcm_channel_weight_info,
  3736. .get = msm_pcm_channel_weight_get,
  3737. .put = msm_pcm_channel_weight_put,
  3738. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3739. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3740. },
  3741. {
  3742. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3743. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3744. .name = "MultiMedia1 Output Channel13",
  3745. .info = msm_pcm_channel_weight_info,
  3746. .get = msm_pcm_channel_weight_get,
  3747. .put = msm_pcm_channel_weight_put,
  3748. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3749. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3750. },
  3751. {
  3752. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3753. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3754. .name = "MultiMedia1 Output Channel14",
  3755. .info = msm_pcm_channel_weight_info,
  3756. .get = msm_pcm_channel_weight_get,
  3757. .put = msm_pcm_channel_weight_put,
  3758. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3759. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3760. },
  3761. {
  3762. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3763. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3764. .name = "MultiMedia2 Output Channel1",
  3765. .info = msm_pcm_channel_weight_info,
  3766. .get = msm_pcm_channel_weight_get,
  3767. .put = msm_pcm_channel_weight_put,
  3768. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3769. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3770. },
  3771. {
  3772. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3773. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3774. .name = "MultiMedia2 Output Channel2",
  3775. .info = msm_pcm_channel_weight_info,
  3776. .get = msm_pcm_channel_weight_get,
  3777. .put = msm_pcm_channel_weight_put,
  3778. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3779. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3780. },
  3781. {
  3782. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3783. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3784. .name = "MultiMedia2 Output Channel3",
  3785. .info = msm_pcm_channel_weight_info,
  3786. .get = msm_pcm_channel_weight_get,
  3787. .put = msm_pcm_channel_weight_put,
  3788. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3789. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3790. },
  3791. {
  3792. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3793. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3794. .name = "MultiMedia3 Output Channel1",
  3795. .info = msm_pcm_channel_weight_info,
  3796. .get = msm_pcm_channel_weight_get,
  3797. .put = msm_pcm_channel_weight_put,
  3798. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3799. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3800. },
  3801. {
  3802. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3803. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3804. .name = "MultiMedia3 Output Channel2",
  3805. .info = msm_pcm_channel_weight_info,
  3806. .get = msm_pcm_channel_weight_get,
  3807. .put = msm_pcm_channel_weight_put,
  3808. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3809. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3810. },
  3811. {
  3812. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3813. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3814. .name = "MultiMedia18 Output Channel1",
  3815. .info = msm_pcm_channel_weight_info,
  3816. .get = msm_pcm_channel_weight_get,
  3817. .put = msm_pcm_channel_weight_put,
  3818. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3819. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  3820. },
  3821. {
  3822. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3823. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3824. .name = "MultiMedia18 Output Channel2",
  3825. .info = msm_pcm_channel_weight_info,
  3826. .get = msm_pcm_channel_weight_get,
  3827. .put = msm_pcm_channel_weight_put,
  3828. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3829. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  3830. },
  3831. {
  3832. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3833. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3834. .name = "MultiMedia18 Output Channel3",
  3835. .info = msm_pcm_channel_weight_info,
  3836. .get = msm_pcm_channel_weight_get,
  3837. .put = msm_pcm_channel_weight_put,
  3838. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3839. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  3840. },
  3841. {
  3842. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3843. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3844. .name = "MultiMedia18 Output Channel4",
  3845. .info = msm_pcm_channel_weight_info,
  3846. .get = msm_pcm_channel_weight_get,
  3847. .put = msm_pcm_channel_weight_put,
  3848. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3849. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  3850. },
  3851. {
  3852. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3853. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3854. .name = "MultiMedia18 Output Channel5",
  3855. .info = msm_pcm_channel_weight_info,
  3856. .get = msm_pcm_channel_weight_get,
  3857. .put = msm_pcm_channel_weight_put,
  3858. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3859. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  3860. },
  3861. {
  3862. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3863. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3864. .name = "MultiMedia18 Output Channel6",
  3865. .info = msm_pcm_channel_weight_info,
  3866. .get = msm_pcm_channel_weight_get,
  3867. .put = msm_pcm_channel_weight_put,
  3868. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3869. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  3870. },
  3871. {
  3872. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3873. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3874. .name = "MultiMedia18 Output Channel7",
  3875. .info = msm_pcm_channel_weight_info,
  3876. .get = msm_pcm_channel_weight_get,
  3877. .put = msm_pcm_channel_weight_put,
  3878. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3879. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  3880. },
  3881. {
  3882. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3883. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3884. .name = "MultiMedia18 Output Channel8",
  3885. .info = msm_pcm_channel_weight_info,
  3886. .get = msm_pcm_channel_weight_get,
  3887. .put = msm_pcm_channel_weight_put,
  3888. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3889. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  3890. },
  3891. {
  3892. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3893. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3894. .name = "MultiMedia18 Output Channel9",
  3895. .info = msm_pcm_channel_weight_info,
  3896. .get = msm_pcm_channel_weight_get,
  3897. .put = msm_pcm_channel_weight_put,
  3898. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3899. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  3900. },
  3901. {
  3902. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3903. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3904. .name = "MultiMedia18 Output Channel10",
  3905. .info = msm_pcm_channel_weight_info,
  3906. .get = msm_pcm_channel_weight_get,
  3907. .put = msm_pcm_channel_weight_put,
  3908. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3909. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 9,}
  3910. },
  3911. {
  3912. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3913. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3914. .name = "MultiMedia18 Output Channel11",
  3915. .info = msm_pcm_channel_weight_info,
  3916. .get = msm_pcm_channel_weight_get,
  3917. .put = msm_pcm_channel_weight_put,
  3918. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3919. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 10,}
  3920. },
  3921. {
  3922. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3923. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3924. .name = "MultiMedia18 Output Channel12",
  3925. .info = msm_pcm_channel_weight_info,
  3926. .get = msm_pcm_channel_weight_get,
  3927. .put = msm_pcm_channel_weight_put,
  3928. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3929. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 11,}
  3930. },
  3931. {
  3932. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3933. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3934. .name = "MultiMedia18 Output Channel13",
  3935. .info = msm_pcm_channel_weight_info,
  3936. .get = msm_pcm_channel_weight_get,
  3937. .put = msm_pcm_channel_weight_put,
  3938. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3939. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 12,}
  3940. },
  3941. {
  3942. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3943. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3944. .name = "MultiMedia18 Output Channel14",
  3945. .info = msm_pcm_channel_weight_info,
  3946. .get = msm_pcm_channel_weight_get,
  3947. .put = msm_pcm_channel_weight_put,
  3948. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3949. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 13,}
  3950. },
  3951. {
  3952. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3953. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3954. .name = "MultiMedia19 Output Channel1",
  3955. .info = msm_pcm_channel_weight_info,
  3956. .get = msm_pcm_channel_weight_get,
  3957. .put = msm_pcm_channel_weight_put,
  3958. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3959. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 0,}
  3960. },
  3961. {
  3962. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3963. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3964. .name = "MultiMedia19 Output Channel2",
  3965. .info = msm_pcm_channel_weight_info,
  3966. .get = msm_pcm_channel_weight_get,
  3967. .put = msm_pcm_channel_weight_put,
  3968. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3969. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 1, }
  3970. },
  3971. {
  3972. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3973. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3974. .name = "MultiMedia19 Output Channel3",
  3975. .info = msm_pcm_channel_weight_info,
  3976. .get = msm_pcm_channel_weight_get,
  3977. .put = msm_pcm_channel_weight_put,
  3978. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3979. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 2,}
  3980. },
  3981. {
  3982. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3983. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3984. .name = "MultiMedia19 Output Channel4",
  3985. .info = msm_pcm_channel_weight_info,
  3986. .get = msm_pcm_channel_weight_get,
  3987. .put = msm_pcm_channel_weight_put,
  3988. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3989. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  3990. },
  3991. {
  3992. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3993. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3994. .name = "MultiMedia19 Output Channel5",
  3995. .info = msm_pcm_channel_weight_info,
  3996. .get = msm_pcm_channel_weight_get,
  3997. .put = msm_pcm_channel_weight_put,
  3998. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3999. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  4000. },
  4001. {
  4002. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4003. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4004. .name = "MultiMedia19 Output Channel6",
  4005. .info = msm_pcm_channel_weight_info,
  4006. .get = msm_pcm_channel_weight_get,
  4007. .put = msm_pcm_channel_weight_put,
  4008. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4009. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  4010. },
  4011. {
  4012. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4013. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4014. .name = "MultiMedia19 Output Channel7",
  4015. .info = msm_pcm_channel_weight_info,
  4016. .get = msm_pcm_channel_weight_get,
  4017. .put = msm_pcm_channel_weight_put,
  4018. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4019. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  4020. },
  4021. {
  4022. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4023. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4024. .name = "MultiMedia19 Output Channel8",
  4025. .info = msm_pcm_channel_weight_info,
  4026. .get = msm_pcm_channel_weight_get,
  4027. .put = msm_pcm_channel_weight_put,
  4028. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4029. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  4030. },
  4031. {
  4032. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4033. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4034. .name = "MultiMedia19 Output Channel9",
  4035. .info = msm_pcm_channel_weight_info,
  4036. .get = msm_pcm_channel_weight_get,
  4037. .put = msm_pcm_channel_weight_put,
  4038. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4039. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  4040. },
  4041. {
  4042. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4043. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4044. .name = "MultiMedia19 Output Channel10",
  4045. .info = msm_pcm_channel_weight_info,
  4046. .get = msm_pcm_channel_weight_get,
  4047. .put = msm_pcm_channel_weight_put,
  4048. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4049. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 9,}
  4050. },
  4051. {
  4052. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4053. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4054. .name = "MultiMedia19 Output Channel11",
  4055. .info = msm_pcm_channel_weight_info,
  4056. .get = msm_pcm_channel_weight_get,
  4057. .put = msm_pcm_channel_weight_put,
  4058. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4059. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 10,}
  4060. },
  4061. {
  4062. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4063. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4064. .name = "MultiMedia19 Output Channel12",
  4065. .info = msm_pcm_channel_weight_info,
  4066. .get = msm_pcm_channel_weight_get,
  4067. .put = msm_pcm_channel_weight_put,
  4068. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4069. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 11,}
  4070. },
  4071. {
  4072. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4073. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4074. .name = "MultiMedia19 Output Channel13",
  4075. .info = msm_pcm_channel_weight_info,
  4076. .get = msm_pcm_channel_weight_get,
  4077. .put = msm_pcm_channel_weight_put,
  4078. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4079. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 12,}
  4080. },
  4081. {
  4082. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4083. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4084. .name = "MultiMedia19 Output Channel14",
  4085. .info = msm_pcm_channel_weight_info,
  4086. .get = msm_pcm_channel_weight_get,
  4087. .put = msm_pcm_channel_weight_put,
  4088. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4089. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 13,}
  4090. },
  4091. {
  4092. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4093. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4094. .name = "MultiMedia28 Output Channel1",
  4095. .info = msm_pcm_channel_weight_info,
  4096. .get = msm_pcm_channel_weight_get,
  4097. .put = msm_pcm_channel_weight_put,
  4098. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4099. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 0,}
  4100. },
  4101. {
  4102. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4103. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4104. .name = "MultiMedia28 Output Channel2",
  4105. .info = msm_pcm_channel_weight_info,
  4106. .get = msm_pcm_channel_weight_get,
  4107. .put = msm_pcm_channel_weight_put,
  4108. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4109. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 1, }
  4110. },
  4111. {
  4112. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4113. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4114. .name = "MultiMedia28 Output Channel3",
  4115. .info = msm_pcm_channel_weight_info,
  4116. .get = msm_pcm_channel_weight_get,
  4117. .put = msm_pcm_channel_weight_put,
  4118. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4119. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 2,}
  4120. },
  4121. {
  4122. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4123. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4124. .name = "MultiMedia28 Output Channel4",
  4125. .info = msm_pcm_channel_weight_info,
  4126. .get = msm_pcm_channel_weight_get,
  4127. .put = msm_pcm_channel_weight_put,
  4128. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4129. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4130. },
  4131. {
  4132. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4133. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4134. .name = "MultiMedia28 Output Channel5",
  4135. .info = msm_pcm_channel_weight_info,
  4136. .get = msm_pcm_channel_weight_get,
  4137. .put = msm_pcm_channel_weight_put,
  4138. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4139. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4140. },
  4141. {
  4142. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4143. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4144. .name = "MultiMedia28 Output Channel6",
  4145. .info = msm_pcm_channel_weight_info,
  4146. .get = msm_pcm_channel_weight_get,
  4147. .put = msm_pcm_channel_weight_put,
  4148. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4149. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4150. },
  4151. {
  4152. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4153. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4154. .name = "MultiMedia28 Output Channel7",
  4155. .info = msm_pcm_channel_weight_info,
  4156. .get = msm_pcm_channel_weight_get,
  4157. .put = msm_pcm_channel_weight_put,
  4158. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4159. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4160. },
  4161. {
  4162. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4163. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4164. .name = "MultiMedia28 Output Channel8",
  4165. .info = msm_pcm_channel_weight_info,
  4166. .get = msm_pcm_channel_weight_get,
  4167. .put = msm_pcm_channel_weight_put,
  4168. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4169. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4170. },
  4171. {
  4172. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4173. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4174. .name = "MultiMedia28 Output Channel9",
  4175. .info = msm_pcm_channel_weight_info,
  4176. .get = msm_pcm_channel_weight_get,
  4177. .put = msm_pcm_channel_weight_put,
  4178. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4179. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4180. },
  4181. {
  4182. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4183. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4184. .name = "MultiMedia28 Output Channel10",
  4185. .info = msm_pcm_channel_weight_info,
  4186. .get = msm_pcm_channel_weight_get,
  4187. .put = msm_pcm_channel_weight_put,
  4188. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4189. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 9,}
  4190. },
  4191. {
  4192. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4193. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4194. .name = "MultiMedia28 Output Channel11",
  4195. .info = msm_pcm_channel_weight_info,
  4196. .get = msm_pcm_channel_weight_get,
  4197. .put = msm_pcm_channel_weight_put,
  4198. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4199. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 10,}
  4200. },
  4201. {
  4202. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4203. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4204. .name = "MultiMedia28 Output Channel12",
  4205. .info = msm_pcm_channel_weight_info,
  4206. .get = msm_pcm_channel_weight_get,
  4207. .put = msm_pcm_channel_weight_put,
  4208. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4209. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 11,}
  4210. },
  4211. {
  4212. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4213. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4214. .name = "MultiMedia28 Output Channel13",
  4215. .info = msm_pcm_channel_weight_info,
  4216. .get = msm_pcm_channel_weight_get,
  4217. .put = msm_pcm_channel_weight_put,
  4218. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4219. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 12,}
  4220. },
  4221. {
  4222. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4223. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4224. .name = "MultiMedia28 Output Channel14",
  4225. .info = msm_pcm_channel_weight_info,
  4226. .get = msm_pcm_channel_weight_get,
  4227. .put = msm_pcm_channel_weight_put,
  4228. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4229. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 13,}
  4230. },
  4231. {
  4232. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4233. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4234. .name = "MultiMedia29 Output Channel1",
  4235. .info = msm_pcm_channel_weight_info,
  4236. .get = msm_pcm_channel_weight_get,
  4237. .put = msm_pcm_channel_weight_put,
  4238. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4239. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 0,}
  4240. },
  4241. {
  4242. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4243. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4244. .name = "MultiMedia29 Output Channel2",
  4245. .info = msm_pcm_channel_weight_info,
  4246. .get = msm_pcm_channel_weight_get,
  4247. .put = msm_pcm_channel_weight_put,
  4248. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4249. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 1, }
  4250. },
  4251. {
  4252. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4253. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4254. .name = "MultiMedia29 Output Channel3",
  4255. .info = msm_pcm_channel_weight_info,
  4256. .get = msm_pcm_channel_weight_get,
  4257. .put = msm_pcm_channel_weight_put,
  4258. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4259. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 2,}
  4260. },
  4261. {
  4262. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4263. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4264. .name = "MultiMedia29 Output Channel4",
  4265. .info = msm_pcm_channel_weight_info,
  4266. .get = msm_pcm_channel_weight_get,
  4267. .put = msm_pcm_channel_weight_put,
  4268. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4269. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4270. },
  4271. {
  4272. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4273. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4274. .name = "MultiMedia29 Output Channel5",
  4275. .info = msm_pcm_channel_weight_info,
  4276. .get = msm_pcm_channel_weight_get,
  4277. .put = msm_pcm_channel_weight_put,
  4278. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4279. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4280. },
  4281. {
  4282. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4283. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4284. .name = "MultiMedia29 Output Channel6",
  4285. .info = msm_pcm_channel_weight_info,
  4286. .get = msm_pcm_channel_weight_get,
  4287. .put = msm_pcm_channel_weight_put,
  4288. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4289. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4290. },
  4291. {
  4292. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4293. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4294. .name = "MultiMedia29 Output Channel7",
  4295. .info = msm_pcm_channel_weight_info,
  4296. .get = msm_pcm_channel_weight_get,
  4297. .put = msm_pcm_channel_weight_put,
  4298. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4299. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4300. },
  4301. {
  4302. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4303. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4304. .name = "MultiMedia29 Output Channel8",
  4305. .info = msm_pcm_channel_weight_info,
  4306. .get = msm_pcm_channel_weight_get,
  4307. .put = msm_pcm_channel_weight_put,
  4308. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4309. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4310. },
  4311. {
  4312. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4313. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4314. .name = "MultiMedia29 Output Channel9",
  4315. .info = msm_pcm_channel_weight_info,
  4316. .get = msm_pcm_channel_weight_get,
  4317. .put = msm_pcm_channel_weight_put,
  4318. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4319. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4320. },
  4321. {
  4322. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4323. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4324. .name = "MultiMedia29 Output Channel10",
  4325. .info = msm_pcm_channel_weight_info,
  4326. .get = msm_pcm_channel_weight_get,
  4327. .put = msm_pcm_channel_weight_put,
  4328. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4329. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 9,}
  4330. },
  4331. {
  4332. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4333. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4334. .name = "MultiMedia29 Output Channel11",
  4335. .info = msm_pcm_channel_weight_info,
  4336. .get = msm_pcm_channel_weight_get,
  4337. .put = msm_pcm_channel_weight_put,
  4338. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4339. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 10,}
  4340. },
  4341. {
  4342. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4343. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4344. .name = "MultiMedia29 Output Channel12",
  4345. .info = msm_pcm_channel_weight_info,
  4346. .get = msm_pcm_channel_weight_get,
  4347. .put = msm_pcm_channel_weight_put,
  4348. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4349. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 11,}
  4350. },
  4351. {
  4352. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4353. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4354. .name = "MultiMedia29 Output Channel13",
  4355. .info = msm_pcm_channel_weight_info,
  4356. .get = msm_pcm_channel_weight_get,
  4357. .put = msm_pcm_channel_weight_put,
  4358. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4359. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 12,}
  4360. },
  4361. {
  4362. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4363. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4364. .name = "MultiMedia29 Output Channel14",
  4365. .info = msm_pcm_channel_weight_info,
  4366. .get = msm_pcm_channel_weight_get,
  4367. .put = msm_pcm_channel_weight_put,
  4368. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4369. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 13,}
  4370. },
  4371. {
  4372. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4373. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4374. .name = "MultiMedia30 Output Channel1",
  4375. .info = msm_pcm_channel_weight_info,
  4376. .get = msm_pcm_channel_weight_get,
  4377. .put = msm_pcm_channel_weight_put,
  4378. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4379. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 0,}
  4380. },
  4381. {
  4382. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4383. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4384. .name = "MultiMedia30 Output Channel2",
  4385. .info = msm_pcm_channel_weight_info,
  4386. .get = msm_pcm_channel_weight_get,
  4387. .put = msm_pcm_channel_weight_put,
  4388. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4389. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 1, }
  4390. },
  4391. {
  4392. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4393. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4394. .name = "MultiMedia30 Output Channel3",
  4395. .info = msm_pcm_channel_weight_info,
  4396. .get = msm_pcm_channel_weight_get,
  4397. .put = msm_pcm_channel_weight_put,
  4398. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4399. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 2,}
  4400. },
  4401. {
  4402. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4403. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4404. .name = "MultiMedia30 Output Channel4",
  4405. .info = msm_pcm_channel_weight_info,
  4406. .get = msm_pcm_channel_weight_get,
  4407. .put = msm_pcm_channel_weight_put,
  4408. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4409. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 3,}
  4410. },
  4411. {
  4412. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4413. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4414. .name = "MultiMedia30 Output Channel5",
  4415. .info = msm_pcm_channel_weight_info,
  4416. .get = msm_pcm_channel_weight_get,
  4417. .put = msm_pcm_channel_weight_put,
  4418. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4419. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 4,}
  4420. },
  4421. {
  4422. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4423. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4424. .name = "MultiMedia30 Output Channel6",
  4425. .info = msm_pcm_channel_weight_info,
  4426. .get = msm_pcm_channel_weight_get,
  4427. .put = msm_pcm_channel_weight_put,
  4428. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4429. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 5,}
  4430. },
  4431. {
  4432. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4433. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4434. .name = "MultiMedia30 Output Channel7",
  4435. .info = msm_pcm_channel_weight_info,
  4436. .get = msm_pcm_channel_weight_get,
  4437. .put = msm_pcm_channel_weight_put,
  4438. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4439. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 6,}
  4440. },
  4441. {
  4442. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4443. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4444. .name = "MultiMedia30 Output Channel8",
  4445. .info = msm_pcm_channel_weight_info,
  4446. .get = msm_pcm_channel_weight_get,
  4447. .put = msm_pcm_channel_weight_put,
  4448. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4449. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 7,}
  4450. },
  4451. {
  4452. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4453. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4454. .name = "MultiMedia30 Output Channel9",
  4455. .info = msm_pcm_channel_weight_info,
  4456. .get = msm_pcm_channel_weight_get,
  4457. .put = msm_pcm_channel_weight_put,
  4458. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4459. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 8,}
  4460. },
  4461. {
  4462. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4463. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4464. .name = "MultiMedia30 Output Channel10",
  4465. .info = msm_pcm_channel_weight_info,
  4466. .get = msm_pcm_channel_weight_get,
  4467. .put = msm_pcm_channel_weight_put,
  4468. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4469. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 9,}
  4470. },
  4471. {
  4472. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4473. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4474. .name = "MultiMedia30 Output Channel11",
  4475. .info = msm_pcm_channel_weight_info,
  4476. .get = msm_pcm_channel_weight_get,
  4477. .put = msm_pcm_channel_weight_put,
  4478. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4479. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 10,}
  4480. },
  4481. {
  4482. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4483. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4484. .name = "MultiMedia30 Output Channel12",
  4485. .info = msm_pcm_channel_weight_info,
  4486. .get = msm_pcm_channel_weight_get,
  4487. .put = msm_pcm_channel_weight_put,
  4488. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4489. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4490. },
  4491. {
  4492. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4493. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4494. .name = "MultiMedia30 Output Channel13",
  4495. .info = msm_pcm_channel_weight_info,
  4496. .get = msm_pcm_channel_weight_get,
  4497. .put = msm_pcm_channel_weight_put,
  4498. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4499. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4500. },
  4501. {
  4502. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4503. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4504. .name = "MultiMedia30 Output Channel14",
  4505. .info = msm_pcm_channel_weight_info,
  4506. .get = msm_pcm_channel_weight_get,
  4507. .put = msm_pcm_channel_weight_put,
  4508. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4509. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4510. },
  4511. {
  4512. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4513. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4514. .name = "MultiMedia1 Channel1",
  4515. .info = msm_pcm_channel_input_be_info,
  4516. .get = msm_pcm_channel_input_be_get,
  4517. .put = msm_pcm_channel_input_be_put,
  4518. .private_value = (unsigned long)&(mm1_ch1_enum)
  4519. },
  4520. {
  4521. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4522. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4523. .name = "MultiMedia1 Channel2",
  4524. .info = msm_pcm_channel_input_be_info,
  4525. .get = msm_pcm_channel_input_be_get,
  4526. .put = msm_pcm_channel_input_be_put,
  4527. .private_value = (unsigned long)&(mm1_ch2_enum)
  4528. },
  4529. {
  4530. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4531. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4532. .name = "MultiMedia1 Channel3",
  4533. .info = msm_pcm_channel_input_be_info,
  4534. .get = msm_pcm_channel_input_be_get,
  4535. .put = msm_pcm_channel_input_be_put,
  4536. .private_value = (unsigned long)&(mm1_ch3_enum)
  4537. },
  4538. {
  4539. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4540. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4541. .name = "MultiMedia1 Channel4",
  4542. .info = msm_pcm_channel_input_be_info,
  4543. .get = msm_pcm_channel_input_be_get,
  4544. .put = msm_pcm_channel_input_be_put,
  4545. .private_value = (unsigned long)&(mm1_ch4_enum)
  4546. },
  4547. {
  4548. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4549. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4550. .name = "MultiMedia1 Channel5",
  4551. .info = msm_pcm_channel_input_be_info,
  4552. .get = msm_pcm_channel_input_be_get,
  4553. .put = msm_pcm_channel_input_be_put,
  4554. .private_value = (unsigned long)&(mm1_ch5_enum)
  4555. },
  4556. {
  4557. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4558. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4559. .name = "MultiMedia1 Channel6",
  4560. .info = msm_pcm_channel_input_be_info,
  4561. .get = msm_pcm_channel_input_be_get,
  4562. .put = msm_pcm_channel_input_be_put,
  4563. .private_value = (unsigned long)&(mm1_ch6_enum)
  4564. },
  4565. {
  4566. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4567. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4568. .name = "MultiMedia1 Channel7",
  4569. .info = msm_pcm_channel_input_be_info,
  4570. .get = msm_pcm_channel_input_be_get,
  4571. .put = msm_pcm_channel_input_be_put,
  4572. .private_value = (unsigned long)&(mm1_ch7_enum)
  4573. },
  4574. {
  4575. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4576. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4577. .name = "MultiMedia1 Channel8",
  4578. .info = msm_pcm_channel_input_be_info,
  4579. .get = msm_pcm_channel_input_be_get,
  4580. .put = msm_pcm_channel_input_be_put,
  4581. .private_value = (unsigned long)&(mm1_ch8_enum)
  4582. },
  4583. {
  4584. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4585. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4586. .name = "MultiMedia18 Channel1",
  4587. .info = msm_pcm_channel_input_be_info,
  4588. .get = msm_pcm_channel_input_be_get,
  4589. .put = msm_pcm_channel_input_be_put,
  4590. .private_value = (unsigned long)&(mm18_ch1_enum)
  4591. },
  4592. {
  4593. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4594. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4595. .name = "MultiMedia18 Channel2",
  4596. .info = msm_pcm_channel_input_be_info,
  4597. .get = msm_pcm_channel_input_be_get,
  4598. .put = msm_pcm_channel_input_be_put,
  4599. .private_value = (unsigned long)&(mm18_ch2_enum)
  4600. },
  4601. {
  4602. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4603. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4604. .name = "MultiMedia19 Channel1",
  4605. .info = msm_pcm_channel_input_be_info,
  4606. .get = msm_pcm_channel_input_be_get,
  4607. .put = msm_pcm_channel_input_be_put,
  4608. .private_value = (unsigned long)&(mm19_ch1_enum)
  4609. },
  4610. {
  4611. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4612. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4613. .name = "MultiMedia19 Channel2",
  4614. .info = msm_pcm_channel_input_be_info,
  4615. .get = msm_pcm_channel_input_be_get,
  4616. .put = msm_pcm_channel_input_be_put,
  4617. .private_value = (unsigned long)&(mm19_ch2_enum)
  4618. },
  4619. {
  4620. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4621. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4622. .name = "MultiMedia28 Channel1",
  4623. .info = msm_pcm_channel_input_be_info,
  4624. .get = msm_pcm_channel_input_be_get,
  4625. .put = msm_pcm_channel_input_be_put,
  4626. .private_value = (unsigned long)&(mm28_ch1_enum)
  4627. },
  4628. {
  4629. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4630. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4631. .name = "MultiMedia28 Channel2",
  4632. .info = msm_pcm_channel_input_be_info,
  4633. .get = msm_pcm_channel_input_be_get,
  4634. .put = msm_pcm_channel_input_be_put,
  4635. .private_value = (unsigned long)&(mm28_ch2_enum)
  4636. },
  4637. {
  4638. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4639. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4640. .name = "MultiMedia29 Channel1",
  4641. .info = msm_pcm_channel_input_be_info,
  4642. .get = msm_pcm_channel_input_be_get,
  4643. .put = msm_pcm_channel_input_be_put,
  4644. .private_value = (unsigned long)&(mm29_ch1_enum)
  4645. },
  4646. {
  4647. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4648. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4649. .name = "MultiMedia29 Channel2",
  4650. .info = msm_pcm_channel_input_be_info,
  4651. .get = msm_pcm_channel_input_be_get,
  4652. .put = msm_pcm_channel_input_be_put,
  4653. .private_value = (unsigned long)&(mm29_ch2_enum)
  4654. },
  4655. {
  4656. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4657. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4658. .name = "MultiMedia30 Channel1",
  4659. .info = msm_pcm_channel_input_be_info,
  4660. .get = msm_pcm_channel_input_be_get,
  4661. .put = msm_pcm_channel_input_be_put,
  4662. .private_value = (unsigned long)&(mm30_ch1_enum)
  4663. },
  4664. {
  4665. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4666. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4667. .name = "MultiMedia30 Channel2",
  4668. .info = msm_pcm_channel_input_be_info,
  4669. .get = msm_pcm_channel_input_be_get,
  4670. .put = msm_pcm_channel_input_be_put,
  4671. .private_value = (unsigned long)&(mm30_ch2_enum)
  4672. },
  4673. {
  4674. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4675. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4676. .name = "MultiMedia1 Output Channel Map",
  4677. .info = msm_pcm_channel_output_map_info,
  4678. .get = msm_pcm_channel_output_map_get,
  4679. .put = msm_pcm_channel_output_map_put,
  4680. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4681. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4682. },
  4683. {
  4684. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4685. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4686. .name = "MultiMedia2 Output Channel Map",
  4687. .info = msm_pcm_channel_output_map_info,
  4688. .get = msm_pcm_channel_output_map_get,
  4689. .put = msm_pcm_channel_output_map_put,
  4690. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4691. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4692. },
  4693. {
  4694. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4695. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4696. .name = "MultiMedia3 Output Channel Map",
  4697. .info = msm_pcm_channel_output_map_info,
  4698. .get = msm_pcm_channel_output_map_get,
  4699. .put = msm_pcm_channel_output_map_put,
  4700. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4701. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4702. },
  4703. {
  4704. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4705. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4706. .name = "MultiMedia4 Output Channel Map",
  4707. .info = msm_pcm_channel_output_map_info,
  4708. .get = msm_pcm_channel_output_map_get,
  4709. .put = msm_pcm_channel_output_map_put,
  4710. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4711. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4712. },
  4713. {
  4714. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4715. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4716. .name = "MultiMedia5 Output Channel Map",
  4717. .info = msm_pcm_channel_output_map_info,
  4718. .get = msm_pcm_channel_output_map_get,
  4719. .put = msm_pcm_channel_output_map_put,
  4720. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4721. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4722. },
  4723. {
  4724. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4725. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4726. .name = "MultiMedia6 Output Channel Map",
  4727. .info = msm_pcm_channel_output_map_info,
  4728. .get = msm_pcm_channel_output_map_get,
  4729. .put = msm_pcm_channel_output_map_put,
  4730. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4731. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4732. },
  4733. {
  4734. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4735. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4736. .name = "MultiMedia18 Output Channel Map",
  4737. .info = msm_pcm_channel_output_map_info,
  4738. .get = msm_pcm_channel_output_map_get,
  4739. .put = msm_pcm_channel_output_map_put,
  4740. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4741. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4742. },
  4743. {
  4744. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4745. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4746. .name = "MultiMedia19 Output Channel Map",
  4747. .info = msm_pcm_channel_output_map_info,
  4748. .get = msm_pcm_channel_output_map_get,
  4749. .put = msm_pcm_channel_output_map_put,
  4750. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4751. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4752. },
  4753. {
  4754. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4755. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4756. .name = "MultiMedia28 Output Channel Map",
  4757. .info = msm_pcm_channel_output_map_info,
  4758. .get = msm_pcm_channel_output_map_get,
  4759. .put = msm_pcm_channel_output_map_put,
  4760. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4761. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4762. },
  4763. {
  4764. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4765. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4766. .name = "MultiMedia29 Output Channel Map",
  4767. .info = msm_pcm_channel_output_map_info,
  4768. .get = msm_pcm_channel_output_map_get,
  4769. .put = msm_pcm_channel_output_map_put,
  4770. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4771. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4772. },
  4773. {
  4774. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4775. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4776. .name = "MultiMedia30 Output Channel Map",
  4777. .info = msm_pcm_channel_output_map_info,
  4778. .get = msm_pcm_channel_output_map_get,
  4779. .put = msm_pcm_channel_output_map_put,
  4780. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4781. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4782. },
  4783. };
  4784. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4785. struct snd_ctl_elem_value *ucontrol)
  4786. {
  4787. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4788. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4789. ucontrol->value.integer.value[0]);
  4790. return 0;
  4791. }
  4792. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4793. struct snd_ctl_elem_value *ucontrol)
  4794. {
  4795. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4796. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4797. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4798. return 0;
  4799. }
  4800. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4801. struct snd_ctl_elem_value *ucontrol)
  4802. {
  4803. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4804. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4805. ucontrol->value.integer.value[0]);
  4806. return 0;
  4807. }
  4808. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4809. struct snd_ctl_elem_value *ucontrol)
  4810. {
  4811. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4812. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4813. __func__, msm_ec_ref_ch_downmixed);
  4814. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4815. return 0;
  4816. }
  4817. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4818. struct snd_ctl_elem_value *ucontrol)
  4819. {
  4820. int i = 0, ret = 0;
  4821. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4822. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4823. kcontrol->private_value)->shift;
  4824. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4825. weights[i] = ucontrol->value.integer.value[i];
  4826. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  4827. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  4828. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  4829. return ret;
  4830. }
  4831. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  4832. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  4833. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  4834. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  4835. struct snd_ctl_elem_value *ucontrol)
  4836. {
  4837. switch (msm_ec_ref_bit_format) {
  4838. case SNDRV_PCM_FORMAT_S24_LE:
  4839. ucontrol->value.integer.value[0] = 2;
  4840. break;
  4841. case SNDRV_PCM_FORMAT_S16_LE:
  4842. ucontrol->value.integer.value[0] = 1;
  4843. break;
  4844. default:
  4845. ucontrol->value.integer.value[0] = 0;
  4846. break;
  4847. }
  4848. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  4849. __func__, ucontrol->value.integer.value[0]);
  4850. return 0;
  4851. }
  4852. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  4853. struct snd_ctl_elem_value *ucontrol)
  4854. {
  4855. u16 bit_width = 0;
  4856. switch (ucontrol->value.integer.value[0]) {
  4857. case 2:
  4858. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  4859. break;
  4860. case 1:
  4861. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  4862. break;
  4863. default:
  4864. msm_ec_ref_bit_format = 0;
  4865. break;
  4866. }
  4867. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  4868. bit_width = 16;
  4869. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  4870. bit_width = 24;
  4871. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  4872. __func__, msm_ec_ref_bit_format);
  4873. adm_ec_ref_rx_bit_width(bit_width);
  4874. return 0;
  4875. }
  4876. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  4877. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  4878. struct snd_ctl_elem_value *ucontrol)
  4879. {
  4880. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  4881. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  4882. __func__, ucontrol->value.integer.value[0]);
  4883. return 0;
  4884. }
  4885. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  4886. struct snd_ctl_elem_value *ucontrol)
  4887. {
  4888. switch (ucontrol->value.integer.value[0]) {
  4889. case 0:
  4890. msm_ec_ref_sampling_rate = 0;
  4891. break;
  4892. case 1:
  4893. msm_ec_ref_sampling_rate = 8000;
  4894. break;
  4895. case 2:
  4896. msm_ec_ref_sampling_rate = 16000;
  4897. break;
  4898. case 3:
  4899. msm_ec_ref_sampling_rate = 32000;
  4900. break;
  4901. case 4:
  4902. msm_ec_ref_sampling_rate = 44100;
  4903. break;
  4904. case 5:
  4905. msm_ec_ref_sampling_rate = 48000;
  4906. break;
  4907. case 6:
  4908. msm_ec_ref_sampling_rate = 96000;
  4909. break;
  4910. case 7:
  4911. msm_ec_ref_sampling_rate = 192000;
  4912. break;
  4913. case 8:
  4914. msm_ec_ref_sampling_rate = 384000;
  4915. break;
  4916. default:
  4917. msm_ec_ref_sampling_rate = 48000;
  4918. break;
  4919. }
  4920. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  4921. __func__, msm_ec_ref_sampling_rate);
  4922. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  4923. return 0;
  4924. }
  4925. static int get_ec_ref_port_id(int value, int *index)
  4926. {
  4927. int port_id;
  4928. switch (value) {
  4929. case 0:
  4930. *index = 0;
  4931. port_id = AFE_PORT_INVALID;
  4932. break;
  4933. case 1:
  4934. *index = 1;
  4935. port_id = SLIMBUS_0_RX;
  4936. break;
  4937. case 2:
  4938. *index = 2;
  4939. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  4940. break;
  4941. case 3:
  4942. *index = 3;
  4943. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4944. break;
  4945. case 4:
  4946. *index = 4;
  4947. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4948. break;
  4949. case 5:
  4950. *index = 5;
  4951. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4952. break;
  4953. case 6:
  4954. *index = 6;
  4955. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4956. break;
  4957. case 7:
  4958. *index = 7;
  4959. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  4960. break;
  4961. case 9:
  4962. *index = 9;
  4963. port_id = SLIMBUS_5_RX;
  4964. break;
  4965. case 10:
  4966. *index = 10;
  4967. port_id = SLIMBUS_1_TX;
  4968. break;
  4969. case 11:
  4970. *index = 11;
  4971. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  4972. break;
  4973. case 12:
  4974. *index = 12;
  4975. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  4976. break;
  4977. case 13:
  4978. *index = 13;
  4979. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  4980. break;
  4981. case 14:
  4982. *index = 14;
  4983. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  4984. break;
  4985. case 15:
  4986. *index = 15;
  4987. port_id = SLIMBUS_6_RX;
  4988. break;
  4989. case 16:
  4990. *index = 16;
  4991. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  4992. break;
  4993. case 17:
  4994. *index = 17;
  4995. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  4996. break;
  4997. case 18:
  4998. *index = 18;
  4999. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  5000. break;
  5001. case 19:
  5002. *index = 19;
  5003. port_id = AFE_PORT_ID_USB_RX;
  5004. break;
  5005. case 20:
  5006. *index = 20;
  5007. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  5008. break;
  5009. case 21:
  5010. *index = 21;
  5011. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  5012. break;
  5013. case 22:
  5014. *index = 22;
  5015. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  5016. break;
  5017. case 23:
  5018. *index = 23;
  5019. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5020. break;
  5021. case 24:
  5022. *index = 24;
  5023. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  5024. break;
  5025. case 25:
  5026. *index = 25;
  5027. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  5028. break;
  5029. case 26:
  5030. *index = 26;
  5031. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  5032. break;
  5033. case 27:
  5034. *index = 27;
  5035. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  5036. break;
  5037. case 28:
  5038. *index = 28;
  5039. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  5040. break;
  5041. case 29:
  5042. *index = 29;
  5043. port_id = SLIMBUS_7_RX;
  5044. break;
  5045. case 30:
  5046. *index = 30;
  5047. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  5048. break;
  5049. case 31:
  5050. *index = 31;
  5051. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  5052. break;
  5053. case 32:
  5054. *index = 32;
  5055. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  5056. break;
  5057. case 33:
  5058. *index = 33;
  5059. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  5060. break;
  5061. case 34:
  5062. *index = 34;
  5063. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  5064. break;
  5065. case 35:
  5066. *index = 35;
  5067. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  5068. break;
  5069. case 36:
  5070. *index = 36;
  5071. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5072. break;
  5073. case 37:
  5074. *index = 37;
  5075. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5076. break;
  5077. case 38:
  5078. *index = 38;
  5079. port_id = AFE_PORT_ID_SENARY_MI2S_RX;
  5080. break;
  5081. case 39:
  5082. *index = 39;
  5083. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  5084. break;
  5085. case 40:
  5086. *index = 40;
  5087. port_id = AFE_PORT_ID_SENARY_MI2S_TX;
  5088. break;
  5089. default:
  5090. *index = 0; /* NONE */
  5091. pr_err("%s: Invalid value %d\n", __func__, value);
  5092. port_id = AFE_PORT_INVALID;
  5093. break;
  5094. }
  5095. return port_id;
  5096. }
  5097. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5098. struct snd_ctl_elem_value *ucontrol)
  5099. {
  5100. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5101. mutex_lock(&routing_lock);
  5102. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5103. mutex_unlock(&routing_lock);
  5104. return 0;
  5105. }
  5106. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5107. struct snd_ctl_elem_value *ucontrol)
  5108. {
  5109. int value = ucontrol->value.integer.value[0];
  5110. mutex_lock(&routing_lock);
  5111. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5112. &afe_loopback_tx_port_index);
  5113. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5114. __func__, afe_loopback_tx_port_index);
  5115. mutex_unlock(&routing_lock);
  5116. return 0;
  5117. }
  5118. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5119. "32000", "44100", "48000", "96000", "192000", "384000"};
  5120. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5121. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5122. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5123. ec_ref_bit_format_text),
  5124. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5125. };
  5126. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5127. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5128. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5129. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5130. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5131. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5132. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5133. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5134. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5135. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5136. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5137. "DISPLAY_PORT1", "SEN_MI2S_RX", "QUIN_TDM_TX_0", "SENARY_MI2S_TX",
  5138. };
  5139. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5140. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5141. };
  5142. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5143. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5144. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5145. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5146. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5147. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5148. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5149. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5150. msm_route_ec_ref_params_enum[0],
  5151. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5152. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5153. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5154. msm_ec_ref_chmixer_weights_put),
  5155. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5156. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5157. msm_ec_ref_chmixer_weights_put),
  5158. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5159. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5160. msm_ec_ref_chmixer_weights_put),
  5161. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5162. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5163. msm_ec_ref_chmixer_weights_put),
  5164. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5165. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5166. msm_ec_ref_chmixer_weights_put),
  5167. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5168. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5169. msm_ec_ref_chmixer_weights_put),
  5170. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch7", SND_SOC_NOPM,
  5171. 6, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5172. msm_ec_ref_chmixer_weights_put),
  5173. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch8", SND_SOC_NOPM,
  5174. 7, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5175. msm_ec_ref_chmixer_weights_put),
  5176. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5177. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5178. };
  5179. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5180. struct snd_ctl_elem_value *ucontrol)
  5181. {
  5182. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5183. mutex_lock(&routing_lock);
  5184. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5185. mutex_unlock(&routing_lock);
  5186. return 0;
  5187. }
  5188. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5189. struct snd_ctl_elem_value *ucontrol)
  5190. {
  5191. int value = ucontrol->value.integer.value[0];
  5192. struct snd_soc_dapm_widget *widget =
  5193. snd_soc_dapm_kcontrol_widget(kcontrol);
  5194. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5195. struct snd_soc_dapm_update *update = NULL;
  5196. mutex_lock(&routing_lock);
  5197. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5198. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5199. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5200. __func__, msm_route_ec_ref_rx);
  5201. mutex_unlock(&routing_lock);
  5202. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5203. msm_route_ec_ref_rx, e, update);
  5204. return 0;
  5205. }
  5206. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5207. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5208. msm_route_ec_ref_rx_enum[0],
  5209. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5210. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5211. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5212. msm_route_ec_ref_rx_enum[0],
  5213. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5214. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5215. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5216. msm_route_ec_ref_rx_enum[0],
  5217. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5218. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5219. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5220. msm_route_ec_ref_rx_enum[0],
  5221. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5222. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5223. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5224. msm_route_ec_ref_rx_enum[0],
  5225. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5226. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5227. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5228. msm_route_ec_ref_rx_enum[0],
  5229. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5230. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5231. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5232. msm_route_ec_ref_rx_enum[0],
  5233. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5234. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5235. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5236. msm_route_ec_ref_rx_enum[0],
  5237. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5238. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5239. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5240. msm_route_ec_ref_rx_enum[0],
  5241. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5242. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5243. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5244. msm_route_ec_ref_rx_enum[0],
  5245. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5246. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5247. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5248. msm_route_ec_ref_rx_enum[0],
  5249. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5250. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5251. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5252. msm_route_ec_ref_rx_enum[0],
  5253. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5254. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5255. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5256. msm_route_ec_ref_rx_enum[0],
  5257. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5258. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5259. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5260. msm_route_ec_ref_rx_enum[0],
  5261. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5262. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5263. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5264. msm_route_ec_ref_rx_enum[0],
  5265. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5266. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5267. struct snd_ctl_elem_value *ucontrol)
  5268. {
  5269. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5270. mutex_lock(&routing_lock);
  5271. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5272. mutex_unlock(&routing_lock);
  5273. return 0;
  5274. }
  5275. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5276. struct snd_ctl_elem_value *ucontrol)
  5277. {
  5278. struct snd_soc_dapm_widget *widget =
  5279. snd_soc_dapm_kcontrol_widget(kcontrol);
  5280. int mux = ucontrol->value.enumerated.item[0];
  5281. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5282. int ret = 1;
  5283. bool state = true;
  5284. uint16_t ext_ec_ref_port_id;
  5285. struct snd_soc_dapm_update *update = NULL;
  5286. if (mux >= e->items) {
  5287. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5288. return -EINVAL;
  5289. }
  5290. mutex_lock(&routing_lock);
  5291. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5292. switch (msm_route_ext_ec_ref) {
  5293. case EXT_EC_REF_PRI_MI2S_TX:
  5294. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5295. break;
  5296. case EXT_EC_REF_SEC_MI2S_TX:
  5297. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5298. break;
  5299. case EXT_EC_REF_TERT_MI2S_TX:
  5300. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5301. break;
  5302. case EXT_EC_REF_QUAT_MI2S_TX:
  5303. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5304. break;
  5305. case EXT_EC_REF_QUIN_MI2S_TX:
  5306. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5307. break;
  5308. case EXT_EC_REF_SLIM_1_TX:
  5309. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5310. break;
  5311. case EXT_EC_REF_PRI_TDM_TX:
  5312. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5313. break;
  5314. case EXT_EC_REF_SEC_TDM_TX:
  5315. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5316. break;
  5317. case EXT_EC_REF_NONE:
  5318. default:
  5319. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5320. state = false;
  5321. break;
  5322. }
  5323. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5324. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5325. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5326. mutex_unlock(&routing_lock);
  5327. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5328. update);
  5329. } else {
  5330. ret = -EINVAL;
  5331. mutex_unlock(&routing_lock);
  5332. }
  5333. return ret;
  5334. }
  5335. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5336. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5337. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5338. "SLIM_1_TX", "PRI_TDM_TX",
  5339. "SEC_TDM_TX", "SENARY_MI2S_TX"};
  5340. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5341. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5342. };
  5343. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5344. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5345. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5346. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5347. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5348. MSM_BACKEND_DAI_PRI_I2S_RX,
  5349. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5350. msm_routing_put_audio_mixer),
  5351. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5352. MSM_BACKEND_DAI_PRI_I2S_RX,
  5353. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5354. msm_routing_put_audio_mixer),
  5355. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5356. MSM_BACKEND_DAI_PRI_I2S_RX,
  5357. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5358. msm_routing_put_audio_mixer),
  5359. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5360. MSM_BACKEND_DAI_PRI_I2S_RX,
  5361. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5362. msm_routing_put_audio_mixer),
  5363. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5364. MSM_BACKEND_DAI_PRI_I2S_RX,
  5365. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5366. msm_routing_put_audio_mixer),
  5367. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5368. MSM_BACKEND_DAI_PRI_I2S_RX,
  5369. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5370. msm_routing_put_audio_mixer),
  5371. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5372. MSM_BACKEND_DAI_PRI_I2S_RX,
  5373. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5374. msm_routing_put_audio_mixer),
  5375. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5376. MSM_BACKEND_DAI_PRI_I2S_RX,
  5377. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5378. msm_routing_put_audio_mixer),
  5379. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5380. MSM_BACKEND_DAI_PRI_I2S_RX,
  5381. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5382. msm_routing_put_audio_mixer),
  5383. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5384. MSM_BACKEND_DAI_PRI_I2S_RX,
  5385. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5386. msm_routing_put_audio_mixer),
  5387. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5388. MSM_BACKEND_DAI_PRI_I2S_RX,
  5389. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5390. msm_routing_put_audio_mixer),
  5391. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5392. MSM_BACKEND_DAI_PRI_I2S_RX,
  5393. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5394. msm_routing_put_audio_mixer),
  5395. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5396. MSM_BACKEND_DAI_PRI_I2S_RX,
  5397. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5398. msm_routing_put_audio_mixer),
  5399. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5400. MSM_BACKEND_DAI_PRI_I2S_RX,
  5401. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5402. msm_routing_put_audio_mixer),
  5403. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5404. MSM_BACKEND_DAI_PRI_I2S_RX,
  5405. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5406. msm_routing_put_audio_mixer),
  5407. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5408. MSM_BACKEND_DAI_PRI_I2S_RX,
  5409. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5410. msm_routing_put_audio_mixer),
  5411. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5412. MSM_BACKEND_DAI_PRI_I2S_RX,
  5413. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5414. msm_routing_put_audio_mixer),
  5415. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5416. MSM_BACKEND_DAI_PRI_I2S_RX,
  5417. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5418. msm_routing_put_audio_mixer),
  5419. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5420. MSM_BACKEND_DAI_PRI_I2S_RX,
  5421. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5422. msm_routing_put_audio_mixer),
  5423. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5424. MSM_BACKEND_DAI_PRI_I2S_RX,
  5425. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5426. msm_routing_put_audio_mixer),
  5427. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5428. MSM_BACKEND_DAI_PRI_I2S_RX,
  5429. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5430. msm_routing_put_audio_mixer),
  5431. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5432. MSM_BACKEND_DAI_PRI_I2S_RX,
  5433. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5434. msm_routing_put_audio_mixer),
  5435. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5436. MSM_BACKEND_DAI_PRI_I2S_RX,
  5437. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5438. msm_routing_put_audio_mixer),
  5439. };
  5440. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5441. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5442. MSM_BACKEND_DAI_SEC_I2S_RX,
  5443. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5444. msm_routing_put_audio_mixer),
  5445. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5446. MSM_BACKEND_DAI_SEC_I2S_RX,
  5447. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5448. msm_routing_put_audio_mixer),
  5449. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5450. MSM_BACKEND_DAI_SEC_I2S_RX,
  5451. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5452. msm_routing_put_audio_mixer),
  5453. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5454. MSM_BACKEND_DAI_SEC_I2S_RX,
  5455. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5456. msm_routing_put_audio_mixer),
  5457. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5458. MSM_BACKEND_DAI_SEC_I2S_RX,
  5459. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5460. msm_routing_put_audio_mixer),
  5461. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5462. MSM_BACKEND_DAI_SEC_I2S_RX,
  5463. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5464. msm_routing_put_audio_mixer),
  5465. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5466. MSM_BACKEND_DAI_SEC_I2S_RX,
  5467. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5468. msm_routing_put_audio_mixer),
  5469. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5470. MSM_BACKEND_DAI_SEC_I2S_RX,
  5471. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5472. msm_routing_put_audio_mixer),
  5473. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5474. MSM_BACKEND_DAI_SEC_I2S_RX,
  5475. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5476. msm_routing_put_audio_mixer),
  5477. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5478. MSM_BACKEND_DAI_SEC_I2S_RX,
  5479. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5480. msm_routing_put_audio_mixer),
  5481. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5482. MSM_BACKEND_DAI_SEC_I2S_RX,
  5483. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5484. msm_routing_put_audio_mixer),
  5485. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5486. MSM_BACKEND_DAI_SEC_I2S_RX,
  5487. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5488. msm_routing_put_audio_mixer),
  5489. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5490. MSM_BACKEND_DAI_SEC_I2S_RX,
  5491. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5492. msm_routing_put_audio_mixer),
  5493. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5494. MSM_BACKEND_DAI_SEC_I2S_RX,
  5495. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5496. msm_routing_put_audio_mixer),
  5497. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5498. MSM_BACKEND_DAI_SEC_I2S_RX,
  5499. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5500. msm_routing_put_audio_mixer),
  5501. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5502. MSM_BACKEND_DAI_SEC_I2S_RX,
  5503. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5504. msm_routing_put_audio_mixer),
  5505. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5506. MSM_BACKEND_DAI_SEC_I2S_RX,
  5507. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5508. msm_routing_put_audio_mixer),
  5509. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5510. MSM_BACKEND_DAI_SEC_I2S_RX,
  5511. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5512. msm_routing_put_audio_mixer),
  5513. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5514. MSM_BACKEND_DAI_SEC_I2S_RX,
  5515. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5516. msm_routing_put_audio_mixer),
  5517. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5518. MSM_BACKEND_DAI_SEC_I2S_RX,
  5519. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5520. msm_routing_put_audio_mixer),
  5521. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5522. MSM_BACKEND_DAI_SEC_I2S_RX,
  5523. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5524. msm_routing_put_audio_mixer),
  5525. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5526. MSM_BACKEND_DAI_SEC_I2S_RX,
  5527. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5528. msm_routing_put_audio_mixer),
  5529. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5530. MSM_BACKEND_DAI_SEC_I2S_RX,
  5531. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5532. msm_routing_put_audio_mixer),
  5533. };
  5534. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5535. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5536. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5537. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5538. msm_routing_put_audio_mixer),
  5539. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5540. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5541. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5542. msm_routing_put_audio_mixer),
  5543. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5544. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5545. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5546. msm_routing_put_audio_mixer),
  5547. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5548. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5549. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5550. msm_routing_put_audio_mixer),
  5551. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5552. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5553. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5554. msm_routing_put_audio_mixer),
  5555. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5556. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5557. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5558. msm_routing_put_audio_mixer),
  5559. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5560. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5561. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5562. msm_routing_put_audio_mixer),
  5563. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5564. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5565. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5566. msm_routing_put_audio_mixer),
  5567. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5568. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5569. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5570. msm_routing_put_audio_mixer),
  5571. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5572. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5573. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5574. msm_routing_put_audio_mixer),
  5575. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5576. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5577. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5578. msm_routing_put_audio_mixer),
  5579. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5580. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5581. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5582. msm_routing_put_audio_mixer),
  5583. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5584. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5585. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5586. msm_routing_put_audio_mixer),
  5587. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5588. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5589. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5590. msm_routing_put_audio_mixer),
  5591. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5592. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5593. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5594. msm_routing_put_audio_mixer),
  5595. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5596. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5597. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5598. msm_routing_put_audio_mixer),
  5599. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5600. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5601. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5602. msm_routing_put_audio_mixer),
  5603. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5604. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5605. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5606. msm_routing_put_audio_mixer),
  5607. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5608. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5609. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5610. msm_routing_put_audio_mixer),
  5611. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5612. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5613. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5614. msm_routing_put_audio_mixer),
  5615. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5616. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5617. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5618. msm_routing_put_audio_mixer),
  5619. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5620. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5621. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5622. msm_routing_put_audio_mixer),
  5623. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5624. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5625. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5626. msm_routing_put_audio_mixer),
  5627. };
  5628. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5629. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5630. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5631. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5632. msm_routing_put_audio_mixer),
  5633. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5634. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5635. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5636. msm_routing_put_audio_mixer),
  5637. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5638. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5639. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5640. msm_routing_put_audio_mixer),
  5641. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5642. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5643. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5644. msm_routing_put_audio_mixer),
  5645. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5646. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5647. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5648. msm_routing_put_audio_mixer),
  5649. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5650. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5651. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5652. msm_routing_put_audio_mixer),
  5653. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5654. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5655. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5656. msm_routing_put_audio_mixer),
  5657. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5658. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5659. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5660. msm_routing_put_audio_mixer),
  5661. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5662. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5663. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5664. msm_routing_put_audio_mixer),
  5665. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5666. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5667. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5668. msm_routing_put_audio_mixer),
  5669. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5670. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5671. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5672. msm_routing_put_audio_mixer),
  5673. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5674. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5675. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5676. msm_routing_put_audio_mixer),
  5677. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5678. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5679. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5680. msm_routing_put_audio_mixer),
  5681. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5682. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5683. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5684. msm_routing_put_audio_mixer),
  5685. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5686. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5687. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5688. msm_routing_put_audio_mixer),
  5689. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5690. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5691. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5692. msm_routing_put_audio_mixer),
  5693. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5694. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5695. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5696. msm_routing_put_audio_mixer),
  5697. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5698. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5699. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5700. msm_routing_put_audio_mixer),
  5701. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5702. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5703. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5704. msm_routing_put_audio_mixer),
  5705. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5706. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5707. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5708. msm_routing_put_audio_mixer),
  5709. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5710. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5711. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5712. msm_routing_put_audio_mixer),
  5713. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5714. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5715. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5716. msm_routing_put_audio_mixer),
  5717. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5718. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5719. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5720. msm_routing_put_audio_mixer),
  5721. };
  5722. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5723. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5724. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5725. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5726. msm_routing_put_audio_mixer),
  5727. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5728. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5729. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5730. msm_routing_put_audio_mixer),
  5731. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5732. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5733. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5734. msm_routing_put_audio_mixer),
  5735. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5736. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5737. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5738. msm_routing_put_audio_mixer),
  5739. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5740. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5741. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5742. msm_routing_put_audio_mixer),
  5743. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5744. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5745. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5746. msm_routing_put_audio_mixer),
  5747. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5748. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5749. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5750. msm_routing_put_audio_mixer),
  5751. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5752. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5753. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5754. msm_routing_put_audio_mixer),
  5755. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5756. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5757. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5758. msm_routing_put_audio_mixer),
  5759. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5760. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5761. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5762. msm_routing_put_audio_mixer),
  5763. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5764. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5765. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5766. msm_routing_put_audio_mixer),
  5767. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5768. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5769. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5770. msm_routing_put_audio_mixer),
  5771. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5772. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5773. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5774. msm_routing_put_audio_mixer),
  5775. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5776. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5777. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5778. msm_routing_put_audio_mixer),
  5779. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5780. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5781. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5782. msm_routing_put_audio_mixer),
  5783. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5784. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5785. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5786. msm_routing_put_audio_mixer),
  5787. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5788. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5789. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5790. msm_routing_put_audio_mixer),
  5791. };
  5792. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5793. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5794. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5795. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5796. msm_routing_put_audio_mixer),
  5797. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5798. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5799. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5800. msm_routing_put_audio_mixer),
  5801. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5802. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5803. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5804. msm_routing_put_audio_mixer),
  5805. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5806. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5807. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5808. msm_routing_put_audio_mixer),
  5809. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5810. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5811. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5812. msm_routing_put_audio_mixer),
  5813. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5814. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5815. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5816. msm_routing_put_audio_mixer),
  5817. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5818. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5819. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5820. msm_routing_put_audio_mixer),
  5821. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5822. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5823. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5824. msm_routing_put_audio_mixer),
  5825. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5826. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5827. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5828. msm_routing_put_audio_mixer),
  5829. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5830. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5831. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5832. msm_routing_put_audio_mixer),
  5833. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5834. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5835. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5836. msm_routing_put_audio_mixer),
  5837. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5838. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5839. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5840. msm_routing_put_audio_mixer),
  5841. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5842. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5843. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5844. msm_routing_put_audio_mixer),
  5845. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5846. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5847. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5848. msm_routing_put_audio_mixer),
  5849. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5850. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5851. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5852. msm_routing_put_audio_mixer),
  5853. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5854. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5855. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5856. msm_routing_put_audio_mixer),
  5857. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5858. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5859. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5860. msm_routing_put_audio_mixer),
  5861. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5862. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5863. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5864. msm_routing_put_audio_mixer),
  5865. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5866. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5867. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5868. msm_routing_put_audio_mixer),
  5869. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5870. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5871. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5872. msm_routing_put_audio_mixer),
  5873. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5874. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5875. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5876. msm_routing_put_audio_mixer),
  5877. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5878. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5879. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5880. msm_routing_put_audio_mixer),
  5881. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5882. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5883. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5884. msm_routing_put_audio_mixer),
  5885. };
  5886. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5887. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5888. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5889. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5890. msm_routing_put_audio_mixer),
  5891. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5892. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5893. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5894. msm_routing_put_audio_mixer),
  5895. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5896. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5897. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5898. msm_routing_put_audio_mixer),
  5899. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5900. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5901. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5902. msm_routing_put_audio_mixer),
  5903. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5904. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5905. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5906. msm_routing_put_audio_mixer),
  5907. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5908. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5909. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5910. msm_routing_put_audio_mixer),
  5911. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5912. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5913. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5914. msm_routing_put_audio_mixer),
  5915. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5916. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5917. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5918. msm_routing_put_audio_mixer),
  5919. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5920. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5921. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5922. msm_routing_put_audio_mixer),
  5923. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5924. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5925. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5926. msm_routing_put_audio_mixer),
  5927. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5928. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5929. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5930. msm_routing_put_audio_mixer),
  5931. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5932. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5933. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5934. msm_routing_put_audio_mixer),
  5935. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5936. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5937. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5938. msm_routing_put_audio_mixer),
  5939. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5940. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5941. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5942. msm_routing_put_audio_mixer),
  5943. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5944. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5945. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5946. msm_routing_put_audio_mixer),
  5947. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5948. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5949. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5950. msm_routing_put_audio_mixer),
  5951. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5952. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5953. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5954. msm_routing_put_audio_mixer),
  5955. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5956. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5957. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5958. msm_routing_put_audio_mixer),
  5959. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5960. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5961. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5962. msm_routing_put_audio_mixer),
  5963. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5964. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5965. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5966. msm_routing_put_audio_mixer),
  5967. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5968. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5969. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5970. msm_routing_put_audio_mixer),
  5971. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5972. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5973. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5974. msm_routing_put_audio_mixer),
  5975. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5976. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5977. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5978. msm_routing_put_audio_mixer),
  5979. };
  5980. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  5981. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5982. MSM_BACKEND_DAI_MI2S_RX,
  5983. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5984. msm_routing_put_audio_mixer),
  5985. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5986. MSM_BACKEND_DAI_MI2S_RX,
  5987. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5988. msm_routing_put_audio_mixer),
  5989. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5990. MSM_BACKEND_DAI_MI2S_RX,
  5991. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5992. msm_routing_put_audio_mixer),
  5993. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5994. MSM_BACKEND_DAI_MI2S_RX,
  5995. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5996. msm_routing_put_audio_mixer),
  5997. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5998. MSM_BACKEND_DAI_MI2S_RX,
  5999. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6000. msm_routing_put_audio_mixer),
  6001. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6002. MSM_BACKEND_DAI_MI2S_RX,
  6003. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6004. msm_routing_put_audio_mixer),
  6005. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6006. MSM_BACKEND_DAI_MI2S_RX,
  6007. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6008. msm_routing_put_audio_mixer),
  6009. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6010. MSM_BACKEND_DAI_MI2S_RX,
  6011. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6012. msm_routing_put_audio_mixer),
  6013. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6014. MSM_BACKEND_DAI_MI2S_RX,
  6015. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6016. msm_routing_put_audio_mixer),
  6017. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6018. MSM_BACKEND_DAI_MI2S_RX,
  6019. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6020. msm_routing_put_audio_mixer),
  6021. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6022. MSM_BACKEND_DAI_MI2S_RX,
  6023. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6024. msm_routing_put_audio_mixer),
  6025. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6026. MSM_BACKEND_DAI_MI2S_RX,
  6027. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6028. msm_routing_put_audio_mixer),
  6029. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6030. MSM_BACKEND_DAI_MI2S_RX,
  6031. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6032. msm_routing_put_audio_mixer),
  6033. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6034. MSM_BACKEND_DAI_MI2S_RX,
  6035. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6036. msm_routing_put_audio_mixer),
  6037. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6038. MSM_BACKEND_DAI_MI2S_RX,
  6039. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6040. msm_routing_put_audio_mixer),
  6041. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6042. MSM_BACKEND_DAI_MI2S_RX,
  6043. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6044. msm_routing_put_audio_mixer),
  6045. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6046. MSM_BACKEND_DAI_MI2S_RX,
  6047. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6048. msm_routing_put_audio_mixer),
  6049. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6050. MSM_BACKEND_DAI_MI2S_RX,
  6051. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6052. msm_routing_put_audio_mixer),
  6053. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6054. MSM_BACKEND_DAI_MI2S_RX,
  6055. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6056. msm_routing_put_audio_mixer),
  6057. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6058. MSM_BACKEND_DAI_MI2S_RX,
  6059. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6060. msm_routing_put_audio_mixer),
  6061. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6062. MSM_BACKEND_DAI_MI2S_RX,
  6063. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6064. msm_routing_put_audio_mixer),
  6065. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6066. MSM_BACKEND_DAI_MI2S_RX,
  6067. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6068. msm_routing_put_audio_mixer),
  6069. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6070. MSM_BACKEND_DAI_MI2S_RX,
  6071. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6072. msm_routing_put_audio_mixer),
  6073. };
  6074. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  6075. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6076. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6077. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6078. msm_routing_put_audio_mixer),
  6079. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6080. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6081. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6082. msm_routing_put_audio_mixer),
  6083. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6084. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6085. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6086. msm_routing_put_audio_mixer),
  6087. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6088. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6089. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6090. msm_routing_put_audio_mixer),
  6091. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6092. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6093. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6094. msm_routing_put_audio_mixer),
  6095. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6096. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6097. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6098. msm_routing_put_audio_mixer),
  6099. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6100. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6101. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6102. msm_routing_put_audio_mixer),
  6103. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6104. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6105. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6106. msm_routing_put_audio_mixer),
  6107. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6108. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6109. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6110. msm_routing_put_audio_mixer),
  6111. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6112. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6113. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6114. msm_routing_put_audio_mixer),
  6115. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6116. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6117. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6118. msm_routing_put_audio_mixer),
  6119. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6120. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6121. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6122. msm_routing_put_audio_mixer),
  6123. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6124. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6125. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6126. msm_routing_put_audio_mixer),
  6127. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6128. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6129. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6130. msm_routing_put_audio_mixer),
  6131. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6132. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6133. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6134. msm_routing_put_audio_mixer),
  6135. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6136. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6137. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6138. msm_routing_put_audio_mixer),
  6139. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6140. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6141. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6142. msm_routing_put_audio_mixer),
  6143. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6144. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6145. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6146. msm_routing_put_audio_mixer),
  6147. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6148. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6149. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6150. msm_routing_put_audio_mixer),
  6151. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6152. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6153. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6154. msm_routing_put_audio_mixer),
  6155. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6156. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6157. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6158. msm_routing_put_audio_mixer),
  6159. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6160. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6161. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6162. msm_routing_put_audio_mixer),
  6163. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6164. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6165. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6166. msm_routing_put_audio_mixer),
  6167. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6168. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6169. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6170. msm_routing_put_audio_mixer),
  6171. };
  6172. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6173. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6174. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6175. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6176. msm_routing_put_audio_mixer),
  6177. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6178. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6179. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6180. msm_routing_put_audio_mixer),
  6181. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6182. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6183. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6184. msm_routing_put_audio_mixer),
  6185. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6186. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6187. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6188. msm_routing_put_audio_mixer),
  6189. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6190. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6191. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6192. msm_routing_put_audio_mixer),
  6193. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6194. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6195. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6196. msm_routing_put_audio_mixer),
  6197. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6198. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6199. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6200. msm_routing_put_audio_mixer),
  6201. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6202. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6203. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6204. msm_routing_put_audio_mixer),
  6205. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6206. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6207. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6208. msm_routing_put_audio_mixer),
  6209. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6210. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6211. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6212. msm_routing_put_audio_mixer),
  6213. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6214. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6215. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6216. msm_routing_put_audio_mixer),
  6217. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6218. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6219. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6220. msm_routing_put_audio_mixer),
  6221. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6222. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6223. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6224. msm_routing_put_audio_mixer),
  6225. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6226. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6227. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6228. msm_routing_put_audio_mixer),
  6229. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6230. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6231. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6232. msm_routing_put_audio_mixer),
  6233. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6234. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6235. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6236. msm_routing_put_audio_mixer),
  6237. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6238. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6239. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6240. msm_routing_put_audio_mixer),
  6241. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6242. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6243. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6244. msm_routing_put_audio_mixer),
  6245. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6246. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6247. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6248. msm_routing_put_audio_mixer),
  6249. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6250. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6251. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6252. msm_routing_put_audio_mixer),
  6253. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6254. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6255. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6256. msm_routing_put_audio_mixer),
  6257. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6258. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6259. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6260. msm_routing_put_audio_mixer),
  6261. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6262. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6263. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6264. msm_routing_put_audio_mixer),
  6265. };
  6266. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6267. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6268. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6269. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6270. msm_routing_put_audio_mixer),
  6271. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6272. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6273. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6274. msm_routing_put_audio_mixer),
  6275. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6276. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6277. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6278. msm_routing_put_audio_mixer),
  6279. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6280. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6281. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6282. msm_routing_put_audio_mixer),
  6283. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6284. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6285. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6286. msm_routing_put_audio_mixer),
  6287. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6288. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6289. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6290. msm_routing_put_audio_mixer),
  6291. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6292. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6293. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6294. msm_routing_put_audio_mixer),
  6295. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6296. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6297. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6298. msm_routing_put_audio_mixer),
  6299. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6300. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6301. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6302. msm_routing_put_audio_mixer),
  6303. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6304. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6305. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6306. msm_routing_put_audio_mixer),
  6307. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6308. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6309. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6310. msm_routing_put_audio_mixer),
  6311. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6312. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6313. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6314. msm_routing_put_audio_mixer),
  6315. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6316. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6317. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6318. msm_routing_put_audio_mixer),
  6319. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6320. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6321. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6322. msm_routing_put_audio_mixer),
  6323. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6324. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6325. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6326. msm_routing_put_audio_mixer),
  6327. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6328. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6329. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6330. msm_routing_put_audio_mixer),
  6331. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6332. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6333. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6334. msm_routing_put_audio_mixer),
  6335. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6336. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6337. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6338. msm_routing_put_audio_mixer),
  6339. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6340. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6341. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6342. msm_routing_put_audio_mixer),
  6343. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6344. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6345. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6346. msm_routing_put_audio_mixer),
  6347. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6348. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6349. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6350. msm_routing_put_audio_mixer),
  6351. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6352. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6353. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6354. msm_routing_put_audio_mixer),
  6355. };
  6356. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6357. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6358. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6359. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6360. msm_routing_put_audio_mixer),
  6361. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6362. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6363. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6364. msm_routing_put_audio_mixer),
  6365. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6366. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6367. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6368. msm_routing_put_audio_mixer),
  6369. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6370. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6371. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6372. msm_routing_put_audio_mixer),
  6373. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6374. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6375. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6376. msm_routing_put_audio_mixer),
  6377. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6378. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6379. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6380. msm_routing_put_audio_mixer),
  6381. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6382. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6383. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6384. msm_routing_put_audio_mixer),
  6385. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6386. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6387. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6388. msm_routing_put_audio_mixer),
  6389. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6390. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6391. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6392. msm_routing_put_audio_mixer),
  6393. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6394. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6395. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6396. msm_routing_put_audio_mixer),
  6397. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6398. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6399. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6400. msm_routing_put_audio_mixer),
  6401. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6402. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6403. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6404. msm_routing_put_audio_mixer),
  6405. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6406. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6407. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6408. msm_routing_put_audio_mixer),
  6409. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6410. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6411. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6412. msm_routing_put_audio_mixer),
  6413. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6414. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6415. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6416. msm_routing_put_audio_mixer),
  6417. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6418. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6419. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6420. msm_routing_put_audio_mixer),
  6421. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6422. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6423. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6424. msm_routing_put_audio_mixer),
  6425. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6426. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6427. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6428. msm_routing_put_audio_mixer),
  6429. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6430. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6431. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6432. msm_routing_put_audio_mixer),
  6433. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6434. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6435. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6436. msm_routing_put_audio_mixer),
  6437. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6438. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6439. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6440. msm_routing_put_audio_mixer),
  6441. };
  6442. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6443. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6444. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6445. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6446. msm_routing_put_audio_mixer),
  6447. };
  6448. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6449. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6450. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6451. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6452. msm_routing_put_audio_mixer),
  6453. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6454. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6455. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6456. msm_routing_put_audio_mixer),
  6457. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6458. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6459. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6460. msm_routing_put_audio_mixer),
  6461. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6462. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6463. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6464. msm_routing_put_audio_mixer),
  6465. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6466. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6467. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6468. msm_routing_put_audio_mixer),
  6469. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6470. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6471. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6472. msm_routing_put_audio_mixer),
  6473. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6474. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6475. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6476. msm_routing_put_audio_mixer),
  6477. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6478. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6479. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6480. msm_routing_put_audio_mixer),
  6481. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6482. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6483. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6484. msm_routing_put_audio_mixer),
  6485. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6486. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6487. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6488. msm_routing_put_audio_mixer),
  6489. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6490. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6491. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6492. msm_routing_put_audio_mixer),
  6493. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6494. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6495. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6496. msm_routing_put_audio_mixer),
  6497. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6498. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6499. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6500. msm_routing_put_audio_mixer),
  6501. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6502. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6503. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6504. msm_routing_put_audio_mixer),
  6505. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6506. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6507. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6508. msm_routing_put_audio_mixer),
  6509. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6510. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6511. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6512. msm_routing_put_audio_mixer),
  6513. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6514. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6515. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6516. msm_routing_put_audio_mixer),
  6517. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6518. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6519. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6520. msm_routing_put_audio_mixer),
  6521. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6522. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6523. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6524. msm_routing_put_audio_mixer),
  6525. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6526. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6527. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6528. msm_routing_put_audio_mixer),
  6529. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6530. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6531. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6532. msm_routing_put_audio_mixer),
  6533. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6534. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6535. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6536. msm_routing_put_audio_mixer),
  6537. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6538. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6539. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6540. msm_routing_put_audio_mixer),
  6541. };
  6542. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6543. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6544. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6545. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6546. msm_routing_put_audio_mixer),
  6547. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6548. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6549. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6550. msm_routing_put_audio_mixer),
  6551. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6552. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6553. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6554. msm_routing_put_audio_mixer),
  6555. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6556. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6557. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6558. msm_routing_put_audio_mixer),
  6559. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6560. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6561. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6562. msm_routing_put_audio_mixer),
  6563. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6564. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6565. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6566. msm_routing_put_audio_mixer),
  6567. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6568. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6569. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6570. msm_routing_put_audio_mixer),
  6571. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6572. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6573. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6574. msm_routing_put_audio_mixer),
  6575. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6576. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6577. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6578. msm_routing_put_audio_mixer),
  6579. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6580. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6581. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6582. msm_routing_put_audio_mixer),
  6583. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6584. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6585. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6586. msm_routing_put_audio_mixer),
  6587. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6588. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6589. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6590. msm_routing_put_audio_mixer),
  6591. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6592. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6593. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6594. msm_routing_put_audio_mixer),
  6595. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6596. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6597. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6598. msm_routing_put_audio_mixer),
  6599. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6600. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6601. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6602. msm_routing_put_audio_mixer),
  6603. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6604. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6605. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6606. msm_routing_put_audio_mixer),
  6607. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6608. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6609. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6610. msm_routing_put_audio_mixer),
  6611. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6612. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6613. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6614. msm_routing_put_audio_mixer),
  6615. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6616. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6617. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6618. msm_routing_put_audio_mixer),
  6619. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6620. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6621. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6622. msm_routing_put_audio_mixer),
  6623. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6624. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6625. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6626. msm_routing_put_audio_mixer),
  6627. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6628. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6629. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6630. msm_routing_put_audio_mixer),
  6631. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6632. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6633. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6634. msm_routing_put_audio_mixer),
  6635. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  6636. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6637. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_audio_mixer,
  6638. msm_routing_put_audio_mixer),
  6639. };
  6640. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6641. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6642. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6643. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6644. msm_routing_put_audio_mixer),
  6645. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6646. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6647. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6648. msm_routing_put_audio_mixer),
  6649. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6650. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6651. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6652. msm_routing_put_audio_mixer),
  6653. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6654. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6655. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6656. msm_routing_put_audio_mixer),
  6657. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6658. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6659. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6660. msm_routing_put_audio_mixer),
  6661. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6662. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6663. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6664. msm_routing_put_audio_mixer),
  6665. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6666. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6667. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6668. msm_routing_put_audio_mixer),
  6669. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6670. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6671. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6672. msm_routing_put_audio_mixer),
  6673. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6674. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6675. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6676. msm_routing_put_audio_mixer),
  6677. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6678. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6679. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6680. msm_routing_put_audio_mixer),
  6681. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6682. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6683. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6684. msm_routing_put_audio_mixer),
  6685. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6686. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6687. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6688. msm_routing_put_audio_mixer),
  6689. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6690. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6691. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6692. msm_routing_put_audio_mixer),
  6693. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6694. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6695. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6696. msm_routing_put_audio_mixer),
  6697. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6698. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6699. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6700. msm_routing_put_audio_mixer),
  6701. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6702. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6703. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6704. msm_routing_put_audio_mixer),
  6705. };
  6706. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6707. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6708. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6709. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6710. msm_routing_put_audio_mixer),
  6711. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6712. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6713. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6714. msm_routing_put_audio_mixer),
  6715. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6716. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6717. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6718. msm_routing_put_audio_mixer),
  6719. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6720. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6721. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6722. msm_routing_put_audio_mixer),
  6723. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6724. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6725. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6726. msm_routing_put_audio_mixer),
  6727. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6728. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6729. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6730. msm_routing_put_audio_mixer),
  6731. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6732. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6733. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6734. msm_routing_put_audio_mixer),
  6735. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6736. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6737. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6738. msm_routing_put_audio_mixer),
  6739. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6740. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6741. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6742. msm_routing_put_audio_mixer),
  6743. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6744. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6745. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6746. msm_routing_put_audio_mixer),
  6747. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6748. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6749. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6750. msm_routing_put_audio_mixer),
  6751. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6752. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6753. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6754. msm_routing_put_audio_mixer),
  6755. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6756. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6757. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6758. msm_routing_put_audio_mixer),
  6759. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6760. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6761. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6762. msm_routing_put_audio_mixer),
  6763. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6764. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6765. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6766. msm_routing_put_audio_mixer),
  6767. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6768. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6769. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6770. msm_routing_put_audio_mixer),
  6771. };
  6772. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6773. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6774. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6775. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6776. msm_routing_put_audio_mixer),
  6777. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6778. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6779. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6780. msm_routing_put_audio_mixer),
  6781. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6782. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6783. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6784. msm_routing_put_audio_mixer),
  6785. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6786. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6787. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6788. msm_routing_put_audio_mixer),
  6789. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6790. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6791. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6792. msm_routing_put_audio_mixer),
  6793. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6794. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6795. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6796. msm_routing_put_audio_mixer),
  6797. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6798. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6799. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6800. msm_routing_put_audio_mixer),
  6801. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6802. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6803. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6804. msm_routing_put_audio_mixer),
  6805. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6806. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6807. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6808. msm_routing_put_audio_mixer),
  6809. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6810. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6811. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6812. msm_routing_put_audio_mixer),
  6813. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6814. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6815. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6816. msm_routing_put_audio_mixer),
  6817. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6818. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6819. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6820. msm_routing_put_audio_mixer),
  6821. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6822. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6823. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6824. msm_routing_put_audio_mixer),
  6825. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6826. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6827. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6828. msm_routing_put_audio_mixer),
  6829. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6830. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6831. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6832. msm_routing_put_audio_mixer),
  6833. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6834. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6835. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6836. msm_routing_put_audio_mixer),
  6837. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6838. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6839. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6840. msm_routing_put_audio_mixer),
  6841. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6842. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6843. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6844. msm_routing_put_audio_mixer),
  6845. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6846. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6847. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6848. msm_routing_put_audio_mixer),
  6849. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6850. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6851. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6852. msm_routing_put_audio_mixer),
  6853. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6854. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6855. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6856. msm_routing_put_audio_mixer),
  6857. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6858. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6859. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6860. msm_routing_put_audio_mixer),
  6861. };
  6862. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  6863. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6864. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6865. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6866. msm_routing_put_audio_mixer),
  6867. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6868. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6869. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6870. msm_routing_put_audio_mixer),
  6871. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6872. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6873. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6874. msm_routing_put_audio_mixer),
  6875. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6876. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6877. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6878. msm_routing_put_audio_mixer),
  6879. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6880. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6881. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6882. msm_routing_put_audio_mixer),
  6883. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6884. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6885. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6886. msm_routing_put_audio_mixer),
  6887. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6888. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6889. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6890. msm_routing_put_audio_mixer),
  6891. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6892. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6893. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6894. msm_routing_put_audio_mixer),
  6895. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6896. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6897. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6898. msm_routing_put_audio_mixer),
  6899. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6900. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6901. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6902. msm_routing_put_audio_mixer),
  6903. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6904. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6905. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6906. msm_routing_put_audio_mixer),
  6907. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6908. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6909. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6910. msm_routing_put_audio_mixer),
  6911. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6912. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6913. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6914. msm_routing_put_audio_mixer),
  6915. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6916. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6917. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6918. msm_routing_put_audio_mixer),
  6919. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6920. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6921. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6922. msm_routing_put_audio_mixer),
  6923. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6924. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6925. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6926. msm_routing_put_audio_mixer),
  6927. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6928. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6929. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6930. msm_routing_put_audio_mixer),
  6931. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6932. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6933. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6934. msm_routing_put_audio_mixer),
  6935. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6936. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6937. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6938. msm_routing_put_audio_mixer),
  6939. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6940. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6941. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6942. msm_routing_put_audio_mixer),
  6943. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6944. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6945. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6946. msm_routing_put_audio_mixer),
  6947. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6948. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6949. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6950. msm_routing_put_audio_mixer),
  6951. };
  6952. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  6953. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6954. MSM_BACKEND_DAI_HDMI_RX,
  6955. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6956. msm_routing_put_audio_mixer),
  6957. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6958. MSM_BACKEND_DAI_HDMI_RX,
  6959. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6960. msm_routing_put_audio_mixer),
  6961. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6962. MSM_BACKEND_DAI_HDMI_RX,
  6963. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6964. msm_routing_put_audio_mixer),
  6965. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6966. MSM_BACKEND_DAI_HDMI_RX,
  6967. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6968. msm_routing_put_audio_mixer),
  6969. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6970. MSM_BACKEND_DAI_HDMI_RX,
  6971. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6972. msm_routing_put_audio_mixer),
  6973. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6974. MSM_BACKEND_DAI_HDMI_RX,
  6975. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6976. msm_routing_put_audio_mixer),
  6977. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6978. MSM_BACKEND_DAI_HDMI_RX,
  6979. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6980. msm_routing_put_audio_mixer),
  6981. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6982. MSM_BACKEND_DAI_HDMI_RX,
  6983. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6984. msm_routing_put_audio_mixer),
  6985. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6986. MSM_BACKEND_DAI_HDMI_RX,
  6987. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6988. msm_routing_put_audio_mixer),
  6989. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6990. MSM_BACKEND_DAI_HDMI_RX,
  6991. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6992. msm_routing_put_audio_mixer),
  6993. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6994. MSM_BACKEND_DAI_HDMI_RX,
  6995. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6996. msm_routing_put_audio_mixer),
  6997. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6998. MSM_BACKEND_DAI_HDMI_RX,
  6999. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7000. msm_routing_put_audio_mixer),
  7001. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7002. MSM_BACKEND_DAI_HDMI_RX,
  7003. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7004. msm_routing_put_audio_mixer),
  7005. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7006. MSM_BACKEND_DAI_HDMI_RX,
  7007. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7008. msm_routing_put_audio_mixer),
  7009. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7010. MSM_BACKEND_DAI_HDMI_RX,
  7011. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7012. msm_routing_put_audio_mixer),
  7013. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7014. MSM_BACKEND_DAI_HDMI_RX,
  7015. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7016. msm_routing_put_audio_mixer),
  7017. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7018. MSM_BACKEND_DAI_HDMI_RX,
  7019. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7020. msm_routing_put_audio_mixer),
  7021. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7022. MSM_BACKEND_DAI_HDMI_RX,
  7023. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7024. msm_routing_put_audio_mixer),
  7025. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7026. MSM_BACKEND_DAI_HDMI_RX,
  7027. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7028. msm_routing_put_audio_mixer),
  7029. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7030. MSM_BACKEND_DAI_HDMI_RX,
  7031. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7032. msm_routing_put_audio_mixer),
  7033. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7034. MSM_BACKEND_DAI_HDMI_RX,
  7035. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7036. msm_routing_put_audio_mixer),
  7037. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7038. MSM_BACKEND_DAI_HDMI_RX,
  7039. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7040. msm_routing_put_audio_mixer),
  7041. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  7042. MSM_BACKEND_DAI_HDMI_RX,
  7043. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  7044. msm_routing_put_audio_mixer),
  7045. };
  7046. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  7047. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7048. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7049. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7050. msm_routing_put_audio_mixer),
  7051. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7052. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7053. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7054. msm_routing_put_audio_mixer),
  7055. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7056. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7057. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7058. msm_routing_put_audio_mixer),
  7059. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7060. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7061. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7062. msm_routing_put_audio_mixer),
  7063. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7064. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7065. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7066. msm_routing_put_audio_mixer),
  7067. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7068. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7069. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7070. msm_routing_put_audio_mixer),
  7071. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7072. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7073. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7074. msm_routing_put_audio_mixer),
  7075. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7076. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7077. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7078. msm_routing_put_audio_mixer),
  7079. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7080. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7081. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7082. msm_routing_put_audio_mixer),
  7083. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7084. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7085. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7086. msm_routing_put_audio_mixer),
  7087. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7088. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7089. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7090. msm_routing_put_audio_mixer),
  7091. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7092. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7093. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7094. msm_routing_put_audio_mixer),
  7095. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7096. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7097. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7098. msm_routing_put_audio_mixer),
  7099. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7100. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7101. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7102. msm_routing_put_audio_mixer),
  7103. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7104. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7105. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7106. msm_routing_put_audio_mixer),
  7107. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7108. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7109. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7110. msm_routing_put_audio_mixer),
  7111. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7112. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7113. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7114. msm_routing_put_audio_mixer),
  7115. };
  7116. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7117. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7118. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7119. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7120. msm_routing_put_audio_mixer),
  7121. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7122. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7123. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7124. msm_routing_put_audio_mixer),
  7125. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7126. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7127. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7128. msm_routing_put_audio_mixer),
  7129. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7130. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7131. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7132. msm_routing_put_audio_mixer),
  7133. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7134. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7135. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7136. msm_routing_put_audio_mixer),
  7137. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7138. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7139. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7140. msm_routing_put_audio_mixer),
  7141. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7142. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7143. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7144. msm_routing_put_audio_mixer),
  7145. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7146. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7147. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7148. msm_routing_put_audio_mixer),
  7149. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7150. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7151. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7152. msm_routing_put_audio_mixer),
  7153. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7166. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7170. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7174. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7175. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7176. msm_routing_put_audio_mixer),
  7177. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7178. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7182. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. };
  7186. /* incall music delivery mixer */
  7187. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7188. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7189. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7190. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7191. msm_routing_put_audio_mixer),
  7192. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7193. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7194. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7195. msm_routing_put_audio_mixer),
  7196. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7197. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7198. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7199. msm_routing_put_audio_mixer),
  7200. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7201. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7202. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7203. msm_routing_put_audio_mixer),
  7204. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7205. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7206. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7207. msm_routing_put_audio_mixer),
  7208. };
  7209. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7210. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7211. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7212. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7213. msm_routing_put_audio_mixer),
  7214. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7215. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7216. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7217. msm_routing_put_audio_mixer),
  7218. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7219. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7220. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7221. msm_routing_put_audio_mixer),
  7222. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7223. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7224. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7225. msm_routing_put_audio_mixer),
  7226. };
  7227. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7228. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7229. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7230. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7231. msm_routing_put_audio_mixer),
  7232. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7233. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7234. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7235. msm_routing_put_audio_mixer),
  7236. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7237. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7238. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7239. msm_routing_put_audio_mixer),
  7240. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7241. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7242. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7243. msm_routing_put_audio_mixer),
  7244. };
  7245. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7246. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7247. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7248. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7249. msm_routing_put_audio_mixer),
  7250. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7251. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7252. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7253. msm_routing_put_audio_mixer),
  7254. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7255. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7256. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7257. msm_routing_put_audio_mixer),
  7258. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7259. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7260. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7261. msm_routing_put_audio_mixer),
  7262. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7263. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7264. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7265. msm_routing_put_audio_mixer),
  7266. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7267. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7268. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7269. msm_routing_put_audio_mixer),
  7270. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7271. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7272. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7273. msm_routing_put_audio_mixer),
  7274. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7275. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7276. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7277. msm_routing_put_audio_mixer),
  7278. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7279. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7280. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7281. msm_routing_put_audio_mixer),
  7282. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7283. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7284. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7285. msm_routing_put_audio_mixer),
  7286. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7287. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7288. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7289. msm_routing_put_audio_mixer),
  7290. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7291. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7292. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7293. msm_routing_put_audio_mixer),
  7294. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7295. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7296. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7297. msm_routing_put_audio_mixer),
  7298. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7299. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7300. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7301. msm_routing_put_audio_mixer),
  7302. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7303. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7304. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7305. msm_routing_put_audio_mixer),
  7306. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7307. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7308. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7309. msm_routing_put_audio_mixer),
  7310. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7311. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7312. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7313. msm_routing_put_audio_mixer),
  7314. };
  7315. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7316. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7317. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7318. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7319. msm_routing_put_audio_mixer),
  7320. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7321. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7322. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7323. msm_routing_put_audio_mixer),
  7324. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7325. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7326. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7327. msm_routing_put_audio_mixer),
  7328. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7329. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7330. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7331. msm_routing_put_audio_mixer),
  7332. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7333. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7334. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7335. msm_routing_put_audio_mixer),
  7336. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7337. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7338. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7339. msm_routing_put_audio_mixer),
  7340. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7341. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7342. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7343. msm_routing_put_audio_mixer),
  7344. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7345. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7346. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7347. msm_routing_put_audio_mixer),
  7348. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7349. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7350. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7351. msm_routing_put_audio_mixer),
  7352. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7353. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7354. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7355. msm_routing_put_audio_mixer),
  7356. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7357. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7358. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7359. msm_routing_put_audio_mixer),
  7360. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7361. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7362. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7363. msm_routing_put_audio_mixer),
  7364. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7365. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7366. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7367. msm_routing_put_audio_mixer),
  7368. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7369. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7370. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7371. msm_routing_put_audio_mixer),
  7372. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7373. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7374. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7375. msm_routing_put_audio_mixer),
  7376. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7377. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7378. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7379. msm_routing_put_audio_mixer),
  7380. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7381. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7382. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7383. msm_routing_put_audio_mixer),
  7384. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7385. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7386. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7387. msm_routing_put_audio_mixer),
  7388. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7389. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7390. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7391. msm_routing_put_audio_mixer),
  7392. };
  7393. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7394. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7395. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7396. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7397. msm_routing_put_audio_mixer),
  7398. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7399. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7400. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7401. msm_routing_put_audio_mixer),
  7402. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7403. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7404. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7405. msm_routing_put_audio_mixer),
  7406. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7407. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7408. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7409. msm_routing_put_audio_mixer),
  7410. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7411. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7412. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7413. msm_routing_put_audio_mixer),
  7414. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7415. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7416. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7417. msm_routing_put_audio_mixer),
  7418. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7419. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7420. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7421. msm_routing_put_audio_mixer),
  7422. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7423. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7424. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7425. msm_routing_put_audio_mixer),
  7426. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7427. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7428. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7429. msm_routing_put_audio_mixer),
  7430. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7431. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7432. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7433. msm_routing_put_audio_mixer),
  7434. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7435. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7436. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7437. msm_routing_put_audio_mixer),
  7438. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7439. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7440. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7441. msm_routing_put_audio_mixer),
  7442. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7443. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7444. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7445. msm_routing_put_audio_mixer),
  7446. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7447. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7448. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7449. msm_routing_put_audio_mixer),
  7450. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7451. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7452. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7453. msm_routing_put_audio_mixer),
  7454. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7455. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7456. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7457. msm_routing_put_audio_mixer),
  7458. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7459. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7460. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7461. msm_routing_put_audio_mixer),
  7462. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7463. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7464. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7465. msm_routing_put_audio_mixer),
  7466. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7467. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7468. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7469. msm_routing_put_audio_mixer),
  7470. };
  7471. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7472. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7473. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7474. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7475. msm_routing_put_audio_mixer),
  7476. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7477. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7478. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7479. msm_routing_put_audio_mixer),
  7480. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7481. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7482. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7483. msm_routing_put_audio_mixer),
  7484. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7485. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7486. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7487. msm_routing_put_audio_mixer),
  7488. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7489. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7490. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7491. msm_routing_put_audio_mixer),
  7492. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7493. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7494. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7495. msm_routing_put_audio_mixer),
  7496. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7497. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7498. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7499. msm_routing_put_audio_mixer),
  7500. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7501. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7502. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7503. msm_routing_put_audio_mixer),
  7504. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7505. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7506. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7507. msm_routing_put_audio_mixer),
  7508. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7509. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7510. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7511. msm_routing_put_audio_mixer),
  7512. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7513. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7514. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7515. msm_routing_put_audio_mixer),
  7516. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7517. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7518. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7519. msm_routing_put_audio_mixer),
  7520. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7521. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7522. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7523. msm_routing_put_audio_mixer),
  7524. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7525. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7526. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7527. msm_routing_put_audio_mixer),
  7528. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7529. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7530. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7531. msm_routing_put_audio_mixer),
  7532. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7533. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7534. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7535. msm_routing_put_audio_mixer),
  7536. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7537. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7538. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7539. msm_routing_put_audio_mixer),
  7540. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7541. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7542. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7543. msm_routing_put_audio_mixer),
  7544. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7545. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7546. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7547. msm_routing_put_audio_mixer),
  7548. };
  7549. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7550. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7551. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7552. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7553. msm_routing_put_audio_mixer),
  7554. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7555. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7556. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7557. msm_routing_put_audio_mixer),
  7558. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7559. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7560. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7561. msm_routing_put_audio_mixer),
  7562. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7563. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7564. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7565. msm_routing_put_audio_mixer),
  7566. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7567. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7568. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7569. msm_routing_put_audio_mixer),
  7570. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7571. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7572. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7573. msm_routing_put_audio_mixer),
  7574. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7575. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7576. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7577. msm_routing_put_audio_mixer),
  7578. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7579. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7580. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7581. msm_routing_put_audio_mixer),
  7582. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7583. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7584. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7585. msm_routing_put_audio_mixer),
  7586. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7587. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7588. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7589. msm_routing_put_audio_mixer),
  7590. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7591. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7592. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7593. msm_routing_put_audio_mixer),
  7594. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7595. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7596. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7597. msm_routing_put_audio_mixer),
  7598. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7599. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7600. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7601. msm_routing_put_audio_mixer),
  7602. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7603. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7604. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7605. msm_routing_put_audio_mixer),
  7606. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7607. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7608. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7609. msm_routing_put_audio_mixer),
  7610. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7611. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7612. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7613. msm_routing_put_audio_mixer),
  7614. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7615. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7616. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7617. msm_routing_put_audio_mixer),
  7618. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7619. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7620. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7621. msm_routing_put_audio_mixer),
  7622. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7623. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7624. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7625. msm_routing_put_audio_mixer),
  7626. };
  7627. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7628. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7629. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7630. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7631. msm_routing_put_audio_mixer),
  7632. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7633. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7634. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7635. msm_routing_put_audio_mixer),
  7636. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7637. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7638. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7639. msm_routing_put_audio_mixer),
  7640. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7641. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7642. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7643. msm_routing_put_audio_mixer),
  7644. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7645. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7646. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7647. msm_routing_put_audio_mixer),
  7648. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7649. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7650. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7651. msm_routing_put_audio_mixer),
  7652. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7653. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7654. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7655. msm_routing_put_audio_mixer),
  7656. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7657. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7658. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7659. msm_routing_put_audio_mixer),
  7660. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7661. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7662. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7663. msm_routing_put_audio_mixer),
  7664. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7665. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7666. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7667. msm_routing_put_audio_mixer),
  7668. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7669. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7670. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7671. msm_routing_put_audio_mixer),
  7672. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7673. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7674. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7675. msm_routing_put_audio_mixer),
  7676. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7677. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7678. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7679. msm_routing_put_audio_mixer),
  7680. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7681. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7682. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7683. msm_routing_put_audio_mixer),
  7684. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7685. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7686. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7687. msm_routing_put_audio_mixer),
  7688. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7689. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7690. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7691. msm_routing_put_audio_mixer),
  7692. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7693. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7694. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7695. msm_routing_put_audio_mixer),
  7696. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7697. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7698. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7699. msm_routing_put_audio_mixer),
  7700. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7701. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7702. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7703. msm_routing_put_audio_mixer),
  7704. };
  7705. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7706. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7707. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7708. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7709. msm_routing_put_audio_mixer),
  7710. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7711. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7712. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7713. msm_routing_put_audio_mixer),
  7714. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7715. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7716. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7717. msm_routing_put_audio_mixer),
  7718. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7719. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7720. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7721. msm_routing_put_audio_mixer),
  7722. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7723. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7724. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7725. msm_routing_put_audio_mixer),
  7726. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7727. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7728. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7729. msm_routing_put_audio_mixer),
  7730. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7731. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7732. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7733. msm_routing_put_audio_mixer),
  7734. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7735. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7736. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7737. msm_routing_put_audio_mixer),
  7738. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7739. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7740. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7741. msm_routing_put_audio_mixer),
  7742. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7743. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7744. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7745. msm_routing_put_audio_mixer),
  7746. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7747. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7748. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7749. msm_routing_put_audio_mixer),
  7750. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7751. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7752. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7753. msm_routing_put_audio_mixer),
  7754. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7755. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7756. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7757. msm_routing_put_audio_mixer),
  7758. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7759. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7760. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7761. msm_routing_put_audio_mixer),
  7762. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7763. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7764. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7765. msm_routing_put_audio_mixer),
  7766. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7767. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7768. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7769. msm_routing_put_audio_mixer),
  7770. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7771. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7772. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7773. msm_routing_put_audio_mixer),
  7774. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7775. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7776. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7777. msm_routing_put_audio_mixer),
  7778. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7779. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7780. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7781. msm_routing_put_audio_mixer),
  7782. };
  7783. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  7784. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7785. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7786. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7787. msm_routing_put_audio_mixer),
  7788. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7789. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7790. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7791. msm_routing_put_audio_mixer),
  7792. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7793. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7794. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7795. msm_routing_put_audio_mixer),
  7796. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7797. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7798. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7799. msm_routing_put_audio_mixer),
  7800. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7801. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7802. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7803. msm_routing_put_audio_mixer),
  7804. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7805. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7806. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7807. msm_routing_put_audio_mixer),
  7808. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7809. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7810. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7811. msm_routing_put_audio_mixer),
  7812. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7813. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7814. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7815. msm_routing_put_audio_mixer),
  7816. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7817. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7818. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7819. msm_routing_put_audio_mixer),
  7820. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7821. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7822. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7823. msm_routing_put_audio_mixer),
  7824. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7825. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7826. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7827. msm_routing_put_audio_mixer),
  7828. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7829. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7830. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7831. msm_routing_put_audio_mixer),
  7832. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7833. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7834. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7835. msm_routing_put_audio_mixer),
  7836. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7837. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7838. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7839. msm_routing_put_audio_mixer),
  7840. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7841. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7842. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7843. msm_routing_put_audio_mixer),
  7844. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7845. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7846. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7847. msm_routing_put_audio_mixer),
  7848. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7849. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7850. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7851. msm_routing_put_audio_mixer),
  7852. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7853. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7854. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7855. msm_routing_put_audio_mixer),
  7856. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7857. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7858. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7859. msm_routing_put_audio_mixer),
  7860. };
  7861. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  7862. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7863. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7864. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7865. msm_routing_put_audio_mixer),
  7866. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7867. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7868. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7869. msm_routing_put_audio_mixer),
  7870. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7871. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7872. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7873. msm_routing_put_audio_mixer),
  7874. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7875. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7876. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7877. msm_routing_put_audio_mixer),
  7878. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7879. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7880. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7881. msm_routing_put_audio_mixer),
  7882. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7883. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7884. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7885. msm_routing_put_audio_mixer),
  7886. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7887. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7888. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7889. msm_routing_put_audio_mixer),
  7890. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7891. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7892. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7893. msm_routing_put_audio_mixer),
  7894. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7895. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7896. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7897. msm_routing_put_audio_mixer),
  7898. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7899. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7900. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7901. msm_routing_put_audio_mixer),
  7902. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7903. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7904. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7905. msm_routing_put_audio_mixer),
  7906. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7907. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7908. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7909. msm_routing_put_audio_mixer),
  7910. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7911. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7912. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7913. msm_routing_put_audio_mixer),
  7914. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7915. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7916. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7917. msm_routing_put_audio_mixer),
  7918. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7919. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7920. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7921. msm_routing_put_audio_mixer),
  7922. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7923. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7924. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7925. msm_routing_put_audio_mixer),
  7926. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7927. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7928. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7929. msm_routing_put_audio_mixer),
  7930. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7931. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7932. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7933. msm_routing_put_audio_mixer),
  7934. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7935. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7936. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7937. msm_routing_put_audio_mixer),
  7938. };
  7939. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  7940. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7941. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7942. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7943. msm_routing_put_audio_mixer),
  7944. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7945. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7946. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7947. msm_routing_put_audio_mixer),
  7948. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7949. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7950. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7951. msm_routing_put_audio_mixer),
  7952. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7953. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7954. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7955. msm_routing_put_audio_mixer),
  7956. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7957. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7958. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7959. msm_routing_put_audio_mixer),
  7960. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7961. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7962. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7963. msm_routing_put_audio_mixer),
  7964. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7965. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7966. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7967. msm_routing_put_audio_mixer),
  7968. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7969. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7970. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7971. msm_routing_put_audio_mixer),
  7972. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7973. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7974. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7975. msm_routing_put_audio_mixer),
  7976. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7977. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7978. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7979. msm_routing_put_audio_mixer),
  7980. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7981. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7982. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7983. msm_routing_put_audio_mixer),
  7984. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7985. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7986. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7987. msm_routing_put_audio_mixer),
  7988. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7989. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7990. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7991. msm_routing_put_audio_mixer),
  7992. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7993. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7994. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7995. msm_routing_put_audio_mixer),
  7996. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7997. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7998. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7999. msm_routing_put_audio_mixer),
  8000. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8001. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8002. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8003. msm_routing_put_audio_mixer),
  8004. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8005. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8006. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8007. msm_routing_put_audio_mixer),
  8008. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8009. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8010. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8011. msm_routing_put_audio_mixer),
  8012. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8013. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8014. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8015. msm_routing_put_audio_mixer),
  8016. };
  8017. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  8018. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8019. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  8084. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8085. msm_routing_put_audio_mixer),
  8086. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8087. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8088. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8089. msm_routing_put_audio_mixer),
  8090. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8091. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8092. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8093. msm_routing_put_audio_mixer),
  8094. };
  8095. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  8096. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8097. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8098. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8099. msm_routing_put_audio_mixer),
  8100. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8101. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8102. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8103. msm_routing_put_audio_mixer),
  8104. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8105. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8106. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8107. msm_routing_put_audio_mixer),
  8108. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8109. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8110. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8111. msm_routing_put_audio_mixer),
  8112. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8113. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8114. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8115. msm_routing_put_audio_mixer),
  8116. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8117. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8118. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8119. msm_routing_put_audio_mixer),
  8120. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8121. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8122. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8123. msm_routing_put_audio_mixer),
  8124. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8125. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8126. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8127. msm_routing_put_audio_mixer),
  8128. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8129. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8130. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8131. msm_routing_put_audio_mixer),
  8132. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8133. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8134. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8135. msm_routing_put_audio_mixer),
  8136. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8137. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8138. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8139. msm_routing_put_audio_mixer),
  8140. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8141. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8142. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8143. msm_routing_put_audio_mixer),
  8144. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8145. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8146. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8147. msm_routing_put_audio_mixer),
  8148. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8149. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8150. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8151. msm_routing_put_audio_mixer),
  8152. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8153. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8154. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8155. msm_routing_put_audio_mixer),
  8156. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8157. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8158. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8159. msm_routing_put_audio_mixer),
  8160. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8161. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8162. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8163. msm_routing_put_audio_mixer),
  8164. };
  8165. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  8166. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8167. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8168. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8169. msm_routing_put_audio_mixer),
  8170. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8171. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8172. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8173. msm_routing_put_audio_mixer),
  8174. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8175. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8176. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8177. msm_routing_put_audio_mixer),
  8178. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8179. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8180. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8181. msm_routing_put_audio_mixer),
  8182. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8183. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8184. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8185. msm_routing_put_audio_mixer),
  8186. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8187. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8188. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8189. msm_routing_put_audio_mixer),
  8190. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8191. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8192. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8193. msm_routing_put_audio_mixer),
  8194. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8195. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8196. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8197. msm_routing_put_audio_mixer),
  8198. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8199. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8200. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8201. msm_routing_put_audio_mixer),
  8202. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8203. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8204. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8205. msm_routing_put_audio_mixer),
  8206. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8207. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8208. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8209. msm_routing_put_audio_mixer),
  8210. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8211. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8212. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8213. msm_routing_put_audio_mixer),
  8214. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8215. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8216. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8217. msm_routing_put_audio_mixer),
  8218. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8219. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8220. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8221. msm_routing_put_audio_mixer),
  8222. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8223. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8224. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8225. msm_routing_put_audio_mixer),
  8226. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8227. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8228. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8229. msm_routing_put_audio_mixer),
  8230. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8231. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8232. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8233. msm_routing_put_audio_mixer),
  8234. };
  8235. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8236. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8237. MSM_BACKEND_DAI_USB_RX,
  8238. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8239. msm_routing_put_audio_mixer),
  8240. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8241. MSM_BACKEND_DAI_USB_RX,
  8242. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8243. msm_routing_put_audio_mixer),
  8244. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8245. MSM_BACKEND_DAI_USB_RX,
  8246. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8247. msm_routing_put_audio_mixer),
  8248. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8249. MSM_BACKEND_DAI_USB_RX,
  8250. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8251. msm_routing_put_audio_mixer),
  8252. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8253. MSM_BACKEND_DAI_USB_RX,
  8254. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8255. msm_routing_put_audio_mixer),
  8256. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8257. MSM_BACKEND_DAI_USB_RX,
  8258. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8259. msm_routing_put_audio_mixer),
  8260. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8261. MSM_BACKEND_DAI_USB_RX,
  8262. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8263. msm_routing_put_audio_mixer),
  8264. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8265. MSM_BACKEND_DAI_USB_RX,
  8266. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8267. msm_routing_put_audio_mixer),
  8268. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8269. MSM_BACKEND_DAI_USB_RX,
  8270. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8271. msm_routing_put_audio_mixer),
  8272. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8273. MSM_BACKEND_DAI_USB_RX,
  8274. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8275. msm_routing_put_audio_mixer),
  8276. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8277. MSM_BACKEND_DAI_USB_RX,
  8278. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8279. msm_routing_put_audio_mixer),
  8280. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8281. MSM_BACKEND_DAI_USB_RX,
  8282. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8283. msm_routing_put_audio_mixer),
  8284. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8285. MSM_BACKEND_DAI_USB_RX,
  8286. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8287. msm_routing_put_audio_mixer),
  8288. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8289. MSM_BACKEND_DAI_USB_RX,
  8290. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8291. msm_routing_put_audio_mixer),
  8292. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8293. MSM_BACKEND_DAI_USB_RX,
  8294. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8295. msm_routing_put_audio_mixer),
  8296. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8297. MSM_BACKEND_DAI_USB_RX,
  8298. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8299. msm_routing_put_audio_mixer),
  8300. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8301. MSM_BACKEND_DAI_USB_RX,
  8302. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8303. msm_routing_put_audio_mixer),
  8304. };
  8305. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  8306. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8307. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8308. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8309. msm_routing_put_audio_mixer),
  8310. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8311. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8312. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8313. msm_routing_put_audio_mixer),
  8314. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8315. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8316. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8317. msm_routing_put_audio_mixer),
  8318. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8319. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8320. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8321. msm_routing_put_audio_mixer),
  8322. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8323. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8324. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8325. msm_routing_put_audio_mixer),
  8326. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8327. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8328. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8329. msm_routing_put_audio_mixer),
  8330. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8331. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8332. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8333. msm_routing_put_audio_mixer),
  8334. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8335. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8336. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8337. msm_routing_put_audio_mixer),
  8338. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8339. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8340. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8341. msm_routing_put_audio_mixer),
  8342. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8343. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8344. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8345. msm_routing_put_audio_mixer),
  8346. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8347. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8348. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8349. msm_routing_put_audio_mixer),
  8350. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8351. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8352. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8353. msm_routing_put_audio_mixer),
  8354. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8355. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8356. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8357. msm_routing_put_audio_mixer),
  8358. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8359. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8360. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8361. msm_routing_put_audio_mixer),
  8362. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8363. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8364. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8365. msm_routing_put_audio_mixer),
  8366. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8367. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8368. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8369. msm_routing_put_audio_mixer),
  8370. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8371. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8372. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8373. msm_routing_put_audio_mixer),
  8374. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8375. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8376. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8377. msm_routing_put_audio_mixer),
  8378. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8379. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8380. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8381. msm_routing_put_audio_mixer),
  8382. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8383. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8384. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8385. msm_routing_put_audio_mixer),
  8386. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8387. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8388. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8389. msm_routing_put_audio_mixer),
  8390. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8391. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8392. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8393. msm_routing_put_audio_mixer),
  8394. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8395. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8396. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8397. msm_routing_put_audio_mixer),
  8398. };
  8399. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8400. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8401. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8402. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8403. msm_routing_put_audio_mixer),
  8404. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8405. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8406. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8407. msm_routing_put_audio_mixer),
  8408. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8409. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8410. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8411. msm_routing_put_audio_mixer),
  8412. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8413. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8414. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8415. msm_routing_put_audio_mixer),
  8416. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8417. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8418. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8419. msm_routing_put_audio_mixer),
  8420. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8421. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8422. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8423. msm_routing_put_audio_mixer),
  8424. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8425. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8426. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8427. msm_routing_put_audio_mixer),
  8428. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8429. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8430. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8431. msm_routing_put_audio_mixer),
  8432. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8433. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8434. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8435. msm_routing_put_audio_mixer),
  8436. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8437. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8438. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8439. msm_routing_put_audio_mixer),
  8440. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8441. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8442. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8443. msm_routing_put_audio_mixer),
  8444. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8445. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8446. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8447. msm_routing_put_audio_mixer),
  8448. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8449. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8450. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8451. msm_routing_put_audio_mixer),
  8452. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8453. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8454. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8455. msm_routing_put_audio_mixer),
  8456. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8457. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8458. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8459. msm_routing_put_audio_mixer),
  8460. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8461. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8462. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8463. msm_routing_put_audio_mixer),
  8464. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8465. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8466. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8467. msm_routing_put_audio_mixer),
  8468. };
  8469. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8470. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8471. MSM_BACKEND_DAI_INT_FM_RX,
  8472. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8473. msm_routing_put_audio_mixer),
  8474. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8475. MSM_BACKEND_DAI_INT_FM_RX,
  8476. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8477. msm_routing_put_audio_mixer),
  8478. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8479. MSM_BACKEND_DAI_INT_FM_RX,
  8480. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8481. msm_routing_put_audio_mixer),
  8482. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8483. MSM_BACKEND_DAI_INT_FM_RX,
  8484. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8485. msm_routing_put_audio_mixer),
  8486. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8487. MSM_BACKEND_DAI_INT_FM_RX,
  8488. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8489. msm_routing_put_audio_mixer),
  8490. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8491. MSM_BACKEND_DAI_INT_FM_RX,
  8492. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8493. msm_routing_put_audio_mixer),
  8494. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8495. MSM_BACKEND_DAI_INT_FM_RX,
  8496. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8497. msm_routing_put_audio_mixer),
  8498. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8499. MSM_BACKEND_DAI_INT_FM_RX,
  8500. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8501. msm_routing_put_audio_mixer),
  8502. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8503. MSM_BACKEND_DAI_INT_FM_RX,
  8504. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8505. msm_routing_put_audio_mixer),
  8506. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8507. MSM_BACKEND_DAI_INT_FM_RX,
  8508. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8509. msm_routing_put_audio_mixer),
  8510. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8511. MSM_BACKEND_DAI_INT_FM_RX,
  8512. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8513. msm_routing_put_audio_mixer),
  8514. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8515. MSM_BACKEND_DAI_INT_FM_RX,
  8516. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8517. msm_routing_put_audio_mixer),
  8518. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8519. MSM_BACKEND_DAI_INT_FM_RX,
  8520. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8521. msm_routing_put_audio_mixer),
  8522. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8523. MSM_BACKEND_DAI_INT_FM_RX,
  8524. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8525. msm_routing_put_audio_mixer),
  8526. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8527. MSM_BACKEND_DAI_INT_FM_RX,
  8528. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8529. msm_routing_put_audio_mixer),
  8530. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8531. MSM_BACKEND_DAI_INT_FM_RX,
  8532. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8533. msm_routing_put_audio_mixer),
  8534. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8535. MSM_BACKEND_DAI_INT_FM_RX,
  8536. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8537. msm_routing_put_audio_mixer),
  8538. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8539. MSM_BACKEND_DAI_INT_FM_RX,
  8540. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8541. msm_routing_put_audio_mixer),
  8542. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8543. MSM_BACKEND_DAI_INT_FM_RX,
  8544. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8545. msm_routing_put_audio_mixer),
  8546. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8547. MSM_BACKEND_DAI_INT_FM_RX,
  8548. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8549. msm_routing_put_audio_mixer),
  8550. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8551. MSM_BACKEND_DAI_INT_FM_RX,
  8552. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8553. msm_routing_put_audio_mixer),
  8554. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8555. MSM_BACKEND_DAI_INT_FM_RX,
  8556. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8557. msm_routing_put_audio_mixer),
  8558. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8559. MSM_BACKEND_DAI_INT_FM_RX,
  8560. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8561. msm_routing_put_audio_mixer),
  8562. };
  8563. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8564. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8565. MSM_BACKEND_DAI_AFE_PCM_RX,
  8566. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8567. msm_routing_put_audio_mixer),
  8568. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8569. MSM_BACKEND_DAI_AFE_PCM_RX,
  8570. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8571. msm_routing_put_audio_mixer),
  8572. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8573. MSM_BACKEND_DAI_AFE_PCM_RX,
  8574. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8575. msm_routing_put_audio_mixer),
  8576. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8577. MSM_BACKEND_DAI_AFE_PCM_RX,
  8578. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8579. msm_routing_put_audio_mixer),
  8580. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8581. MSM_BACKEND_DAI_AFE_PCM_RX,
  8582. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8583. msm_routing_put_audio_mixer),
  8584. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8585. MSM_BACKEND_DAI_AFE_PCM_RX,
  8586. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8587. msm_routing_put_audio_mixer),
  8588. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8589. MSM_BACKEND_DAI_AFE_PCM_RX,
  8590. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8591. msm_routing_put_audio_mixer),
  8592. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8593. MSM_BACKEND_DAI_AFE_PCM_RX,
  8594. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8595. msm_routing_put_audio_mixer),
  8596. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8597. MSM_BACKEND_DAI_AFE_PCM_RX,
  8598. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8599. msm_routing_put_audio_mixer),
  8600. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8601. MSM_BACKEND_DAI_AFE_PCM_RX,
  8602. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8603. msm_routing_put_audio_mixer),
  8604. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8605. MSM_BACKEND_DAI_AFE_PCM_RX,
  8606. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8607. msm_routing_put_audio_mixer),
  8608. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8609. MSM_BACKEND_DAI_AFE_PCM_RX,
  8610. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8611. msm_routing_put_audio_mixer),
  8612. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8613. MSM_BACKEND_DAI_AFE_PCM_RX,
  8614. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8615. msm_routing_put_audio_mixer),
  8616. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8617. MSM_BACKEND_DAI_AFE_PCM_RX,
  8618. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8619. msm_routing_put_audio_mixer),
  8620. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8621. MSM_BACKEND_DAI_AFE_PCM_RX,
  8622. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8623. msm_routing_put_audio_mixer),
  8624. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8625. MSM_BACKEND_DAI_AFE_PCM_RX,
  8626. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8627. msm_routing_put_audio_mixer),
  8628. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8629. MSM_BACKEND_DAI_AFE_PCM_RX,
  8630. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8631. msm_routing_put_audio_mixer),
  8632. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8633. MSM_BACKEND_DAI_AFE_PCM_RX,
  8634. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8635. msm_routing_put_audio_mixer),
  8636. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8637. MSM_BACKEND_DAI_AFE_PCM_RX,
  8638. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8639. msm_routing_put_audio_mixer),
  8640. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8641. MSM_BACKEND_DAI_AFE_PCM_RX,
  8642. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8643. msm_routing_put_audio_mixer),
  8644. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8645. MSM_BACKEND_DAI_AFE_PCM_RX,
  8646. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8647. msm_routing_put_audio_mixer),
  8648. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8649. MSM_BACKEND_DAI_AFE_PCM_RX,
  8650. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8651. msm_routing_put_audio_mixer),
  8652. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8653. MSM_BACKEND_DAI_AFE_PCM_RX,
  8654. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8655. msm_routing_put_audio_mixer),
  8656. };
  8657. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8658. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8659. MSM_BACKEND_DAI_AUXPCM_RX,
  8660. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8661. msm_routing_put_audio_mixer),
  8662. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8663. MSM_BACKEND_DAI_AUXPCM_RX,
  8664. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8665. msm_routing_put_audio_mixer),
  8666. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8667. MSM_BACKEND_DAI_AUXPCM_RX,
  8668. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8669. msm_routing_put_audio_mixer),
  8670. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8671. MSM_BACKEND_DAI_AUXPCM_RX,
  8672. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8673. msm_routing_put_audio_mixer),
  8674. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8675. MSM_BACKEND_DAI_AUXPCM_RX,
  8676. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8677. msm_routing_put_audio_mixer),
  8678. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8679. MSM_BACKEND_DAI_AUXPCM_RX,
  8680. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8681. msm_routing_put_audio_mixer),
  8682. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8683. MSM_BACKEND_DAI_AUXPCM_RX,
  8684. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8685. msm_routing_put_audio_mixer),
  8686. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8687. MSM_BACKEND_DAI_AUXPCM_RX,
  8688. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8689. msm_routing_put_audio_mixer),
  8690. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8691. MSM_BACKEND_DAI_AUXPCM_RX,
  8692. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8693. msm_routing_put_audio_mixer),
  8694. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8695. MSM_BACKEND_DAI_AUXPCM_RX,
  8696. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8697. msm_routing_put_audio_mixer),
  8698. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8699. MSM_BACKEND_DAI_AUXPCM_RX,
  8700. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8701. msm_routing_put_audio_mixer),
  8702. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8703. MSM_BACKEND_DAI_AUXPCM_RX,
  8704. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8705. msm_routing_put_audio_mixer),
  8706. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8707. MSM_BACKEND_DAI_AUXPCM_RX,
  8708. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8709. msm_routing_put_audio_mixer),
  8710. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8711. MSM_BACKEND_DAI_AUXPCM_RX,
  8712. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8713. msm_routing_put_audio_mixer),
  8714. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8715. MSM_BACKEND_DAI_AUXPCM_RX,
  8716. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8717. msm_routing_put_audio_mixer),
  8718. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8719. MSM_BACKEND_DAI_AUXPCM_RX,
  8720. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8721. msm_routing_put_audio_mixer),
  8722. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8723. MSM_BACKEND_DAI_AUXPCM_RX,
  8724. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8725. msm_routing_put_audio_mixer),
  8726. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8727. MSM_BACKEND_DAI_AUXPCM_RX,
  8728. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8729. msm_routing_put_audio_mixer),
  8730. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8731. MSM_BACKEND_DAI_AUXPCM_RX,
  8732. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8733. msm_routing_put_audio_mixer),
  8734. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8735. MSM_BACKEND_DAI_AUXPCM_RX,
  8736. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8737. msm_routing_put_audio_mixer),
  8738. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8739. MSM_BACKEND_DAI_AUXPCM_RX,
  8740. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8741. msm_routing_put_audio_mixer),
  8742. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8743. MSM_BACKEND_DAI_AUXPCM_RX,
  8744. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8745. msm_routing_put_audio_mixer),
  8746. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8747. MSM_BACKEND_DAI_AUXPCM_RX,
  8748. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8749. msm_routing_put_audio_mixer),
  8750. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8751. MSM_BACKEND_DAI_AUXPCM_RX,
  8752. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8753. msm_routing_put_audio_mixer),
  8754. };
  8755. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  8756. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8757. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8758. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8759. msm_routing_put_audio_mixer),
  8760. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8761. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8762. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8763. msm_routing_put_audio_mixer),
  8764. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8765. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8766. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8767. msm_routing_put_audio_mixer),
  8768. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8769. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8770. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8771. msm_routing_put_audio_mixer),
  8772. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8773. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8774. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8775. msm_routing_put_audio_mixer),
  8776. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8777. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8778. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8779. msm_routing_put_audio_mixer),
  8780. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8781. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8782. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8783. msm_routing_put_audio_mixer),
  8784. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8785. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8786. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8787. msm_routing_put_audio_mixer),
  8788. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8789. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8790. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8791. msm_routing_put_audio_mixer),
  8792. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8793. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8794. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8795. msm_routing_put_audio_mixer),
  8796. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8797. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8798. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8799. msm_routing_put_audio_mixer),
  8800. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8801. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8802. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8803. msm_routing_put_audio_mixer),
  8804. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8805. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8806. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8807. msm_routing_put_audio_mixer),
  8808. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8809. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8810. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8811. msm_routing_put_audio_mixer),
  8812. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8813. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8814. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8815. msm_routing_put_audio_mixer),
  8816. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8817. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8818. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8819. msm_routing_put_audio_mixer),
  8820. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8821. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8822. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8823. msm_routing_put_audio_mixer),
  8824. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8825. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8826. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8827. msm_routing_put_audio_mixer),
  8828. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8829. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8830. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8831. msm_routing_put_audio_mixer),
  8832. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8833. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8834. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8835. msm_routing_put_audio_mixer),
  8836. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8837. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8838. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8839. msm_routing_put_audio_mixer),
  8840. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8841. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8842. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8843. msm_routing_put_audio_mixer),
  8844. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8845. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8846. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8847. msm_routing_put_audio_mixer),
  8848. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8849. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8850. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8851. msm_routing_put_audio_mixer),
  8852. };
  8853. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  8854. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8855. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8856. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8857. msm_routing_put_audio_mixer),
  8858. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8859. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8860. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8861. msm_routing_put_audio_mixer),
  8862. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8863. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8864. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8865. msm_routing_put_audio_mixer),
  8866. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8867. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8868. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8869. msm_routing_put_audio_mixer),
  8870. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8871. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8872. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8873. msm_routing_put_audio_mixer),
  8874. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8875. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8876. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8877. msm_routing_put_audio_mixer),
  8878. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8879. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8880. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8881. msm_routing_put_audio_mixer),
  8882. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8883. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8884. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8885. msm_routing_put_audio_mixer),
  8886. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8887. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8888. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8889. msm_routing_put_audio_mixer),
  8890. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8891. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8892. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8893. msm_routing_put_audio_mixer),
  8894. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8895. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8896. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8897. msm_routing_put_audio_mixer),
  8898. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8899. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8900. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8901. msm_routing_put_audio_mixer),
  8902. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8903. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8904. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8905. msm_routing_put_audio_mixer),
  8906. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8907. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8908. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8909. msm_routing_put_audio_mixer),
  8910. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8911. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8912. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8913. msm_routing_put_audio_mixer),
  8914. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8915. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8916. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8917. msm_routing_put_audio_mixer),
  8918. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8919. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8920. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8921. msm_routing_put_audio_mixer),
  8922. };
  8923. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  8924. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8925. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8926. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8927. msm_routing_put_audio_mixer),
  8928. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8929. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8930. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8931. msm_routing_put_audio_mixer),
  8932. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8933. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8934. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8935. msm_routing_put_audio_mixer),
  8936. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8937. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8938. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8939. msm_routing_put_audio_mixer),
  8940. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8941. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8942. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8943. msm_routing_put_audio_mixer),
  8944. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8945. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8946. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8947. msm_routing_put_audio_mixer),
  8948. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8949. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8950. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8951. msm_routing_put_audio_mixer),
  8952. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8953. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8954. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8955. msm_routing_put_audio_mixer),
  8956. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8957. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8958. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8959. msm_routing_put_audio_mixer),
  8960. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8961. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8962. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8963. msm_routing_put_audio_mixer),
  8964. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8965. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8966. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8967. msm_routing_put_audio_mixer),
  8968. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8969. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8970. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8971. msm_routing_put_audio_mixer),
  8972. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8973. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8974. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8975. msm_routing_put_audio_mixer),
  8976. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8977. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8978. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8979. msm_routing_put_audio_mixer),
  8980. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8981. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8982. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8983. msm_routing_put_audio_mixer),
  8984. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8985. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8986. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8987. msm_routing_put_audio_mixer),
  8988. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8989. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8990. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8991. msm_routing_put_audio_mixer),
  8992. };
  8993. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  8994. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8995. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8996. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8997. msm_routing_put_audio_mixer),
  8998. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8999. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9000. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9001. msm_routing_put_audio_mixer),
  9002. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9003. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9004. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9005. msm_routing_put_audio_mixer),
  9006. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9007. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9008. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9009. msm_routing_put_audio_mixer),
  9010. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9011. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9012. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9013. msm_routing_put_audio_mixer),
  9014. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9015. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9016. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9017. msm_routing_put_audio_mixer),
  9018. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9019. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9020. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9021. msm_routing_put_audio_mixer),
  9022. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9023. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9024. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9025. msm_routing_put_audio_mixer),
  9026. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9027. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9028. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9029. msm_routing_put_audio_mixer),
  9030. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9031. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9032. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9033. msm_routing_put_audio_mixer),
  9034. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9035. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9036. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9037. msm_routing_put_audio_mixer),
  9038. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9039. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9040. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9041. msm_routing_put_audio_mixer),
  9042. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9043. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9044. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9045. msm_routing_put_audio_mixer),
  9046. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9047. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9048. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9049. msm_routing_put_audio_mixer),
  9050. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9051. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9052. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9053. msm_routing_put_audio_mixer),
  9054. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9055. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9056. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9057. msm_routing_put_audio_mixer),
  9058. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9059. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9060. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9061. msm_routing_put_audio_mixer),
  9062. };
  9063. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  9064. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9065. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9066. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9067. msm_routing_put_audio_mixer),
  9068. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9069. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9070. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9071. msm_routing_put_audio_mixer),
  9072. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9073. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9074. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9075. msm_routing_put_audio_mixer),
  9076. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9077. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9078. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9079. msm_routing_put_audio_mixer),
  9080. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9081. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9082. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9083. msm_routing_put_audio_mixer),
  9084. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9085. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9086. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9087. msm_routing_put_audio_mixer),
  9088. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9089. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9090. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9091. msm_routing_put_audio_mixer),
  9092. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9093. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9094. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9095. msm_routing_put_audio_mixer),
  9096. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9097. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9098. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9099. msm_routing_put_audio_mixer),
  9100. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9101. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9102. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9103. msm_routing_put_audio_mixer),
  9104. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9105. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9106. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9107. msm_routing_put_audio_mixer),
  9108. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9109. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9110. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9111. msm_routing_put_audio_mixer),
  9112. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9113. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9114. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9115. msm_routing_put_audio_mixer),
  9116. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9117. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9118. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9119. msm_routing_put_audio_mixer),
  9120. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9121. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9122. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9123. msm_routing_put_audio_mixer),
  9124. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9125. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9126. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9127. msm_routing_put_audio_mixer),
  9128. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9129. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9130. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9131. msm_routing_put_audio_mixer),
  9132. };
  9133. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  9134. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9135. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  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_0,
  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_0,
  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_0,
  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_0,
  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_0,
  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_0,
  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_0,
  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_0,
  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_0,
  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_0,
  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_0,
  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_0,
  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_0,
  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_0,
  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_0,
  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_0,
  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_0,
  9204. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9205. msm_routing_put_audio_mixer),
  9206. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9207. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9208. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9209. msm_routing_put_audio_mixer),
  9210. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9211. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9212. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9213. msm_routing_put_audio_mixer),
  9214. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9215. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9216. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9217. msm_routing_put_audio_mixer),
  9218. };
  9219. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9220. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9221. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9222. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9223. msm_routing_put_audio_mixer),
  9224. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9225. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9226. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9227. msm_routing_put_audio_mixer),
  9228. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9229. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9230. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9231. msm_routing_put_audio_mixer),
  9232. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9233. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9234. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9235. msm_routing_put_audio_mixer),
  9236. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9237. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9238. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9239. msm_routing_put_audio_mixer),
  9240. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9241. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9242. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9243. msm_routing_put_audio_mixer),
  9244. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9245. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9246. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9247. msm_routing_put_audio_mixer),
  9248. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9249. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9250. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9251. msm_routing_put_audio_mixer),
  9252. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9253. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9254. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9255. msm_routing_put_audio_mixer),
  9256. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9257. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9258. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9259. msm_routing_put_audio_mixer),
  9260. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9261. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9262. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9263. msm_routing_put_audio_mixer),
  9264. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9265. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9266. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9267. msm_routing_put_audio_mixer),
  9268. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9269. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9270. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9271. msm_routing_put_audio_mixer),
  9272. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9273. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9274. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9275. msm_routing_put_audio_mixer),
  9276. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9277. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9278. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9279. msm_routing_put_audio_mixer),
  9280. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9281. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9282. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9283. msm_routing_put_audio_mixer),
  9284. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9285. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9286. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9287. msm_routing_put_audio_mixer),
  9288. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9289. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9290. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9291. msm_routing_put_audio_mixer),
  9292. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9293. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9294. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9295. msm_routing_put_audio_mixer),
  9296. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9297. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9298. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9299. msm_routing_put_audio_mixer),
  9300. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9301. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9302. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9303. msm_routing_put_audio_mixer),
  9304. };
  9305. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  9306. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9307. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9308. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9309. msm_routing_put_audio_mixer),
  9310. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9311. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9312. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9313. msm_routing_put_audio_mixer),
  9314. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9315. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9316. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9317. msm_routing_put_audio_mixer),
  9318. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9319. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9320. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9321. msm_routing_put_audio_mixer),
  9322. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9323. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9324. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9325. msm_routing_put_audio_mixer),
  9326. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9327. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9328. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9329. msm_routing_put_audio_mixer),
  9330. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9331. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9332. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9333. msm_routing_put_audio_mixer),
  9334. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9335. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9336. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9337. msm_routing_put_audio_mixer),
  9338. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9339. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9340. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9341. msm_routing_put_audio_mixer),
  9342. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9343. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9344. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9345. msm_routing_put_audio_mixer),
  9346. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9347. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9348. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9349. msm_routing_put_audio_mixer),
  9350. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9351. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9352. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9353. msm_routing_put_audio_mixer),
  9354. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9355. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9356. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9357. msm_routing_put_audio_mixer),
  9358. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9359. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9360. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9361. msm_routing_put_audio_mixer),
  9362. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9363. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9364. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9365. msm_routing_put_audio_mixer),
  9366. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9367. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9368. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9369. msm_routing_put_audio_mixer),
  9370. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9371. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9372. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9373. msm_routing_put_audio_mixer),
  9374. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9375. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9376. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9377. msm_routing_put_audio_mixer),
  9378. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9379. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9380. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9381. msm_routing_put_audio_mixer),
  9382. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9383. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9384. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9385. msm_routing_put_audio_mixer),
  9386. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9387. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9388. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9389. msm_routing_put_audio_mixer),
  9390. };
  9391. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  9392. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9393. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9394. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9395. msm_routing_put_audio_mixer),
  9396. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9397. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9398. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9399. msm_routing_put_audio_mixer),
  9400. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9401. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9402. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9403. msm_routing_put_audio_mixer),
  9404. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9405. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9406. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9407. msm_routing_put_audio_mixer),
  9408. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9409. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9410. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9411. msm_routing_put_audio_mixer),
  9412. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9413. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9414. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9415. msm_routing_put_audio_mixer),
  9416. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9417. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9418. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9419. msm_routing_put_audio_mixer),
  9420. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9421. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9422. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9423. msm_routing_put_audio_mixer),
  9424. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9425. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9426. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9427. msm_routing_put_audio_mixer),
  9428. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9429. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9430. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9431. msm_routing_put_audio_mixer),
  9432. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9433. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9434. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9435. msm_routing_put_audio_mixer),
  9436. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9437. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9438. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9439. msm_routing_put_audio_mixer),
  9440. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9441. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9442. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9443. msm_routing_put_audio_mixer),
  9444. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9445. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9446. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9447. msm_routing_put_audio_mixer),
  9448. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9449. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9450. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9451. msm_routing_put_audio_mixer),
  9452. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9453. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9454. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9455. msm_routing_put_audio_mixer),
  9456. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9457. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9458. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9459. msm_routing_put_audio_mixer),
  9460. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9461. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9462. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9463. msm_routing_put_audio_mixer),
  9464. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9465. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9466. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9467. msm_routing_put_audio_mixer),
  9468. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9469. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9470. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9471. msm_routing_put_audio_mixer),
  9472. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9473. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9474. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9475. msm_routing_put_audio_mixer),
  9476. };
  9477. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9478. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9479. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9480. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9481. msm_routing_put_audio_mixer),
  9482. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9483. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9484. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9485. msm_routing_put_audio_mixer),
  9486. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9487. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9488. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9489. msm_routing_put_audio_mixer),
  9490. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9491. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9492. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9493. msm_routing_put_audio_mixer),
  9494. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9495. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9496. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9497. msm_routing_put_audio_mixer),
  9498. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9499. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9500. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9501. msm_routing_put_audio_mixer),
  9502. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9503. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9504. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9505. msm_routing_put_audio_mixer),
  9506. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9507. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9508. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9509. msm_routing_put_audio_mixer),
  9510. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9511. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9512. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9513. msm_routing_put_audio_mixer),
  9514. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9515. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9516. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9517. msm_routing_put_audio_mixer),
  9518. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9519. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9520. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9521. msm_routing_put_audio_mixer),
  9522. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9523. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9524. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9525. msm_routing_put_audio_mixer),
  9526. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9527. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9528. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9529. msm_routing_put_audio_mixer),
  9530. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9531. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9532. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9533. msm_routing_put_audio_mixer),
  9534. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9535. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9536. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9537. msm_routing_put_audio_mixer),
  9538. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9539. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9540. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9541. msm_routing_put_audio_mixer),
  9542. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9543. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9544. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9545. msm_routing_put_audio_mixer),
  9546. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9547. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9548. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9549. msm_routing_put_audio_mixer),
  9550. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9551. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9552. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9553. msm_routing_put_audio_mixer),
  9554. };
  9555. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9556. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9557. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9558. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9559. msm_routing_put_audio_mixer),
  9560. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9561. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9562. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9563. msm_routing_put_audio_mixer),
  9564. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9565. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9566. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9567. msm_routing_put_audio_mixer),
  9568. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9569. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9570. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9571. msm_routing_put_audio_mixer),
  9572. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9573. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9574. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9575. msm_routing_put_audio_mixer),
  9576. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9577. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9578. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9579. msm_routing_put_audio_mixer),
  9580. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9581. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9582. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9583. msm_routing_put_audio_mixer),
  9584. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9585. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9586. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9587. msm_routing_put_audio_mixer),
  9588. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9589. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9590. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9591. msm_routing_put_audio_mixer),
  9592. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9593. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9594. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9595. msm_routing_put_audio_mixer),
  9596. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9597. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9598. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9599. msm_routing_put_audio_mixer),
  9600. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9601. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9602. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9603. msm_routing_put_audio_mixer),
  9604. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9605. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9606. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9607. msm_routing_put_audio_mixer),
  9608. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9609. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9610. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9611. msm_routing_put_audio_mixer),
  9612. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9613. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9614. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9615. msm_routing_put_audio_mixer),
  9616. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9617. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9618. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9619. msm_routing_put_audio_mixer),
  9620. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9621. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9622. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9623. msm_routing_put_audio_mixer),
  9624. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9625. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9626. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9627. msm_routing_put_audio_mixer),
  9628. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9629. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9630. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9631. msm_routing_put_audio_mixer),
  9632. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9633. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9634. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9635. msm_routing_put_audio_mixer),
  9636. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9637. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9638. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9639. msm_routing_put_audio_mixer),
  9640. };
  9641. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9642. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9643. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9644. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9645. msm_routing_put_audio_mixer),
  9646. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9647. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9648. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9649. msm_routing_put_audio_mixer),
  9650. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9651. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9652. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9653. msm_routing_put_audio_mixer),
  9654. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9655. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9656. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9657. msm_routing_put_audio_mixer),
  9658. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9659. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9660. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9661. msm_routing_put_audio_mixer),
  9662. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9663. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9664. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9665. msm_routing_put_audio_mixer),
  9666. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9667. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9668. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9669. msm_routing_put_audio_mixer),
  9670. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9671. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9672. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9673. msm_routing_put_audio_mixer),
  9674. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9675. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9676. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9677. msm_routing_put_audio_mixer),
  9678. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9679. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9680. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9681. msm_routing_put_audio_mixer),
  9682. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9683. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9684. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9685. msm_routing_put_audio_mixer),
  9686. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9687. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9688. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9689. msm_routing_put_audio_mixer),
  9690. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9691. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9692. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9693. msm_routing_put_audio_mixer),
  9694. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9695. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9696. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9697. msm_routing_put_audio_mixer),
  9698. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9699. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9700. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9701. msm_routing_put_audio_mixer),
  9702. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9703. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9704. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9705. msm_routing_put_audio_mixer),
  9706. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9707. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9708. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9709. msm_routing_put_audio_mixer),
  9710. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9711. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9712. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9713. msm_routing_put_audio_mixer),
  9714. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9715. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9716. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9717. msm_routing_put_audio_mixer),
  9718. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9719. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9720. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9721. msm_routing_put_audio_mixer),
  9722. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9723. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9724. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9725. msm_routing_put_audio_mixer),
  9726. };
  9727. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9728. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9729. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9730. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9731. msm_routing_put_audio_mixer),
  9732. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9733. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9734. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9735. msm_routing_put_audio_mixer),
  9736. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9737. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9738. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9739. msm_routing_put_audio_mixer),
  9740. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9741. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9742. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9743. msm_routing_put_audio_mixer),
  9744. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9745. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9746. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9747. msm_routing_put_audio_mixer),
  9748. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9749. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9750. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9751. msm_routing_put_audio_mixer),
  9752. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9753. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9754. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9755. msm_routing_put_audio_mixer),
  9756. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9757. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9758. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9759. msm_routing_put_audio_mixer),
  9760. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9761. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9762. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9763. msm_routing_put_audio_mixer),
  9764. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9765. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9766. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9767. msm_routing_put_audio_mixer),
  9768. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9769. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9770. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9771. msm_routing_put_audio_mixer),
  9772. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9773. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9774. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9775. msm_routing_put_audio_mixer),
  9776. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9777. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9778. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9779. msm_routing_put_audio_mixer),
  9780. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9781. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9782. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9783. msm_routing_put_audio_mixer),
  9784. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9785. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9786. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9787. msm_routing_put_audio_mixer),
  9788. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9789. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9790. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9791. msm_routing_put_audio_mixer),
  9792. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9793. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9794. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9795. msm_routing_put_audio_mixer),
  9796. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9797. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9798. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9799. msm_routing_put_audio_mixer),
  9800. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9801. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9802. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9803. msm_routing_put_audio_mixer),
  9804. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9805. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9806. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9807. msm_routing_put_audio_mixer),
  9808. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9809. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9810. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9811. msm_routing_put_audio_mixer),
  9812. };
  9813. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  9814. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9815. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9816. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9817. msm_routing_put_audio_mixer),
  9818. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9819. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9820. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9821. msm_routing_put_audio_mixer),
  9822. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9823. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9824. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9825. msm_routing_put_audio_mixer),
  9826. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9827. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9828. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9829. msm_routing_put_audio_mixer),
  9830. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9831. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9832. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9833. msm_routing_put_audio_mixer),
  9834. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9835. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9836. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9837. msm_routing_put_audio_mixer),
  9838. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9839. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9840. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9841. msm_routing_put_audio_mixer),
  9842. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9843. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9844. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9845. msm_routing_put_audio_mixer),
  9846. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9847. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9848. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9849. msm_routing_put_audio_mixer),
  9850. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9851. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9852. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9853. msm_routing_put_audio_mixer),
  9854. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9855. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9856. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9857. msm_routing_put_audio_mixer),
  9858. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9859. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9860. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9861. msm_routing_put_audio_mixer),
  9862. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9863. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9864. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9865. msm_routing_put_audio_mixer),
  9866. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9867. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9868. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9869. msm_routing_put_audio_mixer),
  9870. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9871. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9872. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9873. msm_routing_put_audio_mixer),
  9874. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9875. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9876. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9877. msm_routing_put_audio_mixer),
  9878. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9879. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9880. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9881. msm_routing_put_audio_mixer),
  9882. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9883. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9884. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9885. msm_routing_put_audio_mixer),
  9886. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9887. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9888. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9889. msm_routing_put_audio_mixer),
  9890. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9891. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9892. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9893. msm_routing_put_audio_mixer),
  9894. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9895. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9896. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9897. msm_routing_put_audio_mixer),
  9898. };
  9899. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  9900. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9901. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9902. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9903. msm_routing_put_audio_mixer),
  9904. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9905. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9906. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9907. msm_routing_put_audio_mixer),
  9908. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9909. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9910. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9911. msm_routing_put_audio_mixer),
  9912. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9913. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9914. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9915. msm_routing_put_audio_mixer),
  9916. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9917. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9918. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9919. msm_routing_put_audio_mixer),
  9920. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9921. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9922. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9923. msm_routing_put_audio_mixer),
  9924. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9925. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9926. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9927. msm_routing_put_audio_mixer),
  9928. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9929. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9930. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9931. msm_routing_put_audio_mixer),
  9932. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9933. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9934. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9935. msm_routing_put_audio_mixer),
  9936. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9937. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9938. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9939. msm_routing_put_audio_mixer),
  9940. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9941. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9942. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9943. msm_routing_put_audio_mixer),
  9944. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9945. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9946. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9947. msm_routing_put_audio_mixer),
  9948. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9949. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9950. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9951. msm_routing_put_audio_mixer),
  9952. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9953. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9954. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9955. msm_routing_put_audio_mixer),
  9956. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9957. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9958. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9959. msm_routing_put_audio_mixer),
  9960. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9961. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9962. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9963. msm_routing_put_audio_mixer),
  9964. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9965. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9966. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9967. msm_routing_put_audio_mixer),
  9968. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9969. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9970. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9971. msm_routing_put_audio_mixer),
  9972. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9973. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9974. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9975. msm_routing_put_audio_mixer),
  9976. };
  9977. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  9978. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9979. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9980. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9981. msm_routing_put_audio_mixer),
  9982. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9983. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9984. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9985. msm_routing_put_audio_mixer),
  9986. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9987. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9988. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9989. msm_routing_put_audio_mixer),
  9990. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9991. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9992. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9993. msm_routing_put_audio_mixer),
  9994. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9995. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9996. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9997. msm_routing_put_audio_mixer),
  9998. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9999. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10000. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10001. msm_routing_put_audio_mixer),
  10002. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10003. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10004. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10005. msm_routing_put_audio_mixer),
  10006. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10007. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10008. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10009. msm_routing_put_audio_mixer),
  10010. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10011. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10012. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10013. msm_routing_put_audio_mixer),
  10014. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10015. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10016. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10017. msm_routing_put_audio_mixer),
  10018. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10019. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10020. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10021. msm_routing_put_audio_mixer),
  10022. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10023. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10024. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10025. msm_routing_put_audio_mixer),
  10026. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10027. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10028. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10029. msm_routing_put_audio_mixer),
  10030. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10031. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10032. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10033. msm_routing_put_audio_mixer),
  10034. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10035. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10036. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10037. msm_routing_put_audio_mixer),
  10038. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10039. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10040. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10041. msm_routing_put_audio_mixer),
  10042. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10043. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10044. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10045. msm_routing_put_audio_mixer),
  10046. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10047. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10048. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10049. msm_routing_put_audio_mixer),
  10050. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10051. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10052. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10053. msm_routing_put_audio_mixer),
  10054. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10055. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10056. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10057. msm_routing_put_audio_mixer),
  10058. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10059. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10060. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10061. msm_routing_put_audio_mixer),
  10062. };
  10063. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  10064. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10065. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10066. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10067. msm_routing_put_audio_mixer),
  10068. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10069. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10070. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10071. msm_routing_put_audio_mixer),
  10072. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10073. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10074. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10075. msm_routing_put_audio_mixer),
  10076. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10077. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10078. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10079. msm_routing_put_audio_mixer),
  10080. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10081. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10082. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10083. msm_routing_put_audio_mixer),
  10084. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10085. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10086. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10087. msm_routing_put_audio_mixer),
  10088. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10089. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10090. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10091. msm_routing_put_audio_mixer),
  10092. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10093. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10094. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10095. msm_routing_put_audio_mixer),
  10096. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10097. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10098. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10099. msm_routing_put_audio_mixer),
  10100. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10101. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10102. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10103. msm_routing_put_audio_mixer),
  10104. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10105. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10106. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10107. msm_routing_put_audio_mixer),
  10108. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10109. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10110. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10111. msm_routing_put_audio_mixer),
  10112. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10113. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10114. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10115. msm_routing_put_audio_mixer),
  10116. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10117. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10118. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10119. msm_routing_put_audio_mixer),
  10120. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10121. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10122. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10123. msm_routing_put_audio_mixer),
  10124. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10125. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10126. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10127. msm_routing_put_audio_mixer),
  10128. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10129. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10130. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10131. msm_routing_put_audio_mixer),
  10132. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10133. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10134. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10135. msm_routing_put_audio_mixer),
  10136. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10137. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10138. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10139. msm_routing_put_audio_mixer),
  10140. };
  10141. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  10142. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10143. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10144. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10145. msm_routing_put_audio_mixer),
  10146. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10147. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10148. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10149. msm_routing_put_audio_mixer),
  10150. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10151. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10152. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10153. msm_routing_put_audio_mixer),
  10154. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10155. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10156. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10157. msm_routing_put_audio_mixer),
  10158. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10159. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10160. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10161. msm_routing_put_audio_mixer),
  10162. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10163. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10164. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10165. msm_routing_put_audio_mixer),
  10166. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10167. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10168. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10169. msm_routing_put_audio_mixer),
  10170. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10171. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10172. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10173. msm_routing_put_audio_mixer),
  10174. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10175. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10176. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10177. msm_routing_put_audio_mixer),
  10178. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10179. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10180. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10181. msm_routing_put_audio_mixer),
  10182. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10183. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10184. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10185. msm_routing_put_audio_mixer),
  10186. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10187. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10188. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10189. msm_routing_put_audio_mixer),
  10190. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10191. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10192. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10193. msm_routing_put_audio_mixer),
  10194. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10195. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10196. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10197. msm_routing_put_audio_mixer),
  10198. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10199. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10200. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10201. msm_routing_put_audio_mixer),
  10202. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10203. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10204. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10205. msm_routing_put_audio_mixer),
  10206. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10207. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10208. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10209. msm_routing_put_audio_mixer),
  10210. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10211. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10212. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10213. msm_routing_put_audio_mixer),
  10214. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10215. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10216. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10217. msm_routing_put_audio_mixer),
  10218. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10219. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10220. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10221. msm_routing_put_audio_mixer),
  10222. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10223. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10224. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10225. msm_routing_put_audio_mixer),
  10226. };
  10227. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  10228. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10229. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10230. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10231. msm_routing_put_audio_mixer),
  10232. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10233. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10234. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10235. msm_routing_put_audio_mixer),
  10236. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10237. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10238. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10239. msm_routing_put_audio_mixer),
  10240. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10241. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10242. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10243. msm_routing_put_audio_mixer),
  10244. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10245. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10246. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10247. msm_routing_put_audio_mixer),
  10248. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10249. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10250. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10251. msm_routing_put_audio_mixer),
  10252. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10253. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10254. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10255. msm_routing_put_audio_mixer),
  10256. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10257. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10258. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10259. msm_routing_put_audio_mixer),
  10260. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10261. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10262. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10263. msm_routing_put_audio_mixer),
  10264. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10265. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10266. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10267. msm_routing_put_audio_mixer),
  10268. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10269. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10270. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10271. msm_routing_put_audio_mixer),
  10272. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10273. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10274. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10275. msm_routing_put_audio_mixer),
  10276. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10277. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10278. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10279. msm_routing_put_audio_mixer),
  10280. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10281. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10282. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10283. msm_routing_put_audio_mixer),
  10284. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10285. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10286. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10287. msm_routing_put_audio_mixer),
  10288. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10289. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10290. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10291. msm_routing_put_audio_mixer),
  10292. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10293. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10294. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10295. msm_routing_put_audio_mixer),
  10296. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10297. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10298. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10299. msm_routing_put_audio_mixer),
  10300. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10301. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10302. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10303. msm_routing_put_audio_mixer),
  10304. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10305. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10306. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10307. msm_routing_put_audio_mixer),
  10308. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10309. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10310. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10311. msm_routing_put_audio_mixer),
  10312. };
  10313. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  10314. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10315. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10316. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10317. msm_routing_put_audio_mixer),
  10318. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10319. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10320. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10321. msm_routing_put_audio_mixer),
  10322. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10323. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10324. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10325. msm_routing_put_audio_mixer),
  10326. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10327. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10328. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10329. msm_routing_put_audio_mixer),
  10330. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10331. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10332. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10333. msm_routing_put_audio_mixer),
  10334. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10335. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10336. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10337. msm_routing_put_audio_mixer),
  10338. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10339. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10340. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10341. msm_routing_put_audio_mixer),
  10342. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10343. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10344. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10345. msm_routing_put_audio_mixer),
  10346. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10347. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10348. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10349. msm_routing_put_audio_mixer),
  10350. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10351. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10352. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10353. msm_routing_put_audio_mixer),
  10354. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10355. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10356. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10357. msm_routing_put_audio_mixer),
  10358. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10359. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10360. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10361. msm_routing_put_audio_mixer),
  10362. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10363. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10364. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10365. msm_routing_put_audio_mixer),
  10366. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10367. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10368. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10369. msm_routing_put_audio_mixer),
  10370. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10371. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10372. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10373. msm_routing_put_audio_mixer),
  10374. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10375. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10376. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10377. msm_routing_put_audio_mixer),
  10378. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10379. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10380. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10381. msm_routing_put_audio_mixer),
  10382. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10383. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10384. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10385. msm_routing_put_audio_mixer),
  10386. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10387. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10388. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10389. msm_routing_put_audio_mixer),
  10390. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10391. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10392. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10393. msm_routing_put_audio_mixer),
  10394. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10395. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10396. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10397. msm_routing_put_audio_mixer),
  10398. };
  10399. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  10400. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10401. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10402. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10403. msm_routing_put_audio_mixer),
  10404. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10405. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10406. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10407. msm_routing_put_audio_mixer),
  10408. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10409. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10410. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10411. msm_routing_put_audio_mixer),
  10412. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10413. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10414. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10415. msm_routing_put_audio_mixer),
  10416. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10417. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10418. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10419. msm_routing_put_audio_mixer),
  10420. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10421. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10422. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10423. msm_routing_put_audio_mixer),
  10424. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10425. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10426. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10427. msm_routing_put_audio_mixer),
  10428. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10429. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10430. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10431. msm_routing_put_audio_mixer),
  10432. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10433. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10434. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10435. msm_routing_put_audio_mixer),
  10436. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10437. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10438. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10439. msm_routing_put_audio_mixer),
  10440. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10441. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10442. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10443. msm_routing_put_audio_mixer),
  10444. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10445. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10446. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10447. msm_routing_put_audio_mixer),
  10448. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10449. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10450. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10451. msm_routing_put_audio_mixer),
  10452. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10453. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10454. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10455. msm_routing_put_audio_mixer),
  10456. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10457. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10458. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10459. msm_routing_put_audio_mixer),
  10460. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10461. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10462. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10463. msm_routing_put_audio_mixer),
  10464. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10465. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10466. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10467. msm_routing_put_audio_mixer),
  10468. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10469. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10470. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10471. msm_routing_put_audio_mixer),
  10472. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10473. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10474. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10475. msm_routing_put_audio_mixer),
  10476. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10477. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10478. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10479. msm_routing_put_audio_mixer),
  10480. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10481. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10482. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10483. msm_routing_put_audio_mixer),
  10484. };
  10485. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  10486. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10487. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10488. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10489. msm_routing_put_audio_mixer),
  10490. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10491. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10492. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10493. msm_routing_put_audio_mixer),
  10494. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10495. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10496. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10497. msm_routing_put_audio_mixer),
  10498. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10499. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10500. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10501. msm_routing_put_audio_mixer),
  10502. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10503. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10504. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10505. msm_routing_put_audio_mixer),
  10506. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10507. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10508. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10509. msm_routing_put_audio_mixer),
  10510. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10511. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10512. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10513. msm_routing_put_audio_mixer),
  10514. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10515. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10516. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10517. msm_routing_put_audio_mixer),
  10518. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10519. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10520. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10521. msm_routing_put_audio_mixer),
  10522. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10523. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10524. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10525. msm_routing_put_audio_mixer),
  10526. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10527. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10528. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10529. msm_routing_put_audio_mixer),
  10530. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10531. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10532. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10533. msm_routing_put_audio_mixer),
  10534. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10535. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10536. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10537. msm_routing_put_audio_mixer),
  10538. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10539. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10540. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10541. msm_routing_put_audio_mixer),
  10542. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10543. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10544. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10545. msm_routing_put_audio_mixer),
  10546. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10547. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10548. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10549. msm_routing_put_audio_mixer),
  10550. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10551. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10552. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10553. msm_routing_put_audio_mixer),
  10554. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10555. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10556. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10557. msm_routing_put_audio_mixer),
  10558. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10559. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10560. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10561. msm_routing_put_audio_mixer),
  10562. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10563. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10564. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10565. msm_routing_put_audio_mixer),
  10566. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10567. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10568. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10569. msm_routing_put_audio_mixer),
  10570. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10571. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10572. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10573. msm_routing_put_audio_mixer),
  10574. };
  10575. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  10576. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10577. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10578. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10579. msm_routing_put_audio_mixer),
  10580. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10581. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10582. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10583. msm_routing_put_audio_mixer),
  10584. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10585. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10586. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10587. msm_routing_put_audio_mixer),
  10588. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10589. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10590. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10591. msm_routing_put_audio_mixer),
  10592. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10593. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10594. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10595. msm_routing_put_audio_mixer),
  10596. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10597. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10598. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10599. msm_routing_put_audio_mixer),
  10600. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10601. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10602. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10603. msm_routing_put_audio_mixer),
  10604. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10605. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10606. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10607. msm_routing_put_audio_mixer),
  10608. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10609. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10610. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10611. msm_routing_put_audio_mixer),
  10612. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10613. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10614. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10615. msm_routing_put_audio_mixer),
  10616. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10617. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10618. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10619. msm_routing_put_audio_mixer),
  10620. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10621. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10622. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10623. msm_routing_put_audio_mixer),
  10624. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10625. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10626. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10627. msm_routing_put_audio_mixer),
  10628. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10629. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10630. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10631. msm_routing_put_audio_mixer),
  10632. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10633. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10634. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10635. msm_routing_put_audio_mixer),
  10636. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10637. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10638. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10639. msm_routing_put_audio_mixer),
  10640. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10641. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10642. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10643. msm_routing_put_audio_mixer),
  10644. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10645. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10646. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10647. msm_routing_put_audio_mixer),
  10648. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10649. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10650. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10651. msm_routing_put_audio_mixer),
  10652. };
  10653. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  10654. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10655. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10656. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10657. msm_routing_put_audio_mixer),
  10658. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10659. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10660. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10661. msm_routing_put_audio_mixer),
  10662. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10663. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10664. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10665. msm_routing_put_audio_mixer),
  10666. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10667. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10668. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10669. msm_routing_put_audio_mixer),
  10670. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10671. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10672. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10673. msm_routing_put_audio_mixer),
  10674. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10675. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10676. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10677. msm_routing_put_audio_mixer),
  10678. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10679. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10680. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10681. msm_routing_put_audio_mixer),
  10682. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10683. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10684. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10685. msm_routing_put_audio_mixer),
  10686. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10687. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10688. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10689. msm_routing_put_audio_mixer),
  10690. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10691. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10692. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10693. msm_routing_put_audio_mixer),
  10694. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10695. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10696. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10697. msm_routing_put_audio_mixer),
  10698. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10699. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10700. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10701. msm_routing_put_audio_mixer),
  10702. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10703. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10704. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10705. msm_routing_put_audio_mixer),
  10706. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10707. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10708. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10709. msm_routing_put_audio_mixer),
  10710. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10711. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10712. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10713. msm_routing_put_audio_mixer),
  10714. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10715. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10716. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10717. msm_routing_put_audio_mixer),
  10718. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10719. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10720. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10721. msm_routing_put_audio_mixer),
  10722. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10723. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10724. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10725. msm_routing_put_audio_mixer),
  10726. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10727. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10728. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10729. msm_routing_put_audio_mixer),
  10730. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10731. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10732. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10733. msm_routing_put_audio_mixer),
  10734. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10735. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10736. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10737. msm_routing_put_audio_mixer),
  10738. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10739. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10740. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10741. msm_routing_put_audio_mixer),
  10742. };
  10743. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  10744. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10745. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10746. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10747. msm_routing_put_audio_mixer),
  10748. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10749. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10750. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10751. msm_routing_put_audio_mixer),
  10752. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10753. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10754. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10755. msm_routing_put_audio_mixer),
  10756. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10757. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10758. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10759. msm_routing_put_audio_mixer),
  10760. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10761. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10762. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10763. msm_routing_put_audio_mixer),
  10764. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10765. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10766. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10767. msm_routing_put_audio_mixer),
  10768. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10769. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10770. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10771. msm_routing_put_audio_mixer),
  10772. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10773. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10774. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10775. msm_routing_put_audio_mixer),
  10776. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10777. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10778. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10779. msm_routing_put_audio_mixer),
  10780. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10781. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10782. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10783. msm_routing_put_audio_mixer),
  10784. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10785. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10786. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10787. msm_routing_put_audio_mixer),
  10788. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10789. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10790. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10791. msm_routing_put_audio_mixer),
  10792. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10793. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10794. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10795. msm_routing_put_audio_mixer),
  10796. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10797. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10798. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10799. msm_routing_put_audio_mixer),
  10800. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10801. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10802. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10803. msm_routing_put_audio_mixer),
  10804. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10805. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10806. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10807. msm_routing_put_audio_mixer),
  10808. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10809. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10810. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10811. msm_routing_put_audio_mixer),
  10812. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10813. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10814. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10815. msm_routing_put_audio_mixer),
  10816. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10817. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10818. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10819. msm_routing_put_audio_mixer),
  10820. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10821. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10822. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10823. msm_routing_put_audio_mixer),
  10824. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10825. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10826. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10827. msm_routing_put_audio_mixer),
  10828. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10829. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10830. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10831. msm_routing_put_audio_mixer),
  10832. };
  10833. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  10834. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10835. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10836. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10837. msm_routing_put_audio_mixer),
  10838. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10839. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10840. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10841. msm_routing_put_audio_mixer),
  10842. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10843. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10844. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10845. msm_routing_put_audio_mixer),
  10846. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10847. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10848. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10849. msm_routing_put_audio_mixer),
  10850. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10851. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10852. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10853. msm_routing_put_audio_mixer),
  10854. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10855. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10856. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10857. msm_routing_put_audio_mixer),
  10858. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10859. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10860. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10861. msm_routing_put_audio_mixer),
  10862. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10863. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10864. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10865. msm_routing_put_audio_mixer),
  10866. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10867. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10868. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10869. msm_routing_put_audio_mixer),
  10870. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10871. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10872. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10873. msm_routing_put_audio_mixer),
  10874. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10875. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10876. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10877. msm_routing_put_audio_mixer),
  10878. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10879. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10880. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10881. msm_routing_put_audio_mixer),
  10882. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10883. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10884. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10885. msm_routing_put_audio_mixer),
  10886. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10887. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10888. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10889. msm_routing_put_audio_mixer),
  10890. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10891. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10892. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10893. msm_routing_put_audio_mixer),
  10894. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10895. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10896. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10897. msm_routing_put_audio_mixer),
  10898. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10899. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10900. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10901. msm_routing_put_audio_mixer),
  10902. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10903. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10904. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10905. msm_routing_put_audio_mixer),
  10906. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10907. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10908. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10909. msm_routing_put_audio_mixer),
  10910. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10911. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10912. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10913. msm_routing_put_audio_mixer),
  10914. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10915. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10916. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10917. msm_routing_put_audio_mixer),
  10918. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10919. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10920. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10921. msm_routing_put_audio_mixer),
  10922. };
  10923. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  10924. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10925. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10926. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10927. msm_routing_put_audio_mixer),
  10928. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10929. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10930. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10931. msm_routing_put_audio_mixer),
  10932. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10933. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10934. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10935. msm_routing_put_audio_mixer),
  10936. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10937. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10938. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10939. msm_routing_put_audio_mixer),
  10940. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10941. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10942. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10943. msm_routing_put_audio_mixer),
  10944. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10945. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10946. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10947. msm_routing_put_audio_mixer),
  10948. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10949. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10950. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10951. msm_routing_put_audio_mixer),
  10952. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10953. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10954. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10955. msm_routing_put_audio_mixer),
  10956. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10957. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10958. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10959. msm_routing_put_audio_mixer),
  10960. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10961. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10962. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10963. msm_routing_put_audio_mixer),
  10964. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10965. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10966. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10967. msm_routing_put_audio_mixer),
  10968. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10969. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10970. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10971. msm_routing_put_audio_mixer),
  10972. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10973. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10974. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10975. msm_routing_put_audio_mixer),
  10976. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10977. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10978. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10979. msm_routing_put_audio_mixer),
  10980. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10981. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10982. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10983. msm_routing_put_audio_mixer),
  10984. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10985. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10986. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10987. msm_routing_put_audio_mixer),
  10988. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10989. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10990. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10991. msm_routing_put_audio_mixer),
  10992. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10993. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10994. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10995. msm_routing_put_audio_mixer),
  10996. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10997. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10998. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10999. msm_routing_put_audio_mixer),
  11000. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11001. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11002. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11003. msm_routing_put_audio_mixer),
  11004. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11005. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11006. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11007. msm_routing_put_audio_mixer),
  11008. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11009. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11010. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11011. msm_routing_put_audio_mixer),
  11012. };
  11013. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  11014. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11015. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11016. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11017. msm_routing_put_audio_mixer),
  11018. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11019. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11020. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11021. msm_routing_put_audio_mixer),
  11022. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11023. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11024. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11025. msm_routing_put_audio_mixer),
  11026. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11027. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11028. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11029. msm_routing_put_audio_mixer),
  11030. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11031. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11032. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11033. msm_routing_put_audio_mixer),
  11034. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11035. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11036. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11037. msm_routing_put_audio_mixer),
  11038. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11039. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11040. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11041. msm_routing_put_audio_mixer),
  11042. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11043. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11044. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11045. msm_routing_put_audio_mixer),
  11046. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11047. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11048. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11049. msm_routing_put_audio_mixer),
  11050. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11051. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11052. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11053. msm_routing_put_audio_mixer),
  11054. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11055. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11056. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11057. msm_routing_put_audio_mixer),
  11058. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11059. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11060. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11061. msm_routing_put_audio_mixer),
  11062. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11063. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11064. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11065. msm_routing_put_audio_mixer),
  11066. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11067. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11068. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11069. msm_routing_put_audio_mixer),
  11070. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11071. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11072. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11073. msm_routing_put_audio_mixer),
  11074. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11075. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11076. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11077. msm_routing_put_audio_mixer),
  11078. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11079. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11080. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11081. msm_routing_put_audio_mixer),
  11082. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11083. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11084. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11085. msm_routing_put_audio_mixer),
  11086. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11087. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11088. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11089. msm_routing_put_audio_mixer),
  11090. };
  11091. static const struct snd_kcontrol_new quin_tdm_tx_1_mixer_controls[] = {
  11092. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11093. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11094. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11095. msm_routing_put_audio_mixer),
  11096. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11097. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11098. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11099. msm_routing_put_audio_mixer),
  11100. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11101. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11102. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11103. msm_routing_put_audio_mixer),
  11104. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11105. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11106. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11107. msm_routing_put_audio_mixer),
  11108. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11109. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11110. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11111. msm_routing_put_audio_mixer),
  11112. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11113. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11114. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11115. msm_routing_put_audio_mixer),
  11116. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11117. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11118. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11119. msm_routing_put_audio_mixer),
  11120. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11121. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11122. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11123. msm_routing_put_audio_mixer),
  11124. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11125. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11126. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11127. msm_routing_put_audio_mixer),
  11128. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11129. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11130. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11131. msm_routing_put_audio_mixer),
  11132. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11133. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11134. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11135. msm_routing_put_audio_mixer),
  11136. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11137. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11138. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11139. msm_routing_put_audio_mixer),
  11140. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11141. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11142. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11143. msm_routing_put_audio_mixer),
  11144. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11145. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11146. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11147. msm_routing_put_audio_mixer),
  11148. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11149. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11150. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11151. msm_routing_put_audio_mixer),
  11152. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11153. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11154. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11155. msm_routing_put_audio_mixer),
  11156. };
  11157. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  11158. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11159. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11160. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11161. msm_routing_put_audio_mixer),
  11162. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11163. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11164. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11165. msm_routing_put_audio_mixer),
  11166. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11167. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11168. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11169. msm_routing_put_audio_mixer),
  11170. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11171. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11172. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11173. msm_routing_put_audio_mixer),
  11174. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11175. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11176. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11177. msm_routing_put_audio_mixer),
  11178. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11179. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11180. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11181. msm_routing_put_audio_mixer),
  11182. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11183. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11184. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11185. msm_routing_put_audio_mixer),
  11186. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11187. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11188. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11189. msm_routing_put_audio_mixer),
  11190. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11191. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11192. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11193. msm_routing_put_audio_mixer),
  11194. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11195. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11196. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11197. msm_routing_put_audio_mixer),
  11198. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11199. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11200. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11201. msm_routing_put_audio_mixer),
  11202. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11203. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11204. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11205. msm_routing_put_audio_mixer),
  11206. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11207. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11208. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11209. msm_routing_put_audio_mixer),
  11210. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11211. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11212. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11213. msm_routing_put_audio_mixer),
  11214. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11215. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11216. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11217. msm_routing_put_audio_mixer),
  11218. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11219. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11220. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11221. msm_routing_put_audio_mixer),
  11222. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11223. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11224. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11225. msm_routing_put_audio_mixer),
  11226. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11227. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11228. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11229. msm_routing_put_audio_mixer),
  11230. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11231. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11232. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11233. msm_routing_put_audio_mixer),
  11234. };
  11235. static const struct snd_kcontrol_new quin_tdm_tx_2_mixer_controls[] = {
  11236. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11237. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11238. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11239. msm_routing_put_audio_mixer),
  11240. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11241. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11242. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11243. msm_routing_put_audio_mixer),
  11244. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11245. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11246. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11247. msm_routing_put_audio_mixer),
  11248. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11249. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11250. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11251. msm_routing_put_audio_mixer),
  11252. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11253. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11254. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11255. msm_routing_put_audio_mixer),
  11256. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11257. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11258. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11259. msm_routing_put_audio_mixer),
  11260. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11261. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11262. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11263. msm_routing_put_audio_mixer),
  11264. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11265. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11266. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11267. msm_routing_put_audio_mixer),
  11268. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11269. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11270. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11271. msm_routing_put_audio_mixer),
  11272. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11273. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11274. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11275. msm_routing_put_audio_mixer),
  11276. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11277. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11278. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11279. msm_routing_put_audio_mixer),
  11280. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11281. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11282. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11283. msm_routing_put_audio_mixer),
  11284. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11285. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11286. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11287. msm_routing_put_audio_mixer),
  11288. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11289. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11290. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11291. msm_routing_put_audio_mixer),
  11292. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11293. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11294. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11295. msm_routing_put_audio_mixer),
  11296. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11297. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11298. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11299. msm_routing_put_audio_mixer),
  11300. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11301. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11302. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11303. msm_routing_put_audio_mixer),
  11304. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11305. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11306. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11307. msm_routing_put_audio_mixer),
  11308. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11309. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11310. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11311. msm_routing_put_audio_mixer),
  11312. };
  11313. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  11314. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11315. MSM_BACKEND_DAI_QUIN_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_QUIN_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_QUIN_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_QUIN_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_QUIN_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_QUIN_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_QUIN_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_QUIN_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_QUIN_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_QUIN_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_QUIN_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_QUIN_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_QUIN_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_QUIN_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_QUIN_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_QUIN_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_QUIN_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_QUIN_TDM_RX_2,
  11384. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11385. msm_routing_put_audio_mixer),
  11386. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11387. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11388. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11389. msm_routing_put_audio_mixer),
  11390. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11391. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11392. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11393. msm_routing_put_audio_mixer),
  11394. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11395. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11396. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11397. msm_routing_put_audio_mixer),
  11398. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11399. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11400. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11401. msm_routing_put_audio_mixer),
  11402. };
  11403. static const struct snd_kcontrol_new quin_tdm_tx_3_mixer_controls[] = {
  11404. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11405. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11406. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11407. msm_routing_put_audio_mixer),
  11408. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11409. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11410. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11411. msm_routing_put_audio_mixer),
  11412. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11413. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11414. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11415. msm_routing_put_audio_mixer),
  11416. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11417. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11418. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11419. msm_routing_put_audio_mixer),
  11420. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11421. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11422. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11423. msm_routing_put_audio_mixer),
  11424. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11425. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11426. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11427. msm_routing_put_audio_mixer),
  11428. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11429. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11430. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11431. msm_routing_put_audio_mixer),
  11432. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11433. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11434. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11435. msm_routing_put_audio_mixer),
  11436. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11437. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11438. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11439. msm_routing_put_audio_mixer),
  11440. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11441. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11442. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11443. msm_routing_put_audio_mixer),
  11444. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11445. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11446. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11447. msm_routing_put_audio_mixer),
  11448. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11449. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11450. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11451. msm_routing_put_audio_mixer),
  11452. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11453. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11454. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11455. msm_routing_put_audio_mixer),
  11456. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11457. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11458. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11459. msm_routing_put_audio_mixer),
  11460. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11461. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11462. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11463. msm_routing_put_audio_mixer),
  11464. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11465. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11466. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11467. msm_routing_put_audio_mixer),
  11468. };
  11469. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  11470. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11471. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11472. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11473. msm_routing_put_audio_mixer),
  11474. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11475. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11476. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11477. msm_routing_put_audio_mixer),
  11478. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11479. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11480. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11481. msm_routing_put_audio_mixer),
  11482. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11483. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11484. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11485. msm_routing_put_audio_mixer),
  11486. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11487. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11488. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11489. msm_routing_put_audio_mixer),
  11490. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11491. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11492. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11493. msm_routing_put_audio_mixer),
  11494. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11495. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11496. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11497. msm_routing_put_audio_mixer),
  11498. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11499. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11500. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11501. msm_routing_put_audio_mixer),
  11502. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11503. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11504. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11505. msm_routing_put_audio_mixer),
  11506. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11507. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11508. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11509. msm_routing_put_audio_mixer),
  11510. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11511. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11512. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11513. msm_routing_put_audio_mixer),
  11514. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11515. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11516. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11517. msm_routing_put_audio_mixer),
  11518. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11519. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11520. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11521. msm_routing_put_audio_mixer),
  11522. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11523. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11524. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11525. msm_routing_put_audio_mixer),
  11526. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11527. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11528. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11529. msm_routing_put_audio_mixer),
  11530. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11531. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11532. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11533. msm_routing_put_audio_mixer),
  11534. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11535. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11536. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11537. msm_routing_put_audio_mixer),
  11538. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11539. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11540. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11541. msm_routing_put_audio_mixer),
  11542. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11543. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11544. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11545. msm_routing_put_audio_mixer),
  11546. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11547. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11548. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11549. msm_routing_put_audio_mixer),
  11550. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11551. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11552. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11553. msm_routing_put_audio_mixer),
  11554. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11555. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11556. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11557. msm_routing_put_audio_mixer),
  11558. };
  11559. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  11560. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11561. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11562. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11563. msm_routing_put_audio_mixer),
  11564. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11565. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11566. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11567. msm_routing_put_audio_mixer),
  11568. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11569. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11570. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11571. msm_routing_put_audio_mixer),
  11572. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11573. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11574. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11575. msm_routing_put_audio_mixer),
  11576. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11577. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11578. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11579. msm_routing_put_audio_mixer),
  11580. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11581. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11582. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11583. msm_routing_put_audio_mixer),
  11584. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11585. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11586. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11587. msm_routing_put_audio_mixer),
  11588. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11589. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11590. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11591. msm_routing_put_audio_mixer),
  11592. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11593. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11594. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11595. msm_routing_put_audio_mixer),
  11596. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11597. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11598. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11599. msm_routing_put_audio_mixer),
  11600. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11601. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11602. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11603. msm_routing_put_audio_mixer),
  11604. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11605. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11606. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11607. msm_routing_put_audio_mixer),
  11608. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11609. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11610. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11611. msm_routing_put_audio_mixer),
  11612. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11613. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11614. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11615. msm_routing_put_audio_mixer),
  11616. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11617. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11618. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11619. msm_routing_put_audio_mixer),
  11620. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11621. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11622. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11623. msm_routing_put_audio_mixer),
  11624. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11625. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11626. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11627. msm_routing_put_audio_mixer),
  11628. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11629. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11630. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11631. msm_routing_put_audio_mixer),
  11632. };
  11633. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  11634. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11635. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11636. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11637. msm_routing_put_audio_mixer),
  11638. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11639. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11640. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11641. msm_routing_put_audio_mixer),
  11642. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11643. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11644. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11645. msm_routing_put_audio_mixer),
  11646. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11647. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11648. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11649. msm_routing_put_audio_mixer),
  11650. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11651. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11652. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11653. msm_routing_put_audio_mixer),
  11654. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11655. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11656. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11657. msm_routing_put_audio_mixer),
  11658. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11659. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11660. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11661. msm_routing_put_audio_mixer),
  11662. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11663. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11664. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11665. msm_routing_put_audio_mixer),
  11666. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11667. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11668. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11669. msm_routing_put_audio_mixer),
  11670. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11671. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11672. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11673. msm_routing_put_audio_mixer),
  11674. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11675. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11676. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11677. msm_routing_put_audio_mixer),
  11678. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11679. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11680. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11681. msm_routing_put_audio_mixer),
  11682. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11683. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11684. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11685. msm_routing_put_audio_mixer),
  11686. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11687. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11688. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11689. msm_routing_put_audio_mixer),
  11690. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11691. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11692. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11693. msm_routing_put_audio_mixer),
  11694. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11695. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11696. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11697. msm_routing_put_audio_mixer),
  11698. };
  11699. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11700. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11701. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11702. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11703. msm_routing_put_audio_mixer),
  11704. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11705. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11706. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11707. msm_routing_put_audio_mixer),
  11708. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11709. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11710. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11711. msm_routing_put_audio_mixer),
  11712. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11713. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11714. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11715. msm_routing_put_audio_mixer),
  11716. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11717. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11718. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11719. msm_routing_put_audio_mixer),
  11720. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11721. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11722. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11723. msm_routing_put_audio_mixer),
  11724. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11725. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11726. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11727. msm_routing_put_audio_mixer),
  11728. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11729. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11730. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11731. msm_routing_put_audio_mixer),
  11732. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11733. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11734. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11735. msm_routing_put_audio_mixer),
  11736. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11737. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11738. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11739. msm_routing_put_audio_mixer),
  11740. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11741. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11742. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11743. msm_routing_put_audio_mixer),
  11744. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11745. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11746. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11747. msm_routing_put_audio_mixer),
  11748. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11749. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11750. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11751. msm_routing_put_audio_mixer),
  11752. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11753. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11754. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11755. msm_routing_put_audio_mixer),
  11756. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11757. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11758. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11759. msm_routing_put_audio_mixer),
  11760. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11761. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11762. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11763. msm_routing_put_audio_mixer),
  11764. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11765. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11766. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11767. msm_routing_put_audio_mixer),
  11768. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11769. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11770. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11771. msm_routing_put_audio_mixer),
  11772. };
  11773. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  11774. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11775. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11776. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11777. msm_routing_put_audio_mixer),
  11778. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11779. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11780. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11781. msm_routing_put_audio_mixer),
  11782. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11783. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11784. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11785. msm_routing_put_audio_mixer),
  11786. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11787. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11788. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11789. msm_routing_put_audio_mixer),
  11790. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11791. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11792. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11793. msm_routing_put_audio_mixer),
  11794. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11795. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11796. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11797. msm_routing_put_audio_mixer),
  11798. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11799. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11800. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11801. msm_routing_put_audio_mixer),
  11802. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11803. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11804. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11805. msm_routing_put_audio_mixer),
  11806. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11807. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11808. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11809. msm_routing_put_audio_mixer),
  11810. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11811. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11812. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11813. msm_routing_put_audio_mixer),
  11814. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11815. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11816. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11817. msm_routing_put_audio_mixer),
  11818. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11819. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11820. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11821. msm_routing_put_audio_mixer),
  11822. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11823. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11824. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11825. msm_routing_put_audio_mixer),
  11826. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11827. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11828. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11829. msm_routing_put_audio_mixer),
  11830. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11831. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11832. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11833. msm_routing_put_audio_mixer),
  11834. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11835. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11836. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11837. msm_routing_put_audio_mixer),
  11838. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11839. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11840. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11841. msm_routing_put_audio_mixer),
  11842. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11843. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11844. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11845. msm_routing_put_audio_mixer),
  11846. };
  11847. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  11848. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11849. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11850. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11851. msm_routing_put_audio_mixer),
  11852. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11853. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11854. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11855. msm_routing_put_audio_mixer),
  11856. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11857. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11858. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11859. msm_routing_put_audio_mixer),
  11860. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11861. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11862. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11863. msm_routing_put_audio_mixer),
  11864. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11865. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11866. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11867. msm_routing_put_audio_mixer),
  11868. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11869. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11870. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11871. msm_routing_put_audio_mixer),
  11872. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11873. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11874. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11875. msm_routing_put_audio_mixer),
  11876. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11877. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11878. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11879. msm_routing_put_audio_mixer),
  11880. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11881. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11882. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11883. msm_routing_put_audio_mixer),
  11884. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11885. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11886. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11887. msm_routing_put_audio_mixer),
  11888. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11889. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11890. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11891. msm_routing_put_audio_mixer),
  11892. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11893. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11894. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11895. msm_routing_put_audio_mixer),
  11896. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11897. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11898. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11899. msm_routing_put_audio_mixer),
  11900. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11901. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11902. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11903. msm_routing_put_audio_mixer),
  11904. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11905. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11906. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11907. msm_routing_put_audio_mixer),
  11908. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11909. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11910. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11911. msm_routing_put_audio_mixer),
  11912. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11913. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11914. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11915. msm_routing_put_audio_mixer),
  11916. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11917. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11918. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11919. msm_routing_put_audio_mixer),
  11920. };
  11921. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  11922. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  11923. MSM_BACKEND_DAI_PRI_I2S_TX,
  11924. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11925. msm_routing_put_audio_mixer),
  11926. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11927. MSM_BACKEND_DAI_MI2S_TX,
  11928. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11929. msm_routing_put_audio_mixer),
  11930. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11931. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11932. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11933. msm_routing_put_audio_mixer),
  11934. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11935. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11936. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11937. msm_routing_put_audio_mixer),
  11938. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11939. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11940. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11941. msm_routing_put_audio_mixer),
  11942. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11943. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11944. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11945. msm_routing_put_audio_mixer),
  11946. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11947. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11948. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11949. msm_routing_put_audio_mixer),
  11950. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11951. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11952. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11953. msm_routing_put_audio_mixer),
  11954. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11955. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11956. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11957. msm_routing_put_audio_mixer),
  11958. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11959. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11960. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11961. msm_routing_put_audio_mixer),
  11962. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11963. MSM_BACKEND_DAI_AUXPCM_TX,
  11964. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11965. msm_routing_put_audio_mixer),
  11966. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11967. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11968. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11969. msm_routing_put_audio_mixer),
  11970. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11971. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11972. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11973. msm_routing_put_audio_mixer),
  11974. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11975. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11976. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11977. msm_routing_put_audio_mixer),
  11978. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11979. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11980. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11981. msm_routing_put_audio_mixer),
  11982. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11983. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11984. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11985. msm_routing_put_audio_mixer),
  11986. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11987. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11988. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11989. msm_routing_put_audio_mixer),
  11990. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11991. MSM_BACKEND_DAI_INT_FM_TX,
  11992. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11993. msm_routing_put_audio_mixer),
  11994. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11995. MSM_BACKEND_DAI_AFE_PCM_TX,
  11996. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11997. msm_routing_put_audio_mixer),
  11998. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11999. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12000. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12001. msm_routing_put_audio_mixer),
  12002. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12003. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12004. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12005. msm_routing_put_audio_mixer),
  12006. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  12007. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  12008. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12009. msm_routing_put_audio_mixer),
  12010. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12011. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12012. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12013. msm_routing_put_audio_mixer),
  12014. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12015. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12016. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12017. msm_routing_put_audio_mixer),
  12018. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12019. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12020. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12021. msm_routing_put_audio_mixer),
  12022. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12023. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12024. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12025. msm_routing_put_audio_mixer),
  12026. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12027. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12028. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12029. msm_routing_put_audio_mixer),
  12030. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12031. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12032. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12033. msm_routing_put_audio_mixer),
  12034. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12035. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12036. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12037. msm_routing_put_audio_mixer),
  12038. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12039. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12040. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12041. msm_routing_put_audio_mixer),
  12042. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12043. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12044. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12045. msm_routing_put_audio_mixer),
  12046. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12047. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12048. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12049. msm_routing_put_audio_mixer),
  12050. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12051. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12052. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12053. msm_routing_put_audio_mixer),
  12054. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12055. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12056. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12057. msm_routing_put_audio_mixer),
  12058. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12059. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12060. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12061. msm_routing_put_audio_mixer),
  12062. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12063. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12064. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12065. msm_routing_put_audio_mixer),
  12066. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12067. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12068. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12069. msm_routing_put_audio_mixer),
  12070. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12071. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12072. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12073. msm_routing_put_audio_mixer),
  12074. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12075. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12076. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12077. msm_routing_put_audio_mixer),
  12078. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12079. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12080. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12081. msm_routing_put_audio_mixer),
  12082. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12083. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12084. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12085. msm_routing_put_audio_mixer),
  12086. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12087. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12088. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12089. msm_routing_put_audio_mixer),
  12090. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12091. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12092. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12093. msm_routing_put_audio_mixer),
  12094. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12095. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12096. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12097. msm_routing_put_audio_mixer),
  12098. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12099. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12100. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12101. msm_routing_put_audio_mixer),
  12102. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12103. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12104. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12105. msm_routing_put_audio_mixer),
  12106. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12107. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12108. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12109. msm_routing_put_audio_mixer),
  12110. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12111. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12112. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12113. msm_routing_put_audio_mixer),
  12114. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12115. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12116. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12117. msm_routing_put_audio_mixer),
  12118. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12119. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12120. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12121. msm_routing_put_audio_mixer),
  12122. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12123. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12124. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12125. msm_routing_put_audio_mixer),
  12126. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12127. MSM_BACKEND_DAI_USB_TX,
  12128. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12129. msm_routing_put_audio_mixer),
  12130. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12131. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12132. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12133. msm_routing_put_audio_mixer),
  12134. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12135. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12136. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12137. msm_routing_put_audio_mixer),
  12138. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12139. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12140. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12141. msm_routing_put_audio_mixer),
  12142. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12143. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12144. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12145. msm_routing_put_audio_mixer),
  12146. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12147. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12148. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12149. msm_routing_put_audio_mixer),
  12150. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12151. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12152. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12153. msm_routing_put_audio_mixer),
  12154. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12155. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12156. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12157. msm_routing_put_audio_mixer),
  12158. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12159. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12160. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12161. msm_routing_put_audio_mixer),
  12162. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12163. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12164. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12165. msm_routing_put_audio_mixer),
  12166. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12167. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12168. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12169. msm_routing_put_audio_mixer),
  12170. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12171. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12172. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12173. msm_routing_put_audio_mixer),
  12174. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12175. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12176. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12177. msm_routing_put_audio_mixer),
  12178. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12179. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12180. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12181. msm_routing_put_audio_mixer),
  12182. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12183. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12184. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12185. msm_routing_put_audio_mixer),
  12186. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12187. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12188. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12189. msm_routing_put_audio_mixer),
  12190. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12191. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12192. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12193. msm_routing_put_audio_mixer),
  12194. };
  12195. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  12196. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12197. MSM_BACKEND_DAI_INT_FM_TX,
  12198. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12199. msm_routing_put_audio_mixer),
  12200. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12201. MSM_BACKEND_DAI_MI2S_TX,
  12202. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12203. msm_routing_put_audio_mixer),
  12204. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12205. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12206. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12207. msm_routing_put_audio_mixer),
  12208. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12209. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12210. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12211. msm_routing_put_audio_mixer),
  12212. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12213. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12214. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12215. msm_routing_put_audio_mixer),
  12216. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12217. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12218. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12219. msm_routing_put_audio_mixer),
  12220. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12221. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12222. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12223. msm_routing_put_audio_mixer),
  12224. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12225. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12226. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12227. msm_routing_put_audio_mixer),
  12228. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12229. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12230. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12231. msm_routing_put_audio_mixer),
  12232. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12233. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12234. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12235. msm_routing_put_audio_mixer),
  12236. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12237. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12238. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12239. msm_routing_put_audio_mixer),
  12240. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12241. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12242. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12243. msm_routing_put_audio_mixer),
  12244. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12245. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12246. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12247. msm_routing_put_audio_mixer),
  12248. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12249. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12250. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12251. msm_routing_put_audio_mixer),
  12252. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12253. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12254. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12255. msm_routing_put_audio_mixer),
  12256. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12257. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12258. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12259. msm_routing_put_audio_mixer),
  12260. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12261. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12262. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12263. msm_routing_put_audio_mixer),
  12264. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12265. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12266. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12267. msm_routing_put_audio_mixer),
  12268. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12269. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12270. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12271. msm_routing_put_audio_mixer),
  12272. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12273. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12274. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12275. msm_routing_put_audio_mixer),
  12276. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12277. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12278. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12279. msm_routing_put_audio_mixer),
  12280. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12281. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12282. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12283. msm_routing_put_audio_mixer),
  12284. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12285. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12286. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12287. msm_routing_put_audio_mixer),
  12288. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12289. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12290. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12291. msm_routing_put_audio_mixer),
  12292. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12293. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12294. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12295. msm_routing_put_audio_mixer),
  12296. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12297. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12298. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12299. msm_routing_put_audio_mixer),
  12300. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12301. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12302. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12303. msm_routing_put_audio_mixer),
  12304. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12305. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12306. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12307. msm_routing_put_audio_mixer),
  12308. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12309. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12310. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12311. msm_routing_put_audio_mixer),
  12312. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12313. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12314. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12315. msm_routing_put_audio_mixer),
  12316. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12317. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12318. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12319. msm_routing_put_audio_mixer),
  12320. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12321. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12322. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12323. msm_routing_put_audio_mixer),
  12324. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12325. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12326. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12327. msm_routing_put_audio_mixer),
  12328. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12329. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12330. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12331. msm_routing_put_audio_mixer),
  12332. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12333. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12334. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12335. msm_routing_put_audio_mixer),
  12336. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12337. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12338. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12339. msm_routing_put_audio_mixer),
  12340. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12341. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12342. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12343. msm_routing_put_audio_mixer),
  12344. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12345. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12346. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12347. msm_routing_put_audio_mixer),
  12348. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12349. MSM_BACKEND_DAI_USB_TX,
  12350. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12351. msm_routing_put_audio_mixer),
  12352. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12353. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12354. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12355. msm_routing_put_audio_mixer),
  12356. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12357. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12358. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12359. msm_routing_put_audio_mixer),
  12360. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12361. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12362. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12363. msm_routing_put_audio_mixer),
  12364. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12365. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12366. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12367. msm_routing_put_audio_mixer),
  12368. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12369. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12370. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12371. msm_routing_put_audio_mixer),
  12372. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12373. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12374. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12375. msm_routing_put_audio_mixer),
  12376. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12377. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12378. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12379. msm_routing_put_audio_mixer),
  12380. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12381. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12382. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12383. msm_routing_put_audio_mixer),
  12384. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12385. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12386. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12387. msm_routing_put_audio_mixer),
  12388. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12389. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12390. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12391. msm_routing_put_audio_mixer),
  12392. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12393. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12394. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12395. msm_routing_put_audio_mixer),
  12396. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12397. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12398. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12399. msm_routing_put_audio_mixer),
  12400. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12401. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12402. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12403. msm_routing_put_audio_mixer),
  12404. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12405. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12406. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12407. msm_routing_put_audio_mixer),
  12408. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12409. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12410. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12411. msm_routing_put_audio_mixer),
  12412. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12413. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12414. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12415. msm_routing_put_audio_mixer),
  12416. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12417. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12418. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12419. msm_routing_put_audio_mixer),
  12420. };
  12421. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  12422. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12423. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12424. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12425. msm_routing_put_audio_mixer),
  12426. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12427. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12428. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12429. msm_routing_put_audio_mixer),
  12430. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12431. MSM_BACKEND_DAI_INT_FM_TX,
  12432. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12433. msm_routing_put_audio_mixer),
  12434. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12435. MSM_BACKEND_DAI_MI2S_TX,
  12436. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12437. msm_routing_put_audio_mixer),
  12438. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12439. MSM_BACKEND_DAI_AFE_PCM_TX,
  12440. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12441. msm_routing_put_audio_mixer),
  12442. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12443. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12444. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12445. msm_routing_put_audio_mixer),
  12446. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  12447. MSM_BACKEND_DAI_AUXPCM_TX,
  12448. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12449. msm_routing_put_audio_mixer),
  12450. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12451. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12452. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12453. msm_routing_put_audio_mixer),
  12454. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12455. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12456. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12457. msm_routing_put_audio_mixer),
  12458. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12459. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12460. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12461. msm_routing_put_audio_mixer),
  12462. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12463. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12464. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12465. msm_routing_put_audio_mixer),
  12466. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12467. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12468. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12469. msm_routing_put_audio_mixer),
  12470. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12471. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12472. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12473. msm_routing_put_audio_mixer),
  12474. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12475. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12476. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12477. msm_routing_put_audio_mixer),
  12478. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12479. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12480. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12481. msm_routing_put_audio_mixer),
  12482. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12483. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12484. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12485. msm_routing_put_audio_mixer),
  12486. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12487. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12488. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12489. msm_routing_put_audio_mixer),
  12490. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12491. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12492. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12493. msm_routing_put_audio_mixer),
  12494. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12495. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12496. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12497. msm_routing_put_audio_mixer),
  12498. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12499. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12500. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12501. msm_routing_put_audio_mixer),
  12502. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12503. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12504. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12505. msm_routing_put_audio_mixer),
  12506. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12507. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12508. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12509. msm_routing_put_audio_mixer),
  12510. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12511. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12512. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12513. msm_routing_put_audio_mixer),
  12514. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12515. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12516. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12517. msm_routing_put_audio_mixer),
  12518. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12519. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12520. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12521. msm_routing_put_audio_mixer),
  12522. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12523. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12524. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12525. msm_routing_put_audio_mixer),
  12526. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12527. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12528. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12529. msm_routing_put_audio_mixer),
  12530. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12531. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12532. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12533. msm_routing_put_audio_mixer),
  12534. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12535. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12536. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12537. msm_routing_put_audio_mixer),
  12538. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12539. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12540. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12541. msm_routing_put_audio_mixer),
  12542. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12543. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12544. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12545. msm_routing_put_audio_mixer),
  12546. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12547. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12548. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12549. msm_routing_put_audio_mixer),
  12550. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12551. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12552. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12553. msm_routing_put_audio_mixer),
  12554. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12555. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12556. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12557. msm_routing_put_audio_mixer),
  12558. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12559. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12560. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12561. msm_routing_put_audio_mixer),
  12562. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12563. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12564. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12565. msm_routing_put_audio_mixer),
  12566. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12567. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12568. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12569. msm_routing_put_audio_mixer),
  12570. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12571. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12572. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12573. msm_routing_put_audio_mixer),
  12574. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12575. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12576. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12577. msm_routing_put_audio_mixer),
  12578. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12579. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12580. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12581. msm_routing_put_audio_mixer),
  12582. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12583. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12584. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12585. msm_routing_put_audio_mixer),
  12586. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12587. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12588. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12589. msm_routing_put_audio_mixer),
  12590. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12591. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12592. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12593. msm_routing_put_audio_mixer),
  12594. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12595. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12596. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12597. msm_routing_put_audio_mixer),
  12598. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12599. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12600. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12601. msm_routing_put_audio_mixer),
  12602. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12603. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12604. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12605. msm_routing_put_audio_mixer),
  12606. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12607. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12608. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12609. msm_routing_put_audio_mixer),
  12610. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12611. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12612. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12613. msm_routing_put_audio_mixer),
  12614. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12615. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12616. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12617. msm_routing_put_audio_mixer),
  12618. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12619. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12620. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12621. msm_routing_put_audio_mixer),
  12622. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12623. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12624. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12625. msm_routing_put_audio_mixer),
  12626. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12627. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12628. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12629. msm_routing_put_audio_mixer),
  12630. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12631. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12632. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12633. msm_routing_put_audio_mixer),
  12634. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12635. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12636. MSM_FRONTEND_DAI_MULTIMEDIA3, 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_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12641. msm_routing_put_audio_mixer),
  12642. };
  12643. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  12644. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12645. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12646. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12647. msm_routing_put_audio_mixer),
  12648. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12649. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12650. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12651. msm_routing_put_audio_mixer),
  12652. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12653. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12654. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12655. msm_routing_put_audio_mixer),
  12656. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12657. MSM_BACKEND_DAI_INT_FM_TX,
  12658. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12659. msm_routing_put_audio_mixer),
  12660. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12661. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12662. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12663. msm_routing_put_audio_mixer),
  12664. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12665. MSM_BACKEND_DAI_AFE_PCM_TX,
  12666. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12667. msm_routing_put_audio_mixer),
  12668. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12669. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12670. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12671. msm_routing_put_audio_mixer),
  12672. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12673. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12674. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12675. msm_routing_put_audio_mixer),
  12676. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12677. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12678. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12679. msm_routing_put_audio_mixer),
  12680. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12681. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12682. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12683. msm_routing_put_audio_mixer),
  12684. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12685. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12686. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12687. msm_routing_put_audio_mixer),
  12688. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12689. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12690. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12691. msm_routing_put_audio_mixer),
  12692. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12693. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12694. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12695. msm_routing_put_audio_mixer),
  12696. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12697. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12698. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12699. msm_routing_put_audio_mixer),
  12700. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12701. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12702. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12703. msm_routing_put_audio_mixer),
  12704. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12705. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12706. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12707. msm_routing_put_audio_mixer),
  12708. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12709. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12710. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12711. msm_routing_put_audio_mixer),
  12712. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12713. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12714. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12715. msm_routing_put_audio_mixer),
  12716. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12717. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12718. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12719. msm_routing_put_audio_mixer),
  12720. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12721. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12722. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12723. msm_routing_put_audio_mixer),
  12724. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12725. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12726. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12727. msm_routing_put_audio_mixer),
  12728. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12729. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12730. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12731. msm_routing_put_audio_mixer),
  12732. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12733. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12734. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12735. msm_routing_put_audio_mixer),
  12736. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12737. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12738. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12739. msm_routing_put_audio_mixer),
  12740. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12741. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12742. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12743. msm_routing_put_audio_mixer),
  12744. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12745. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12746. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12747. msm_routing_put_audio_mixer),
  12748. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12749. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12750. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12751. msm_routing_put_audio_mixer),
  12752. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12753. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12754. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12755. msm_routing_put_audio_mixer),
  12756. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12757. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12758. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12759. msm_routing_put_audio_mixer),
  12760. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12761. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12762. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12763. msm_routing_put_audio_mixer),
  12764. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12765. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12766. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12767. msm_routing_put_audio_mixer),
  12768. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12769. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12770. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12771. msm_routing_put_audio_mixer),
  12772. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12773. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12774. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12775. msm_routing_put_audio_mixer),
  12776. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12777. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12778. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12779. msm_routing_put_audio_mixer),
  12780. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12781. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12782. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12783. msm_routing_put_audio_mixer),
  12784. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12785. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12786. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12787. msm_routing_put_audio_mixer),
  12788. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12789. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12790. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12791. msm_routing_put_audio_mixer),
  12792. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12793. MSM_BACKEND_DAI_USB_TX,
  12794. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12795. msm_routing_put_audio_mixer),
  12796. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12797. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12798. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12799. msm_routing_put_audio_mixer),
  12800. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12801. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12802. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12803. msm_routing_put_audio_mixer),
  12804. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12805. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12806. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12807. msm_routing_put_audio_mixer),
  12808. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12809. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12810. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12811. msm_routing_put_audio_mixer),
  12812. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12813. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12814. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12815. msm_routing_put_audio_mixer),
  12816. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12817. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12818. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12819. msm_routing_put_audio_mixer),
  12820. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12821. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12822. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12823. msm_routing_put_audio_mixer),
  12824. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12825. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12826. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12827. msm_routing_put_audio_mixer),
  12828. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12829. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12830. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12831. msm_routing_put_audio_mixer),
  12832. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12833. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12834. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12835. msm_routing_put_audio_mixer),
  12836. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12837. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12838. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12839. msm_routing_put_audio_mixer),
  12840. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12841. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12842. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12843. msm_routing_put_audio_mixer),
  12844. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12845. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12846. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12847. msm_routing_put_audio_mixer),
  12848. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12849. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12850. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12851. msm_routing_put_audio_mixer),
  12852. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12853. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12854. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12855. msm_routing_put_audio_mixer),
  12856. };
  12857. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  12858. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12859. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12860. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12861. msm_routing_put_audio_mixer),
  12862. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12863. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12864. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12865. msm_routing_put_audio_mixer),
  12866. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12867. MSM_BACKEND_DAI_INT_FM_TX,
  12868. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12869. msm_routing_put_audio_mixer),
  12870. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12871. MSM_BACKEND_DAI_MI2S_TX,
  12872. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12873. msm_routing_put_audio_mixer),
  12874. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12875. MSM_BACKEND_DAI_AFE_PCM_TX,
  12876. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12877. msm_routing_put_audio_mixer),
  12878. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12879. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12880. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12881. msm_routing_put_audio_mixer),
  12882. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12883. MSM_BACKEND_DAI_AUXPCM_TX,
  12884. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12885. msm_routing_put_audio_mixer),
  12886. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12887. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12888. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12889. msm_routing_put_audio_mixer),
  12890. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12891. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12892. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12893. msm_routing_put_audio_mixer),
  12894. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12895. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12896. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12897. msm_routing_put_audio_mixer),
  12898. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12899. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12900. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12901. msm_routing_put_audio_mixer),
  12902. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12903. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12904. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12905. msm_routing_put_audio_mixer),
  12906. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12907. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12908. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12909. msm_routing_put_audio_mixer),
  12910. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12911. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12912. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12913. msm_routing_put_audio_mixer),
  12914. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12915. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12916. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12917. msm_routing_put_audio_mixer),
  12918. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12919. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12920. MSM_FRONTEND_DAI_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 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_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13017. msm_routing_put_audio_mixer),
  13018. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13019. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13020. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13021. msm_routing_put_audio_mixer),
  13022. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13023. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13024. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13025. msm_routing_put_audio_mixer),
  13026. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13027. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13028. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13029. msm_routing_put_audio_mixer),
  13030. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13031. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13032. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13033. msm_routing_put_audio_mixer),
  13034. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13035. MSM_BACKEND_DAI_USB_TX,
  13036. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13037. msm_routing_put_audio_mixer),
  13038. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13039. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13040. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13041. msm_routing_put_audio_mixer),
  13042. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13043. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13044. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13045. msm_routing_put_audio_mixer),
  13046. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13047. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13048. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13049. msm_routing_put_audio_mixer),
  13050. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13051. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13052. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13053. msm_routing_put_audio_mixer),
  13054. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13055. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13056. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13057. msm_routing_put_audio_mixer),
  13058. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13059. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13060. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13061. msm_routing_put_audio_mixer),
  13062. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13063. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13064. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13065. msm_routing_put_audio_mixer),
  13066. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13067. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13068. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13069. msm_routing_put_audio_mixer),
  13070. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13071. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13072. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13073. msm_routing_put_audio_mixer),
  13074. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13075. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13076. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13077. msm_routing_put_audio_mixer),
  13078. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13079. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13080. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13081. msm_routing_put_audio_mixer),
  13082. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13083. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13084. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13085. msm_routing_put_audio_mixer),
  13086. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13087. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13088. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13089. msm_routing_put_audio_mixer),
  13090. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13091. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13092. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13093. msm_routing_put_audio_mixer),
  13094. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13095. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13096. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13097. msm_routing_put_audio_mixer),
  13098. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13099. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13100. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13101. msm_routing_put_audio_mixer),
  13102. };
  13103. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  13104. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13105. MSM_BACKEND_DAI_INT_FM_TX,
  13106. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13107. msm_routing_put_audio_mixer),
  13108. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13109. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13110. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13111. msm_routing_put_audio_mixer),
  13112. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13113. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13114. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13115. msm_routing_put_audio_mixer),
  13116. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13117. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13118. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13119. msm_routing_put_audio_mixer),
  13120. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13121. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13122. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13123. msm_routing_put_audio_mixer),
  13124. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13125. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13126. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13127. msm_routing_put_audio_mixer),
  13128. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13129. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13130. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13131. msm_routing_put_audio_mixer),
  13132. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13133. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13134. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13135. msm_routing_put_audio_mixer),
  13136. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13137. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13138. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13139. msm_routing_put_audio_mixer),
  13140. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13141. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13142. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13143. msm_routing_put_audio_mixer),
  13144. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13145. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13146. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13147. msm_routing_put_audio_mixer),
  13148. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13149. MSM_BACKEND_DAI_AUXPCM_TX,
  13150. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13151. msm_routing_put_audio_mixer),
  13152. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13153. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13154. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13155. msm_routing_put_audio_mixer),
  13156. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13157. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13158. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13159. msm_routing_put_audio_mixer),
  13160. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13161. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13162. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13163. msm_routing_put_audio_mixer),
  13164. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13165. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13166. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13167. msm_routing_put_audio_mixer),
  13168. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13169. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13170. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13171. msm_routing_put_audio_mixer),
  13172. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13173. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13174. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13175. msm_routing_put_audio_mixer),
  13176. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13177. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13178. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13179. msm_routing_put_audio_mixer),
  13180. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13181. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13182. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13183. msm_routing_put_audio_mixer),
  13184. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13185. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13186. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13187. msm_routing_put_audio_mixer),
  13188. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13189. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13190. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13191. msm_routing_put_audio_mixer),
  13192. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13193. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13194. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13195. msm_routing_put_audio_mixer),
  13196. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13197. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13198. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13199. msm_routing_put_audio_mixer),
  13200. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13201. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13202. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13203. msm_routing_put_audio_mixer),
  13204. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13205. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13206. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13207. msm_routing_put_audio_mixer),
  13208. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13209. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13210. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13211. msm_routing_put_audio_mixer),
  13212. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13213. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13214. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13215. msm_routing_put_audio_mixer),
  13216. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13217. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13218. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13219. msm_routing_put_audio_mixer),
  13220. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13221. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13222. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13223. msm_routing_put_audio_mixer),
  13224. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13225. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13226. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13227. msm_routing_put_audio_mixer),
  13228. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13229. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13230. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13231. msm_routing_put_audio_mixer),
  13232. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13233. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13234. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13235. msm_routing_put_audio_mixer),
  13236. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13237. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13238. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13239. msm_routing_put_audio_mixer),
  13240. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13241. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13242. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13243. msm_routing_put_audio_mixer),
  13244. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13245. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13246. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13247. msm_routing_put_audio_mixer),
  13248. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13249. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13250. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13251. msm_routing_put_audio_mixer),
  13252. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13253. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13254. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13255. msm_routing_put_audio_mixer),
  13256. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13257. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13258. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13259. msm_routing_put_audio_mixer),
  13260. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13261. MSM_BACKEND_DAI_USB_TX,
  13262. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13263. msm_routing_put_audio_mixer),
  13264. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13265. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13266. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13267. msm_routing_put_audio_mixer),
  13268. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13269. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13270. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13271. msm_routing_put_audio_mixer),
  13272. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13273. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13274. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13275. msm_routing_put_audio_mixer),
  13276. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13277. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13278. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13279. msm_routing_put_audio_mixer),
  13280. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13281. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13282. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13283. msm_routing_put_audio_mixer),
  13284. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13285. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13286. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13287. msm_routing_put_audio_mixer),
  13288. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13289. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13290. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13291. msm_routing_put_audio_mixer),
  13292. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13293. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13294. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13295. msm_routing_put_audio_mixer),
  13296. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13297. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13298. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13299. msm_routing_put_audio_mixer),
  13300. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13301. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13302. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13303. msm_routing_put_audio_mixer),
  13304. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13305. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13306. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13307. msm_routing_put_audio_mixer),
  13308. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13309. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13310. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13311. msm_routing_put_audio_mixer),
  13312. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13313. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13314. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13315. msm_routing_put_audio_mixer),
  13316. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13317. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13318. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13319. msm_routing_put_audio_mixer),
  13320. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13321. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13322. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13323. msm_routing_put_audio_mixer),
  13324. };
  13325. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  13326. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13327. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13328. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13329. msm_routing_put_audio_mixer),
  13330. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13331. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13332. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13333. msm_routing_put_audio_mixer),
  13334. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13335. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13336. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13337. msm_routing_put_audio_mixer),
  13338. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13339. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13340. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13341. msm_routing_put_audio_mixer),
  13342. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13343. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13344. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13345. msm_routing_put_audio_mixer),
  13346. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13347. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13348. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13349. msm_routing_put_audio_mixer),
  13350. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13351. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13352. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13353. msm_routing_put_audio_mixer),
  13354. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13355. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13356. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13357. msm_routing_put_audio_mixer),
  13358. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13359. MSM_BACKEND_DAI_INT_FM_TX,
  13360. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13361. msm_routing_put_audio_mixer),
  13362. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13363. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13364. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13365. msm_routing_put_audio_mixer),
  13366. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13367. MSM_BACKEND_DAI_AFE_PCM_TX,
  13368. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13369. msm_routing_put_audio_mixer),
  13370. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13371. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13372. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13373. msm_routing_put_audio_mixer),
  13374. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13375. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13376. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13377. msm_routing_put_audio_mixer),
  13378. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13379. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13380. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13381. msm_routing_put_audio_mixer),
  13382. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13383. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13384. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13385. msm_routing_put_audio_mixer),
  13386. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13387. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13388. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13389. msm_routing_put_audio_mixer),
  13390. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13391. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13392. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13393. msm_routing_put_audio_mixer),
  13394. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13395. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13396. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13397. msm_routing_put_audio_mixer),
  13398. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13399. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13400. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13401. msm_routing_put_audio_mixer),
  13402. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13403. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13404. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13405. msm_routing_put_audio_mixer),
  13406. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13407. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13408. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13409. msm_routing_put_audio_mixer),
  13410. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13411. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13412. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13413. msm_routing_put_audio_mixer),
  13414. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13415. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13416. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13417. msm_routing_put_audio_mixer),
  13418. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13419. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13420. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13421. msm_routing_put_audio_mixer),
  13422. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13423. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13424. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13425. msm_routing_put_audio_mixer),
  13426. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13427. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13428. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13429. msm_routing_put_audio_mixer),
  13430. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13431. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13432. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13433. msm_routing_put_audio_mixer),
  13434. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13435. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13436. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13437. msm_routing_put_audio_mixer),
  13438. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13439. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13440. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13441. msm_routing_put_audio_mixer),
  13442. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13443. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13444. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13445. msm_routing_put_audio_mixer),
  13446. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13447. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13448. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13449. msm_routing_put_audio_mixer),
  13450. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13451. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13452. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13453. msm_routing_put_audio_mixer),
  13454. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13455. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13456. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13457. msm_routing_put_audio_mixer),
  13458. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13459. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13460. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13461. msm_routing_put_audio_mixer),
  13462. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13463. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13464. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13465. msm_routing_put_audio_mixer),
  13466. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13467. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13468. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13469. msm_routing_put_audio_mixer),
  13470. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13471. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13472. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13473. msm_routing_put_audio_mixer),
  13474. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13475. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13476. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13477. msm_routing_put_audio_mixer),
  13478. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13479. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13480. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13481. msm_routing_put_audio_mixer),
  13482. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13483. MSM_BACKEND_DAI_USB_TX,
  13484. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13485. msm_routing_put_audio_mixer),
  13486. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13487. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13488. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13489. msm_routing_put_audio_mixer),
  13490. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13491. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13492. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13493. msm_routing_put_audio_mixer),
  13494. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13495. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13496. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13497. msm_routing_put_audio_mixer),
  13498. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13499. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13500. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13501. msm_routing_put_audio_mixer),
  13502. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13503. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13504. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13505. msm_routing_put_audio_mixer),
  13506. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13507. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13508. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13509. msm_routing_put_audio_mixer),
  13510. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13511. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13512. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13513. msm_routing_put_audio_mixer),
  13514. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13515. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13516. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13517. msm_routing_put_audio_mixer),
  13518. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13519. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13520. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13521. msm_routing_put_audio_mixer),
  13522. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13523. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13524. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13525. msm_routing_put_audio_mixer),
  13526. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13527. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13528. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13529. msm_routing_put_audio_mixer),
  13530. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13531. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13532. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13533. msm_routing_put_audio_mixer),
  13534. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13535. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13536. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13537. msm_routing_put_audio_mixer),
  13538. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13539. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13540. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13541. msm_routing_put_audio_mixer),
  13542. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13543. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13544. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13545. msm_routing_put_audio_mixer),
  13546. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13547. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13548. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13549. msm_routing_put_audio_mixer),
  13550. };
  13551. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  13552. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13553. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13554. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13555. msm_routing_put_audio_mixer),
  13556. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13557. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13558. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13559. msm_routing_put_audio_mixer),
  13560. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13561. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13562. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13563. msm_routing_put_audio_mixer),
  13564. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13565. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13566. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13567. msm_routing_put_audio_mixer),
  13568. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13569. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13570. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13571. msm_routing_put_audio_mixer),
  13572. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13573. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13574. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13575. msm_routing_put_audio_mixer),
  13576. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13577. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13578. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13579. msm_routing_put_audio_mixer),
  13580. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13581. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13582. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13583. msm_routing_put_audio_mixer),
  13584. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13585. MSM_BACKEND_DAI_INT_FM_TX,
  13586. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13587. msm_routing_put_audio_mixer),
  13588. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13589. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13590. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13591. msm_routing_put_audio_mixer),
  13592. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13593. MSM_BACKEND_DAI_AFE_PCM_TX,
  13594. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13595. msm_routing_put_audio_mixer),
  13596. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13597. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13598. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13599. msm_routing_put_audio_mixer),
  13600. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13601. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13602. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13603. msm_routing_put_audio_mixer),
  13604. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13605. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13606. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13607. msm_routing_put_audio_mixer),
  13608. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13609. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13610. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13611. msm_routing_put_audio_mixer),
  13612. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13613. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13614. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13615. msm_routing_put_audio_mixer),
  13616. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13617. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13618. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13619. msm_routing_put_audio_mixer),
  13620. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13621. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13622. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13623. msm_routing_put_audio_mixer),
  13624. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13625. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13626. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13627. msm_routing_put_audio_mixer),
  13628. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13629. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13630. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13631. msm_routing_put_audio_mixer),
  13632. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13633. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13634. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13635. msm_routing_put_audio_mixer),
  13636. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13637. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13638. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13639. msm_routing_put_audio_mixer),
  13640. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13641. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13642. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13643. msm_routing_put_audio_mixer),
  13644. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13645. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13646. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13647. msm_routing_put_audio_mixer),
  13648. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13649. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13650. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13651. msm_routing_put_audio_mixer),
  13652. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13653. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13654. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13655. msm_routing_put_audio_mixer),
  13656. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13657. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13658. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13659. msm_routing_put_audio_mixer),
  13660. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13661. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13662. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13663. msm_routing_put_audio_mixer),
  13664. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13665. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13666. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13667. msm_routing_put_audio_mixer),
  13668. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13669. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13670. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13671. msm_routing_put_audio_mixer),
  13672. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13673. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13674. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13675. msm_routing_put_audio_mixer),
  13676. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13677. MSM_BACKEND_DAI_USB_TX,
  13678. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13679. msm_routing_put_audio_mixer),
  13680. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13681. MSM_BACKEND_DAI_MI2S_TX,
  13682. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13683. msm_routing_put_audio_mixer),
  13684. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13685. MSM_BACKEND_DAI_AUXPCM_TX,
  13686. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13687. msm_routing_put_audio_mixer),
  13688. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13689. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13690. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13691. msm_routing_put_audio_mixer),
  13692. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13693. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13694. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13695. msm_routing_put_audio_mixer),
  13696. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13697. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13698. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13699. msm_routing_put_audio_mixer),
  13700. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13701. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13702. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13703. msm_routing_put_audio_mixer),
  13704. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13705. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13706. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13707. msm_routing_put_audio_mixer),
  13708. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13709. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13710. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13711. msm_routing_put_audio_mixer),
  13712. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13713. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13714. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13715. msm_routing_put_audio_mixer),
  13716. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13717. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13718. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13719. msm_routing_put_audio_mixer),
  13720. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13721. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13722. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13723. msm_routing_get_audio_mixer,
  13724. msm_routing_put_audio_mixer),
  13725. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13726. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13727. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13728. msm_routing_get_audio_mixer,
  13729. msm_routing_put_audio_mixer),
  13730. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13731. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13732. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13733. msm_routing_get_audio_mixer,
  13734. msm_routing_put_audio_mixer),
  13735. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13736. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13737. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13738. msm_routing_get_audio_mixer,
  13739. msm_routing_put_audio_mixer),
  13740. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13741. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13742. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13743. msm_routing_get_audio_mixer,
  13744. msm_routing_put_audio_mixer),
  13745. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13746. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13747. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13748. msm_routing_get_audio_mixer,
  13749. msm_routing_put_audio_mixer),
  13750. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13751. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13752. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13753. msm_routing_put_audio_mixer),
  13754. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13755. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13756. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13757. msm_routing_put_audio_mixer),
  13758. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13759. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13760. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13761. msm_routing_put_audio_mixer),
  13762. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13763. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13764. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13765. msm_routing_put_audio_mixer),
  13766. };
  13767. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  13768. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13769. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13770. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13771. msm_routing_put_audio_mixer),
  13772. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13773. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13774. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13775. msm_routing_put_audio_mixer),
  13776. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13777. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13778. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13779. msm_routing_put_audio_mixer),
  13780. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13781. MSM_BACKEND_DAI_INT_FM_TX,
  13782. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13783. msm_routing_put_audio_mixer),
  13784. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13785. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13786. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13787. msm_routing_put_audio_mixer),
  13788. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13789. MSM_BACKEND_DAI_AFE_PCM_TX,
  13790. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13791. msm_routing_put_audio_mixer),
  13792. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13793. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13794. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13795. msm_routing_put_audio_mixer),
  13796. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13797. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13798. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13799. msm_routing_put_audio_mixer),
  13800. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13801. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13802. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13803. msm_routing_put_audio_mixer),
  13804. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13805. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13806. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13807. msm_routing_put_audio_mixer),
  13808. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13809. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13810. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13811. msm_routing_put_audio_mixer),
  13812. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13813. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13814. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13815. msm_routing_put_audio_mixer),
  13816. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13817. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13818. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13819. msm_routing_put_audio_mixer),
  13820. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13821. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13822. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13823. msm_routing_put_audio_mixer),
  13824. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13825. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13826. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13827. msm_routing_put_audio_mixer),
  13828. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13829. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13830. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13831. msm_routing_put_audio_mixer),
  13832. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13833. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13834. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13835. msm_routing_put_audio_mixer),
  13836. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13837. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13838. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13839. msm_routing_put_audio_mixer),
  13840. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13841. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13842. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13843. msm_routing_put_audio_mixer),
  13844. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13845. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13846. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13847. msm_routing_put_audio_mixer),
  13848. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13849. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13850. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13851. msm_routing_put_audio_mixer),
  13852. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13853. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13854. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13855. msm_routing_put_audio_mixer),
  13856. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13857. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13858. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13859. msm_routing_put_audio_mixer),
  13860. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13861. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13862. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13863. msm_routing_put_audio_mixer),
  13864. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13865. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13866. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13867. msm_routing_put_audio_mixer),
  13868. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13869. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13870. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13871. msm_routing_put_audio_mixer),
  13872. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13873. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13874. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13875. msm_routing_put_audio_mixer),
  13876. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13877. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13878. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13879. msm_routing_put_audio_mixer),
  13880. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13881. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13882. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13883. msm_routing_put_audio_mixer),
  13884. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13885. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13886. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13887. msm_routing_put_audio_mixer),
  13888. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13889. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13890. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13891. msm_routing_put_audio_mixer),
  13892. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13893. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13894. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13895. msm_routing_put_audio_mixer),
  13896. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13897. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13898. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13899. msm_routing_put_audio_mixer),
  13900. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13901. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13902. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13903. msm_routing_put_audio_mixer),
  13904. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13905. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13906. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13907. msm_routing_put_audio_mixer),
  13908. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13909. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13910. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13911. msm_routing_put_audio_mixer),
  13912. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13913. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13914. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13915. msm_routing_put_audio_mixer),
  13916. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13917. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13918. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13919. msm_routing_put_audio_mixer),
  13920. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13921. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13922. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13923. msm_routing_put_audio_mixer),
  13924. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13925. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13926. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13927. msm_routing_put_audio_mixer),
  13928. };
  13929. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  13930. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13931. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13932. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13933. msm_routing_put_audio_mixer),
  13934. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13935. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13936. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13937. msm_routing_put_audio_mixer),
  13938. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13939. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13940. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13941. msm_routing_put_audio_mixer),
  13942. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13943. MSM_BACKEND_DAI_INT_FM_TX,
  13944. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13945. msm_routing_put_audio_mixer),
  13946. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13947. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13948. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13949. msm_routing_put_audio_mixer),
  13950. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13951. MSM_BACKEND_DAI_AFE_PCM_TX,
  13952. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13953. msm_routing_put_audio_mixer),
  13954. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13955. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13956. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13957. msm_routing_put_audio_mixer),
  13958. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13959. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13960. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13961. msm_routing_put_audio_mixer),
  13962. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13963. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13964. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13965. msm_routing_put_audio_mixer),
  13966. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13967. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13968. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13969. msm_routing_put_audio_mixer),
  13970. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13971. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13972. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13973. msm_routing_put_audio_mixer),
  13974. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13975. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13976. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13977. msm_routing_put_audio_mixer),
  13978. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13979. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13980. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13981. msm_routing_put_audio_mixer),
  13982. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13983. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13984. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13985. msm_routing_put_audio_mixer),
  13986. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13987. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13988. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13989. msm_routing_put_audio_mixer),
  13990. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13991. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13992. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13993. msm_routing_put_audio_mixer),
  13994. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13995. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13996. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13997. msm_routing_put_audio_mixer),
  13998. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13999. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14000. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14001. msm_routing_put_audio_mixer),
  14002. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  14003. MSM_BACKEND_DAI_USB_TX,
  14004. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14005. msm_routing_put_audio_mixer),
  14006. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14007. MSM_BACKEND_DAI_MI2S_TX,
  14008. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14009. msm_routing_put_audio_mixer),
  14010. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  14011. MSM_BACKEND_DAI_AUXPCM_TX,
  14012. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14013. msm_routing_put_audio_mixer),
  14014. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  14015. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14016. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14017. msm_routing_put_audio_mixer),
  14018. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  14019. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14020. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14021. msm_routing_put_audio_mixer),
  14022. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  14023. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14024. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14025. msm_routing_put_audio_mixer),
  14026. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14027. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14028. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14029. msm_routing_put_audio_mixer),
  14030. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  14031. MSM_BACKEND_DAI_INT2_MI2S_TX,
  14032. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14033. msm_routing_put_audio_mixer),
  14034. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14035. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14036. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14037. msm_routing_put_audio_mixer),
  14038. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14039. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14040. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14041. msm_routing_put_audio_mixer),
  14042. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14043. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14044. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14045. msm_routing_put_audio_mixer),
  14046. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14047. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14048. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14049. msm_routing_put_audio_mixer),
  14050. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14051. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14052. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14053. msm_routing_put_audio_mixer),
  14054. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14055. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14056. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14057. msm_routing_put_audio_mixer),
  14058. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14059. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14060. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14061. msm_routing_put_audio_mixer),
  14062. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14063. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14064. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14065. msm_routing_get_audio_mixer,
  14066. msm_routing_put_audio_mixer),
  14067. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14068. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14069. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14070. msm_routing_get_audio_mixer,
  14071. msm_routing_put_audio_mixer),
  14072. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14073. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14074. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14075. msm_routing_get_audio_mixer,
  14076. msm_routing_put_audio_mixer),
  14077. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14078. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14079. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14080. msm_routing_get_audio_mixer,
  14081. msm_routing_put_audio_mixer),
  14082. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14083. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14084. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14085. msm_routing_get_audio_mixer,
  14086. msm_routing_put_audio_mixer),
  14087. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14088. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14089. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14090. msm_routing_get_audio_mixer,
  14091. msm_routing_put_audio_mixer),
  14092. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14093. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14094. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14095. msm_routing_put_audio_mixer),
  14096. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14097. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14098. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14099. msm_routing_put_audio_mixer),
  14100. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14101. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14102. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14103. msm_routing_put_audio_mixer),
  14104. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14105. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14106. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14107. msm_routing_put_audio_mixer),
  14108. };
  14109. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  14110. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14111. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14112. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14113. msm_routing_put_audio_mixer),
  14114. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14115. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14116. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14117. msm_routing_put_audio_mixer),
  14118. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14119. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14120. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14121. msm_routing_put_audio_mixer),
  14122. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14123. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14124. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14125. msm_routing_put_audio_mixer),
  14126. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14127. MSM_BACKEND_DAI_INT_FM_TX,
  14128. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14129. msm_routing_put_audio_mixer),
  14130. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14131. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14132. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14133. msm_routing_put_audio_mixer),
  14134. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14135. MSM_BACKEND_DAI_AFE_PCM_TX,
  14136. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14137. msm_routing_put_audio_mixer),
  14138. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14139. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14140. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14141. msm_routing_put_audio_mixer),
  14142. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14143. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14144. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14145. msm_routing_put_audio_mixer),
  14146. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14147. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14148. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14149. msm_routing_put_audio_mixer),
  14150. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14151. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14152. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14153. msm_routing_put_audio_mixer),
  14154. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14155. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14156. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14157. msm_routing_put_audio_mixer),
  14158. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14159. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14160. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14161. msm_routing_put_audio_mixer),
  14162. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14163. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14164. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14165. msm_routing_put_audio_mixer),
  14166. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14167. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14168. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14169. msm_routing_put_audio_mixer),
  14170. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14171. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14172. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14173. msm_routing_put_audio_mixer),
  14174. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14175. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14176. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14177. msm_routing_put_audio_mixer),
  14178. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14179. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14180. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14181. msm_routing_get_audio_mixer,
  14182. msm_routing_put_audio_mixer),
  14183. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14184. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14185. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14186. msm_routing_get_audio_mixer,
  14187. msm_routing_put_audio_mixer),
  14188. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14189. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14190. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14191. msm_routing_get_audio_mixer,
  14192. msm_routing_put_audio_mixer),
  14193. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14194. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14195. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14196. msm_routing_get_audio_mixer,
  14197. msm_routing_put_audio_mixer),
  14198. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14199. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14200. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14201. msm_routing_get_audio_mixer,
  14202. msm_routing_put_audio_mixer),
  14203. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14204. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14205. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14206. msm_routing_get_audio_mixer,
  14207. msm_routing_put_audio_mixer),
  14208. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14209. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14210. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14211. msm_routing_put_audio_mixer),
  14212. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14213. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14214. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14215. msm_routing_put_audio_mixer),
  14216. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14217. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14218. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14219. msm_routing_put_audio_mixer),
  14220. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14221. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14222. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14223. msm_routing_put_audio_mixer),
  14224. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  14225. MSM_BACKEND_DAI_USB_TX,
  14226. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14227. msm_routing_put_audio_mixer),
  14228. };
  14229. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  14230. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14231. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14232. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14233. msm_routing_put_audio_mixer),
  14234. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14235. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14236. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14237. msm_routing_put_audio_mixer),
  14238. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14239. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14240. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14241. msm_routing_put_audio_mixer),
  14242. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14243. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14244. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14245. msm_routing_put_audio_mixer),
  14246. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14247. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14248. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14249. msm_routing_put_audio_mixer),
  14250. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14251. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14252. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14253. msm_routing_put_audio_mixer),
  14254. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14255. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14256. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14257. msm_routing_put_audio_mixer),
  14258. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14259. MSM_BACKEND_DAI_INT_FM_TX,
  14260. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14261. msm_routing_put_audio_mixer),
  14262. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14263. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14264. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14265. msm_routing_put_audio_mixer),
  14266. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14267. MSM_BACKEND_DAI_AFE_PCM_TX,
  14268. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14269. msm_routing_put_audio_mixer),
  14270. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14271. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14272. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14273. msm_routing_put_audio_mixer),
  14274. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14275. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14276. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14277. msm_routing_put_audio_mixer),
  14278. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14279. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14280. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14281. msm_routing_put_audio_mixer),
  14282. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14283. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14284. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14285. msm_routing_put_audio_mixer),
  14286. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14287. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14288. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14289. msm_routing_put_audio_mixer),
  14290. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14291. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14292. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14293. msm_routing_put_audio_mixer),
  14294. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14295. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14296. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14297. msm_routing_put_audio_mixer),
  14298. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14299. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14300. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14301. msm_routing_put_audio_mixer),
  14302. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14303. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14304. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14305. msm_routing_get_audio_mixer,
  14306. msm_routing_put_audio_mixer),
  14307. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14308. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14309. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14310. 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_MULTIMEDIA18, 1, 0,
  14315. msm_routing_get_audio_mixer,
  14316. msm_routing_put_audio_mixer),
  14317. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14318. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14319. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14320. msm_routing_get_audio_mixer,
  14321. msm_routing_put_audio_mixer),
  14322. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14323. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14324. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14325. msm_routing_get_audio_mixer,
  14326. msm_routing_put_audio_mixer),
  14327. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14328. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14329. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14330. msm_routing_get_audio_mixer,
  14331. msm_routing_put_audio_mixer),
  14332. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14333. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14334. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14335. msm_routing_put_audio_mixer),
  14336. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14337. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14338. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14339. msm_routing_put_audio_mixer),
  14340. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14341. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14342. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14343. msm_routing_put_audio_mixer),
  14344. };
  14345. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  14346. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14347. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14348. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14349. msm_routing_put_audio_mixer),
  14350. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14351. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14352. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14353. msm_routing_put_audio_mixer),
  14354. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14355. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14356. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14357. msm_routing_put_audio_mixer),
  14358. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14359. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14360. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14361. msm_routing_put_audio_mixer),
  14362. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14363. MSM_BACKEND_DAI_INT_FM_TX,
  14364. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14365. msm_routing_put_audio_mixer),
  14366. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14367. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14368. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14369. msm_routing_put_audio_mixer),
  14370. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14371. MSM_BACKEND_DAI_AFE_PCM_TX,
  14372. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14373. msm_routing_put_audio_mixer),
  14374. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14375. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14376. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14377. msm_routing_put_audio_mixer),
  14378. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14379. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14380. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14381. msm_routing_put_audio_mixer),
  14382. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14383. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14384. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14385. msm_routing_put_audio_mixer),
  14386. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14387. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14388. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14389. msm_routing_put_audio_mixer),
  14390. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14391. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14392. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14393. msm_routing_put_audio_mixer),
  14394. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14395. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14396. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14397. msm_routing_put_audio_mixer),
  14398. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14399. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14400. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14401. msm_routing_put_audio_mixer),
  14402. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14403. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14404. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14405. msm_routing_put_audio_mixer),
  14406. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14407. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14408. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14409. msm_routing_put_audio_mixer),
  14410. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14411. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14412. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14413. msm_routing_put_audio_mixer),
  14414. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14415. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14416. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14417. msm_routing_put_audio_mixer),
  14418. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14419. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14420. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14421. msm_routing_get_audio_mixer,
  14422. msm_routing_put_audio_mixer),
  14423. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14424. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14425. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14426. msm_routing_get_audio_mixer,
  14427. msm_routing_put_audio_mixer),
  14428. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14429. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14430. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14431. msm_routing_get_audio_mixer,
  14432. msm_routing_put_audio_mixer),
  14433. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14434. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14435. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14436. msm_routing_get_audio_mixer,
  14437. msm_routing_put_audio_mixer),
  14438. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14439. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14440. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14441. msm_routing_get_audio_mixer,
  14442. msm_routing_put_audio_mixer),
  14443. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14444. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14445. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14446. msm_routing_get_audio_mixer,
  14447. msm_routing_put_audio_mixer),
  14448. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14449. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14450. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14451. msm_routing_put_audio_mixer),
  14452. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14453. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14454. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14455. msm_routing_put_audio_mixer),
  14456. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14457. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14458. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14459. msm_routing_put_audio_mixer),
  14460. };
  14461. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  14462. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14463. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14464. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14465. msm_routing_put_audio_mixer),
  14466. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14467. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14468. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14469. msm_routing_put_audio_mixer),
  14470. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14471. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14472. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14473. msm_routing_put_audio_mixer),
  14474. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14475. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14476. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14477. msm_routing_put_audio_mixer),
  14478. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14479. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14480. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14481. msm_routing_put_audio_mixer),
  14482. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14483. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14484. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14485. msm_routing_put_audio_mixer),
  14486. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14487. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14488. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14489. msm_routing_put_audio_mixer),
  14490. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14491. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14492. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14493. msm_routing_put_audio_mixer),
  14494. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14495. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14496. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14497. msm_routing_put_audio_mixer),
  14498. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14499. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14500. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14501. msm_routing_put_audio_mixer),
  14502. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14503. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14504. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14505. msm_routing_put_audio_mixer),
  14506. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14507. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14508. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14509. msm_routing_put_audio_mixer),
  14510. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14511. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14512. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14513. msm_routing_put_audio_mixer),
  14514. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14515. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14516. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14517. msm_routing_put_audio_mixer),
  14518. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14519. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14520. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14521. msm_routing_put_audio_mixer),
  14522. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14523. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14524. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14525. msm_routing_put_audio_mixer),
  14526. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14527. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14528. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14529. msm_routing_put_audio_mixer),
  14530. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14531. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14532. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14533. msm_routing_put_audio_mixer),
  14534. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14535. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14536. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14537. msm_routing_put_audio_mixer),
  14538. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14539. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14540. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14541. msm_routing_put_audio_mixer),
  14542. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14543. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14544. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14545. msm_routing_put_audio_mixer),
  14546. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14547. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14548. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14549. msm_routing_put_audio_mixer),
  14550. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14551. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14552. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14553. msm_routing_put_audio_mixer),
  14554. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14555. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14556. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14557. msm_routing_put_audio_mixer),
  14558. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14559. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14560. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14561. msm_routing_put_audio_mixer),
  14562. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14563. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14564. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14565. msm_routing_put_audio_mixer),
  14566. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14567. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14568. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14569. msm_routing_put_audio_mixer),
  14570. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14571. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14572. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14573. msm_routing_put_audio_mixer),
  14574. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14575. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14576. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14577. msm_routing_put_audio_mixer),
  14578. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14579. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14580. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14581. msm_routing_put_audio_mixer),
  14582. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14583. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14584. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14585. msm_routing_put_audio_mixer),
  14586. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14587. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14588. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14589. msm_routing_put_audio_mixer),
  14590. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14591. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14592. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14593. msm_routing_put_audio_mixer),
  14594. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14595. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14596. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14597. msm_routing_put_audio_mixer),
  14598. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14599. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14600. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14601. msm_routing_put_audio_mixer),
  14602. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14603. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14604. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14605. msm_routing_put_audio_mixer),
  14606. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14607. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14608. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14609. msm_routing_put_audio_mixer),
  14610. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14611. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14612. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14613. msm_routing_put_audio_mixer),
  14614. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14615. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14616. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14617. msm_routing_put_audio_mixer),
  14618. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14619. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14620. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14621. msm_routing_put_audio_mixer),
  14622. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14623. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14624. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14625. msm_routing_put_audio_mixer),
  14626. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14627. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14628. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14629. msm_routing_put_audio_mixer),
  14630. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14631. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14632. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14633. msm_routing_put_audio_mixer),
  14634. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14635. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14636. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14637. msm_routing_put_audio_mixer),
  14638. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14639. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14640. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14641. msm_routing_put_audio_mixer),
  14642. };
  14643. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  14644. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14645. MSM_BACKEND_DAI_AUXPCM_TX,
  14646. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14647. msm_routing_put_audio_mixer),
  14648. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14649. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14650. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14651. msm_routing_put_audio_mixer),
  14652. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14653. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14654. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14655. msm_routing_put_audio_mixer),
  14656. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14657. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14658. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14659. msm_routing_put_audio_mixer),
  14660. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14661. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14662. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14663. msm_routing_put_audio_mixer),
  14664. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14665. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14666. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14667. msm_routing_put_audio_mixer),
  14668. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14669. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14670. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14671. msm_routing_put_audio_mixer),
  14672. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14673. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14674. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14675. msm_routing_put_audio_mixer),
  14676. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14677. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14678. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14679. msm_routing_put_audio_mixer),
  14680. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14681. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14682. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14683. msm_routing_put_audio_mixer),
  14684. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14685. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14686. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14687. msm_routing_put_audio_mixer),
  14688. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14689. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14690. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14691. msm_routing_put_audio_mixer),
  14692. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14693. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14694. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14695. msm_routing_put_audio_mixer),
  14696. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14697. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14698. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14699. msm_routing_put_audio_mixer),
  14700. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14701. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14702. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14703. msm_routing_put_audio_mixer),
  14704. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14705. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14706. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14707. msm_routing_put_audio_mixer),
  14708. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14709. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14710. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14711. msm_routing_put_audio_mixer),
  14712. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14713. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14714. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14715. msm_routing_put_audio_mixer),
  14716. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14717. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14718. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14719. msm_routing_put_audio_mixer),
  14720. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14721. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14722. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14723. msm_routing_put_audio_mixer),
  14724. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14725. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14726. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14727. msm_routing_put_audio_mixer),
  14728. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14729. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14730. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14731. msm_routing_put_audio_mixer),
  14732. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14733. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14734. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14735. msm_routing_put_audio_mixer),
  14736. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14737. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14738. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14739. msm_routing_put_audio_mixer),
  14740. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14741. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14742. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14743. msm_routing_put_audio_mixer),
  14744. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14745. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14746. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14747. msm_routing_put_audio_mixer),
  14748. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14749. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14750. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14751. msm_routing_put_audio_mixer),
  14752. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14753. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14754. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14755. msm_routing_put_audio_mixer),
  14756. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14757. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14758. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14759. msm_routing_put_audio_mixer),
  14760. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14761. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14762. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14763. msm_routing_put_audio_mixer),
  14764. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14765. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14766. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14767. msm_routing_put_audio_mixer),
  14768. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14769. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14770. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14771. msm_routing_put_audio_mixer),
  14772. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14773. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14774. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14775. msm_routing_put_audio_mixer),
  14776. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14777. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14778. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14779. msm_routing_put_audio_mixer),
  14780. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14781. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14782. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14783. msm_routing_put_audio_mixer),
  14784. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14785. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14786. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14787. msm_routing_put_audio_mixer),
  14788. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14789. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14790. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14791. msm_routing_put_audio_mixer),
  14792. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14793. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14794. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14795. msm_routing_put_audio_mixer),
  14796. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14797. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14798. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14799. msm_routing_put_audio_mixer),
  14800. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14801. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14802. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14803. msm_routing_put_audio_mixer),
  14804. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14805. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14806. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14807. msm_routing_put_audio_mixer),
  14808. };
  14809. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  14810. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14811. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14812. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14813. msm_routing_put_audio_mixer),
  14814. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14815. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14816. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14817. msm_routing_put_audio_mixer),
  14818. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14819. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14820. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14821. msm_routing_put_audio_mixer),
  14822. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14823. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14824. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14825. msm_routing_put_audio_mixer),
  14826. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14827. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14828. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14829. msm_routing_put_audio_mixer),
  14830. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14831. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14832. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14833. msm_routing_put_audio_mixer),
  14834. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14835. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14836. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14837. msm_routing_put_audio_mixer),
  14838. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14839. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14840. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14841. msm_routing_put_audio_mixer),
  14842. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14843. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14844. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14845. msm_routing_put_audio_mixer),
  14846. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14847. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14848. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14849. msm_routing_put_audio_mixer),
  14850. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14851. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14852. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14853. msm_routing_put_audio_mixer),
  14854. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14855. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14856. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14857. msm_routing_put_audio_mixer),
  14858. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14859. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14860. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14861. msm_routing_put_audio_mixer),
  14862. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14863. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14864. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14865. msm_routing_put_audio_mixer),
  14866. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14867. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14868. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14869. msm_routing_put_audio_mixer),
  14870. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14871. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14872. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14873. msm_routing_put_audio_mixer),
  14874. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14875. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14876. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14877. msm_routing_put_audio_mixer),
  14878. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14879. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14880. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14881. msm_routing_put_audio_mixer),
  14882. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14883. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14884. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14885. msm_routing_put_audio_mixer),
  14886. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14887. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14888. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14889. msm_routing_put_audio_mixer),
  14890. };
  14891. static const struct snd_kcontrol_new mmul23_mixer_controls[] = {
  14892. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14893. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14894. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14895. msm_routing_put_audio_mixer),
  14896. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14897. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14898. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14899. msm_routing_put_audio_mixer),
  14900. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14901. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14902. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14903. msm_routing_put_audio_mixer),
  14904. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14905. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14906. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14907. msm_routing_put_audio_mixer),
  14908. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14909. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14910. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14911. msm_routing_put_audio_mixer),
  14912. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14913. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14914. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14915. msm_routing_put_audio_mixer),
  14916. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14917. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14918. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14919. msm_routing_put_audio_mixer),
  14920. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14921. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14922. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14923. msm_routing_put_audio_mixer),
  14924. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14925. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14926. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14927. msm_routing_put_audio_mixer),
  14928. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14929. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14930. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14931. msm_routing_put_audio_mixer),
  14932. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14933. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14934. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14935. msm_routing_put_audio_mixer),
  14936. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14937. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14938. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14939. msm_routing_put_audio_mixer),
  14940. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14941. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14942. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14943. msm_routing_put_audio_mixer),
  14944. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14945. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14946. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14947. msm_routing_put_audio_mixer),
  14948. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14949. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14950. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14951. msm_routing_put_audio_mixer),
  14952. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14953. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14954. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14955. msm_routing_put_audio_mixer),
  14956. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14957. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14958. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14959. msm_routing_put_audio_mixer),
  14960. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14961. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14962. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14963. msm_routing_put_audio_mixer),
  14964. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14965. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14966. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14967. msm_routing_put_audio_mixer),
  14968. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14969. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14970. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14971. msm_routing_put_audio_mixer),
  14972. };
  14973. static const struct snd_kcontrol_new mmul24_mixer_controls[] = {
  14974. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14975. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14976. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14977. msm_routing_put_audio_mixer),
  14978. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14979. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14980. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14981. msm_routing_put_audio_mixer),
  14982. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14983. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14984. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14985. msm_routing_put_audio_mixer),
  14986. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14987. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14988. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14989. msm_routing_put_audio_mixer),
  14990. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14991. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14992. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14993. msm_routing_put_audio_mixer),
  14994. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14995. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14996. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14997. msm_routing_put_audio_mixer),
  14998. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14999. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15000. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15001. msm_routing_put_audio_mixer),
  15002. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15003. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15004. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15005. msm_routing_put_audio_mixer),
  15006. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15007. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15008. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15009. msm_routing_put_audio_mixer),
  15010. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15011. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15012. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15013. msm_routing_put_audio_mixer),
  15014. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15015. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15016. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15017. msm_routing_put_audio_mixer),
  15018. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15019. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15020. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15021. msm_routing_put_audio_mixer),
  15022. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15023. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15024. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15025. msm_routing_put_audio_mixer),
  15026. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15027. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15028. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15029. msm_routing_put_audio_mixer),
  15030. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15031. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15032. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15033. msm_routing_put_audio_mixer),
  15034. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15035. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15036. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15037. msm_routing_put_audio_mixer),
  15038. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15039. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15040. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15041. msm_routing_put_audio_mixer),
  15042. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15043. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15044. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15045. msm_routing_put_audio_mixer),
  15046. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15047. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15048. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15049. msm_routing_put_audio_mixer),
  15050. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15051. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15052. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15053. msm_routing_put_audio_mixer),
  15054. };
  15055. static const struct snd_kcontrol_new mmul25_mixer_controls[] = {
  15056. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15057. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15058. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15059. msm_routing_put_audio_mixer),
  15060. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15061. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15062. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15063. msm_routing_put_audio_mixer),
  15064. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15065. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15066. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15067. msm_routing_put_audio_mixer),
  15068. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15069. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15070. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15071. msm_routing_put_audio_mixer),
  15072. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15073. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15074. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15075. msm_routing_put_audio_mixer),
  15076. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15077. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15078. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15079. msm_routing_put_audio_mixer),
  15080. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15081. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15082. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15083. msm_routing_put_audio_mixer),
  15084. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15085. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15086. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15087. msm_routing_put_audio_mixer),
  15088. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15089. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15090. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15091. msm_routing_put_audio_mixer),
  15092. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15093. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15094. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15095. msm_routing_put_audio_mixer),
  15096. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15097. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15098. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15099. msm_routing_put_audio_mixer),
  15100. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15101. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15102. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15103. msm_routing_put_audio_mixer),
  15104. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15105. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15106. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15107. msm_routing_put_audio_mixer),
  15108. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15109. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15110. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15111. msm_routing_put_audio_mixer),
  15112. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15113. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15114. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15115. msm_routing_put_audio_mixer),
  15116. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15117. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15118. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15119. msm_routing_put_audio_mixer),
  15120. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15121. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15122. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15123. msm_routing_put_audio_mixer),
  15124. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15125. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15126. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15127. msm_routing_put_audio_mixer),
  15128. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15129. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15130. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15131. msm_routing_put_audio_mixer),
  15132. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15133. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15134. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15135. msm_routing_put_audio_mixer),
  15136. };
  15137. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  15138. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15139. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15140. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15141. msm_routing_put_audio_mixer),
  15142. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15143. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15144. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15145. msm_routing_put_audio_mixer),
  15146. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  15147. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  15148. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15149. msm_routing_put_audio_mixer),
  15150. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15151. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15152. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15153. msm_routing_put_audio_mixer),
  15154. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15155. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15156. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15157. msm_routing_put_audio_mixer),
  15158. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15159. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15160. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15161. msm_routing_put_audio_mixer),
  15162. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15163. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15164. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15165. msm_routing_put_audio_mixer),
  15166. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15167. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15168. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15169. msm_routing_put_audio_mixer),
  15170. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15171. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  15172. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15173. msm_routing_put_audio_mixer),
  15174. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15175. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  15176. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15177. msm_routing_put_audio_mixer),
  15178. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15179. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15180. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15181. msm_routing_put_audio_mixer),
  15182. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15183. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15184. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15185. msm_routing_put_audio_mixer),
  15186. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15187. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  15188. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15189. msm_routing_put_audio_mixer),
  15190. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15191. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15192. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15193. msm_routing_put_audio_mixer),
  15194. };
  15195. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  15196. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15197. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15198. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15199. msm_routing_put_audio_mixer),
  15200. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15201. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15202. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15203. msm_routing_put_audio_mixer),
  15204. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15205. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15206. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15207. msm_routing_put_audio_mixer),
  15208. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15209. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15210. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15211. msm_routing_put_audio_mixer),
  15212. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15213. MSM_BACKEND_DAI_INT_FM_TX,
  15214. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15215. msm_routing_put_audio_mixer),
  15216. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15217. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15218. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15219. msm_routing_put_audio_mixer),
  15220. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15221. MSM_BACKEND_DAI_AFE_PCM_TX,
  15222. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15223. msm_routing_put_audio_mixer),
  15224. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15225. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15226. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15227. msm_routing_put_audio_mixer),
  15228. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15229. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15230. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15231. msm_routing_put_audio_mixer),
  15232. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15233. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15234. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15235. msm_routing_put_audio_mixer),
  15236. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15237. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15238. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15239. msm_routing_put_audio_mixer),
  15240. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15241. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15242. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15243. msm_routing_put_audio_mixer),
  15244. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15245. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15246. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15247. msm_routing_put_audio_mixer),
  15248. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15249. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15250. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15251. msm_routing_put_audio_mixer),
  15252. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15253. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15254. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15255. msm_routing_put_audio_mixer),
  15256. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15257. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15258. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15259. msm_routing_put_audio_mixer),
  15260. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15261. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15262. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15263. msm_routing_put_audio_mixer),
  15264. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15265. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15266. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15267. msm_routing_put_audio_mixer),
  15268. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15269. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15270. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15271. msm_routing_get_audio_mixer,
  15272. msm_routing_put_audio_mixer),
  15273. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15274. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15275. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15276. msm_routing_get_audio_mixer,
  15277. msm_routing_put_audio_mixer),
  15278. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15279. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15280. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15281. msm_routing_get_audio_mixer,
  15282. msm_routing_put_audio_mixer),
  15283. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15284. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15285. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15286. msm_routing_get_audio_mixer,
  15287. msm_routing_put_audio_mixer),
  15288. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15289. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15290. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15291. msm_routing_get_audio_mixer,
  15292. msm_routing_put_audio_mixer),
  15293. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15294. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15295. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15296. msm_routing_get_audio_mixer,
  15297. msm_routing_put_audio_mixer),
  15298. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15299. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15300. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15301. msm_routing_put_audio_mixer),
  15302. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15303. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15304. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15305. msm_routing_put_audio_mixer),
  15306. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15307. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15308. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15309. msm_routing_put_audio_mixer),
  15310. };
  15311. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  15312. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15313. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15314. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15315. msm_routing_put_audio_mixer),
  15316. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15317. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15318. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15319. msm_routing_put_audio_mixer),
  15320. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15321. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15322. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15323. msm_routing_put_audio_mixer),
  15324. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15325. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15326. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15327. msm_routing_put_audio_mixer),
  15328. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15329. MSM_BACKEND_DAI_INT_FM_TX,
  15330. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15331. msm_routing_put_audio_mixer),
  15332. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15333. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15334. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15335. msm_routing_put_audio_mixer),
  15336. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15337. MSM_BACKEND_DAI_AFE_PCM_TX,
  15338. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15339. msm_routing_put_audio_mixer),
  15340. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15341. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15342. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15343. msm_routing_put_audio_mixer),
  15344. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15345. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15346. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15347. msm_routing_put_audio_mixer),
  15348. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15349. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15350. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15351. msm_routing_put_audio_mixer),
  15352. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15353. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15354. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15355. msm_routing_put_audio_mixer),
  15356. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15357. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15358. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15359. msm_routing_put_audio_mixer),
  15360. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15361. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15362. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15363. msm_routing_put_audio_mixer),
  15364. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15365. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15366. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15367. msm_routing_put_audio_mixer),
  15368. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15369. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15370. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15371. msm_routing_put_audio_mixer),
  15372. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15373. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15374. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15375. msm_routing_put_audio_mixer),
  15376. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15377. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15378. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15379. msm_routing_put_audio_mixer),
  15380. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15381. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15382. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15383. msm_routing_put_audio_mixer),
  15384. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15385. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15386. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15387. msm_routing_get_audio_mixer,
  15388. msm_routing_put_audio_mixer),
  15389. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15390. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15391. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15392. msm_routing_get_audio_mixer,
  15393. msm_routing_put_audio_mixer),
  15394. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15395. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15396. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15397. msm_routing_get_audio_mixer,
  15398. msm_routing_put_audio_mixer),
  15399. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15400. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15401. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15402. msm_routing_get_audio_mixer,
  15403. msm_routing_put_audio_mixer),
  15404. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15405. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15406. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15407. msm_routing_get_audio_mixer,
  15408. msm_routing_put_audio_mixer),
  15409. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15410. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15411. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15412. msm_routing_get_audio_mixer,
  15413. msm_routing_put_audio_mixer),
  15414. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15415. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15416. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15417. msm_routing_put_audio_mixer),
  15418. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15419. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15420. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15421. msm_routing_put_audio_mixer),
  15422. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15423. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15424. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15425. msm_routing_put_audio_mixer),
  15426. };
  15427. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  15428. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15429. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15430. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15431. msm_routing_put_audio_mixer),
  15432. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15433. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15434. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15435. msm_routing_put_audio_mixer),
  15436. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15437. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15438. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15439. msm_routing_put_audio_mixer),
  15440. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15441. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15442. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15443. msm_routing_put_audio_mixer),
  15444. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15445. MSM_BACKEND_DAI_INT_FM_TX,
  15446. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15447. msm_routing_put_audio_mixer),
  15448. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15449. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15450. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15451. msm_routing_put_audio_mixer),
  15452. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15453. MSM_BACKEND_DAI_AFE_PCM_TX,
  15454. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15455. msm_routing_put_audio_mixer),
  15456. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15457. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15458. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15459. msm_routing_put_audio_mixer),
  15460. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15461. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15462. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15463. msm_routing_put_audio_mixer),
  15464. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15465. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15466. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15467. msm_routing_put_audio_mixer),
  15468. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15469. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15470. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15471. msm_routing_put_audio_mixer),
  15472. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15473. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15474. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15475. msm_routing_put_audio_mixer),
  15476. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15477. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15478. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15479. msm_routing_put_audio_mixer),
  15480. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15481. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15482. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15483. msm_routing_put_audio_mixer),
  15484. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15485. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15486. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15487. msm_routing_put_audio_mixer),
  15488. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15489. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15490. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15491. msm_routing_put_audio_mixer),
  15492. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15493. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15494. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15495. msm_routing_put_audio_mixer),
  15496. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15497. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15498. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15499. msm_routing_get_audio_mixer,
  15500. msm_routing_put_audio_mixer),
  15501. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15502. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15503. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15504. msm_routing_get_audio_mixer,
  15505. msm_routing_put_audio_mixer),
  15506. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15507. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15508. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15509. msm_routing_get_audio_mixer,
  15510. msm_routing_put_audio_mixer),
  15511. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15512. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15513. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15514. msm_routing_get_audio_mixer,
  15515. msm_routing_put_audio_mixer),
  15516. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15517. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15518. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15519. msm_routing_get_audio_mixer,
  15520. msm_routing_put_audio_mixer),
  15521. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15522. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15523. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15524. msm_routing_get_audio_mixer,
  15525. msm_routing_put_audio_mixer),
  15526. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15527. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15528. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15529. msm_routing_put_audio_mixer),
  15530. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15531. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15532. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15533. msm_routing_put_audio_mixer),
  15534. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15535. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15536. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15537. msm_routing_put_audio_mixer),
  15538. };
  15539. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  15540. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15541. MSM_BACKEND_DAI_PRI_I2S_RX,
  15542. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15543. msm_routing_put_voice_mixer),
  15544. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15545. MSM_BACKEND_DAI_PRI_I2S_RX,
  15546. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15547. msm_routing_put_voice_mixer),
  15548. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15549. MSM_BACKEND_DAI_PRI_I2S_RX,
  15550. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15551. msm_routing_put_voice_mixer),
  15552. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15553. MSM_BACKEND_DAI_PRI_I2S_RX,
  15554. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15555. msm_routing_put_voice_mixer),
  15556. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15557. MSM_BACKEND_DAI_PRI_I2S_RX,
  15558. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15559. msm_routing_put_voice_mixer),
  15560. };
  15561. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  15562. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15563. MSM_BACKEND_DAI_SEC_I2S_RX,
  15564. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15565. msm_routing_put_voice_mixer),
  15566. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15567. MSM_BACKEND_DAI_SEC_I2S_RX,
  15568. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15569. msm_routing_put_voice_mixer),
  15570. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15571. MSM_BACKEND_DAI_SEC_I2S_RX,
  15572. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15573. msm_routing_put_voice_mixer),
  15574. };
  15575. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  15576. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15577. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15578. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15579. msm_routing_put_voice_mixer),
  15580. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15581. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15582. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15583. msm_routing_put_voice_mixer),
  15584. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15585. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15586. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15587. msm_routing_put_voice_mixer),
  15588. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15589. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15590. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15591. msm_routing_put_voice_mixer),
  15592. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15593. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15594. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15595. msm_routing_put_voice_mixer),
  15596. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15597. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15598. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15599. msm_routing_put_voice_mixer),
  15600. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15601. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15602. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15603. msm_routing_put_voice_mixer),
  15604. };
  15605. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  15606. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15607. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15608. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15609. msm_routing_put_voice_mixer),
  15610. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15611. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15612. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15613. msm_routing_put_voice_mixer),
  15614. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15615. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15616. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15617. msm_routing_put_voice_mixer),
  15618. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15619. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15620. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15621. msm_routing_put_voice_mixer),
  15622. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15623. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15624. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15625. msm_routing_put_voice_mixer),
  15626. };
  15627. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  15628. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15629. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15630. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15631. msm_routing_put_voice_mixer),
  15632. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15633. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15634. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15635. msm_routing_put_voice_mixer),
  15636. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15637. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15638. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15639. msm_routing_put_voice_mixer),
  15640. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15641. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15642. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15643. msm_routing_put_voice_mixer),
  15644. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15645. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15646. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15647. msm_routing_put_voice_mixer),
  15648. };
  15649. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  15650. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15651. MSM_BACKEND_DAI_USB_RX,
  15652. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15653. msm_routing_put_voice_mixer),
  15654. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15655. MSM_BACKEND_DAI_USB_RX,
  15656. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15657. msm_routing_put_voice_mixer),
  15658. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15659. MSM_BACKEND_DAI_USB_RX,
  15660. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15661. msm_routing_put_voice_mixer),
  15662. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15663. MSM_BACKEND_DAI_USB_RX,
  15664. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15665. msm_routing_put_voice_mixer),
  15666. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15667. MSM_BACKEND_DAI_USB_RX,
  15668. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15669. msm_routing_put_voice_mixer),
  15670. };
  15671. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  15672. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15673. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15674. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15675. msm_routing_put_voice_mixer),
  15676. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15677. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15678. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15679. msm_routing_put_voice_mixer),
  15680. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15681. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15682. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15683. msm_routing_put_voice_mixer),
  15684. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15685. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15686. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15687. msm_routing_put_voice_mixer),
  15688. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15689. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15690. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15691. msm_routing_put_voice_mixer),
  15692. };
  15693. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  15694. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15695. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15696. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15697. msm_routing_put_voice_mixer),
  15698. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15699. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15700. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15701. msm_routing_put_voice_mixer),
  15702. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15703. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15704. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15705. msm_routing_put_voice_mixer),
  15706. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15707. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15708. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15709. msm_routing_put_voice_mixer),
  15710. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15711. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15712. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15713. msm_routing_put_voice_mixer),
  15714. };
  15715. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  15716. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15717. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15718. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15719. msm_routing_put_voice_mixer),
  15720. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15721. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15722. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15723. msm_routing_put_voice_mixer),
  15724. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15725. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15726. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15727. msm_routing_put_voice_mixer),
  15728. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15729. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15730. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15731. msm_routing_put_voice_mixer),
  15732. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15733. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15734. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15735. msm_routing_put_voice_mixer),
  15736. };
  15737. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  15738. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15739. MSM_BACKEND_DAI_MI2S_RX,
  15740. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15741. msm_routing_put_voice_mixer),
  15742. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15743. MSM_BACKEND_DAI_MI2S_RX,
  15744. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15745. msm_routing_put_voice_mixer),
  15746. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15747. MSM_BACKEND_DAI_MI2S_RX,
  15748. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15749. msm_routing_put_voice_mixer),
  15750. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15751. MSM_BACKEND_DAI_MI2S_RX,
  15752. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15753. msm_routing_put_voice_mixer),
  15754. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15755. MSM_BACKEND_DAI_MI2S_RX,
  15756. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15757. msm_routing_put_voice_mixer),
  15758. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15759. MSM_BACKEND_DAI_MI2S_RX,
  15760. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15761. msm_routing_put_voice_mixer),
  15762. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15763. MSM_BACKEND_DAI_MI2S_RX,
  15764. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15765. msm_routing_put_voice_mixer),
  15766. };
  15767. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  15768. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15769. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15770. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15771. msm_routing_put_voice_mixer),
  15772. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15773. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15774. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15775. msm_routing_put_voice_mixer),
  15776. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15777. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15778. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15779. msm_routing_put_voice_mixer),
  15780. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15781. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15782. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15783. msm_routing_put_voice_mixer),
  15784. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15785. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15786. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15787. msm_routing_put_voice_mixer),
  15788. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15789. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15790. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15791. msm_routing_put_voice_mixer),
  15792. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15793. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15794. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15795. msm_routing_put_voice_mixer),
  15796. };
  15797. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  15798. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15799. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15800. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15801. msm_routing_put_voice_mixer),
  15802. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15803. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15804. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15805. msm_routing_put_voice_mixer),
  15806. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15807. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15808. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15809. msm_routing_put_voice_mixer),
  15810. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15811. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15812. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15813. msm_routing_put_voice_mixer),
  15814. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15815. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15816. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15817. msm_routing_put_voice_mixer),
  15818. };
  15819. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  15820. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15821. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15822. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15823. msm_routing_put_voice_mixer),
  15824. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15825. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15826. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15827. msm_routing_put_voice_mixer),
  15828. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15829. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15830. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15831. msm_routing_put_voice_mixer),
  15832. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15833. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15834. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15835. msm_routing_put_voice_mixer),
  15836. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15837. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15838. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15839. msm_routing_put_voice_mixer),
  15840. };
  15841. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  15842. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15843. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15844. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15845. msm_routing_put_voice_mixer),
  15846. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15847. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15848. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15849. msm_routing_put_voice_mixer),
  15850. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15851. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15852. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15853. msm_routing_put_voice_mixer),
  15854. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15855. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15856. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15857. msm_routing_put_voice_mixer),
  15858. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15859. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15860. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15861. msm_routing_put_voice_mixer),
  15862. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15863. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15864. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15865. msm_routing_put_voice_mixer),
  15866. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15867. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15868. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15869. msm_routing_put_voice_mixer),
  15870. };
  15871. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  15872. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15873. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15874. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15875. msm_routing_put_voice_mixer),
  15876. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15877. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15878. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15879. msm_routing_put_voice_mixer),
  15880. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15881. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15882. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15883. msm_routing_put_voice_mixer),
  15884. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15885. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15886. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15887. msm_routing_put_voice_mixer),
  15888. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15889. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15890. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15891. msm_routing_put_voice_mixer),
  15892. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15893. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15894. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15895. msm_routing_put_voice_mixer),
  15896. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15897. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15898. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15899. msm_routing_put_voice_mixer),
  15900. };
  15901. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  15902. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15903. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15904. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15905. msm_routing_put_voice_mixer),
  15906. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15907. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15908. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15909. msm_routing_put_voice_stub_mixer),
  15910. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15911. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15912. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15913. msm_routing_put_voice_stub_mixer),
  15914. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15915. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15916. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15917. msm_routing_put_voice_mixer),
  15918. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15919. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15920. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15921. msm_routing_put_voice_mixer),
  15922. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15923. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15924. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15925. msm_routing_put_voice_mixer),
  15926. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15927. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15928. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15929. msm_routing_put_voice_mixer),
  15930. };
  15931. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  15932. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15933. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15934. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15935. msm_routing_put_voice_mixer),
  15936. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15937. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15938. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15939. msm_routing_put_voice_mixer),
  15940. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15941. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15942. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15943. msm_routing_put_voice_mixer),
  15944. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15945. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15946. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15947. msm_routing_put_voice_mixer),
  15948. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15949. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15950. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15951. msm_routing_put_voice_mixer),
  15952. };
  15953. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  15954. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15955. MSM_BACKEND_DAI_AFE_PCM_RX,
  15956. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15957. msm_routing_put_voice_mixer),
  15958. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15959. MSM_BACKEND_DAI_AFE_PCM_RX,
  15960. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15961. msm_routing_put_voice_mixer),
  15962. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15963. MSM_BACKEND_DAI_AFE_PCM_RX,
  15964. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15965. msm_routing_put_voice_mixer),
  15966. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15967. MSM_BACKEND_DAI_AFE_PCM_RX,
  15968. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15969. msm_routing_put_voice_mixer),
  15970. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15971. MSM_BACKEND_DAI_AFE_PCM_RX,
  15972. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15973. msm_routing_put_voice_mixer),
  15974. };
  15975. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  15976. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15977. MSM_BACKEND_DAI_AUXPCM_RX,
  15978. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15979. msm_routing_put_voice_mixer),
  15980. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15981. MSM_BACKEND_DAI_AUXPCM_RX,
  15982. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15983. msm_routing_put_voice_mixer),
  15984. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15985. MSM_BACKEND_DAI_AUXPCM_RX,
  15986. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15987. msm_routing_put_voice_mixer),
  15988. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15989. MSM_BACKEND_DAI_AUXPCM_RX,
  15990. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15991. msm_routing_put_voice_mixer),
  15992. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15993. MSM_BACKEND_DAI_AUXPCM_RX,
  15994. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15995. msm_routing_put_voice_mixer),
  15996. };
  15997. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  15998. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15999. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16000. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16001. msm_routing_put_voice_mixer),
  16002. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16003. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16004. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16005. msm_routing_put_voice_mixer),
  16006. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16007. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16008. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16009. msm_routing_put_voice_mixer),
  16010. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16011. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16012. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16013. msm_routing_put_voice_mixer),
  16014. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16015. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16016. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16017. msm_routing_put_voice_mixer),
  16018. };
  16019. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  16020. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16021. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16022. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16023. msm_routing_put_voice_mixer),
  16024. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16025. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16026. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16027. msm_routing_put_voice_mixer),
  16028. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16029. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16030. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16031. msm_routing_put_voice_mixer),
  16032. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16033. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16034. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16035. msm_routing_put_voice_mixer),
  16036. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16037. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16038. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16039. msm_routing_put_voice_mixer),
  16040. };
  16041. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  16042. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16043. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16044. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16045. msm_routing_put_voice_mixer),
  16046. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16047. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16048. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16049. msm_routing_put_voice_mixer),
  16050. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16051. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16052. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16053. msm_routing_put_voice_mixer),
  16054. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16055. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16056. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16057. msm_routing_put_voice_mixer),
  16058. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16059. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16060. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16061. msm_routing_put_voice_mixer),
  16062. };
  16063. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  16064. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16065. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16066. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16067. msm_routing_put_voice_mixer),
  16068. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16069. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16070. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16071. msm_routing_put_voice_mixer),
  16072. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16073. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16074. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16075. msm_routing_put_voice_mixer),
  16076. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16077. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16078. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16079. msm_routing_put_voice_mixer),
  16080. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16081. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16082. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16083. msm_routing_put_voice_mixer),
  16084. };
  16085. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  16086. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16087. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16088. msm_routing_put_voice_mixer),
  16089. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16090. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16091. msm_routing_put_voice_mixer),
  16092. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16093. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16094. msm_routing_put_voice_mixer),
  16095. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16096. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16097. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16098. msm_routing_put_voice_mixer),
  16099. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16100. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16101. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16102. msm_routing_put_voice_mixer),
  16103. };
  16104. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  16105. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16106. MSM_BACKEND_DAI_HDMI_RX,
  16107. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16108. msm_routing_put_voice_mixer),
  16109. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16110. MSM_BACKEND_DAI_HDMI_RX,
  16111. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16112. msm_routing_put_voice_mixer),
  16113. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16114. MSM_BACKEND_DAI_HDMI_RX,
  16115. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16116. msm_routing_put_voice_mixer),
  16117. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16118. MSM_BACKEND_DAI_HDMI_RX,
  16119. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16120. msm_routing_put_voice_mixer),
  16121. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16122. MSM_BACKEND_DAI_HDMI_RX,
  16123. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16124. msm_routing_put_voice_mixer),
  16125. };
  16126. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  16127. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16128. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16129. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16130. msm_routing_put_voice_mixer),
  16131. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16132. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16133. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16134. msm_routing_put_voice_mixer),
  16135. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16136. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16137. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16138. msm_routing_put_voice_mixer),
  16139. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16140. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16141. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16142. msm_routing_put_voice_mixer),
  16143. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16144. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16145. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16146. msm_routing_put_voice_mixer),
  16147. };
  16148. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  16149. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16150. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16151. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16152. msm_routing_put_voice_mixer),
  16153. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16154. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16155. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16156. msm_routing_put_voice_mixer),
  16157. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16158. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16159. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16160. msm_routing_put_voice_mixer),
  16161. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16162. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16163. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16164. msm_routing_put_voice_mixer),
  16165. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16166. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16167. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16168. msm_routing_put_voice_mixer),
  16169. };
  16170. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  16171. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16172. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  16173. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16174. msm_routing_put_voice_mixer),
  16175. };
  16176. static const struct snd_kcontrol_new quin_tdm_rx_2_voice_mixer_controls[] = {
  16177. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16178. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16179. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16180. msm_routing_put_voice_mixer),
  16181. };
  16182. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  16183. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16184. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16185. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16186. msm_routing_put_voice_mixer),
  16187. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16188. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16189. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16190. msm_routing_put_voice_mixer),
  16191. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16192. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16193. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16194. msm_routing_put_voice_mixer),
  16195. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16196. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16197. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16198. msm_routing_put_voice_mixer),
  16199. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16200. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16201. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16202. msm_routing_put_voice_mixer),
  16203. };
  16204. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  16205. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16206. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16207. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16208. msm_routing_put_voice_mixer),
  16209. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16210. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16211. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16212. msm_routing_put_voice_mixer),
  16213. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16214. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16215. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16216. msm_routing_put_voice_mixer),
  16217. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16218. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16219. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16220. msm_routing_put_voice_mixer),
  16221. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16222. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16223. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16224. msm_routing_put_voice_mixer),
  16225. };
  16226. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  16227. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16228. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16229. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16230. msm_routing_put_voice_mixer),
  16231. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16232. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16233. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16234. msm_routing_put_voice_mixer),
  16235. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16236. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16237. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16238. msm_routing_put_voice_mixer),
  16239. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16240. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16241. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16242. msm_routing_put_voice_mixer),
  16243. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16244. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16245. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16246. msm_routing_put_voice_mixer),
  16247. };
  16248. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  16249. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16250. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16251. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16252. msm_routing_put_voice_mixer),
  16253. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16254. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16255. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16256. msm_routing_put_voice_mixer),
  16257. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16258. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16259. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16260. msm_routing_put_voice_mixer),
  16261. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16262. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16263. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16264. msm_routing_put_voice_mixer),
  16265. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16266. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16267. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16268. msm_routing_put_voice_mixer),
  16269. };
  16270. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  16271. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16272. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16273. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16274. msm_routing_put_voice_mixer),
  16275. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16276. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16277. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16278. msm_routing_put_voice_mixer),
  16279. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16280. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16281. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16282. msm_routing_put_voice_mixer),
  16283. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16284. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16285. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16286. msm_routing_put_voice_mixer),
  16287. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16288. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16289. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16290. msm_routing_put_voice_mixer),
  16291. };
  16292. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  16293. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16294. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16295. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16296. msm_routing_put_voice_mixer),
  16297. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16298. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16299. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16300. msm_routing_put_voice_mixer),
  16301. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16302. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16303. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16304. msm_routing_put_voice_mixer),
  16305. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16306. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16307. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16308. msm_routing_put_voice_mixer),
  16309. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16310. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16311. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16312. msm_routing_put_voice_mixer),
  16313. };
  16314. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  16315. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16316. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16317. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16318. msm_routing_put_voice_mixer),
  16319. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16320. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16321. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16322. msm_routing_put_voice_mixer),
  16323. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16324. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16325. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16326. msm_routing_put_voice_mixer),
  16327. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16328. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16329. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16330. msm_routing_put_voice_mixer),
  16331. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16332. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16333. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16334. msm_routing_put_voice_mixer),
  16335. };
  16336. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  16337. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16338. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16339. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16340. msm_routing_put_voice_mixer),
  16341. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16342. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16343. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16344. msm_routing_put_voice_mixer),
  16345. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16346. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16347. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16348. msm_routing_put_voice_mixer),
  16349. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16350. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16351. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16352. msm_routing_put_voice_mixer),
  16353. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16354. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16355. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16356. msm_routing_put_voice_mixer),
  16357. };
  16358. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  16359. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16360. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16361. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16362. msm_routing_put_voice_mixer),
  16363. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16364. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16365. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16366. msm_routing_put_voice_mixer),
  16367. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16368. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16369. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16370. msm_routing_put_voice_mixer),
  16371. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16372. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16373. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16374. msm_routing_put_voice_mixer),
  16375. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16376. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16377. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16378. msm_routing_put_voice_mixer),
  16379. };
  16380. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  16381. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16382. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16383. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16384. msm_routing_put_voice_mixer),
  16385. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16386. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16387. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16388. msm_routing_put_voice_mixer),
  16389. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16390. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16391. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16392. msm_routing_put_voice_mixer),
  16393. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16394. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16395. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16396. msm_routing_put_voice_mixer),
  16397. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16398. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16399. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16400. msm_routing_put_voice_mixer),
  16401. };
  16402. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  16403. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16404. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16405. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16406. msm_routing_put_voice_mixer),
  16407. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16408. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16409. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16410. msm_routing_put_voice_stub_mixer),
  16411. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16412. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16413. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16414. msm_routing_put_voice_stub_mixer),
  16415. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16416. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16417. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16418. msm_routing_put_voice_mixer),
  16419. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16420. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16421. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16422. msm_routing_put_voice_mixer),
  16423. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16424. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16425. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16426. msm_routing_put_voice_mixer),
  16427. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16428. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16429. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16430. msm_routing_put_voice_mixer),
  16431. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16432. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16433. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16434. msm_routing_put_voice_mixer),
  16435. };
  16436. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  16437. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16438. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16439. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16440. msm_routing_put_voice_mixer),
  16441. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16442. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16443. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16444. msm_routing_put_voice_stub_mixer),
  16445. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16446. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16447. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16448. msm_routing_put_voice_stub_mixer),
  16449. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16450. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16451. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16452. msm_routing_put_voice_mixer),
  16453. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16454. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16455. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16456. msm_routing_put_voice_mixer),
  16457. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16458. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16459. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16460. msm_routing_put_voice_mixer),
  16461. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16462. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16463. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16464. msm_routing_put_voice_mixer),
  16465. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16466. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16467. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16468. msm_routing_put_voice_mixer),
  16469. };
  16470. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  16471. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16472. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16473. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16474. msm_routing_put_voice_mixer),
  16475. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16476. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16477. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16478. msm_routing_put_voice_stub_mixer),
  16479. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16480. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16481. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16482. msm_routing_put_voice_stub_mixer),
  16483. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16484. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16485. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16486. msm_routing_put_voice_mixer),
  16487. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16488. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16489. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16490. msm_routing_put_voice_mixer),
  16491. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16492. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16493. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16494. msm_routing_put_voice_mixer),
  16495. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16496. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16497. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16498. msm_routing_put_voice_mixer),
  16499. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16500. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16501. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16502. msm_routing_put_voice_mixer),
  16503. };
  16504. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  16505. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16506. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16507. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16508. msm_routing_put_voice_mixer),
  16509. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16510. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16511. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16512. msm_routing_put_voice_stub_mixer),
  16513. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16514. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16515. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16516. msm_routing_put_voice_stub_mixer),
  16517. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16518. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16519. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16520. msm_routing_put_voice_mixer),
  16521. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16522. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16523. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16524. msm_routing_put_voice_mixer),
  16525. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16526. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16527. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16528. msm_routing_put_voice_mixer),
  16529. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16530. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16531. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16532. msm_routing_put_voice_mixer),
  16533. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16534. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16535. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16536. msm_routing_put_voice_mixer),
  16537. };
  16538. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  16539. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16540. MSM_BACKEND_DAI_EXTPROC_RX,
  16541. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16542. msm_routing_put_voice_mixer),
  16543. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16544. MSM_BACKEND_DAI_EXTPROC_RX,
  16545. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16546. msm_routing_put_voice_mixer),
  16547. };
  16548. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  16549. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16550. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16551. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16552. msm_routing_put_voice_mixer),
  16553. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16554. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16555. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16556. msm_routing_put_voice_mixer),
  16557. };
  16558. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  16559. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16560. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16561. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16562. msm_routing_put_voice_mixer),
  16563. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16564. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16565. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16566. msm_routing_put_voice_mixer),
  16567. };
  16568. static const struct snd_kcontrol_new proxy_rx_voice_mixer_controls[] = {
  16569. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16570. MSM_BACKEND_DAI_PROXY_RX,
  16571. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16572. msm_routing_put_voice_mixer),
  16573. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16574. MSM_BACKEND_DAI_PROXY_RX,
  16575. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16576. msm_routing_put_voice_mixer),
  16577. };
  16578. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  16579. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  16580. MSM_BACKEND_DAI_PRI_I2S_TX,
  16581. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16582. msm_routing_put_voice_mixer),
  16583. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  16584. MSM_BACKEND_DAI_MI2S_TX,
  16585. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16586. msm_routing_put_voice_mixer),
  16587. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  16588. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16589. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16590. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  16591. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16592. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16593. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  16594. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16595. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16596. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16597. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16598. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16599. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16600. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16601. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16602. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16603. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16604. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16605. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16606. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16607. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16608. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16609. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16610. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16611. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16612. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16613. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16614. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  16615. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16616. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16617. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  16618. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16619. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16620. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16621. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16622. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16623. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  16624. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16625. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16626. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  16627. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16628. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16629. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  16630. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16631. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16632. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  16633. MSM_BACKEND_DAI_USB_TX,
  16634. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16635. msm_routing_put_voice_mixer),
  16636. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  16637. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16638. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16639. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16640. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16641. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16642. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16643. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16644. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16645. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16646. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16647. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16648. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16649. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16650. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16651. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16652. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16653. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16654. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16655. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16656. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16657. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  16658. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16659. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16660. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  16661. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  16662. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16663. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  16664. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  16665. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16666. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16667. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16668. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16669. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  16670. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16671. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16672. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  16673. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16674. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16675. SOC_DOUBLE_EXT("PROXY_TX_MMode1", SND_SOC_NOPM,
  16676. MSM_BACKEND_DAI_PROXY_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16677. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16678. };
  16679. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  16680. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  16681. MSM_BACKEND_DAI_PRI_I2S_TX,
  16682. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16683. msm_routing_put_voice_mixer),
  16684. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  16685. MSM_BACKEND_DAI_MI2S_TX,
  16686. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16687. msm_routing_put_voice_mixer),
  16688. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  16689. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16690. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16691. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  16692. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16693. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16694. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  16695. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16696. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16697. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16698. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16699. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16700. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16701. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16702. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16703. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16704. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16705. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16706. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16707. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16708. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16709. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16710. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16711. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16712. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16713. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16714. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16715. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  16716. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16717. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16718. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  16719. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16720. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16721. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16722. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16723. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16724. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  16725. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16726. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16727. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  16728. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16729. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16730. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  16731. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16732. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16733. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  16734. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16735. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16736. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16737. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16738. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16739. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16740. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16741. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16742. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16743. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16744. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16745. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16746. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16747. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16748. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16749. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16750. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16751. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16752. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16753. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16754. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  16755. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16756. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16757. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  16758. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  16759. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16760. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  16761. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  16762. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16763. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16764. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16765. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16766. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  16767. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16768. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16769. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  16770. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16771. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16772. SOC_DOUBLE_EXT("PROXY_TX_MMode2", SND_SOC_NOPM,
  16773. MSM_BACKEND_DAI_PROXY_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16774. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16775. };
  16776. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  16777. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  16778. MSM_BACKEND_DAI_PRI_I2S_TX,
  16779. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16780. msm_routing_put_voice_mixer),
  16781. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  16782. MSM_BACKEND_DAI_MI2S_TX,
  16783. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16784. msm_routing_put_voice_mixer),
  16785. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  16786. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16787. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16788. msm_routing_put_voice_mixer),
  16789. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  16790. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16791. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16792. msm_routing_put_voice_mixer),
  16793. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  16794. MSM_BACKEND_DAI_AFE_PCM_TX,
  16795. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16796. msm_routing_put_voice_mixer),
  16797. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16798. MSM_BACKEND_DAI_AUXPCM_TX,
  16799. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16800. msm_routing_put_voice_mixer),
  16801. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16802. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16803. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16804. msm_routing_put_voice_mixer),
  16805. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16806. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16807. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16808. msm_routing_put_voice_mixer),
  16809. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16810. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16811. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16812. msm_routing_put_voice_mixer),
  16813. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16814. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16815. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16816. msm_routing_put_voice_mixer),
  16817. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16818. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16819. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16820. msm_routing_put_voice_mixer),
  16821. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  16822. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16823. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16824. msm_routing_put_voice_mixer),
  16825. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  16826. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  16827. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16828. msm_routing_put_voice_mixer),
  16829. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  16830. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16831. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16832. msm_routing_put_voice_mixer),
  16833. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  16834. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16835. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16836. msm_routing_put_voice_mixer),
  16837. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  16838. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16839. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16840. msm_routing_put_voice_mixer),
  16841. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  16842. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16843. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16844. msm_routing_put_voice_mixer),
  16845. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  16846. MSM_BACKEND_DAI_USB_TX,
  16847. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16848. msm_routing_put_voice_mixer),
  16849. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16850. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16851. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16852. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16853. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16854. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16855. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16856. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16857. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16858. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16859. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16860. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16861. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16862. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16863. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16864. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16865. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16866. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16867. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  16868. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  16869. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16870. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  16871. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  16872. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16873. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  16874. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  16875. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16876. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  16877. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16878. msm_routing_put_voice_mixer),
  16879. };
  16880. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  16881. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16882. MSM_BACKEND_DAI_EXTPROC_TX,
  16883. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16884. msm_routing_put_voice_stub_mixer),
  16885. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16886. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16887. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16888. msm_routing_put_voice_stub_mixer),
  16889. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16890. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16891. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16892. msm_routing_put_voice_stub_mixer),
  16893. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16894. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16895. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16896. msm_routing_put_voice_stub_mixer),
  16897. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16898. MSM_BACKEND_DAI_MI2S_TX,
  16899. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16900. msm_routing_put_voice_stub_mixer),
  16901. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16902. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16903. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16904. msm_routing_put_voice_stub_mixer),
  16905. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16906. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16907. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16908. msm_routing_put_voice_stub_mixer),
  16909. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16910. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16911. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16912. msm_routing_put_voice_stub_mixer),
  16913. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16914. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16915. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16916. msm_routing_put_voice_stub_mixer),
  16917. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16918. MSM_BACKEND_DAI_AUXPCM_TX,
  16919. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16920. msm_routing_put_voice_stub_mixer),
  16921. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16922. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16923. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16924. msm_routing_put_voice_stub_mixer),
  16925. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16926. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16927. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16928. msm_routing_put_voice_stub_mixer),
  16929. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16930. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16931. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16932. msm_routing_put_voice_stub_mixer),
  16933. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16934. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16935. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16936. msm_routing_put_voice_stub_mixer),
  16937. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16938. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16939. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16940. msm_routing_put_voice_stub_mixer),
  16941. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16942. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16943. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16944. msm_routing_put_voice_stub_mixer),
  16945. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16946. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16947. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16948. msm_routing_put_voice_stub_mixer),
  16949. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16950. MSM_BACKEND_DAI_AFE_PCM_TX,
  16951. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16952. msm_routing_put_voice_stub_mixer),
  16953. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16954. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16955. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16956. msm_routing_put_voice_stub_mixer),
  16957. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16958. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16959. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16960. msm_routing_put_voice_stub_mixer),
  16961. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16962. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16963. 1, 0, msm_routing_get_voice_stub_mixer,
  16964. msm_routing_put_voice_stub_mixer),
  16965. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16966. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16967. 1, 0, msm_routing_get_voice_stub_mixer,
  16968. msm_routing_put_voice_stub_mixer),
  16969. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16970. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16971. 1, 0, msm_routing_get_voice_stub_mixer,
  16972. msm_routing_put_voice_stub_mixer),
  16973. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16974. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16975. 1, 0, msm_routing_get_voice_stub_mixer,
  16976. msm_routing_put_voice_stub_mixer),
  16977. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16978. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16979. 1, 0, msm_routing_get_voice_stub_mixer,
  16980. msm_routing_put_voice_stub_mixer),
  16981. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16982. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16983. 1, 0, msm_routing_get_voice_stub_mixer,
  16984. msm_routing_put_voice_stub_mixer),
  16985. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16986. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  16987. 1, 0, msm_routing_get_voice_stub_mixer,
  16988. msm_routing_put_voice_stub_mixer),
  16989. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16990. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  16991. 1, 0, msm_routing_get_voice_stub_mixer,
  16992. msm_routing_put_voice_stub_mixer),
  16993. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16994. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  16995. 1, 0, msm_routing_get_voice_stub_mixer,
  16996. msm_routing_put_voice_stub_mixer),
  16997. };
  16998. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  16999. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  17000. MSM_BACKEND_DAI_EXTPROC_TX,
  17001. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17002. msm_routing_put_voice_stub_mixer),
  17003. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17004. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17005. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17006. msm_routing_put_voice_stub_mixer),
  17007. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  17008. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  17009. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17010. msm_routing_put_voice_stub_mixer),
  17011. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17012. MSM_BACKEND_DAI_AUXPCM_TX,
  17013. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17014. msm_routing_put_voice_stub_mixer),
  17015. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17016. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17017. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17018. msm_routing_put_voice_stub_mixer),
  17019. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17020. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17021. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17022. msm_routing_put_voice_stub_mixer),
  17023. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17024. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17025. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17026. msm_routing_put_voice_stub_mixer),
  17027. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17028. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17029. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17030. msm_routing_put_voice_stub_mixer),
  17031. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17032. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17033. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17034. msm_routing_put_voice_stub_mixer),
  17035. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17036. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17037. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17038. msm_routing_put_voice_stub_mixer),
  17039. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17040. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17041. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17042. msm_routing_put_voice_stub_mixer),
  17043. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17044. MSM_BACKEND_DAI_AFE_PCM_TX,
  17045. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17046. msm_routing_put_voice_stub_mixer),
  17047. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17048. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17049. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17050. msm_routing_put_voice_stub_mixer),
  17051. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17052. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17053. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17054. msm_routing_put_voice_stub_mixer),
  17055. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17056. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17057. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17058. msm_routing_put_voice_stub_mixer),
  17059. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17060. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17061. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17062. msm_routing_put_voice_stub_mixer),
  17063. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17064. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17065. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17066. msm_routing_put_voice_stub_mixer),
  17067. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17068. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  17069. 1, 0, msm_routing_get_voice_stub_mixer,
  17070. msm_routing_put_voice_stub_mixer),
  17071. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17072. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  17073. 1, 0, msm_routing_get_voice_stub_mixer,
  17074. msm_routing_put_voice_stub_mixer),
  17075. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17076. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  17077. 1, 0, msm_routing_get_voice_stub_mixer,
  17078. msm_routing_put_voice_stub_mixer),
  17079. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17080. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  17081. 1, 0, msm_routing_get_voice_stub_mixer,
  17082. msm_routing_put_voice_stub_mixer),
  17083. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17084. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  17085. 1, 0, msm_routing_get_voice_stub_mixer,
  17086. msm_routing_put_voice_stub_mixer),
  17087. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17088. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  17089. 1, 0, msm_routing_get_voice_stub_mixer,
  17090. msm_routing_put_voice_stub_mixer),
  17091. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17092. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  17093. 1, 0, msm_routing_get_voice_stub_mixer,
  17094. msm_routing_put_voice_stub_mixer),
  17095. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17096. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  17097. 1, 0, msm_routing_get_voice_stub_mixer,
  17098. msm_routing_put_voice_stub_mixer),
  17099. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17100. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  17101. 1, 0, msm_routing_get_voice_stub_mixer,
  17102. msm_routing_put_voice_stub_mixer),
  17103. };
  17104. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  17105. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  17106. MSM_BACKEND_DAI_EXTPROC_TX,
  17107. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17108. msm_routing_put_voice_stub_mixer),
  17109. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17110. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17111. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17112. msm_routing_put_voice_stub_mixer),
  17113. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  17114. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  17115. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17116. msm_routing_put_voice_stub_mixer),
  17117. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17118. MSM_BACKEND_DAI_AUXPCM_TX,
  17119. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17120. msm_routing_put_voice_stub_mixer),
  17121. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17122. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17123. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17124. msm_routing_put_voice_stub_mixer),
  17125. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17126. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17127. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17128. msm_routing_put_voice_stub_mixer),
  17129. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17130. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17131. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17132. msm_routing_put_voice_stub_mixer),
  17133. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17134. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17135. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17136. msm_routing_put_voice_stub_mixer),
  17137. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17138. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17139. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17140. msm_routing_put_voice_stub_mixer),
  17141. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17142. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17143. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17144. msm_routing_put_voice_stub_mixer),
  17145. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17146. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17147. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17148. msm_routing_put_voice_stub_mixer),
  17149. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17150. MSM_BACKEND_DAI_AFE_PCM_TX,
  17151. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17152. msm_routing_put_voice_stub_mixer),
  17153. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17154. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17155. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17156. msm_routing_put_voice_stub_mixer),
  17157. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17158. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17159. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17160. msm_routing_put_voice_stub_mixer),
  17161. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17162. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17163. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17164. msm_routing_put_voice_stub_mixer),
  17165. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17166. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17167. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17168. msm_routing_put_voice_stub_mixer),
  17169. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17170. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17171. 1, 0, msm_routing_get_voice_stub_mixer,
  17172. msm_routing_put_voice_stub_mixer),
  17173. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17174. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17175. 1, 0, msm_routing_get_voice_stub_mixer,
  17176. msm_routing_put_voice_stub_mixer),
  17177. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17178. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17179. 1, 0, msm_routing_get_voice_stub_mixer,
  17180. msm_routing_put_voice_stub_mixer),
  17181. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17182. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17183. 1, 0, msm_routing_get_voice_stub_mixer,
  17184. msm_routing_put_voice_stub_mixer),
  17185. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17186. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17187. 1, 0, msm_routing_get_voice_stub_mixer,
  17188. msm_routing_put_voice_stub_mixer),
  17189. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17190. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17191. 1, 0, msm_routing_get_voice_stub_mixer,
  17192. msm_routing_put_voice_stub_mixer),
  17193. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17194. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  17195. 1, 0, msm_routing_get_voice_stub_mixer,
  17196. msm_routing_put_voice_stub_mixer),
  17197. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17198. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  17199. 1, 0, msm_routing_get_voice_stub_mixer,
  17200. msm_routing_put_voice_stub_mixer),
  17201. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17202. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  17203. 1, 0, msm_routing_get_voice_stub_mixer,
  17204. msm_routing_put_voice_stub_mixer),
  17205. };
  17206. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  17207. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  17208. MSM_BACKEND_DAI_PRI_I2S_TX,
  17209. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17210. msm_routing_put_voice_mixer),
  17211. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  17212. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17213. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17214. msm_routing_put_voice_mixer),
  17215. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  17216. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17217. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  17218. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17219. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  17220. MSM_BACKEND_DAI_AFE_PCM_TX,
  17221. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17222. msm_routing_put_voice_mixer),
  17223. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17224. MSM_BACKEND_DAI_AUXPCM_TX,
  17225. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17226. msm_routing_put_voice_mixer),
  17227. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17228. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17229. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17230. msm_routing_put_voice_mixer),
  17231. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17232. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17233. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17234. msm_routing_put_voice_mixer),
  17235. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17236. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17237. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17238. msm_routing_put_voice_mixer),
  17239. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17240. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17241. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17242. msm_routing_put_voice_mixer),
  17243. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17244. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17245. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17246. msm_routing_put_voice_mixer),
  17247. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  17248. MSM_BACKEND_DAI_MI2S_TX,
  17249. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17250. msm_routing_put_voice_mixer),
  17251. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17252. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17253. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17254. msm_routing_put_voice_mixer),
  17255. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17256. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17257. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17258. msm_routing_put_voice_mixer),
  17259. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17260. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17261. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17262. msm_routing_put_voice_mixer),
  17263. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  17264. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17265. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17266. msm_routing_put_voice_mixer),
  17267. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  17268. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17269. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17270. msm_routing_put_voice_mixer),
  17271. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  17272. MSM_BACKEND_DAI_USB_TX,
  17273. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17274. msm_routing_put_voice_mixer),
  17275. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17276. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17277. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17278. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17279. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17280. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17281. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17282. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17283. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17284. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17285. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17286. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17287. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17288. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17289. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17290. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17291. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17292. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17293. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  17294. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  17295. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17296. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  17297. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  17298. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17299. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  17300. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  17301. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17302. };
  17303. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  17304. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17305. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17306. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17307. msm_routing_put_port_mixer),
  17308. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17309. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17310. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17311. msm_routing_put_port_mixer),
  17312. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17313. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17314. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17315. msm_routing_put_port_mixer),
  17316. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17317. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17318. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17319. msm_routing_put_port_mixer),
  17320. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17321. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17322. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17323. msm_routing_put_port_mixer),
  17324. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17325. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17326. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17327. msm_routing_put_port_mixer),
  17328. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17329. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17330. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17331. msm_routing_put_port_mixer),
  17332. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17333. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17334. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17335. msm_routing_put_port_mixer),
  17336. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17337. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17338. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17339. msm_routing_put_port_mixer),
  17340. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17341. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17342. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17343. msm_routing_put_port_mixer),
  17344. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17345. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17346. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17347. msm_routing_put_port_mixer),
  17348. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17349. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17350. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17351. msm_routing_put_port_mixer),
  17352. };
  17353. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  17354. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17355. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17356. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17357. msm_routing_put_port_mixer),
  17358. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17359. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17360. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17361. msm_routing_put_port_mixer),
  17362. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17363. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17364. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17365. msm_routing_put_port_mixer),
  17366. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17367. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17368. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17369. msm_routing_put_port_mixer),
  17370. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17371. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17372. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17373. msm_routing_put_port_mixer),
  17374. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17375. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17376. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17377. msm_routing_put_port_mixer),
  17378. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17379. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17380. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17381. msm_routing_put_port_mixer),
  17382. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17383. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17384. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17385. msm_routing_put_port_mixer),
  17386. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17387. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17388. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17389. msm_routing_put_port_mixer),
  17390. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17391. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17392. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17393. msm_routing_put_port_mixer),
  17394. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17395. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17396. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17397. msm_routing_put_port_mixer),
  17398. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17399. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17400. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17401. msm_routing_put_port_mixer),
  17402. };
  17403. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  17404. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17405. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17406. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17407. msm_routing_put_port_mixer),
  17408. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17409. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17410. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17411. msm_routing_put_port_mixer),
  17412. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17413. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17414. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17415. msm_routing_put_port_mixer),
  17416. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17417. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17418. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17419. msm_routing_put_port_mixer),
  17420. };
  17421. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  17422. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17423. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17424. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17425. msm_routing_put_port_mixer),
  17426. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17427. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17428. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17429. msm_routing_put_port_mixer),
  17430. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17431. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17432. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17433. msm_routing_put_port_mixer),
  17434. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17435. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17436. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17437. msm_routing_put_port_mixer),
  17438. };
  17439. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_port_mixer_controls[] = {
  17440. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17441. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17442. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17443. msm_routing_put_port_mixer),
  17444. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17445. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17446. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17447. msm_routing_put_port_mixer),
  17448. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17449. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17450. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17451. msm_routing_put_port_mixer),
  17452. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17453. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17454. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17455. msm_routing_put_port_mixer),
  17456. };
  17457. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  17458. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17459. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17460. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17461. msm_routing_put_port_mixer),
  17462. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17463. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17464. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17465. msm_routing_put_port_mixer),
  17466. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17467. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17468. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17469. msm_routing_put_port_mixer),
  17470. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17471. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17472. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17473. msm_routing_put_port_mixer),
  17474. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17475. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17476. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17477. msm_routing_put_port_mixer),
  17478. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17479. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17480. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17481. msm_routing_put_port_mixer),
  17482. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17483. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17484. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17485. msm_routing_put_port_mixer),
  17486. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17487. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17488. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17489. msm_routing_put_port_mixer),
  17490. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17491. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17492. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17493. msm_routing_put_port_mixer),
  17494. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17495. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17496. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17497. msm_routing_put_port_mixer),
  17498. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17499. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17500. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17501. msm_routing_put_port_mixer),
  17502. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17503. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17504. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17505. msm_routing_put_port_mixer),
  17506. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17507. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17508. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17509. msm_routing_put_port_mixer),
  17510. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17511. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17512. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17513. msm_routing_put_port_mixer),
  17514. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17515. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17516. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17517. msm_routing_put_port_mixer),
  17518. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17519. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17520. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17521. msm_routing_put_port_mixer),
  17522. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17523. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17524. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17525. msm_routing_put_port_mixer),
  17526. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17527. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17528. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17529. msm_routing_put_port_mixer),
  17530. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17531. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17532. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17533. msm_routing_put_port_mixer),
  17534. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  17535. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17536. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17537. msm_routing_put_port_mixer),
  17538. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  17539. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17540. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17541. msm_routing_put_port_mixer),
  17542. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  17543. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17544. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17545. msm_routing_put_port_mixer),
  17546. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  17547. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17548. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17549. msm_routing_put_port_mixer),
  17550. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  17551. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17552. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17553. msm_routing_put_port_mixer),
  17554. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  17555. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17556. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17557. msm_routing_put_port_mixer),
  17558. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17559. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17560. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17561. msm_routing_put_port_mixer),
  17562. };
  17563. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  17564. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17565. MSM_BACKEND_DAI_AUXPCM_RX,
  17566. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17567. msm_routing_put_port_mixer),
  17568. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17569. MSM_BACKEND_DAI_AUXPCM_RX,
  17570. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17571. msm_routing_put_port_mixer),
  17572. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17573. MSM_BACKEND_DAI_AUXPCM_RX,
  17574. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17575. msm_routing_put_port_mixer),
  17576. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17577. MSM_BACKEND_DAI_AUXPCM_RX,
  17578. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17579. msm_routing_put_port_mixer),
  17580. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17581. MSM_BACKEND_DAI_AUXPCM_RX,
  17582. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17583. msm_routing_put_port_mixer),
  17584. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17585. MSM_BACKEND_DAI_AUXPCM_RX,
  17586. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17587. msm_routing_put_port_mixer),
  17588. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17589. MSM_BACKEND_DAI_AUXPCM_RX,
  17590. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17591. msm_routing_put_port_mixer),
  17592. };
  17593. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  17594. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17595. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17596. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17597. msm_routing_put_port_mixer),
  17598. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17599. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17600. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17601. msm_routing_put_port_mixer),
  17602. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17603. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17604. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17605. msm_routing_put_port_mixer),
  17606. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17607. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17608. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17609. msm_routing_put_port_mixer),
  17610. };
  17611. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  17612. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17613. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17614. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17615. msm_routing_put_port_mixer),
  17616. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17617. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17618. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17619. msm_routing_put_port_mixer),
  17620. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17621. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17622. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17623. msm_routing_put_port_mixer),
  17624. };
  17625. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  17626. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17627. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17628. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17629. msm_routing_put_port_mixer),
  17630. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17631. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17632. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, 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_QUAT_AUXPCM_RX,
  17636. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17637. msm_routing_put_port_mixer),
  17638. };
  17639. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  17640. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17641. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17642. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17643. msm_routing_put_port_mixer),
  17644. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17645. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17646. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17647. msm_routing_put_port_mixer),
  17648. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17649. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17650. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17651. msm_routing_put_port_mixer),
  17652. };
  17653. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  17654. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17655. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17656. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17657. msm_routing_put_port_mixer),
  17658. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17659. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17660. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17661. msm_routing_put_port_mixer),
  17662. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17663. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17664. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17665. msm_routing_put_port_mixer),
  17666. };
  17667. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  17668. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17669. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17670. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17671. msm_routing_put_port_mixer),
  17672. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17673. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17674. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  17675. msm_routing_put_port_mixer),
  17676. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17677. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17678. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17679. msm_routing_put_port_mixer),
  17680. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17681. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17682. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17683. msm_routing_put_port_mixer),
  17684. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17685. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17686. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17687. msm_routing_put_port_mixer),
  17688. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17689. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17690. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17691. msm_routing_put_port_mixer),
  17692. };
  17693. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  17694. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  17695. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17696. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  17697. msm_routing_put_port_mixer),
  17698. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17699. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17700. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17701. msm_routing_put_port_mixer),
  17702. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  17703. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17704. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  17705. msm_routing_put_port_mixer),
  17706. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  17707. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17708. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  17709. msm_routing_put_port_mixer),
  17710. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  17711. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17712. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  17713. msm_routing_put_port_mixer),
  17714. };
  17715. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  17716. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17717. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17718. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17719. msm_routing_put_port_mixer),
  17720. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17721. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17722. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17723. msm_routing_put_port_mixer),
  17724. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17725. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17726. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17727. msm_routing_put_port_mixer),
  17728. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17729. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17730. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17731. msm_routing_put_port_mixer),
  17732. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17733. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17734. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17735. msm_routing_put_port_mixer),
  17736. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17737. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17738. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17739. msm_routing_put_port_mixer),
  17740. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17741. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17742. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17743. msm_routing_put_port_mixer),
  17744. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17745. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17746. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17747. msm_routing_put_port_mixer),
  17748. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17749. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17750. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17751. msm_routing_put_port_mixer),
  17752. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17753. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17754. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17755. msm_routing_put_port_mixer),
  17756. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17757. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17758. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17759. msm_routing_put_port_mixer),
  17760. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17761. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17762. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17763. msm_routing_put_port_mixer),
  17764. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17765. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17766. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17767. msm_routing_put_port_mixer),
  17768. };
  17769. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  17770. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17771. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17772. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17773. msm_routing_put_port_mixer),
  17774. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17775. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17776. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17777. msm_routing_put_port_mixer),
  17778. };
  17779. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  17780. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17781. MSM_BACKEND_DAI_AFE_PCM_RX,
  17782. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17783. msm_routing_put_port_mixer),
  17784. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17785. MSM_BACKEND_DAI_AFE_PCM_RX,
  17786. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17787. msm_routing_put_port_mixer),
  17788. };
  17789. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  17790. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17791. MSM_BACKEND_DAI_HDMI_RX,
  17792. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17793. msm_routing_put_port_mixer),
  17794. };
  17795. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  17796. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17797. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  17798. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17799. msm_routing_put_port_mixer),
  17800. };
  17801. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  17802. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17803. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  17804. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17805. msm_routing_put_port_mixer),
  17806. };
  17807. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  17808. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17809. MSM_BACKEND_DAI_SEC_I2S_RX,
  17810. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17811. msm_routing_put_port_mixer),
  17812. };
  17813. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  17814. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17815. MSM_BACKEND_DAI_MI2S_RX,
  17816. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17817. msm_routing_put_port_mixer),
  17818. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17819. MSM_BACKEND_DAI_MI2S_RX,
  17820. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17821. msm_routing_put_port_mixer),
  17822. };
  17823. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  17824. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17825. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17826. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17827. msm_routing_put_port_mixer),
  17828. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17829. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17830. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17831. msm_routing_put_port_mixer),
  17832. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17833. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17834. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17835. msm_routing_put_port_mixer),
  17836. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17837. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17838. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17839. msm_routing_put_port_mixer),
  17840. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17841. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17842. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17843. msm_routing_put_port_mixer),
  17844. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17845. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17846. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17847. msm_routing_put_port_mixer),
  17848. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17849. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17850. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17851. msm_routing_put_port_mixer),
  17852. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17853. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17854. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17855. msm_routing_put_port_mixer),
  17856. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17857. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17858. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17859. msm_routing_put_port_mixer),
  17860. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17861. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17862. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17863. msm_routing_put_port_mixer),
  17864. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17865. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17866. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17867. msm_routing_put_port_mixer),
  17868. };
  17869. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  17870. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  17871. MSM_BACKEND_DAI_USB_RX,
  17872. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  17873. msm_routing_put_port_mixer),
  17874. };
  17875. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  17876. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17877. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17878. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17879. msm_routing_put_port_mixer),
  17880. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17881. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17882. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17883. msm_routing_put_port_mixer),
  17884. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17885. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17886. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17887. msm_routing_put_port_mixer),
  17888. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17889. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17890. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17891. msm_routing_put_port_mixer),
  17892. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17893. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17894. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17895. msm_routing_put_port_mixer),
  17896. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17897. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17898. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17899. msm_routing_put_port_mixer),
  17900. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17901. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17902. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17903. msm_routing_put_port_mixer),
  17904. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17905. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17906. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17907. msm_routing_put_port_mixer),
  17908. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17909. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17910. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17911. msm_routing_put_port_mixer),
  17912. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17913. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17914. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17915. msm_routing_put_port_mixer),
  17916. };
  17917. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  17918. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17919. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17920. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17921. msm_routing_put_port_mixer),
  17922. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17923. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17924. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17925. msm_routing_put_port_mixer),
  17926. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17927. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17928. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17929. msm_routing_put_port_mixer),
  17930. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17931. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17932. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17933. msm_routing_put_port_mixer),
  17934. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17935. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17936. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17937. msm_routing_put_port_mixer),
  17938. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17939. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17940. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17941. msm_routing_put_port_mixer),
  17942. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17943. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17944. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17945. msm_routing_put_port_mixer),
  17946. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17947. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17948. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17949. msm_routing_put_port_mixer),
  17950. };
  17951. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  17952. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17953. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17954. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17955. msm_routing_put_port_mixer),
  17956. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17957. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17958. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17959. msm_routing_put_port_mixer),
  17960. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17961. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17962. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17963. msm_routing_put_port_mixer),
  17964. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17965. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17966. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17967. msm_routing_put_port_mixer),
  17968. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17969. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17970. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17971. msm_routing_put_port_mixer),
  17972. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17973. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17974. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17975. msm_routing_put_port_mixer),
  17976. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17977. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17978. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17979. msm_routing_put_port_mixer),
  17980. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17981. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17982. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17983. msm_routing_put_port_mixer),
  17984. };
  17985. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  17986. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17987. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17988. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17989. msm_routing_get_port_mixer,
  17990. msm_routing_put_port_mixer),
  17991. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17992. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17993. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17994. msm_routing_get_port_mixer,
  17995. msm_routing_put_port_mixer),
  17996. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17997. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17998. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17999. msm_routing_get_port_mixer,
  18000. msm_routing_put_port_mixer),
  18001. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18002. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18003. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18004. msm_routing_get_port_mixer,
  18005. msm_routing_put_port_mixer),
  18006. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18007. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18008. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18009. msm_routing_get_port_mixer,
  18010. msm_routing_put_port_mixer),
  18011. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18012. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18013. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18014. msm_routing_get_port_mixer,
  18015. msm_routing_put_port_mixer),
  18016. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18017. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18018. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18019. msm_routing_get_port_mixer,
  18020. msm_routing_put_port_mixer),
  18021. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18022. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18023. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18024. msm_routing_get_port_mixer,
  18025. msm_routing_put_port_mixer),
  18026. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18027. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18028. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18029. msm_routing_get_port_mixer,
  18030. msm_routing_put_port_mixer),
  18031. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18032. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18033. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18034. msm_routing_get_port_mixer,
  18035. msm_routing_put_port_mixer),
  18036. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18037. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18038. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18039. msm_routing_get_port_mixer,
  18040. msm_routing_put_port_mixer),
  18041. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18042. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18043. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18044. msm_routing_get_port_mixer,
  18045. msm_routing_put_port_mixer),
  18046. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18047. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18048. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18049. msm_routing_get_port_mixer,
  18050. msm_routing_put_port_mixer),
  18051. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18052. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18053. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18054. msm_routing_get_port_mixer,
  18055. msm_routing_put_port_mixer),
  18056. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18057. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18058. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18059. msm_routing_get_port_mixer,
  18060. msm_routing_put_port_mixer),
  18061. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18062. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18063. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18064. msm_routing_get_port_mixer,
  18065. msm_routing_put_port_mixer),
  18066. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18067. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18068. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18069. msm_routing_get_port_mixer,
  18070. msm_routing_put_port_mixer),
  18071. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18072. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18073. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18074. msm_routing_get_port_mixer,
  18075. msm_routing_put_port_mixer),
  18076. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18077. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18078. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18079. msm_routing_get_port_mixer,
  18080. msm_routing_put_port_mixer),
  18081. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18082. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18083. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18084. msm_routing_get_port_mixer,
  18085. msm_routing_put_port_mixer),
  18086. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18087. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18088. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18089. msm_routing_get_port_mixer,
  18090. msm_routing_put_port_mixer),
  18091. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18092. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18093. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18094. msm_routing_get_port_mixer,
  18095. msm_routing_put_port_mixer),
  18096. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18097. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18098. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18099. msm_routing_get_port_mixer,
  18100. msm_routing_put_port_mixer),
  18101. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18102. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18103. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18104. msm_routing_get_port_mixer,
  18105. msm_routing_put_port_mixer),
  18106. };
  18107. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  18108. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18109. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18110. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18111. msm_routing_get_port_mixer,
  18112. msm_routing_put_port_mixer),
  18113. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18114. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18115. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18116. msm_routing_get_port_mixer,
  18117. msm_routing_put_port_mixer),
  18118. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18119. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18120. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18121. msm_routing_get_port_mixer,
  18122. msm_routing_put_port_mixer),
  18123. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18124. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18125. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18126. msm_routing_get_port_mixer,
  18127. msm_routing_put_port_mixer),
  18128. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18129. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18130. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18131. msm_routing_get_port_mixer,
  18132. msm_routing_put_port_mixer),
  18133. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18134. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18135. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18136. msm_routing_get_port_mixer,
  18137. msm_routing_put_port_mixer),
  18138. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18139. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18140. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18141. msm_routing_get_port_mixer,
  18142. msm_routing_put_port_mixer),
  18143. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18144. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18145. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18146. msm_routing_get_port_mixer,
  18147. msm_routing_put_port_mixer),
  18148. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18149. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18150. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18151. msm_routing_get_port_mixer,
  18152. msm_routing_put_port_mixer),
  18153. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18154. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18155. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18156. msm_routing_get_port_mixer,
  18157. msm_routing_put_port_mixer),
  18158. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18159. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18160. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18161. msm_routing_get_port_mixer,
  18162. msm_routing_put_port_mixer),
  18163. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18164. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18165. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18166. msm_routing_get_port_mixer,
  18167. msm_routing_put_port_mixer),
  18168. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18169. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18170. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18171. msm_routing_get_port_mixer,
  18172. msm_routing_put_port_mixer),
  18173. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18174. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18175. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18176. msm_routing_get_port_mixer,
  18177. msm_routing_put_port_mixer),
  18178. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18179. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18180. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18181. msm_routing_get_port_mixer,
  18182. msm_routing_put_port_mixer),
  18183. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18184. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18185. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18186. msm_routing_get_port_mixer,
  18187. msm_routing_put_port_mixer),
  18188. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18189. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18190. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18191. msm_routing_get_port_mixer,
  18192. msm_routing_put_port_mixer),
  18193. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18194. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18195. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18196. msm_routing_get_port_mixer,
  18197. msm_routing_put_port_mixer),
  18198. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18199. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18200. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18201. msm_routing_get_port_mixer,
  18202. msm_routing_put_port_mixer),
  18203. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18204. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18205. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18206. msm_routing_get_port_mixer,
  18207. msm_routing_put_port_mixer),
  18208. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18209. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18210. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18211. msm_routing_get_port_mixer,
  18212. msm_routing_put_port_mixer),
  18213. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18214. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18215. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18216. msm_routing_get_port_mixer,
  18217. msm_routing_put_port_mixer),
  18218. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18219. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18220. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18221. msm_routing_get_port_mixer,
  18222. msm_routing_put_port_mixer),
  18223. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18224. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18225. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18226. msm_routing_get_port_mixer,
  18227. msm_routing_put_port_mixer),
  18228. };
  18229. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  18230. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18231. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18232. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18233. msm_routing_get_port_mixer,
  18234. msm_routing_put_port_mixer),
  18235. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18236. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18237. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18238. msm_routing_get_port_mixer,
  18239. msm_routing_put_port_mixer),
  18240. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18241. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18242. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18243. msm_routing_get_port_mixer,
  18244. msm_routing_put_port_mixer),
  18245. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18246. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18247. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18248. msm_routing_get_port_mixer,
  18249. msm_routing_put_port_mixer),
  18250. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18251. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18252. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18253. msm_routing_get_port_mixer,
  18254. msm_routing_put_port_mixer),
  18255. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18256. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18257. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18258. msm_routing_get_port_mixer,
  18259. msm_routing_put_port_mixer),
  18260. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18261. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18262. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18263. msm_routing_get_port_mixer,
  18264. msm_routing_put_port_mixer),
  18265. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18266. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18267. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18268. msm_routing_get_port_mixer,
  18269. msm_routing_put_port_mixer),
  18270. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18271. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18272. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18273. msm_routing_get_port_mixer,
  18274. msm_routing_put_port_mixer),
  18275. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18276. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18277. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18278. msm_routing_get_port_mixer,
  18279. msm_routing_put_port_mixer),
  18280. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18281. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18282. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18283. msm_routing_get_port_mixer,
  18284. msm_routing_put_port_mixer),
  18285. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18286. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18287. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18288. msm_routing_get_port_mixer,
  18289. msm_routing_put_port_mixer),
  18290. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18291. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18292. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18293. msm_routing_get_port_mixer,
  18294. msm_routing_put_port_mixer),
  18295. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18296. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18297. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18298. msm_routing_get_port_mixer,
  18299. msm_routing_put_port_mixer),
  18300. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18301. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18302. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18303. msm_routing_get_port_mixer,
  18304. msm_routing_put_port_mixer),
  18305. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18306. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18307. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18308. msm_routing_get_port_mixer,
  18309. msm_routing_put_port_mixer),
  18310. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18311. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18312. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18313. msm_routing_get_port_mixer,
  18314. msm_routing_put_port_mixer),
  18315. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18316. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18317. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18318. msm_routing_get_port_mixer,
  18319. msm_routing_put_port_mixer),
  18320. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18321. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18322. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18323. msm_routing_get_port_mixer,
  18324. msm_routing_put_port_mixer),
  18325. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18326. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18327. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18328. msm_routing_get_port_mixer,
  18329. msm_routing_put_port_mixer),
  18330. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18331. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18332. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18333. msm_routing_get_port_mixer,
  18334. msm_routing_put_port_mixer),
  18335. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18336. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18337. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18338. msm_routing_get_port_mixer,
  18339. msm_routing_put_port_mixer),
  18340. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18341. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18342. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18343. msm_routing_get_port_mixer,
  18344. msm_routing_put_port_mixer),
  18345. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18346. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18347. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18348. msm_routing_get_port_mixer,
  18349. msm_routing_put_port_mixer),
  18350. };
  18351. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  18352. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18353. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18354. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18355. msm_routing_get_port_mixer,
  18356. msm_routing_put_port_mixer),
  18357. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18358. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18359. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18360. msm_routing_get_port_mixer,
  18361. msm_routing_put_port_mixer),
  18362. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18363. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18364. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18365. msm_routing_get_port_mixer,
  18366. msm_routing_put_port_mixer),
  18367. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18368. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18369. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18370. msm_routing_get_port_mixer,
  18371. msm_routing_put_port_mixer),
  18372. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18373. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18374. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18375. msm_routing_get_port_mixer,
  18376. msm_routing_put_port_mixer),
  18377. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18378. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18379. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18380. msm_routing_get_port_mixer,
  18381. msm_routing_put_port_mixer),
  18382. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18383. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18384. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18385. msm_routing_get_port_mixer,
  18386. msm_routing_put_port_mixer),
  18387. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18388. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18389. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18390. msm_routing_get_port_mixer,
  18391. msm_routing_put_port_mixer),
  18392. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18393. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18394. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18395. msm_routing_get_port_mixer,
  18396. msm_routing_put_port_mixer),
  18397. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18398. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18399. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18400. msm_routing_get_port_mixer,
  18401. msm_routing_put_port_mixer),
  18402. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18403. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18404. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18405. msm_routing_get_port_mixer,
  18406. msm_routing_put_port_mixer),
  18407. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18408. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18409. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18410. msm_routing_get_port_mixer,
  18411. msm_routing_put_port_mixer),
  18412. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18413. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18414. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18415. msm_routing_get_port_mixer,
  18416. msm_routing_put_port_mixer),
  18417. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18418. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18419. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18420. msm_routing_get_port_mixer,
  18421. msm_routing_put_port_mixer),
  18422. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18423. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18424. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18425. msm_routing_get_port_mixer,
  18426. msm_routing_put_port_mixer),
  18427. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18428. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18429. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18430. msm_routing_get_port_mixer,
  18431. msm_routing_put_port_mixer),
  18432. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18433. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18434. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18435. msm_routing_get_port_mixer,
  18436. msm_routing_put_port_mixer),
  18437. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18438. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18439. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18440. msm_routing_get_port_mixer,
  18441. msm_routing_put_port_mixer),
  18442. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18443. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18444. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18445. msm_routing_get_port_mixer,
  18446. msm_routing_put_port_mixer),
  18447. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18448. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18449. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18450. msm_routing_get_port_mixer,
  18451. msm_routing_put_port_mixer),
  18452. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18453. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18454. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18455. msm_routing_get_port_mixer,
  18456. msm_routing_put_port_mixer),
  18457. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18458. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18459. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18460. msm_routing_get_port_mixer,
  18461. msm_routing_put_port_mixer),
  18462. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18463. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18464. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18465. msm_routing_get_port_mixer,
  18466. msm_routing_put_port_mixer),
  18467. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18468. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18469. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18470. msm_routing_get_port_mixer,
  18471. msm_routing_put_port_mixer),
  18472. };
  18473. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  18474. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18475. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18476. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18477. msm_routing_get_port_mixer,
  18478. msm_routing_put_port_mixer),
  18479. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18480. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18481. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18482. msm_routing_get_port_mixer,
  18483. msm_routing_put_port_mixer),
  18484. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18485. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18486. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18487. msm_routing_get_port_mixer,
  18488. msm_routing_put_port_mixer),
  18489. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18490. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18491. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18492. msm_routing_get_port_mixer,
  18493. msm_routing_put_port_mixer),
  18494. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18495. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18496. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18497. msm_routing_get_port_mixer,
  18498. msm_routing_put_port_mixer),
  18499. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18500. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18501. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18502. msm_routing_get_port_mixer,
  18503. msm_routing_put_port_mixer),
  18504. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18505. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18506. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18507. msm_routing_get_port_mixer,
  18508. msm_routing_put_port_mixer),
  18509. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18510. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18511. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18512. msm_routing_get_port_mixer,
  18513. msm_routing_put_port_mixer),
  18514. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18515. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18516. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18517. msm_routing_get_port_mixer,
  18518. msm_routing_put_port_mixer),
  18519. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18520. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18521. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18522. msm_routing_get_port_mixer,
  18523. msm_routing_put_port_mixer),
  18524. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18525. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18526. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18527. msm_routing_get_port_mixer,
  18528. msm_routing_put_port_mixer),
  18529. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18530. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18531. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18532. msm_routing_get_port_mixer,
  18533. msm_routing_put_port_mixer),
  18534. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18535. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18536. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18537. msm_routing_get_port_mixer,
  18538. msm_routing_put_port_mixer),
  18539. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18540. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18541. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18542. msm_routing_get_port_mixer,
  18543. msm_routing_put_port_mixer),
  18544. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18545. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18546. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18547. msm_routing_get_port_mixer,
  18548. msm_routing_put_port_mixer),
  18549. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18550. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18551. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18552. msm_routing_get_port_mixer,
  18553. msm_routing_put_port_mixer),
  18554. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18555. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18556. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18557. msm_routing_get_port_mixer,
  18558. msm_routing_put_port_mixer),
  18559. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18560. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18561. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18562. msm_routing_get_port_mixer,
  18563. msm_routing_put_port_mixer),
  18564. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18565. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18566. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18567. msm_routing_get_port_mixer,
  18568. msm_routing_put_port_mixer),
  18569. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18570. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18571. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18572. msm_routing_get_port_mixer,
  18573. msm_routing_put_port_mixer),
  18574. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18575. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18576. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18577. msm_routing_get_port_mixer,
  18578. msm_routing_put_port_mixer),
  18579. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18580. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18581. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18582. msm_routing_get_port_mixer,
  18583. msm_routing_put_port_mixer),
  18584. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18585. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18586. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18587. msm_routing_get_port_mixer,
  18588. msm_routing_put_port_mixer),
  18589. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18590. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18591. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18592. msm_routing_get_port_mixer,
  18593. msm_routing_put_port_mixer),
  18594. };
  18595. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  18596. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18597. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18598. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18599. msm_routing_get_port_mixer,
  18600. msm_routing_put_port_mixer),
  18601. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18602. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18603. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18604. msm_routing_get_port_mixer,
  18605. msm_routing_put_port_mixer),
  18606. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18607. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18608. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18609. msm_routing_get_port_mixer,
  18610. msm_routing_put_port_mixer),
  18611. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18612. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18613. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18614. msm_routing_get_port_mixer,
  18615. msm_routing_put_port_mixer),
  18616. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18617. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18618. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18619. msm_routing_get_port_mixer,
  18620. msm_routing_put_port_mixer),
  18621. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18622. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18623. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18624. msm_routing_get_port_mixer,
  18625. msm_routing_put_port_mixer),
  18626. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18627. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18628. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18629. msm_routing_get_port_mixer,
  18630. msm_routing_put_port_mixer),
  18631. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18632. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18633. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18634. msm_routing_get_port_mixer,
  18635. msm_routing_put_port_mixer),
  18636. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18637. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18638. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18639. msm_routing_get_port_mixer,
  18640. msm_routing_put_port_mixer),
  18641. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18642. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18643. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18644. msm_routing_get_port_mixer,
  18645. msm_routing_put_port_mixer),
  18646. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18647. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18648. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18649. msm_routing_get_port_mixer,
  18650. msm_routing_put_port_mixer),
  18651. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18652. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18653. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18654. msm_routing_get_port_mixer,
  18655. msm_routing_put_port_mixer),
  18656. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18657. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18658. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18659. msm_routing_get_port_mixer,
  18660. msm_routing_put_port_mixer),
  18661. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18662. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18663. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18664. msm_routing_get_port_mixer,
  18665. msm_routing_put_port_mixer),
  18666. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18667. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18668. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18669. msm_routing_get_port_mixer,
  18670. msm_routing_put_port_mixer),
  18671. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18672. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18673. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18674. msm_routing_get_port_mixer,
  18675. msm_routing_put_port_mixer),
  18676. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18677. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18678. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18679. msm_routing_get_port_mixer,
  18680. msm_routing_put_port_mixer),
  18681. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18682. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18683. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18684. msm_routing_get_port_mixer,
  18685. msm_routing_put_port_mixer),
  18686. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18687. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18688. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18689. msm_routing_get_port_mixer,
  18690. msm_routing_put_port_mixer),
  18691. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18692. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18693. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18694. msm_routing_get_port_mixer,
  18695. msm_routing_put_port_mixer),
  18696. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18697. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18698. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18699. msm_routing_get_port_mixer,
  18700. msm_routing_put_port_mixer),
  18701. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18702. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18703. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18704. msm_routing_get_port_mixer,
  18705. msm_routing_put_port_mixer),
  18706. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18707. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18708. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18709. msm_routing_get_port_mixer,
  18710. msm_routing_put_port_mixer),
  18711. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18712. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18713. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18714. msm_routing_get_port_mixer,
  18715. msm_routing_put_port_mixer),
  18716. };
  18717. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  18718. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18719. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18720. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18721. msm_routing_get_port_mixer,
  18722. msm_routing_put_port_mixer),
  18723. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18724. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18725. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18726. msm_routing_get_port_mixer,
  18727. msm_routing_put_port_mixer),
  18728. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18729. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18730. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18731. msm_routing_get_port_mixer,
  18732. msm_routing_put_port_mixer),
  18733. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18734. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18735. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18736. msm_routing_get_port_mixer,
  18737. msm_routing_put_port_mixer),
  18738. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18739. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18740. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18741. msm_routing_get_port_mixer,
  18742. msm_routing_put_port_mixer),
  18743. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18744. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18745. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18746. msm_routing_get_port_mixer,
  18747. msm_routing_put_port_mixer),
  18748. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18749. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18750. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18751. msm_routing_get_port_mixer,
  18752. msm_routing_put_port_mixer),
  18753. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18754. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18755. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18756. msm_routing_get_port_mixer,
  18757. msm_routing_put_port_mixer),
  18758. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18759. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18760. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18761. msm_routing_get_port_mixer,
  18762. msm_routing_put_port_mixer),
  18763. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18764. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18765. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18766. msm_routing_get_port_mixer,
  18767. msm_routing_put_port_mixer),
  18768. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18769. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18770. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18771. msm_routing_get_port_mixer,
  18772. msm_routing_put_port_mixer),
  18773. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18774. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18775. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18776. msm_routing_get_port_mixer,
  18777. msm_routing_put_port_mixer),
  18778. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18779. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18780. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18781. msm_routing_get_port_mixer,
  18782. msm_routing_put_port_mixer),
  18783. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18784. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18785. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18786. msm_routing_get_port_mixer,
  18787. msm_routing_put_port_mixer),
  18788. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18789. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18790. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18791. msm_routing_get_port_mixer,
  18792. msm_routing_put_port_mixer),
  18793. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18794. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18795. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18796. msm_routing_get_port_mixer,
  18797. msm_routing_put_port_mixer),
  18798. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18799. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18800. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18801. msm_routing_get_port_mixer,
  18802. msm_routing_put_port_mixer),
  18803. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18804. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18805. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18806. msm_routing_get_port_mixer,
  18807. msm_routing_put_port_mixer),
  18808. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18809. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18810. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18811. msm_routing_get_port_mixer,
  18812. msm_routing_put_port_mixer),
  18813. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18814. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18815. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18816. msm_routing_get_port_mixer,
  18817. msm_routing_put_port_mixer),
  18818. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18819. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18820. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18821. msm_routing_get_port_mixer,
  18822. msm_routing_put_port_mixer),
  18823. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18824. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18825. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18826. msm_routing_get_port_mixer,
  18827. msm_routing_put_port_mixer),
  18828. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18829. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18830. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18831. msm_routing_get_port_mixer,
  18832. msm_routing_put_port_mixer),
  18833. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18834. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18835. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18836. msm_routing_get_port_mixer,
  18837. msm_routing_put_port_mixer),
  18838. };
  18839. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  18840. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18841. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18842. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18843. msm_routing_get_port_mixer,
  18844. msm_routing_put_port_mixer),
  18845. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18846. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18847. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18848. msm_routing_get_port_mixer,
  18849. msm_routing_put_port_mixer),
  18850. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18851. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18852. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18853. msm_routing_get_port_mixer,
  18854. msm_routing_put_port_mixer),
  18855. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18856. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18857. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18858. msm_routing_get_port_mixer,
  18859. msm_routing_put_port_mixer),
  18860. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18861. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18862. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18863. msm_routing_get_port_mixer,
  18864. msm_routing_put_port_mixer),
  18865. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18866. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18867. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18868. msm_routing_get_port_mixer,
  18869. msm_routing_put_port_mixer),
  18870. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18871. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18872. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18873. msm_routing_get_port_mixer,
  18874. msm_routing_put_port_mixer),
  18875. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18876. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18877. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18878. msm_routing_get_port_mixer,
  18879. msm_routing_put_port_mixer),
  18880. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18881. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18882. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18883. msm_routing_get_port_mixer,
  18884. msm_routing_put_port_mixer),
  18885. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18886. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18887. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18888. msm_routing_get_port_mixer,
  18889. msm_routing_put_port_mixer),
  18890. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18891. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18892. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18893. msm_routing_get_port_mixer,
  18894. msm_routing_put_port_mixer),
  18895. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18896. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18897. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18898. msm_routing_get_port_mixer,
  18899. msm_routing_put_port_mixer),
  18900. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18901. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18902. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18903. msm_routing_get_port_mixer,
  18904. msm_routing_put_port_mixer),
  18905. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18906. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18907. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18908. msm_routing_get_port_mixer,
  18909. msm_routing_put_port_mixer),
  18910. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18911. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18912. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18913. msm_routing_get_port_mixer,
  18914. msm_routing_put_port_mixer),
  18915. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18916. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18917. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18918. msm_routing_get_port_mixer,
  18919. msm_routing_put_port_mixer),
  18920. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18921. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18922. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18923. msm_routing_get_port_mixer,
  18924. msm_routing_put_port_mixer),
  18925. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18926. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18927. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18928. msm_routing_get_port_mixer,
  18929. msm_routing_put_port_mixer),
  18930. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18931. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18932. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18933. msm_routing_get_port_mixer,
  18934. msm_routing_put_port_mixer),
  18935. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18936. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18937. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18938. msm_routing_get_port_mixer,
  18939. msm_routing_put_port_mixer),
  18940. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18941. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18942. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18943. msm_routing_get_port_mixer,
  18944. msm_routing_put_port_mixer),
  18945. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18946. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18947. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18948. msm_routing_get_port_mixer,
  18949. msm_routing_put_port_mixer),
  18950. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18951. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18952. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18953. msm_routing_get_port_mixer,
  18954. msm_routing_put_port_mixer),
  18955. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18956. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18957. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18958. msm_routing_get_port_mixer,
  18959. msm_routing_put_port_mixer),
  18960. };
  18961. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  18962. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  18963. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  18964. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  18965. msm_routing_get_port_mixer,
  18966. msm_routing_put_port_mixer),
  18967. };
  18968. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  18969. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18970. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18971. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18972. msm_routing_get_port_mixer,
  18973. msm_routing_put_port_mixer),
  18974. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18975. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18976. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18977. msm_routing_get_port_mixer,
  18978. msm_routing_put_port_mixer),
  18979. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18980. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18981. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18982. msm_routing_get_port_mixer,
  18983. msm_routing_put_port_mixer),
  18984. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18985. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18986. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18987. msm_routing_get_port_mixer,
  18988. msm_routing_put_port_mixer),
  18989. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18990. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18991. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18992. msm_routing_get_port_mixer,
  18993. msm_routing_put_port_mixer),
  18994. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18995. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18996. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18997. msm_routing_get_port_mixer,
  18998. msm_routing_put_port_mixer),
  18999. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19000. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19001. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19002. msm_routing_get_port_mixer,
  19003. msm_routing_put_port_mixer),
  19004. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19005. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19006. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19007. msm_routing_get_port_mixer,
  19008. msm_routing_put_port_mixer),
  19009. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19010. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19011. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19012. msm_routing_get_port_mixer,
  19013. msm_routing_put_port_mixer),
  19014. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19015. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19016. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19017. msm_routing_get_port_mixer,
  19018. msm_routing_put_port_mixer),
  19019. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19020. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19021. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19022. msm_routing_get_port_mixer,
  19023. msm_routing_put_port_mixer),
  19024. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19025. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19026. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19027. msm_routing_get_port_mixer,
  19028. msm_routing_put_port_mixer),
  19029. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19030. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19031. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19032. msm_routing_get_port_mixer,
  19033. msm_routing_put_port_mixer),
  19034. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19035. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19036. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19037. msm_routing_get_port_mixer,
  19038. msm_routing_put_port_mixer),
  19039. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19040. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19041. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19042. msm_routing_get_port_mixer,
  19043. msm_routing_put_port_mixer),
  19044. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19045. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19046. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19047. msm_routing_get_port_mixer,
  19048. msm_routing_put_port_mixer),
  19049. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19050. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19051. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19052. msm_routing_get_port_mixer,
  19053. msm_routing_put_port_mixer),
  19054. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19055. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19056. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19057. msm_routing_get_port_mixer,
  19058. msm_routing_put_port_mixer),
  19059. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19060. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19061. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19062. msm_routing_get_port_mixer,
  19063. msm_routing_put_port_mixer),
  19064. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19065. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19066. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19067. msm_routing_get_port_mixer,
  19068. msm_routing_put_port_mixer),
  19069. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19070. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19071. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19072. msm_routing_get_port_mixer,
  19073. msm_routing_put_port_mixer),
  19074. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19075. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19076. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19077. msm_routing_get_port_mixer,
  19078. msm_routing_put_port_mixer),
  19079. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19080. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19081. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19082. msm_routing_get_port_mixer,
  19083. msm_routing_put_port_mixer),
  19084. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19085. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19086. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19087. msm_routing_get_port_mixer,
  19088. msm_routing_put_port_mixer),
  19089. };
  19090. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  19091. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19092. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19093. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19094. msm_routing_get_port_mixer,
  19095. msm_routing_put_port_mixer),
  19096. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19097. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19098. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19099. msm_routing_get_port_mixer,
  19100. msm_routing_put_port_mixer),
  19101. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19102. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19103. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19104. msm_routing_get_port_mixer,
  19105. msm_routing_put_port_mixer),
  19106. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19107. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19108. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19109. msm_routing_get_port_mixer,
  19110. msm_routing_put_port_mixer),
  19111. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19112. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19113. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19114. msm_routing_get_port_mixer,
  19115. msm_routing_put_port_mixer),
  19116. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19117. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19118. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19119. msm_routing_get_port_mixer,
  19120. msm_routing_put_port_mixer),
  19121. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19122. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19123. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19124. msm_routing_get_port_mixer,
  19125. msm_routing_put_port_mixer),
  19126. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19127. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19128. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19129. msm_routing_get_port_mixer,
  19130. msm_routing_put_port_mixer),
  19131. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19132. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19133. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19134. msm_routing_get_port_mixer,
  19135. msm_routing_put_port_mixer),
  19136. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19137. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19138. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19139. msm_routing_get_port_mixer,
  19140. msm_routing_put_port_mixer),
  19141. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19142. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19143. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19144. msm_routing_get_port_mixer,
  19145. msm_routing_put_port_mixer),
  19146. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19147. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19148. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19149. msm_routing_get_port_mixer,
  19150. msm_routing_put_port_mixer),
  19151. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19152. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19153. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19154. msm_routing_get_port_mixer,
  19155. msm_routing_put_port_mixer),
  19156. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19157. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19158. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19159. msm_routing_get_port_mixer,
  19160. msm_routing_put_port_mixer),
  19161. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19162. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19163. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19164. msm_routing_get_port_mixer,
  19165. msm_routing_put_port_mixer),
  19166. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19167. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19168. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19169. msm_routing_get_port_mixer,
  19170. msm_routing_put_port_mixer),
  19171. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19172. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19173. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19174. msm_routing_get_port_mixer,
  19175. msm_routing_put_port_mixer),
  19176. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19177. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19178. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19179. msm_routing_get_port_mixer,
  19180. msm_routing_put_port_mixer),
  19181. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19182. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19183. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19184. msm_routing_get_port_mixer,
  19185. msm_routing_put_port_mixer),
  19186. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19187. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19188. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19189. msm_routing_get_port_mixer,
  19190. msm_routing_put_port_mixer),
  19191. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19192. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19193. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19194. msm_routing_get_port_mixer,
  19195. msm_routing_put_port_mixer),
  19196. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19197. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19198. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19199. msm_routing_get_port_mixer,
  19200. msm_routing_put_port_mixer),
  19201. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19202. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19203. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19204. msm_routing_get_port_mixer,
  19205. msm_routing_put_port_mixer),
  19206. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19207. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19208. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19209. msm_routing_get_port_mixer,
  19210. msm_routing_put_port_mixer),
  19211. };
  19212. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  19213. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19214. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19215. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19216. msm_routing_get_port_mixer,
  19217. msm_routing_put_port_mixer),
  19218. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19219. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19220. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19221. msm_routing_get_port_mixer,
  19222. msm_routing_put_port_mixer),
  19223. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19224. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19225. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19226. msm_routing_get_port_mixer,
  19227. msm_routing_put_port_mixer),
  19228. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19229. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19230. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19231. msm_routing_get_port_mixer,
  19232. msm_routing_put_port_mixer),
  19233. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19234. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19235. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19236. msm_routing_get_port_mixer,
  19237. msm_routing_put_port_mixer),
  19238. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19239. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19240. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19241. msm_routing_get_port_mixer,
  19242. msm_routing_put_port_mixer),
  19243. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19244. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19245. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19246. msm_routing_get_port_mixer,
  19247. msm_routing_put_port_mixer),
  19248. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19249. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19250. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19251. msm_routing_get_port_mixer,
  19252. msm_routing_put_port_mixer),
  19253. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19254. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19255. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19256. msm_routing_get_port_mixer,
  19257. msm_routing_put_port_mixer),
  19258. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19259. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19260. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19261. msm_routing_get_port_mixer,
  19262. msm_routing_put_port_mixer),
  19263. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19264. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19265. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19266. msm_routing_get_port_mixer,
  19267. msm_routing_put_port_mixer),
  19268. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19269. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19270. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19271. msm_routing_get_port_mixer,
  19272. msm_routing_put_port_mixer),
  19273. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19274. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19275. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19276. msm_routing_get_port_mixer,
  19277. msm_routing_put_port_mixer),
  19278. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19279. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19280. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19281. msm_routing_get_port_mixer,
  19282. msm_routing_put_port_mixer),
  19283. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19284. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19285. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19286. msm_routing_get_port_mixer,
  19287. msm_routing_put_port_mixer),
  19288. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19289. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19290. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19291. msm_routing_get_port_mixer,
  19292. msm_routing_put_port_mixer),
  19293. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19294. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19295. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19296. msm_routing_get_port_mixer,
  19297. msm_routing_put_port_mixer),
  19298. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19299. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19300. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19301. msm_routing_get_port_mixer,
  19302. msm_routing_put_port_mixer),
  19303. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19304. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19305. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19306. msm_routing_get_port_mixer,
  19307. msm_routing_put_port_mixer),
  19308. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19309. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19310. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19311. msm_routing_get_port_mixer,
  19312. msm_routing_put_port_mixer),
  19313. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19314. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19315. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19316. msm_routing_get_port_mixer,
  19317. msm_routing_put_port_mixer),
  19318. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19319. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19320. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19321. msm_routing_get_port_mixer,
  19322. msm_routing_put_port_mixer),
  19323. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19324. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19325. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19326. msm_routing_get_port_mixer,
  19327. msm_routing_put_port_mixer),
  19328. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19329. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19330. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19331. msm_routing_get_port_mixer,
  19332. msm_routing_put_port_mixer),
  19333. };
  19334. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  19335. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19336. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19337. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19338. msm_routing_get_port_mixer,
  19339. msm_routing_put_port_mixer),
  19340. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19341. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19342. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19343. msm_routing_get_port_mixer,
  19344. msm_routing_put_port_mixer),
  19345. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19346. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19347. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19348. msm_routing_get_port_mixer,
  19349. msm_routing_put_port_mixer),
  19350. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19351. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19352. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19353. msm_routing_get_port_mixer,
  19354. msm_routing_put_port_mixer),
  19355. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19356. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19357. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19358. msm_routing_get_port_mixer,
  19359. msm_routing_put_port_mixer),
  19360. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19361. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19362. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19363. msm_routing_get_port_mixer,
  19364. msm_routing_put_port_mixer),
  19365. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19366. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19367. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19368. msm_routing_get_port_mixer,
  19369. msm_routing_put_port_mixer),
  19370. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19371. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19372. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19373. msm_routing_get_port_mixer,
  19374. msm_routing_put_port_mixer),
  19375. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19376. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19377. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19378. msm_routing_get_port_mixer,
  19379. msm_routing_put_port_mixer),
  19380. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19381. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19382. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19383. msm_routing_get_port_mixer,
  19384. msm_routing_put_port_mixer),
  19385. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19386. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19387. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19388. msm_routing_get_port_mixer,
  19389. msm_routing_put_port_mixer),
  19390. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19391. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19392. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19393. msm_routing_get_port_mixer,
  19394. msm_routing_put_port_mixer),
  19395. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19396. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19397. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19398. msm_routing_get_port_mixer,
  19399. msm_routing_put_port_mixer),
  19400. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19401. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19402. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19403. msm_routing_get_port_mixer,
  19404. msm_routing_put_port_mixer),
  19405. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19406. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19407. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19408. msm_routing_get_port_mixer,
  19409. msm_routing_put_port_mixer),
  19410. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19411. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19412. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19413. msm_routing_get_port_mixer,
  19414. msm_routing_put_port_mixer),
  19415. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19416. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19417. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19418. msm_routing_get_port_mixer,
  19419. msm_routing_put_port_mixer),
  19420. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19421. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19422. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19423. msm_routing_get_port_mixer,
  19424. msm_routing_put_port_mixer),
  19425. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19426. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19427. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19428. msm_routing_get_port_mixer,
  19429. msm_routing_put_port_mixer),
  19430. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19431. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19432. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19433. msm_routing_get_port_mixer,
  19434. msm_routing_put_port_mixer),
  19435. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19436. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19437. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19438. msm_routing_get_port_mixer,
  19439. msm_routing_put_port_mixer),
  19440. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19441. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19442. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19443. msm_routing_get_port_mixer,
  19444. msm_routing_put_port_mixer),
  19445. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19446. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19447. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19448. msm_routing_get_port_mixer,
  19449. msm_routing_put_port_mixer),
  19450. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19451. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19452. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19453. msm_routing_get_port_mixer,
  19454. msm_routing_put_port_mixer),
  19455. };
  19456. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  19457. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19458. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19459. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19460. msm_routing_get_port_mixer,
  19461. msm_routing_put_port_mixer),
  19462. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19463. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19464. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19465. msm_routing_get_port_mixer,
  19466. msm_routing_put_port_mixer),
  19467. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19468. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19469. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19470. msm_routing_get_port_mixer,
  19471. msm_routing_put_port_mixer),
  19472. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19473. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19474. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19475. msm_routing_get_port_mixer,
  19476. msm_routing_put_port_mixer),
  19477. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19478. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19479. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19480. msm_routing_get_port_mixer,
  19481. msm_routing_put_port_mixer),
  19482. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19483. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19484. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19485. msm_routing_get_port_mixer,
  19486. msm_routing_put_port_mixer),
  19487. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19488. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19489. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19490. msm_routing_get_port_mixer,
  19491. msm_routing_put_port_mixer),
  19492. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19493. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19494. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19495. msm_routing_get_port_mixer,
  19496. msm_routing_put_port_mixer),
  19497. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19498. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19499. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19500. msm_routing_get_port_mixer,
  19501. msm_routing_put_port_mixer),
  19502. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19503. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19504. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19505. msm_routing_get_port_mixer,
  19506. msm_routing_put_port_mixer),
  19507. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19508. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19509. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19510. msm_routing_get_port_mixer,
  19511. msm_routing_put_port_mixer),
  19512. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19513. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19514. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19515. msm_routing_get_port_mixer,
  19516. msm_routing_put_port_mixer),
  19517. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19518. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19519. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19520. msm_routing_get_port_mixer,
  19521. msm_routing_put_port_mixer),
  19522. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19523. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19524. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19525. msm_routing_get_port_mixer,
  19526. msm_routing_put_port_mixer),
  19527. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19528. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19529. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19530. msm_routing_get_port_mixer,
  19531. msm_routing_put_port_mixer),
  19532. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19533. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19534. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19535. msm_routing_get_port_mixer,
  19536. msm_routing_put_port_mixer),
  19537. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19538. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19539. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19540. msm_routing_get_port_mixer,
  19541. msm_routing_put_port_mixer),
  19542. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19543. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19544. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19545. msm_routing_get_port_mixer,
  19546. msm_routing_put_port_mixer),
  19547. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19548. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19549. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19550. msm_routing_get_port_mixer,
  19551. msm_routing_put_port_mixer),
  19552. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19553. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19554. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19555. msm_routing_get_port_mixer,
  19556. msm_routing_put_port_mixer),
  19557. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19558. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19559. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19560. msm_routing_get_port_mixer,
  19561. msm_routing_put_port_mixer),
  19562. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19563. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19564. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19565. msm_routing_get_port_mixer,
  19566. msm_routing_put_port_mixer),
  19567. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19568. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19569. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19570. msm_routing_get_port_mixer,
  19571. msm_routing_put_port_mixer),
  19572. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19573. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19574. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19575. msm_routing_get_port_mixer,
  19576. msm_routing_put_port_mixer),
  19577. };
  19578. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  19579. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19580. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19581. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19582. msm_routing_get_port_mixer,
  19583. msm_routing_put_port_mixer),
  19584. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19585. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19586. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19587. msm_routing_get_port_mixer,
  19588. msm_routing_put_port_mixer),
  19589. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19590. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19591. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19592. msm_routing_get_port_mixer,
  19593. msm_routing_put_port_mixer),
  19594. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19595. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19596. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19597. msm_routing_get_port_mixer,
  19598. msm_routing_put_port_mixer),
  19599. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19600. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19601. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19602. msm_routing_get_port_mixer,
  19603. msm_routing_put_port_mixer),
  19604. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19605. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19606. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19607. msm_routing_get_port_mixer,
  19608. msm_routing_put_port_mixer),
  19609. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19610. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19611. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19612. msm_routing_get_port_mixer,
  19613. msm_routing_put_port_mixer),
  19614. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19615. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19616. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19617. msm_routing_get_port_mixer,
  19618. msm_routing_put_port_mixer),
  19619. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19620. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19621. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19622. msm_routing_get_port_mixer,
  19623. msm_routing_put_port_mixer),
  19624. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19625. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19626. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19627. msm_routing_get_port_mixer,
  19628. msm_routing_put_port_mixer),
  19629. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19630. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19631. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19632. msm_routing_get_port_mixer,
  19633. msm_routing_put_port_mixer),
  19634. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19635. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19636. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19637. msm_routing_get_port_mixer,
  19638. msm_routing_put_port_mixer),
  19639. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19640. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19641. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19642. msm_routing_get_port_mixer,
  19643. msm_routing_put_port_mixer),
  19644. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19645. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19646. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19647. msm_routing_get_port_mixer,
  19648. msm_routing_put_port_mixer),
  19649. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19650. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19651. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19652. msm_routing_get_port_mixer,
  19653. msm_routing_put_port_mixer),
  19654. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19655. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19656. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19657. msm_routing_get_port_mixer,
  19658. msm_routing_put_port_mixer),
  19659. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19660. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19661. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19662. msm_routing_get_port_mixer,
  19663. msm_routing_put_port_mixer),
  19664. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19665. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19666. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19667. msm_routing_get_port_mixer,
  19668. msm_routing_put_port_mixer),
  19669. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19670. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19671. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19672. msm_routing_get_port_mixer,
  19673. msm_routing_put_port_mixer),
  19674. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19675. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19676. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19677. msm_routing_get_port_mixer,
  19678. msm_routing_put_port_mixer),
  19679. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19680. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19681. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19682. msm_routing_get_port_mixer,
  19683. msm_routing_put_port_mixer),
  19684. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19685. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19686. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19687. msm_routing_get_port_mixer,
  19688. msm_routing_put_port_mixer),
  19689. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19690. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19691. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19692. msm_routing_get_port_mixer,
  19693. msm_routing_put_port_mixer),
  19694. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19695. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19696. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19697. msm_routing_get_port_mixer,
  19698. msm_routing_put_port_mixer),
  19699. };
  19700. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  19701. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19702. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19703. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19704. msm_routing_get_port_mixer,
  19705. msm_routing_put_port_mixer),
  19706. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19707. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19708. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19709. msm_routing_get_port_mixer,
  19710. msm_routing_put_port_mixer),
  19711. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19712. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19713. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19714. msm_routing_get_port_mixer,
  19715. msm_routing_put_port_mixer),
  19716. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19717. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19718. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19719. msm_routing_get_port_mixer,
  19720. msm_routing_put_port_mixer),
  19721. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19722. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19723. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19724. msm_routing_get_port_mixer,
  19725. msm_routing_put_port_mixer),
  19726. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19727. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19728. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19729. msm_routing_get_port_mixer,
  19730. msm_routing_put_port_mixer),
  19731. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19732. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19733. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19734. msm_routing_get_port_mixer,
  19735. msm_routing_put_port_mixer),
  19736. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19737. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19738. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19739. msm_routing_get_port_mixer,
  19740. msm_routing_put_port_mixer),
  19741. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19742. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19743. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19744. msm_routing_get_port_mixer,
  19745. msm_routing_put_port_mixer),
  19746. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19747. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19748. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19749. msm_routing_get_port_mixer,
  19750. msm_routing_put_port_mixer),
  19751. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19752. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19753. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19754. msm_routing_get_port_mixer,
  19755. msm_routing_put_port_mixer),
  19756. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19757. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19758. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19759. msm_routing_get_port_mixer,
  19760. msm_routing_put_port_mixer),
  19761. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19762. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19763. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19764. msm_routing_get_port_mixer,
  19765. msm_routing_put_port_mixer),
  19766. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19767. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19768. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19769. msm_routing_get_port_mixer,
  19770. msm_routing_put_port_mixer),
  19771. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19772. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19773. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19774. msm_routing_get_port_mixer,
  19775. msm_routing_put_port_mixer),
  19776. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19777. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19778. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19779. msm_routing_get_port_mixer,
  19780. msm_routing_put_port_mixer),
  19781. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19782. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19783. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19784. msm_routing_get_port_mixer,
  19785. msm_routing_put_port_mixer),
  19786. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19787. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19788. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19789. msm_routing_get_port_mixer,
  19790. msm_routing_put_port_mixer),
  19791. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19792. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19793. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19794. msm_routing_get_port_mixer,
  19795. msm_routing_put_port_mixer),
  19796. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19797. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19798. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19799. msm_routing_get_port_mixer,
  19800. msm_routing_put_port_mixer),
  19801. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19802. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19803. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19804. msm_routing_get_port_mixer,
  19805. msm_routing_put_port_mixer),
  19806. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19807. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19808. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19809. msm_routing_get_port_mixer,
  19810. msm_routing_put_port_mixer),
  19811. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19812. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19813. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19814. msm_routing_get_port_mixer,
  19815. msm_routing_put_port_mixer),
  19816. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19817. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19818. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19819. msm_routing_get_port_mixer,
  19820. msm_routing_put_port_mixer),
  19821. };
  19822. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  19823. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19824. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19825. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19826. msm_routing_get_port_mixer,
  19827. msm_routing_put_port_mixer),
  19828. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19829. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19830. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19831. msm_routing_get_port_mixer,
  19832. msm_routing_put_port_mixer),
  19833. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19834. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19835. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19836. msm_routing_get_port_mixer,
  19837. msm_routing_put_port_mixer),
  19838. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19839. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19840. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19841. msm_routing_get_port_mixer,
  19842. msm_routing_put_port_mixer),
  19843. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19844. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19845. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19846. msm_routing_get_port_mixer,
  19847. msm_routing_put_port_mixer),
  19848. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19849. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19850. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19851. msm_routing_get_port_mixer,
  19852. msm_routing_put_port_mixer),
  19853. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19854. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19855. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19856. msm_routing_get_port_mixer,
  19857. msm_routing_put_port_mixer),
  19858. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19859. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19860. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19861. msm_routing_get_port_mixer,
  19862. msm_routing_put_port_mixer),
  19863. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19864. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19865. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19866. msm_routing_get_port_mixer,
  19867. msm_routing_put_port_mixer),
  19868. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19869. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19870. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19871. msm_routing_get_port_mixer,
  19872. msm_routing_put_port_mixer),
  19873. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19874. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19875. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19876. msm_routing_get_port_mixer,
  19877. msm_routing_put_port_mixer),
  19878. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19879. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19880. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19881. msm_routing_get_port_mixer,
  19882. msm_routing_put_port_mixer),
  19883. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19884. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19885. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19886. msm_routing_get_port_mixer,
  19887. msm_routing_put_port_mixer),
  19888. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19889. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19890. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19891. msm_routing_get_port_mixer,
  19892. msm_routing_put_port_mixer),
  19893. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19894. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19895. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19896. msm_routing_get_port_mixer,
  19897. msm_routing_put_port_mixer),
  19898. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19899. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19900. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19901. msm_routing_get_port_mixer,
  19902. msm_routing_put_port_mixer),
  19903. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19904. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19905. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19906. msm_routing_get_port_mixer,
  19907. msm_routing_put_port_mixer),
  19908. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19909. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19910. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19911. msm_routing_get_port_mixer,
  19912. msm_routing_put_port_mixer),
  19913. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19914. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19915. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19916. msm_routing_get_port_mixer,
  19917. msm_routing_put_port_mixer),
  19918. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19919. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19920. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19921. msm_routing_get_port_mixer,
  19922. msm_routing_put_port_mixer),
  19923. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19924. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19925. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19926. msm_routing_get_port_mixer,
  19927. msm_routing_put_port_mixer),
  19928. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19929. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19930. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19931. msm_routing_get_port_mixer,
  19932. msm_routing_put_port_mixer),
  19933. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19934. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19935. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19936. msm_routing_get_port_mixer,
  19937. msm_routing_put_port_mixer),
  19938. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19939. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19940. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19941. msm_routing_get_port_mixer,
  19942. msm_routing_put_port_mixer),
  19943. };
  19944. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  19945. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  19946. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19947. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  19948. msm_routing_get_port_mixer,
  19949. msm_routing_put_port_mixer),
  19950. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  19951. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19952. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  19953. msm_routing_get_port_mixer,
  19954. msm_routing_put_port_mixer),
  19955. };
  19956. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  19957. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19958. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19959. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19960. msm_routing_get_port_mixer,
  19961. msm_routing_put_port_mixer),
  19962. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19963. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19964. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19965. msm_routing_get_port_mixer,
  19966. msm_routing_put_port_mixer),
  19967. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19968. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19969. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19970. msm_routing_get_port_mixer,
  19971. msm_routing_put_port_mixer),
  19972. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19973. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19974. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19975. msm_routing_get_port_mixer,
  19976. msm_routing_put_port_mixer),
  19977. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19978. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19979. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19980. msm_routing_get_port_mixer,
  19981. msm_routing_put_port_mixer),
  19982. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19983. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19984. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19985. msm_routing_get_port_mixer,
  19986. msm_routing_put_port_mixer),
  19987. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19988. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19989. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19990. msm_routing_get_port_mixer,
  19991. msm_routing_put_port_mixer),
  19992. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19993. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19994. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19995. msm_routing_get_port_mixer,
  19996. msm_routing_put_port_mixer),
  19997. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19998. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19999. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20000. msm_routing_get_port_mixer,
  20001. msm_routing_put_port_mixer),
  20002. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20003. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20004. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20005. msm_routing_get_port_mixer,
  20006. msm_routing_put_port_mixer),
  20007. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20008. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20009. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20010. msm_routing_get_port_mixer,
  20011. msm_routing_put_port_mixer),
  20012. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20013. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20014. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20015. msm_routing_get_port_mixer,
  20016. msm_routing_put_port_mixer),
  20017. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20018. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20019. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20020. msm_routing_get_port_mixer,
  20021. msm_routing_put_port_mixer),
  20022. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20023. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20024. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20025. msm_routing_get_port_mixer,
  20026. msm_routing_put_port_mixer),
  20027. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20028. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20029. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20030. msm_routing_get_port_mixer,
  20031. msm_routing_put_port_mixer),
  20032. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20033. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20034. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20035. msm_routing_get_port_mixer,
  20036. msm_routing_put_port_mixer),
  20037. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20038. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20039. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20040. msm_routing_get_port_mixer,
  20041. msm_routing_put_port_mixer),
  20042. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20043. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20044. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20045. msm_routing_get_port_mixer,
  20046. msm_routing_put_port_mixer),
  20047. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20048. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20049. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20050. msm_routing_get_port_mixer,
  20051. msm_routing_put_port_mixer),
  20052. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20053. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20054. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20055. msm_routing_get_port_mixer,
  20056. msm_routing_put_port_mixer),
  20057. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20058. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20059. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20060. msm_routing_get_port_mixer,
  20061. msm_routing_put_port_mixer),
  20062. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20063. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20064. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20065. msm_routing_get_port_mixer,
  20066. msm_routing_put_port_mixer),
  20067. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20068. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20069. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20070. msm_routing_get_port_mixer,
  20071. msm_routing_put_port_mixer),
  20072. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20073. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20074. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20075. msm_routing_get_port_mixer,
  20076. msm_routing_put_port_mixer),
  20077. };
  20078. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  20079. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20080. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20081. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20082. msm_routing_get_port_mixer,
  20083. msm_routing_put_port_mixer),
  20084. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20085. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20086. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20087. msm_routing_get_port_mixer,
  20088. msm_routing_put_port_mixer),
  20089. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20090. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20091. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20092. msm_routing_get_port_mixer,
  20093. msm_routing_put_port_mixer),
  20094. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20095. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20096. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20097. msm_routing_get_port_mixer,
  20098. msm_routing_put_port_mixer),
  20099. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20100. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20101. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20102. msm_routing_get_port_mixer,
  20103. msm_routing_put_port_mixer),
  20104. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20105. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20106. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20107. msm_routing_get_port_mixer,
  20108. msm_routing_put_port_mixer),
  20109. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20110. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20111. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20112. msm_routing_get_port_mixer,
  20113. msm_routing_put_port_mixer),
  20114. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20115. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20116. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20117. msm_routing_get_port_mixer,
  20118. msm_routing_put_port_mixer),
  20119. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20120. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20121. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20122. msm_routing_get_port_mixer,
  20123. msm_routing_put_port_mixer),
  20124. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20125. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20126. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20127. msm_routing_get_port_mixer,
  20128. msm_routing_put_port_mixer),
  20129. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20130. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20131. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20132. msm_routing_get_port_mixer,
  20133. msm_routing_put_port_mixer),
  20134. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20135. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20136. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20137. msm_routing_get_port_mixer,
  20138. msm_routing_put_port_mixer),
  20139. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20140. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20141. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20142. msm_routing_get_port_mixer,
  20143. msm_routing_put_port_mixer),
  20144. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20145. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20146. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20147. msm_routing_get_port_mixer,
  20148. msm_routing_put_port_mixer),
  20149. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20150. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20151. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20152. msm_routing_get_port_mixer,
  20153. msm_routing_put_port_mixer),
  20154. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20155. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20156. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20157. msm_routing_get_port_mixer,
  20158. msm_routing_put_port_mixer),
  20159. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20160. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20161. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20162. msm_routing_get_port_mixer,
  20163. msm_routing_put_port_mixer),
  20164. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20165. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20166. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20167. msm_routing_get_port_mixer,
  20168. msm_routing_put_port_mixer),
  20169. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20170. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20171. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20172. msm_routing_get_port_mixer,
  20173. msm_routing_put_port_mixer),
  20174. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20175. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20176. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20177. msm_routing_get_port_mixer,
  20178. msm_routing_put_port_mixer),
  20179. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20180. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20181. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20182. msm_routing_get_port_mixer,
  20183. msm_routing_put_port_mixer),
  20184. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20185. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20186. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20187. msm_routing_get_port_mixer,
  20188. msm_routing_put_port_mixer),
  20189. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20190. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20191. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20192. msm_routing_get_port_mixer,
  20193. msm_routing_put_port_mixer),
  20194. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20195. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20196. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20197. msm_routing_get_port_mixer,
  20198. msm_routing_put_port_mixer),
  20199. };
  20200. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  20201. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20202. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20203. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20204. msm_routing_get_port_mixer,
  20205. msm_routing_put_port_mixer),
  20206. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20207. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20208. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20209. msm_routing_get_port_mixer,
  20210. msm_routing_put_port_mixer),
  20211. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20212. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20213. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20214. msm_routing_get_port_mixer,
  20215. msm_routing_put_port_mixer),
  20216. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20217. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20218. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20219. msm_routing_get_port_mixer,
  20220. msm_routing_put_port_mixer),
  20221. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20222. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20223. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20224. msm_routing_get_port_mixer,
  20225. msm_routing_put_port_mixer),
  20226. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20227. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20228. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20229. msm_routing_get_port_mixer,
  20230. msm_routing_put_port_mixer),
  20231. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20232. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20233. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20234. msm_routing_get_port_mixer,
  20235. msm_routing_put_port_mixer),
  20236. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20237. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20238. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20239. msm_routing_get_port_mixer,
  20240. msm_routing_put_port_mixer),
  20241. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20242. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20243. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20244. msm_routing_get_port_mixer,
  20245. msm_routing_put_port_mixer),
  20246. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20247. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20248. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20249. msm_routing_get_port_mixer,
  20250. msm_routing_put_port_mixer),
  20251. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20252. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20253. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20254. msm_routing_get_port_mixer,
  20255. msm_routing_put_port_mixer),
  20256. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20257. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20258. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20259. msm_routing_get_port_mixer,
  20260. msm_routing_put_port_mixer),
  20261. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20262. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20263. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20264. msm_routing_get_port_mixer,
  20265. msm_routing_put_port_mixer),
  20266. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20267. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20268. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20269. msm_routing_get_port_mixer,
  20270. msm_routing_put_port_mixer),
  20271. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20272. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20273. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20274. msm_routing_get_port_mixer,
  20275. msm_routing_put_port_mixer),
  20276. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20277. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20278. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20279. msm_routing_get_port_mixer,
  20280. msm_routing_put_port_mixer),
  20281. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20282. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20283. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20284. msm_routing_get_port_mixer,
  20285. msm_routing_put_port_mixer),
  20286. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20287. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20288. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20289. msm_routing_get_port_mixer,
  20290. msm_routing_put_port_mixer),
  20291. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20292. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20293. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20294. msm_routing_get_port_mixer,
  20295. msm_routing_put_port_mixer),
  20296. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20297. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20298. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20299. msm_routing_get_port_mixer,
  20300. msm_routing_put_port_mixer),
  20301. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20302. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20303. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20304. msm_routing_get_port_mixer,
  20305. msm_routing_put_port_mixer),
  20306. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20307. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20308. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20309. msm_routing_get_port_mixer,
  20310. msm_routing_put_port_mixer),
  20311. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20312. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20313. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20314. msm_routing_get_port_mixer,
  20315. msm_routing_put_port_mixer),
  20316. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20317. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20318. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20319. msm_routing_get_port_mixer,
  20320. msm_routing_put_port_mixer),
  20321. };
  20322. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  20323. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20324. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20325. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20326. msm_routing_get_port_mixer,
  20327. msm_routing_put_port_mixer),
  20328. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20329. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20330. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20331. msm_routing_get_port_mixer,
  20332. msm_routing_put_port_mixer),
  20333. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20334. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20335. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20336. msm_routing_get_port_mixer,
  20337. msm_routing_put_port_mixer),
  20338. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20339. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20340. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20341. msm_routing_get_port_mixer,
  20342. msm_routing_put_port_mixer),
  20343. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20344. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20345. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20346. msm_routing_get_port_mixer,
  20347. msm_routing_put_port_mixer),
  20348. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20349. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20350. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20351. msm_routing_get_port_mixer,
  20352. msm_routing_put_port_mixer),
  20353. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20354. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20355. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20356. msm_routing_get_port_mixer,
  20357. msm_routing_put_port_mixer),
  20358. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20359. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20360. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20361. msm_routing_get_port_mixer,
  20362. msm_routing_put_port_mixer),
  20363. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20364. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20365. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20366. msm_routing_get_port_mixer,
  20367. msm_routing_put_port_mixer),
  20368. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20369. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20370. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20371. msm_routing_get_port_mixer,
  20372. msm_routing_put_port_mixer),
  20373. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20374. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20375. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20376. msm_routing_get_port_mixer,
  20377. msm_routing_put_port_mixer),
  20378. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20379. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20380. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20381. msm_routing_get_port_mixer,
  20382. msm_routing_put_port_mixer),
  20383. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20384. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20385. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20386. msm_routing_get_port_mixer,
  20387. msm_routing_put_port_mixer),
  20388. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20389. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20390. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20391. msm_routing_get_port_mixer,
  20392. msm_routing_put_port_mixer),
  20393. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20394. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20395. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20396. msm_routing_get_port_mixer,
  20397. msm_routing_put_port_mixer),
  20398. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20399. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20400. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20401. msm_routing_get_port_mixer,
  20402. msm_routing_put_port_mixer),
  20403. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20404. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20405. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20406. msm_routing_get_port_mixer,
  20407. msm_routing_put_port_mixer),
  20408. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20409. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20410. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20411. msm_routing_get_port_mixer,
  20412. msm_routing_put_port_mixer),
  20413. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20414. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20415. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20416. msm_routing_get_port_mixer,
  20417. msm_routing_put_port_mixer),
  20418. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20419. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20420. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20421. msm_routing_get_port_mixer,
  20422. msm_routing_put_port_mixer),
  20423. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20424. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20425. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20426. msm_routing_get_port_mixer,
  20427. msm_routing_put_port_mixer),
  20428. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20429. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20430. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20431. msm_routing_get_port_mixer,
  20432. msm_routing_put_port_mixer),
  20433. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20434. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20435. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20436. msm_routing_get_port_mixer,
  20437. msm_routing_put_port_mixer),
  20438. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20439. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20440. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20441. msm_routing_get_port_mixer,
  20442. msm_routing_put_port_mixer),
  20443. };
  20444. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  20445. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20446. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20447. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20448. msm_routing_get_port_mixer,
  20449. msm_routing_put_port_mixer),
  20450. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20451. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20452. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20453. msm_routing_get_port_mixer,
  20454. msm_routing_put_port_mixer),
  20455. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20456. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20457. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20458. msm_routing_get_port_mixer,
  20459. msm_routing_put_port_mixer),
  20460. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20461. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20462. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20463. msm_routing_get_port_mixer,
  20464. msm_routing_put_port_mixer),
  20465. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20466. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20467. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20468. msm_routing_get_port_mixer,
  20469. msm_routing_put_port_mixer),
  20470. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20471. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20472. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20473. msm_routing_get_port_mixer,
  20474. msm_routing_put_port_mixer),
  20475. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20476. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20477. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20478. msm_routing_get_port_mixer,
  20479. msm_routing_put_port_mixer),
  20480. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20481. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20482. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20483. msm_routing_get_port_mixer,
  20484. msm_routing_put_port_mixer),
  20485. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20486. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20487. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20488. msm_routing_get_port_mixer,
  20489. msm_routing_put_port_mixer),
  20490. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20491. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20492. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20493. msm_routing_get_port_mixer,
  20494. msm_routing_put_port_mixer),
  20495. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20496. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20497. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20498. msm_routing_get_port_mixer,
  20499. msm_routing_put_port_mixer),
  20500. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20501. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20502. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20503. msm_routing_get_port_mixer,
  20504. msm_routing_put_port_mixer),
  20505. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20506. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20507. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20508. msm_routing_get_port_mixer,
  20509. msm_routing_put_port_mixer),
  20510. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20511. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20512. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20513. msm_routing_get_port_mixer,
  20514. msm_routing_put_port_mixer),
  20515. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20516. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20517. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20518. msm_routing_get_port_mixer,
  20519. msm_routing_put_port_mixer),
  20520. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20521. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20522. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20523. msm_routing_get_port_mixer,
  20524. msm_routing_put_port_mixer),
  20525. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20526. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20527. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20528. msm_routing_get_port_mixer,
  20529. msm_routing_put_port_mixer),
  20530. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20531. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20532. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20533. msm_routing_get_port_mixer,
  20534. msm_routing_put_port_mixer),
  20535. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20536. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20537. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20538. msm_routing_get_port_mixer,
  20539. msm_routing_put_port_mixer),
  20540. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20541. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20542. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20543. msm_routing_get_port_mixer,
  20544. msm_routing_put_port_mixer),
  20545. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20546. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20547. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20548. msm_routing_get_port_mixer,
  20549. msm_routing_put_port_mixer),
  20550. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20551. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20552. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20553. msm_routing_get_port_mixer,
  20554. msm_routing_put_port_mixer),
  20555. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20556. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20557. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20558. msm_routing_get_port_mixer,
  20559. msm_routing_put_port_mixer),
  20560. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20561. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20562. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20563. msm_routing_get_port_mixer,
  20564. msm_routing_put_port_mixer),
  20565. };
  20566. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  20567. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20568. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20569. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20570. msm_routing_get_port_mixer,
  20571. msm_routing_put_port_mixer),
  20572. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20573. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20574. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20575. msm_routing_get_port_mixer,
  20576. msm_routing_put_port_mixer),
  20577. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20578. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20579. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20580. msm_routing_get_port_mixer,
  20581. msm_routing_put_port_mixer),
  20582. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20583. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20584. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20585. msm_routing_get_port_mixer,
  20586. msm_routing_put_port_mixer),
  20587. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20588. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20589. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20590. msm_routing_get_port_mixer,
  20591. msm_routing_put_port_mixer),
  20592. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20593. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20594. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20595. msm_routing_get_port_mixer,
  20596. msm_routing_put_port_mixer),
  20597. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20598. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20599. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20600. msm_routing_get_port_mixer,
  20601. msm_routing_put_port_mixer),
  20602. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20603. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20604. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20605. msm_routing_get_port_mixer,
  20606. msm_routing_put_port_mixer),
  20607. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20608. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20609. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20610. msm_routing_get_port_mixer,
  20611. msm_routing_put_port_mixer),
  20612. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20613. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20614. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20615. msm_routing_get_port_mixer,
  20616. msm_routing_put_port_mixer),
  20617. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20618. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20619. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20620. msm_routing_get_port_mixer,
  20621. msm_routing_put_port_mixer),
  20622. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20623. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20624. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20625. msm_routing_get_port_mixer,
  20626. msm_routing_put_port_mixer),
  20627. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20628. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20629. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20630. msm_routing_get_port_mixer,
  20631. msm_routing_put_port_mixer),
  20632. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20633. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20634. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20635. msm_routing_get_port_mixer,
  20636. msm_routing_put_port_mixer),
  20637. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20638. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20639. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20640. msm_routing_get_port_mixer,
  20641. msm_routing_put_port_mixer),
  20642. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20643. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20644. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20645. msm_routing_get_port_mixer,
  20646. msm_routing_put_port_mixer),
  20647. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20648. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20649. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20650. msm_routing_get_port_mixer,
  20651. msm_routing_put_port_mixer),
  20652. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20653. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20654. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20655. msm_routing_get_port_mixer,
  20656. msm_routing_put_port_mixer),
  20657. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20658. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20659. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20660. msm_routing_get_port_mixer,
  20661. msm_routing_put_port_mixer),
  20662. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20663. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20664. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20665. msm_routing_get_port_mixer,
  20666. msm_routing_put_port_mixer),
  20667. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20668. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20669. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20670. msm_routing_get_port_mixer,
  20671. msm_routing_put_port_mixer),
  20672. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20673. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20674. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20675. msm_routing_get_port_mixer,
  20676. msm_routing_put_port_mixer),
  20677. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20678. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20679. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20680. msm_routing_get_port_mixer,
  20681. msm_routing_put_port_mixer),
  20682. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20683. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20684. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20685. msm_routing_get_port_mixer,
  20686. msm_routing_put_port_mixer),
  20687. };
  20688. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  20689. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20690. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20691. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20692. msm_routing_get_port_mixer,
  20693. msm_routing_put_port_mixer),
  20694. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20695. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20696. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20697. msm_routing_get_port_mixer,
  20698. msm_routing_put_port_mixer),
  20699. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20700. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20701. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20702. msm_routing_get_port_mixer,
  20703. msm_routing_put_port_mixer),
  20704. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20705. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20706. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20707. msm_routing_get_port_mixer,
  20708. msm_routing_put_port_mixer),
  20709. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20710. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20711. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20712. msm_routing_get_port_mixer,
  20713. msm_routing_put_port_mixer),
  20714. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20715. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20716. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20717. msm_routing_get_port_mixer,
  20718. msm_routing_put_port_mixer),
  20719. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20720. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20721. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20722. msm_routing_get_port_mixer,
  20723. msm_routing_put_port_mixer),
  20724. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20725. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20726. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20727. msm_routing_get_port_mixer,
  20728. msm_routing_put_port_mixer),
  20729. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20730. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20731. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20732. msm_routing_get_port_mixer,
  20733. msm_routing_put_port_mixer),
  20734. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20735. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20736. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20737. msm_routing_get_port_mixer,
  20738. msm_routing_put_port_mixer),
  20739. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20740. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20741. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20742. msm_routing_get_port_mixer,
  20743. msm_routing_put_port_mixer),
  20744. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20745. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20746. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20747. msm_routing_get_port_mixer,
  20748. msm_routing_put_port_mixer),
  20749. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20750. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20751. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20752. msm_routing_get_port_mixer,
  20753. msm_routing_put_port_mixer),
  20754. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20755. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20756. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20757. msm_routing_get_port_mixer,
  20758. msm_routing_put_port_mixer),
  20759. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20760. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20761. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20762. msm_routing_get_port_mixer,
  20763. msm_routing_put_port_mixer),
  20764. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20765. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20766. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20767. msm_routing_get_port_mixer,
  20768. msm_routing_put_port_mixer),
  20769. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20770. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20771. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20772. msm_routing_get_port_mixer,
  20773. msm_routing_put_port_mixer),
  20774. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20775. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20776. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20777. msm_routing_get_port_mixer,
  20778. msm_routing_put_port_mixer),
  20779. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20780. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20781. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20782. msm_routing_get_port_mixer,
  20783. msm_routing_put_port_mixer),
  20784. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20785. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20786. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20787. msm_routing_get_port_mixer,
  20788. msm_routing_put_port_mixer),
  20789. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20790. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20791. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20792. msm_routing_get_port_mixer,
  20793. msm_routing_put_port_mixer),
  20794. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20795. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20796. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20797. msm_routing_get_port_mixer,
  20798. msm_routing_put_port_mixer),
  20799. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20800. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20801. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20802. msm_routing_get_port_mixer,
  20803. msm_routing_put_port_mixer),
  20804. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20805. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20806. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20807. msm_routing_get_port_mixer,
  20808. msm_routing_put_port_mixer),
  20809. };
  20810. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  20811. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20812. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20813. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20814. msm_routing_get_port_mixer,
  20815. msm_routing_put_port_mixer),
  20816. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20817. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20818. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20819. msm_routing_get_port_mixer,
  20820. msm_routing_put_port_mixer),
  20821. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20822. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20823. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20824. msm_routing_get_port_mixer,
  20825. msm_routing_put_port_mixer),
  20826. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20827. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20828. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20829. msm_routing_get_port_mixer,
  20830. msm_routing_put_port_mixer),
  20831. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20832. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20833. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20834. msm_routing_get_port_mixer,
  20835. msm_routing_put_port_mixer),
  20836. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20837. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20838. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20839. msm_routing_get_port_mixer,
  20840. msm_routing_put_port_mixer),
  20841. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20842. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20843. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20844. msm_routing_get_port_mixer,
  20845. msm_routing_put_port_mixer),
  20846. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20847. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20848. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20849. msm_routing_get_port_mixer,
  20850. msm_routing_put_port_mixer),
  20851. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20852. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20853. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20854. msm_routing_get_port_mixer,
  20855. msm_routing_put_port_mixer),
  20856. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20857. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20858. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20859. msm_routing_get_port_mixer,
  20860. msm_routing_put_port_mixer),
  20861. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20862. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20863. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20864. msm_routing_get_port_mixer,
  20865. msm_routing_put_port_mixer),
  20866. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20867. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20868. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20869. msm_routing_get_port_mixer,
  20870. msm_routing_put_port_mixer),
  20871. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20872. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20873. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20874. msm_routing_get_port_mixer,
  20875. msm_routing_put_port_mixer),
  20876. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20877. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20878. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20879. msm_routing_get_port_mixer,
  20880. msm_routing_put_port_mixer),
  20881. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20882. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20883. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20884. msm_routing_get_port_mixer,
  20885. msm_routing_put_port_mixer),
  20886. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20887. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20888. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20889. msm_routing_get_port_mixer,
  20890. msm_routing_put_port_mixer),
  20891. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20892. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20893. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20894. msm_routing_get_port_mixer,
  20895. msm_routing_put_port_mixer),
  20896. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20897. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20898. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20899. msm_routing_get_port_mixer,
  20900. msm_routing_put_port_mixer),
  20901. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20902. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20903. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20904. msm_routing_get_port_mixer,
  20905. msm_routing_put_port_mixer),
  20906. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20907. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20908. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20909. msm_routing_get_port_mixer,
  20910. msm_routing_put_port_mixer),
  20911. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20912. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20913. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20914. msm_routing_get_port_mixer,
  20915. msm_routing_put_port_mixer),
  20916. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20917. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20918. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20919. msm_routing_get_port_mixer,
  20920. msm_routing_put_port_mixer),
  20921. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20922. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20923. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20924. msm_routing_get_port_mixer,
  20925. msm_routing_put_port_mixer),
  20926. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20927. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20928. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20929. msm_routing_get_port_mixer,
  20930. msm_routing_put_port_mixer),
  20931. };
  20932. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  20933. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  20934. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20935. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  20936. msm_routing_get_port_mixer,
  20937. msm_routing_put_port_mixer),
  20938. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  20939. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20940. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  20941. msm_routing_get_port_mixer,
  20942. msm_routing_put_port_mixer),
  20943. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  20944. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20945. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  20946. msm_routing_get_port_mixer,
  20947. msm_routing_put_port_mixer),
  20948. };
  20949. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  20950. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20951. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20952. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20953. msm_routing_put_port_mixer),
  20954. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20955. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20956. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20957. msm_routing_put_port_mixer),
  20958. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20959. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20960. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20961. msm_routing_put_port_mixer),
  20962. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20963. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20964. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20965. msm_routing_put_port_mixer),
  20966. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20967. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20968. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20969. msm_routing_put_port_mixer),
  20970. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20971. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20972. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20973. msm_routing_put_port_mixer),
  20974. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20975. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20976. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20977. msm_routing_put_port_mixer),
  20978. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20979. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20980. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20981. msm_routing_put_port_mixer),
  20982. };
  20983. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  20984. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20985. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20986. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20987. msm_routing_put_port_mixer),
  20988. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20989. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20990. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20991. msm_routing_put_port_mixer),
  20992. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20993. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20994. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20995. msm_routing_put_port_mixer),
  20996. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20997. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20998. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20999. msm_routing_put_port_mixer),
  21000. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  21001. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21002. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21003. msm_routing_put_port_mixer),
  21004. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  21005. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21006. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21007. msm_routing_put_port_mixer),
  21008. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21009. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21010. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  21011. msm_routing_put_port_mixer),
  21012. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  21013. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21014. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  21015. msm_routing_put_port_mixer),
  21016. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  21017. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21018. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  21019. msm_routing_put_port_mixer),
  21020. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21021. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21022. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21023. msm_routing_put_port_mixer),
  21024. };
  21025. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  21026. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21027. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21028. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21029. msm_routing_put_listen_mixer),
  21030. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21031. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21032. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21033. msm_routing_put_listen_mixer),
  21034. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21035. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21036. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21037. msm_routing_put_listen_mixer),
  21038. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21039. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21040. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21041. msm_routing_put_listen_mixer),
  21042. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21043. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21044. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21045. msm_routing_put_listen_mixer),
  21046. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21047. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21048. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21049. msm_routing_put_listen_mixer),
  21050. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21051. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21052. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21053. msm_routing_put_listen_mixer),
  21054. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21055. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21056. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21057. msm_routing_put_listen_mixer),
  21058. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21059. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21060. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21061. msm_routing_put_listen_mixer),
  21062. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21063. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21064. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21065. msm_routing_put_listen_mixer),
  21066. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21067. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21068. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21069. msm_routing_put_listen_mixer),
  21070. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21071. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21072. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21073. msm_routing_put_listen_mixer),
  21074. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21075. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21076. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21077. msm_routing_put_listen_mixer),
  21078. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21079. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21080. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21081. msm_routing_put_listen_mixer),
  21082. };
  21083. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  21084. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21085. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21086. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21087. msm_routing_put_listen_mixer),
  21088. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  21089. SND_SOC_NOPM,
  21090. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21091. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21092. msm_routing_put_listen_mixer),
  21093. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21094. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21095. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21096. msm_routing_put_listen_mixer),
  21097. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21098. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21099. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21100. msm_routing_put_listen_mixer),
  21101. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21102. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21103. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21104. msm_routing_put_listen_mixer),
  21105. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21106. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21107. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21108. msm_routing_put_listen_mixer),
  21109. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21110. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21111. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21112. msm_routing_put_listen_mixer),
  21113. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21114. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21115. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21116. msm_routing_put_listen_mixer),
  21117. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21118. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21119. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21120. msm_routing_put_listen_mixer),
  21121. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21122. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21123. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21124. msm_routing_put_listen_mixer),
  21125. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21126. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21127. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21128. msm_routing_put_listen_mixer),
  21129. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21130. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21131. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21132. msm_routing_put_listen_mixer),
  21133. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21134. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21135. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21136. msm_routing_put_listen_mixer),
  21137. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21138. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21139. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21140. msm_routing_put_listen_mixer),
  21141. };
  21142. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  21143. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21144. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21145. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21146. msm_routing_put_listen_mixer),
  21147. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21148. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21149. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21150. msm_routing_put_listen_mixer),
  21151. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21152. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21153. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21154. msm_routing_put_listen_mixer),
  21155. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21156. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21157. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21158. msm_routing_put_listen_mixer),
  21159. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21160. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21161. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21162. msm_routing_put_listen_mixer),
  21163. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21164. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21165. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21166. msm_routing_put_listen_mixer),
  21167. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21168. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21169. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21170. msm_routing_put_listen_mixer),
  21171. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21172. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21173. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21174. msm_routing_put_listen_mixer),
  21175. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21176. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21177. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21178. msm_routing_put_listen_mixer),
  21179. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21180. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21181. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21182. msm_routing_put_listen_mixer),
  21183. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21184. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21185. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21186. msm_routing_put_listen_mixer),
  21187. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21188. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21189. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21190. msm_routing_put_listen_mixer),
  21191. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21192. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21193. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21194. msm_routing_put_listen_mixer),
  21195. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21196. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21197. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21198. msm_routing_put_listen_mixer),
  21199. };
  21200. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  21201. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21202. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21203. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21204. msm_routing_put_listen_mixer),
  21205. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21206. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21207. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21208. msm_routing_put_listen_mixer),
  21209. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21210. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21211. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21212. msm_routing_put_listen_mixer),
  21213. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21214. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21215. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21216. msm_routing_put_listen_mixer),
  21217. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21218. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21219. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21220. msm_routing_put_listen_mixer),
  21221. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21222. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21223. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21224. msm_routing_put_listen_mixer),
  21225. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21226. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21227. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21228. msm_routing_put_listen_mixer),
  21229. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21230. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21231. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21232. msm_routing_put_listen_mixer),
  21233. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21234. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21235. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21236. msm_routing_put_listen_mixer),
  21237. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21238. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21239. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21240. msm_routing_put_listen_mixer),
  21241. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21242. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21243. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21244. msm_routing_put_listen_mixer),
  21245. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21246. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21247. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21248. msm_routing_put_listen_mixer),
  21249. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21250. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21251. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21252. msm_routing_put_listen_mixer),
  21253. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21254. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21255. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21256. msm_routing_put_listen_mixer),
  21257. };
  21258. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  21259. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21260. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21261. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21262. msm_routing_put_listen_mixer),
  21263. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21264. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21265. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21266. msm_routing_put_listen_mixer),
  21267. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21268. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21269. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21270. msm_routing_put_listen_mixer),
  21271. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21272. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21273. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21274. msm_routing_put_listen_mixer),
  21275. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21276. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21277. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21278. msm_routing_put_listen_mixer),
  21279. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21280. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21281. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21282. msm_routing_put_listen_mixer),
  21283. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21284. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21285. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21286. msm_routing_put_listen_mixer),
  21287. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21288. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21289. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21290. msm_routing_put_listen_mixer),
  21291. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21292. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21293. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21294. msm_routing_put_listen_mixer),
  21295. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21296. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21297. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21298. msm_routing_put_listen_mixer),
  21299. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21300. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21301. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21302. msm_routing_put_listen_mixer),
  21303. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21304. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21305. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21306. msm_routing_put_listen_mixer),
  21307. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21308. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21309. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21310. msm_routing_put_listen_mixer),
  21311. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21312. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21313. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21314. msm_routing_put_listen_mixer),
  21315. };
  21316. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  21317. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21318. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21319. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21320. msm_routing_put_listen_mixer),
  21321. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21322. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21323. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21324. msm_routing_put_listen_mixer),
  21325. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21326. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21327. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21328. msm_routing_put_listen_mixer),
  21329. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21330. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21331. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21332. msm_routing_put_listen_mixer),
  21333. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21334. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21335. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21336. msm_routing_put_listen_mixer),
  21337. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21338. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21339. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21340. msm_routing_put_listen_mixer),
  21341. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21342. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21343. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21344. msm_routing_put_listen_mixer),
  21345. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21346. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21347. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21348. msm_routing_put_listen_mixer),
  21349. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21350. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21351. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21352. msm_routing_put_listen_mixer),
  21353. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21354. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21355. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21356. msm_routing_put_listen_mixer),
  21357. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21358. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21359. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21360. msm_routing_put_listen_mixer),
  21361. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21362. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21363. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21364. msm_routing_put_listen_mixer),
  21365. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21366. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21367. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21368. msm_routing_put_listen_mixer),
  21369. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21370. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21371. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21372. msm_routing_put_listen_mixer),
  21373. };
  21374. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  21375. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21376. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21377. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21378. msm_routing_put_listen_mixer),
  21379. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21380. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21381. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21382. msm_routing_put_listen_mixer),
  21383. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21384. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21385. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21386. msm_routing_put_listen_mixer),
  21387. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21388. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21389. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21390. msm_routing_put_listen_mixer),
  21391. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21392. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21393. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21394. msm_routing_put_listen_mixer),
  21395. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21396. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21397. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21398. msm_routing_put_listen_mixer),
  21399. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21400. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21401. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21402. msm_routing_put_listen_mixer),
  21403. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21404. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21405. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21406. msm_routing_put_listen_mixer),
  21407. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21408. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21409. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21410. msm_routing_put_listen_mixer),
  21411. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21412. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21413. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21414. msm_routing_put_listen_mixer),
  21415. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21416. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21417. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21418. msm_routing_put_listen_mixer),
  21419. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21420. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21421. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21422. msm_routing_put_listen_mixer),
  21423. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21424. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21425. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21426. msm_routing_put_listen_mixer),
  21427. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21428. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21429. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21430. msm_routing_put_listen_mixer),
  21431. };
  21432. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  21433. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21434. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21435. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21436. msm_routing_put_listen_mixer),
  21437. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21438. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21439. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21440. msm_routing_put_listen_mixer),
  21441. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21442. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21443. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21444. msm_routing_put_listen_mixer),
  21445. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21446. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21447. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21448. msm_routing_put_listen_mixer),
  21449. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21450. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21451. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21452. msm_routing_put_listen_mixer),
  21453. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21454. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21455. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21456. msm_routing_put_listen_mixer),
  21457. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21458. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21459. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21460. msm_routing_put_listen_mixer),
  21461. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21462. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21463. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21464. msm_routing_put_listen_mixer),
  21465. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21466. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21467. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21468. msm_routing_put_listen_mixer),
  21469. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21470. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21471. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21472. msm_routing_put_listen_mixer),
  21473. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21474. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21475. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21476. msm_routing_put_listen_mixer),
  21477. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21478. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21479. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21480. msm_routing_put_listen_mixer),
  21481. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21482. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21483. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21484. msm_routing_put_listen_mixer),
  21485. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21486. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21487. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21488. msm_routing_put_listen_mixer),
  21489. };
  21490. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  21491. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21492. 0, 1, 0, msm_routing_get_switch_mixer,
  21493. msm_routing_put_switch_mixer);
  21494. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  21495. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21496. 0, 1, 0, msm_routing_get_switch_mixer,
  21497. msm_routing_put_switch_mixer);
  21498. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  21499. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21500. 0, 1, 0, msm_routing_get_switch_mixer,
  21501. msm_routing_put_switch_mixer);
  21502. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  21503. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21504. 0, 1, 0, msm_routing_get_switch_mixer,
  21505. msm_routing_put_switch_mixer);
  21506. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  21507. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21508. 0, 1, 0, msm_routing_get_switch_mixer,
  21509. msm_routing_put_switch_mixer);
  21510. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  21511. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21512. 0, 1, 0, msm_routing_get_switch_mixer,
  21513. msm_routing_put_switch_mixer);
  21514. static const struct snd_kcontrol_new cdc_dma_rx_1_switch_mixer_controls =
  21515. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21516. 0, 1, 0, msm_routing_get_switch_mixer,
  21517. msm_routing_put_switch_mixer);
  21518. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  21519. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21520. 0, 1, 0, msm_routing_get_switch_mixer,
  21521. msm_routing_put_switch_mixer);
  21522. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  21523. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21524. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  21525. msm_routing_put_fm_pcmrx_switch_mixer);
  21526. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  21527. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21528. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  21529. msm_routing_put_int0_mi2s_switch_mixer);
  21530. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  21531. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21532. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  21533. msm_routing_put_int4_mi2s_switch_mixer);
  21534. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  21535. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21536. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  21537. msm_routing_put_pri_mi2s_switch_mixer);
  21538. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  21539. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21540. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  21541. msm_routing_put_sec_mi2s_switch_mixer);
  21542. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  21543. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21544. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  21545. msm_routing_put_tert_mi2s_switch_mixer);
  21546. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  21547. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21548. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  21549. msm_routing_put_quat_mi2s_switch_mixer);
  21550. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  21551. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21552. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  21553. msm_routing_put_quin_mi2s_switch_mixer);
  21554. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  21555. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21556. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  21557. msm_routing_put_sen_mi2s_switch_mixer);
  21558. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  21559. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21560. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21561. msm_routing_put_hfp_switch_mixer);
  21562. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  21563. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21564. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21565. msm_routing_put_hfp_switch_mixer);
  21566. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  21567. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21568. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21569. msm_routing_put_hfp_switch_mixer);
  21570. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  21571. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21572. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21573. msm_routing_put_hfp_switch_mixer);
  21574. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  21575. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21576. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  21577. msm_routing_put_usb_switch_mixer);
  21578. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  21579. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21580. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  21581. msm_routing_a2dp_switch_mixer_put);
  21582. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  21583. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21584. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  21585. msm_routing_sco_switch_mixer_put);
  21586. static const struct soc_enum lsm_port_enum =
  21587. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  21588. static const char * const lsm_func_text[] = {
  21589. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  21590. };
  21591. static const struct soc_enum lsm_func_enum =
  21592. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  21593. static const struct snd_kcontrol_new lsm_controls[] = {
  21594. /* kcontrol of lsm_function */
  21595. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21596. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21597. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21598. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21599. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21600. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21601. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21602. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21603. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21604. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21605. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21606. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21607. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21608. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21609. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21610. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21611. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21612. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21613. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21614. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21615. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21616. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21617. SOC_ENUM_EXT(TERT_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21618. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21619. /* kcontrol of lsm_port */
  21620. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  21621. msm_routing_lsm_port_get,
  21622. msm_routing_lsm_port_put),
  21623. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  21624. msm_routing_lsm_port_get,
  21625. msm_routing_lsm_port_put),
  21626. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  21627. msm_routing_lsm_port_get,
  21628. msm_routing_lsm_port_put),
  21629. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  21630. msm_routing_lsm_port_get,
  21631. msm_routing_lsm_port_put),
  21632. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  21633. msm_routing_lsm_port_get,
  21634. msm_routing_lsm_port_put),
  21635. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  21636. msm_routing_lsm_port_get,
  21637. msm_routing_lsm_port_put),
  21638. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  21639. msm_routing_lsm_port_get,
  21640. msm_routing_lsm_port_put),
  21641. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  21642. msm_routing_lsm_port_get,
  21643. msm_routing_lsm_port_put),
  21644. };
  21645. static const char * const aanc_slim_0_rx_text[] = {
  21646. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  21647. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  21648. };
  21649. static const struct soc_enum aanc_slim_0_rx_enum =
  21650. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  21651. aanc_slim_0_rx_text);
  21652. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  21653. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  21654. msm_routing_slim_0_rx_aanc_mux_get,
  21655. msm_routing_slim_0_rx_aanc_mux_put)
  21656. };
  21657. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  21658. struct snd_ctl_elem_value *ucontrol)
  21659. {
  21660. ucontrol->value.integer.value[0] = aanc_level;
  21661. return 0;
  21662. }
  21663. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  21664. struct snd_ctl_elem_value *ucontrol)
  21665. {
  21666. int ret = 0;
  21667. mutex_lock(&routing_lock);
  21668. aanc_level = ucontrol->value.integer.value[0];
  21669. pr_debug("%s: value: %ld\n",
  21670. __func__, ucontrol->value.integer.value[0]);
  21671. ret = afe_set_aanc_noise_level(aanc_level);
  21672. mutex_unlock(&routing_lock);
  21673. return ret;
  21674. }
  21675. static const struct snd_kcontrol_new aanc_noise_level[] = {
  21676. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  21677. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  21678. };
  21679. static int msm_routing_get_stereo_to_custom_stereo_control(
  21680. struct snd_kcontrol *kcontrol,
  21681. struct snd_ctl_elem_value *ucontrol)
  21682. {
  21683. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  21684. return 0;
  21685. }
  21686. static int msm_routing_put_stereo_to_custom_stereo_control(
  21687. struct snd_kcontrol *kcontrol,
  21688. struct snd_ctl_elem_value *ucontrol)
  21689. {
  21690. int flag = 0, i = 0, rc = 0, idx = 0;
  21691. int be_index = 0, port_id, topo_id;
  21692. unsigned int session_id = 0;
  21693. uint16_t op_FL_ip_FL_weight = 0;
  21694. uint16_t op_FL_ip_FR_weight = 0;
  21695. uint16_t op_FR_ip_FL_weight = 0;
  21696. uint16_t op_FR_ip_FR_weight = 0;
  21697. flag = ucontrol->value.integer.value[0];
  21698. pr_debug("%s E flag %d\n", __func__, flag);
  21699. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  21700. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  21701. __func__, is_custom_stereo_on, flag);
  21702. return 0;
  21703. }
  21704. is_custom_stereo_on = flag ? true : false;
  21705. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  21706. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  21707. port_id = msm_bedais[be_index].port_id;
  21708. if (!msm_bedais[be_index].active)
  21709. continue;
  21710. if ((port_id != SLIMBUS_0_RX) &&
  21711. (port_id != RT_PROXY_PORT_001_RX) &&
  21712. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  21713. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  21714. continue;
  21715. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  21716. MSM_FRONTEND_DAI_MM_SIZE) {
  21717. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  21718. LEGACY_PCM_MODE)
  21719. goto skip_send_custom_stereo;
  21720. session_id =
  21721. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  21722. if (is_custom_stereo_on) {
  21723. op_FL_ip_FL_weight =
  21724. Q14_GAIN_ZERO_POINT_FIVE;
  21725. op_FL_ip_FR_weight =
  21726. Q14_GAIN_ZERO_POINT_FIVE;
  21727. op_FR_ip_FL_weight =
  21728. Q14_GAIN_ZERO_POINT_FIVE;
  21729. op_FR_ip_FR_weight =
  21730. Q14_GAIN_ZERO_POINT_FIVE;
  21731. } else {
  21732. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  21733. op_FL_ip_FR_weight = 0;
  21734. op_FR_ip_FL_weight = 0;
  21735. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  21736. }
  21737. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21738. unsigned long copp =
  21739. session_copp_map[i]
  21740. [SESSION_TYPE_RX][be_index];
  21741. if (!test_bit(idx, &copp))
  21742. goto skip_send_custom_stereo;
  21743. topo_id = adm_get_topology_for_port_copp_idx(
  21744. msm_bedais[be_index].port_id, idx);
  21745. if (topo_id < 0)
  21746. pr_debug("%s:Err:custom stereo topo %d",
  21747. __func__, topo_id);
  21748. pr_debug("idx %d\n", idx);
  21749. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  21750. rc = msm_ds2_dap_set_custom_stereo_onoff
  21751. (msm_bedais[be_index].port_id,
  21752. idx, is_custom_stereo_on);
  21753. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  21754. rc = dolby_dap_set_custom_stereo_onoff(
  21755. msm_bedais[be_index].port_id,
  21756. idx, is_custom_stereo_on);
  21757. else
  21758. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  21759. (msm_bedais[be_index].port_id,
  21760. idx, session_id,
  21761. op_FL_ip_FL_weight,
  21762. op_FL_ip_FR_weight,
  21763. op_FR_ip_FL_weight,
  21764. op_FR_ip_FR_weight);
  21765. if (rc < 0)
  21766. skip_send_custom_stereo:
  21767. pr_err("%s: err setting custom stereo\n",
  21768. __func__);
  21769. }
  21770. }
  21771. }
  21772. return 0;
  21773. }
  21774. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  21775. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  21776. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  21777. msm_routing_put_stereo_to_custom_stereo_control),
  21778. };
  21779. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21780. struct snd_ctl_elem_value *ucontrol)
  21781. {
  21782. return 0;
  21783. }
  21784. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21785. struct snd_ctl_elem_value *ucontrol)
  21786. {
  21787. int i = 0, j;
  21788. int num_app_types = ucontrol->value.integer.value[i++];
  21789. pr_debug("%s\n", __func__);
  21790. memset(app_type_cfg, 0, MAX_APP_TYPES*
  21791. sizeof(struct msm_pcm_routing_app_type_data));
  21792. if (num_app_types > MAX_APP_TYPES) {
  21793. pr_err("%s: number of app types exceed the max supported\n",
  21794. __func__);
  21795. return -EINVAL;
  21796. }
  21797. for (j = 0; j < num_app_types; j++) {
  21798. app_type_cfg[j].app_type =
  21799. ucontrol->value.integer.value[i++];
  21800. app_type_cfg[j].sample_rate =
  21801. ucontrol->value.integer.value[i++];
  21802. app_type_cfg[j].bit_width =
  21803. ucontrol->value.integer.value[i++];
  21804. }
  21805. return 0;
  21806. }
  21807. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  21808. struct snd_ctl_elem_value *ucontrol)
  21809. {
  21810. int j, fe_id, be_id, port_type;
  21811. int ret = 0;
  21812. unsigned long copp;
  21813. struct msm_pcm_routing_bdai_data *bedai;
  21814. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21815. SESSION_TYPE_RX;
  21816. int app_type = ucontrol->value.integer.value[1];
  21817. int gain = (ucontrol->value.integer.value[2] +
  21818. ucontrol->value.integer.value[3])/2;
  21819. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21820. MSM_AFE_PORT_TYPE_TX;
  21821. mutex_lock(&routing_lock);
  21822. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21823. if (is_be_dai_extproc(be_id))
  21824. continue;
  21825. bedai = &msm_bedais[be_id];
  21826. if (afe_get_port_type(bedai->port_id) != port_type)
  21827. continue;
  21828. if (!bedai->active)
  21829. continue;
  21830. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21831. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21832. continue;
  21833. if (app_type !=
  21834. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21835. continue;
  21836. copp = session_copp_map[fe_id][dir][be_id];
  21837. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  21838. if (!test_bit(j, &copp))
  21839. continue;
  21840. ret |= adm_set_volume(bedai->port_id, j, gain);
  21841. }
  21842. }
  21843. }
  21844. mutex_unlock(&routing_lock);
  21845. return ret ? -EINVAL : 0;
  21846. }
  21847. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  21848. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  21849. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  21850. msm_routing_put_app_type_cfg_control),
  21851. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  21852. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  21853. };
  21854. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  21855. struct snd_ctl_elem_value *ucontrol)
  21856. {
  21857. int copp_idx, fe_id, be_id, port_type;
  21858. int ret = 0;
  21859. unsigned long copp;
  21860. struct msm_pcm_routing_bdai_data *bedai;
  21861. u8 *packed_params = NULL;
  21862. struct param_hdr_v3 param_hdr;
  21863. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  21864. sizeof(uint32_t));
  21865. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21866. SESSION_TYPE_RX;
  21867. int app_type = ucontrol->value.integer.value[1];
  21868. int module_id = ucontrol->value.integer.value[2];
  21869. int instance_id = ucontrol->value.integer.value[3];
  21870. int param_id = ucontrol->value.integer.value[4];
  21871. int param_value = ucontrol->value.integer.value[5];
  21872. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21873. MSM_AFE_PORT_TYPE_TX;
  21874. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  21875. __func__, app_type, module_id,
  21876. instance_id, param_id, param_value);
  21877. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  21878. if (!packed_params)
  21879. return -ENOMEM;
  21880. memset(&param_hdr, 0, sizeof(param_hdr));
  21881. param_hdr.module_id = module_id;
  21882. param_hdr.instance_id = instance_id;
  21883. param_hdr.param_id = param_id;
  21884. param_hdr.param_size = sizeof(uint32_t);
  21885. packed_param_size = 0;
  21886. mutex_lock(&routing_lock);
  21887. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21888. if (is_be_dai_extproc(be_id))
  21889. continue;
  21890. bedai = &msm_bedais[be_id];
  21891. if (afe_get_port_type(bedai->port_id) != port_type)
  21892. continue;
  21893. if (!bedai->active)
  21894. continue;
  21895. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21896. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21897. continue;
  21898. if (app_type !=
  21899. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21900. continue;
  21901. copp = session_copp_map[fe_id][dir][be_id];
  21902. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  21903. copp_idx++) {
  21904. if (!test_bit(copp_idx, &copp))
  21905. continue;
  21906. ret = q6common_pack_pp_params(packed_params,
  21907. &param_hdr,
  21908. (u8 *) &param_value,
  21909. &packed_param_size);
  21910. if (ret) {
  21911. pr_err("%s: Failed to pack params, error %d\n",
  21912. __func__, ret);
  21913. goto done;
  21914. }
  21915. ret = adm_set_pp_params(bedai->port_id,
  21916. copp_idx, NULL,
  21917. packed_params,
  21918. packed_param_size);
  21919. if (ret) {
  21920. pr_err("%s: Setting param failed with err=%d\n",
  21921. __func__, ret);
  21922. ret = -EINVAL;
  21923. goto done;
  21924. }
  21925. }
  21926. }
  21927. }
  21928. done:
  21929. mutex_unlock(&routing_lock);
  21930. kfree(packed_params);
  21931. return ret;
  21932. }
  21933. static const struct snd_kcontrol_new module_cfg_controls[] = {
  21934. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  21935. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  21936. };
  21937. static int msm_routing_get_lsm_app_type_cfg_control(
  21938. struct snd_kcontrol *kcontrol,
  21939. struct snd_ctl_elem_value *ucontrol)
  21940. {
  21941. int shift = ((struct soc_multi_mixer_control *)
  21942. kcontrol->private_value)->shift;
  21943. int i = 0, j = 0;
  21944. mutex_lock(&routing_lock);
  21945. ucontrol->value.integer.value[i] = num_app_cfg_types;
  21946. for (j = 0; j < num_app_cfg_types; ++j) {
  21947. ucontrol->value.integer.value[++i] =
  21948. lsm_app_type_cfg[j].app_type;
  21949. ucontrol->value.integer.value[++i] =
  21950. lsm_app_type_cfg[j].sample_rate;
  21951. ucontrol->value.integer.value[++i] =
  21952. lsm_app_type_cfg[j].bit_width;
  21953. if (shift == 1)
  21954. ucontrol->value.integer.value[++i] =
  21955. lsm_app_type_cfg[j].num_out_channels;
  21956. }
  21957. mutex_unlock(&routing_lock);
  21958. return 0;
  21959. }
  21960. static int msm_routing_put_lsm_app_type_cfg_control(
  21961. struct snd_kcontrol *kcontrol,
  21962. struct snd_ctl_elem_value *ucontrol)
  21963. {
  21964. int shift = ((struct soc_multi_mixer_control *)
  21965. kcontrol->private_value)->shift;
  21966. int i = 0, j;
  21967. mutex_lock(&routing_lock);
  21968. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  21969. pr_err("%s: number of app types exceed the max supported\n",
  21970. __func__);
  21971. mutex_unlock(&routing_lock);
  21972. return -EINVAL;
  21973. }
  21974. num_app_cfg_types = ucontrol->value.integer.value[i++];
  21975. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  21976. sizeof(struct msm_pcm_routing_app_type_data));
  21977. for (j = 0; j < num_app_cfg_types; j++) {
  21978. lsm_app_type_cfg[j].app_type =
  21979. ucontrol->value.integer.value[i++];
  21980. lsm_app_type_cfg[j].sample_rate =
  21981. ucontrol->value.integer.value[i++];
  21982. lsm_app_type_cfg[j].bit_width =
  21983. ucontrol->value.integer.value[i++];
  21984. /* Shift of 1 indicates this is V2 mixer control */
  21985. if (shift == 1)
  21986. lsm_app_type_cfg[j].num_out_channels =
  21987. ucontrol->value.integer.value[i++];
  21988. }
  21989. mutex_unlock(&routing_lock);
  21990. return 0;
  21991. }
  21992. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  21993. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  21994. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21995. msm_routing_put_lsm_app_type_cfg_control),
  21996. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  21997. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21998. msm_routing_put_lsm_app_type_cfg_control),
  21999. };
  22000. static int msm_routing_get_use_ds1_or_ds2_control(
  22001. struct snd_kcontrol *kcontrol,
  22002. struct snd_ctl_elem_value *ucontrol)
  22003. {
  22004. ucontrol->value.integer.value[0] = is_ds2_on;
  22005. return 0;
  22006. }
  22007. static int msm_routing_put_use_ds1_or_ds2_control(
  22008. struct snd_kcontrol *kcontrol,
  22009. struct snd_ctl_elem_value *ucontrol)
  22010. {
  22011. is_ds2_on = ucontrol->value.integer.value[0];
  22012. return 0;
  22013. }
  22014. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  22015. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  22016. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  22017. msm_routing_put_use_ds1_or_ds2_control),
  22018. };
  22019. static int msm_routing_get_hifi_filter_control(
  22020. struct snd_kcontrol *kcontrol,
  22021. struct snd_ctl_elem_value *ucontrol)
  22022. {
  22023. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  22024. return 0;
  22025. }
  22026. static int msm_routing_put_hifi_filter_control(
  22027. struct snd_kcontrol *kcontrol,
  22028. struct snd_ctl_elem_value *ucontrol)
  22029. {
  22030. hifi_filter_enabled = ucontrol->value.integer.value[0];
  22031. return 0;
  22032. }
  22033. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  22034. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  22035. 1, 0, msm_routing_get_hifi_filter_control,
  22036. msm_routing_put_hifi_filter_control),
  22037. };
  22038. static int msm_routing_get_ffecns_freeze_event_control(
  22039. struct snd_kcontrol *kcontrol,
  22040. struct snd_ctl_elem_value *ucontrol)
  22041. {
  22042. ucontrol->value.integer.value[0] = ffecns_freeze_event;
  22043. return 0;
  22044. }
  22045. static int msm_routing_put_ffecns_freeze_event_control(
  22046. struct snd_kcontrol *kcontrol,
  22047. struct snd_ctl_elem_value *ucontrol)
  22048. {
  22049. int ret = -EINVAL;
  22050. ffecns_freeze_event = ucontrol->value.integer.value[0];
  22051. ret = adm_set_ffecns_freeze_event(ffecns_freeze_event);
  22052. if (ret)
  22053. pr_err("%s: failed to set ffecns imc event to%d\n",
  22054. __func__, ffecns_freeze_event);
  22055. return ret;
  22056. }
  22057. static const struct snd_kcontrol_new use_ffecns_freeze_event_controls[] = {
  22058. SOC_SINGLE_EXT("FFECNS Freeze Event", SND_SOC_NOPM, 0,
  22059. 1, 0, msm_routing_get_ffecns_freeze_event_control,
  22060. msm_routing_put_ffecns_freeze_event_control),
  22061. };
  22062. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  22063. struct snd_ctl_elem_value *ucontrol) {
  22064. int rc = 0;
  22065. int be_idx = 0;
  22066. char *param_value;
  22067. int *update_param_value;
  22068. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  22069. struct param_hdr_v3 param_hdr;
  22070. param_value = kzalloc(param_size, GFP_KERNEL);
  22071. if (!param_value)
  22072. return -ENOMEM;
  22073. memset(&param_hdr, 0, sizeof(param_hdr));
  22074. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  22075. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  22076. break;
  22077. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  22078. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  22079. param_hdr.instance_id = INSTANCE_ID_0;
  22080. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  22081. param_hdr.param_size = param_size;
  22082. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  22083. NULL, &param_hdr, (u8 *) param_value);
  22084. if (rc) {
  22085. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  22086. kfree(param_value);
  22087. return -EINVAL;
  22088. }
  22089. update_param_value = (int *)param_value;
  22090. ucontrol->value.integer.value[0] = update_param_value[0];
  22091. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  22092. __func__, update_param_value[0]);
  22093. }
  22094. kfree(param_value);
  22095. return 0;
  22096. }
  22097. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  22098. struct snd_ctl_elem_value *ucontrol)
  22099. {
  22100. voc_session_id = ucontrol->value.integer.value[0];
  22101. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  22102. return 0;
  22103. }
  22104. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  22105. struct snd_ctl_elem_value *ucontrol)
  22106. {
  22107. ucontrol->value.integer.value[0] = voc_session_id;
  22108. return 0;
  22109. }
  22110. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  22111. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  22112. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  22113. msm_voc_session_id_put),
  22114. };
  22115. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  22116. struct snd_ctl_elem_info *uinfo)
  22117. {
  22118. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22119. uinfo->count = sizeof(struct sound_focus_param);
  22120. return 0;
  22121. }
  22122. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  22123. struct snd_ctl_elem_value *ucontrol)
  22124. {
  22125. int ret = 0;
  22126. struct sound_focus_param soundFocusData;
  22127. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22128. sizeof(struct sound_focus_param));
  22129. ret = voc_set_sound_focus(soundFocusData);
  22130. if (ret) {
  22131. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22132. __func__, ret);
  22133. ret = -EINVAL;
  22134. }
  22135. return ret;
  22136. }
  22137. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  22138. struct snd_ctl_elem_value *ucontrol)
  22139. {
  22140. int ret = 0;
  22141. struct sound_focus_param soundFocusData;
  22142. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  22143. ret = voc_get_sound_focus(&soundFocusData);
  22144. if (ret) {
  22145. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  22146. __func__, ret);
  22147. ret = -EINVAL;
  22148. goto done;
  22149. }
  22150. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22151. sizeof(struct sound_focus_param));
  22152. done:
  22153. return ret;
  22154. }
  22155. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  22156. struct snd_ctl_elem_info *uinfo)
  22157. {
  22158. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22159. uinfo->count = sizeof(struct source_tracking_param);
  22160. return 0;
  22161. }
  22162. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  22163. struct snd_ctl_elem_value *ucontrol)
  22164. {
  22165. int ret = 0;
  22166. struct source_tracking_param sourceTrackingData;
  22167. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  22168. ret = voc_get_source_tracking(&sourceTrackingData);
  22169. if (ret) {
  22170. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  22171. __func__, ret);
  22172. ret = -EINVAL;
  22173. goto done;
  22174. }
  22175. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22176. sizeof(struct source_tracking_param));
  22177. done:
  22178. return ret;
  22179. }
  22180. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  22181. int *copp_idx)
  22182. {
  22183. int i, idx, be_idx;
  22184. int ret = 0;
  22185. unsigned long copp;
  22186. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  22187. ret = q6audio_validate_port(port_id);
  22188. if (ret < 0) {
  22189. pr_err("%s: port validation failed id 0x%x ret %d\n",
  22190. __func__, port_id, ret);
  22191. ret = -EINVAL;
  22192. goto done;
  22193. }
  22194. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22195. if (msm_bedais[be_idx].port_id == port_id)
  22196. break;
  22197. }
  22198. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22199. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  22200. ret = -EINVAL;
  22201. goto done;
  22202. }
  22203. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  22204. MSM_FRONTEND_DAI_MAX) {
  22205. if (!(is_mm_lsm_fe_id(i) &&
  22206. route_check_fe_id_adm_support(i)))
  22207. continue;
  22208. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22209. copp = session_copp_map[i]
  22210. [session_type][be_idx];
  22211. if (test_bit(idx, &copp))
  22212. break;
  22213. }
  22214. if (idx >= MAX_COPPS_PER_PORT)
  22215. continue;
  22216. else
  22217. break;
  22218. }
  22219. if (i >= MSM_FRONTEND_DAI_MAX) {
  22220. pr_debug("%s: Invalid FE, exiting\n", __func__);
  22221. ret = -EINVAL;
  22222. goto done;
  22223. }
  22224. *copp_idx = idx;
  22225. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  22226. done:
  22227. return ret;
  22228. }
  22229. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  22230. const char *prefix, int *port_id)
  22231. {
  22232. int ret = 0;
  22233. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  22234. /*
  22235. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  22236. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  22237. * and compare the string with the backend name to derive the port id.
  22238. */
  22239. if (!strcmp(kcontrol->id.name + strlen(prefix),
  22240. "SLIMBUS_0")) {
  22241. *port_id = SLIMBUS_0_TX;
  22242. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22243. "TERT_MI2S")) {
  22244. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  22245. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22246. "INT3_MI2S")) {
  22247. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  22248. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22249. "VA_CDC_DMA_TX_0")) {
  22250. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  22251. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22252. "TX_CDC_DMA_TX_3")) {
  22253. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  22254. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22255. "QUIN_TDM_TX_0")) {
  22256. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  22257. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22258. "PRIMARY_TDM")) {
  22259. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  22260. } else {
  22261. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  22262. __func__, kcontrol->id.name);
  22263. ret = -EINVAL;
  22264. goto done;
  22265. }
  22266. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  22267. __func__, kcontrol->id.name, *port_id);
  22268. done:
  22269. return ret;
  22270. }
  22271. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  22272. struct snd_ctl_elem_value *ucontrol)
  22273. {
  22274. int ret = 0;
  22275. struct sound_focus_param soundFocusData;
  22276. int port_id, copp_idx;
  22277. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22278. "Sound Focus Audio Tx ", &port_id);
  22279. if (ret != 0) {
  22280. pr_err("%s: Error in deriving port id, err=%d\n",
  22281. __func__, ret);
  22282. ret = -EINVAL;
  22283. goto done;
  22284. }
  22285. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22286. &copp_idx);
  22287. if (ret) {
  22288. pr_err("%s: Could not get copp idx for port_id=%d\n",
  22289. __func__, port_id);
  22290. ret = -EINVAL;
  22291. goto done;
  22292. }
  22293. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22294. sizeof(struct sound_focus_param));
  22295. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  22296. if (ret) {
  22297. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22298. __func__, ret);
  22299. ret = -EINVAL;
  22300. goto done;
  22301. }
  22302. done:
  22303. return ret;
  22304. }
  22305. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  22306. struct snd_ctl_elem_value *ucontrol)
  22307. {
  22308. int ret = 0;
  22309. struct sound_focus_param soundFocusData;
  22310. int port_id, copp_idx;
  22311. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22312. "Sound Focus Audio Tx ", &port_id);
  22313. if (ret) {
  22314. pr_err("%s: Error in deriving port id, err=%d\n",
  22315. __func__, ret);
  22316. ret = -EINVAL;
  22317. goto done;
  22318. }
  22319. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22320. &copp_idx);
  22321. if (ret) {
  22322. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22323. __func__, port_id);
  22324. ret = -EINVAL;
  22325. goto done;
  22326. }
  22327. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  22328. if (ret) {
  22329. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  22330. __func__, ret);
  22331. ret = -EINVAL;
  22332. goto done;
  22333. }
  22334. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22335. sizeof(struct sound_focus_param));
  22336. done:
  22337. return ret;
  22338. }
  22339. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  22340. struct snd_ctl_elem_value *ucontrol)
  22341. {
  22342. int ret = 0;
  22343. struct source_tracking_param sourceTrackingData;
  22344. int port_id, copp_idx;
  22345. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22346. "Source Tracking Audio Tx ", &port_id);
  22347. if (ret) {
  22348. pr_err("%s: Error in deriving port id, err=%d\n",
  22349. __func__, ret);
  22350. ret = -EINVAL;
  22351. goto done;
  22352. }
  22353. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22354. &copp_idx);
  22355. if (ret) {
  22356. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22357. __func__, port_id);
  22358. ret = -EINVAL;
  22359. goto done;
  22360. }
  22361. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  22362. if (ret) {
  22363. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  22364. __func__, ret);
  22365. ret = -EINVAL;
  22366. goto done;
  22367. }
  22368. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22369. sizeof(struct source_tracking_param));
  22370. done:
  22371. return ret;
  22372. }
  22373. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  22374. struct snd_ctl_elem_info *uinfo)
  22375. {
  22376. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22377. uinfo->count = sizeof(struct doa_tracking_mon_param);
  22378. return 0;
  22379. }
  22380. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  22381. struct snd_ctl_elem_value *ucontrol)
  22382. {
  22383. int ret = 0;
  22384. struct doa_tracking_mon_param doa_tracking_data;
  22385. int port_id, copp_idx;
  22386. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  22387. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22388. "Doa Tracking Monitor Listen ", &port_id);
  22389. if (ret) {
  22390. pr_err("%s: Error in deriving port id, err=%d\n",
  22391. __func__, ret);
  22392. ret = -EINVAL;
  22393. goto done;
  22394. }
  22395. /*
  22396. * If copp id exists for given port id, query adm to get doa data.
  22397. * Else query afe for doa tracking params.
  22398. * This is to support in cases where LSM directly connects to
  22399. * AFE for FFNS.
  22400. */
  22401. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22402. &copp_idx);
  22403. if (!ret)
  22404. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  22405. &doa_tracking_data);
  22406. else
  22407. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  22408. if (ret) {
  22409. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  22410. __func__, ret);
  22411. ret = -EINVAL;
  22412. goto done;
  22413. }
  22414. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  22415. sizeof(struct doa_tracking_mon_param));
  22416. done:
  22417. return ret;
  22418. }
  22419. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  22420. {
  22421. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22422. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22423. .name = "Sound Focus Voice Tx SLIMBUS_0",
  22424. .info = msm_sound_focus_info,
  22425. .get = msm_voice_sound_focus_get,
  22426. .put = msm_voice_sound_focus_put,
  22427. },
  22428. {
  22429. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22430. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22431. .name = "Source Tracking Voice Tx SLIMBUS_0",
  22432. .info = msm_source_tracking_info,
  22433. .get = msm_voice_source_tracking_get,
  22434. },
  22435. {
  22436. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22437. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22438. .name = "Sound Focus Audio Tx SLIMBUS_0",
  22439. .info = msm_sound_focus_info,
  22440. .get = msm_audio_sound_focus_get,
  22441. .put = msm_audio_sound_focus_put,
  22442. },
  22443. {
  22444. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22445. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22446. .name = "Source Tracking Audio Tx SLIMBUS_0",
  22447. .info = msm_source_tracking_info,
  22448. .get = msm_audio_source_tracking_get,
  22449. },
  22450. {
  22451. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22452. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22453. .name = "Sound Focus Voice Tx TERT_MI2S",
  22454. .info = msm_sound_focus_info,
  22455. .get = msm_voice_sound_focus_get,
  22456. .put = msm_voice_sound_focus_put,
  22457. },
  22458. {
  22459. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22460. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22461. .name = "Source Tracking Voice Tx TERT_MI2S",
  22462. .info = msm_source_tracking_info,
  22463. .get = msm_voice_source_tracking_get,
  22464. },
  22465. {
  22466. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22467. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22468. .name = "Sound Focus Audio Tx TERT_MI2S",
  22469. .info = msm_sound_focus_info,
  22470. .get = msm_audio_sound_focus_get,
  22471. .put = msm_audio_sound_focus_put,
  22472. },
  22473. {
  22474. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22475. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22476. .name = "Source Tracking Audio Tx TERT_MI2S",
  22477. .info = msm_source_tracking_info,
  22478. .get = msm_audio_source_tracking_get,
  22479. },
  22480. {
  22481. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22482. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22483. .name = "Sound Focus Voice Tx INT3_MI2S",
  22484. .info = msm_sound_focus_info,
  22485. .get = msm_voice_sound_focus_get,
  22486. .put = msm_voice_sound_focus_put,
  22487. },
  22488. {
  22489. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22490. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22491. .name = "Source Tracking Voice Tx INT3_MI2S",
  22492. .info = msm_source_tracking_info,
  22493. .get = msm_voice_source_tracking_get,
  22494. },
  22495. {
  22496. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22497. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22498. .name = "Sound Focus Audio Tx INT3_MI2S",
  22499. .info = msm_sound_focus_info,
  22500. .get = msm_audio_sound_focus_get,
  22501. .put = msm_audio_sound_focus_put,
  22502. },
  22503. {
  22504. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22505. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22506. .name = "Source Tracking Audio Tx INT3_MI2S",
  22507. .info = msm_source_tracking_info,
  22508. .get = msm_audio_source_tracking_get,
  22509. },
  22510. {
  22511. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22512. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22513. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  22514. .info = msm_sound_focus_info,
  22515. .get = msm_voice_sound_focus_get,
  22516. .put = msm_voice_sound_focus_put,
  22517. },
  22518. {
  22519. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22520. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22521. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  22522. .info = msm_source_tracking_info,
  22523. .get = msm_voice_source_tracking_get,
  22524. },
  22525. {
  22526. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22527. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22528. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  22529. .info = msm_sound_focus_info,
  22530. .get = msm_audio_sound_focus_get,
  22531. .put = msm_audio_sound_focus_put,
  22532. },
  22533. {
  22534. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22535. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22536. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  22537. .info = msm_source_tracking_info,
  22538. .get = msm_audio_source_tracking_get,
  22539. },
  22540. {
  22541. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22542. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22543. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  22544. .info = msm_sound_focus_info,
  22545. .get = msm_voice_sound_focus_get,
  22546. .put = msm_voice_sound_focus_put,
  22547. },
  22548. {
  22549. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22550. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22551. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  22552. .info = msm_source_tracking_info,
  22553. .get = msm_voice_source_tracking_get,
  22554. },
  22555. {
  22556. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22557. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22558. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  22559. .info = msm_sound_focus_info,
  22560. .get = msm_audio_sound_focus_get,
  22561. .put = msm_audio_sound_focus_put,
  22562. },
  22563. {
  22564. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22565. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22566. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  22567. .info = msm_source_tracking_info,
  22568. .get = msm_audio_source_tracking_get,
  22569. },
  22570. {
  22571. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22572. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22573. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  22574. .info = msm_sound_focus_info,
  22575. .get = msm_voice_sound_focus_get,
  22576. .put = msm_voice_sound_focus_put,
  22577. },
  22578. {
  22579. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22580. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22581. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  22582. .info = msm_source_tracking_info,
  22583. .get = msm_voice_source_tracking_get,
  22584. },
  22585. {
  22586. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22587. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22588. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  22589. .info = msm_sound_focus_info,
  22590. .get = msm_audio_sound_focus_get,
  22591. .put = msm_audio_sound_focus_put,
  22592. },
  22593. {
  22594. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22595. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22596. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  22597. .info = msm_source_tracking_info,
  22598. .get = msm_audio_source_tracking_get,
  22599. },
  22600. {
  22601. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22602. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22603. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  22604. .info = msm_sound_focus_info,
  22605. .get = msm_audio_sound_focus_get,
  22606. .put = msm_audio_sound_focus_put,
  22607. },
  22608. {
  22609. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22610. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22611. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  22612. .info = msm_source_tracking_info,
  22613. .get = msm_audio_source_tracking_get,
  22614. },
  22615. };
  22616. static const struct snd_kcontrol_new msm_source_doa_tracking_controls[] = {
  22617. {
  22618. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22619. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22620. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  22621. .info = msm_doa_tracking_mon_info,
  22622. .get = msm_doa_tracking_mon_get,
  22623. },
  22624. };
  22625. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  22626. struct snd_ctl_elem_value *ucontrol)
  22627. {
  22628. int ret = 0;
  22629. int item;
  22630. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22631. pr_debug("%s item is %d\n", __func__,
  22632. ucontrol->value.enumerated.item[0]);
  22633. mutex_lock(&routing_lock);
  22634. item = ucontrol->value.enumerated.item[0];
  22635. if (item < e->items) {
  22636. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22637. __func__, e->shift_l, e->values[item]);
  22638. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22639. e->values[item] < MSM_BACKEND_DAI_MAX)
  22640. /* Enable feedback TX path */
  22641. ret = afe_spk_prot_feed_back_cfg(
  22642. msm_bedais[e->values[item]].port_id,
  22643. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  22644. else {
  22645. pr_debug("%s values are out of range item %d\n",
  22646. __func__, e->values[item]);
  22647. /* Disable feedback TX path */
  22648. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22649. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  22650. else
  22651. ret = -EINVAL;
  22652. }
  22653. } else {
  22654. pr_err("%s item value is out of range item\n", __func__);
  22655. ret = -EINVAL;
  22656. }
  22657. mutex_unlock(&routing_lock);
  22658. return ret;
  22659. }
  22660. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  22661. struct snd_ctl_elem_value *ucontrol)
  22662. {
  22663. int ret = 0;
  22664. int item;
  22665. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22666. pr_debug("%s item is %d\n", __func__,
  22667. ucontrol->value.enumerated.item[0]);
  22668. mutex_lock(&routing_lock);
  22669. item = ucontrol->value.enumerated.item[0];
  22670. if (item < e->items) {
  22671. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22672. __func__, e->shift_l, e->values[item]);
  22673. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22674. e->values[item] < MSM_BACKEND_DAI_MAX)
  22675. /* Enable feedback TX path */
  22676. ret = afe_spk_prot_feed_back_cfg(
  22677. msm_bedais[e->values[item]].port_id,
  22678. msm_bedais[e->shift_l].port_id,
  22679. 1, 1, 1);
  22680. else {
  22681. pr_debug("%s values are out of range item %d\n",
  22682. __func__, e->values[item]);
  22683. /* Disable feedback TX path */
  22684. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22685. ret = afe_spk_prot_feed_back_cfg(0,
  22686. 0, 0, 0, 0);
  22687. else
  22688. ret = -EINVAL;
  22689. }
  22690. } else {
  22691. pr_err("%s item value is out of range item\n", __func__);
  22692. ret = -EINVAL;
  22693. }
  22694. mutex_unlock(&routing_lock);
  22695. return ret;
  22696. }
  22697. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  22698. struct snd_ctl_elem_value *ucontrol)
  22699. {
  22700. pr_debug("%s\n", __func__);
  22701. return 0;
  22702. }
  22703. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  22704. struct snd_ctl_elem_value *ucontrol)
  22705. {
  22706. pr_debug("%s\n", __func__);
  22707. ucontrol->value.enumerated.item[0] = 0;
  22708. return 0;
  22709. }
  22710. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  22711. "ZERO", "SLIM4_TX"
  22712. };
  22713. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  22714. "ZERO", "SLIM4_TX"
  22715. };
  22716. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  22717. "ZERO", "WSA_CDC_DMA_TX_0"
  22718. };
  22719. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  22720. "ZERO", "WSA_CDC_DMA_TX_0"
  22721. };
  22722. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  22723. "ZERO", "SENARY_TX"
  22724. };
  22725. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  22726. "ZERO", "INT5_MI2S_TX"
  22727. };
  22728. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  22729. "ZERO", "INT5_MI2S_TX"
  22730. };
  22731. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  22732. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  22733. };
  22734. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  22735. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  22736. };
  22737. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  22738. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  22739. };
  22740. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  22741. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  22742. };
  22743. static const int mi2s_rx_vi_fb_tx_value[] = {
  22744. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  22745. };
  22746. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  22747. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  22748. };
  22749. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  22750. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  22751. };
  22752. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  22753. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  22754. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  22755. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  22756. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  22757. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  22758. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  22759. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  22760. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  22761. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  22762. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  22763. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  22764. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  22765. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  22766. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  22767. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  22768. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  22769. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  22770. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  22771. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  22772. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  22773. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  22774. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  22775. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  22776. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  22777. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  22778. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  22779. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  22780. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  22781. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  22782. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  22783. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  22784. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22785. spkr_prot_put_vi_lch_port);
  22786. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  22787. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  22788. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22789. spkr_prot_put_vi_rch_port);
  22790. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  22791. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  22792. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22793. spkr_prot_put_vi_lch_port);
  22794. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  22795. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  22796. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22797. spkr_prot_put_vi_rch_port);
  22798. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  22799. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  22800. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  22801. spkr_prot_put_vi_lch_port);
  22802. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  22803. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  22804. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  22805. spkr_prot_put_vi_lch_port);
  22806. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  22807. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  22808. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  22809. spkr_prot_put_vi_rch_port);
  22810. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  22811. /* Frontend AIF */
  22812. /* Widget name equals to Front-End DAI name<Need confirmation>,
  22813. * Stream name must contains substring of front-end dai name
  22814. */
  22815. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  22816. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  22817. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  22818. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  22819. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  22820. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  22821. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  22822. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  22823. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  22824. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  22825. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  22826. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  22827. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  22828. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  22829. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  22830. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  22831. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  22832. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  22833. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  22834. SND_SOC_DAPM_AIF_IN("MM_DL23", "MultiMedia23 Playback", 0, 0, 0, 0),
  22835. SND_SOC_DAPM_AIF_IN("MM_DL24", "MultiMedia24 Playback", 0, 0, 0, 0),
  22836. SND_SOC_DAPM_AIF_IN("MM_DL25", "MultiMedia25 Playback", 0, 0, 0, 0),
  22837. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  22838. SND_SOC_DAPM_AIF_IN("MM_DL31", "MultiMedia31 Playback", 0, 0, 0, 0),
  22839. SND_SOC_DAPM_AIF_IN("MM_DL32", "MultiMedia32 Playback", 0, 0, 0, 0),
  22840. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  22841. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  22842. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  22843. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  22844. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  22845. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  22846. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  22847. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  22848. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  22849. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  22850. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  22851. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  22852. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  22853. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  22854. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  22855. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  22856. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  22857. SND_SOC_DAPM_AIF_OUT("MM_UL23", "MultiMedia23 Capture", 0, 0, 0, 0),
  22858. SND_SOC_DAPM_AIF_OUT("MM_UL24", "MultiMedia24 Capture", 0, 0, 0, 0),
  22859. SND_SOC_DAPM_AIF_OUT("MM_UL25", "MultiMedia25 Capture", 0, 0, 0, 0),
  22860. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  22861. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  22862. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  22863. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  22864. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  22865. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  22866. "VoiceMMode1 Playback", 0, 0, 0, 0),
  22867. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  22868. "VoiceMMode1 Capture", 0, 0, 0, 0),
  22869. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  22870. "VoiceMMode2 Playback", 0, 0, 0, 0),
  22871. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  22872. "VoiceMMode2 Capture", 0, 0, 0, 0),
  22873. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  22874. 0, 0, 0, 0),
  22875. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  22876. 0, 0, 0, 0),
  22877. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  22878. 0, 0, 0, 0),
  22879. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  22880. 0, 0, 0, 0),
  22881. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  22882. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  22883. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  22884. 0, 0, 0, 0),
  22885. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  22886. 0, 0, 0, 0),
  22887. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  22888. 0, 0, 0, 0),
  22889. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  22890. 0, 0, 0, 0),
  22891. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  22892. 0, 0, 0, 0),
  22893. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  22894. 0, 0, 0, 0),
  22895. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  22896. 0, 0, 0, 0),
  22897. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  22898. 0, 0, 0, 0),
  22899. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  22900. 0, 0, 0, 0),
  22901. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  22902. 0, 0, 0, 0),
  22903. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  22904. 0, 0, 0, 0),
  22905. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  22906. 0, 0, 0, 0),
  22907. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  22908. 0, 0, 0, 0),
  22909. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  22910. 0, 0, 0, 0),
  22911. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  22912. 0, 0, 0, 0),
  22913. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  22914. 0, 0, 0, 0),
  22915. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  22916. 0, 0, 0, 0),
  22917. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  22918. 0, 0, 0, 0),
  22919. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  22920. 0, 0, 0, 0),
  22921. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  22922. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  22923. 0, 0, 0, 0),
  22924. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  22925. "INT0 MI2S_RX Hostless Playback",
  22926. 0, 0, 0, 0),
  22927. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  22928. "INT4 MI2S_RX Hostless Playback",
  22929. 0, 0, 0, 0),
  22930. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  22931. "Primary MI2S_RX Hostless Playback",
  22932. 0, 0, 0, 0),
  22933. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  22934. "Secondary MI2S_RX Hostless Playback",
  22935. 0, 0, 0, 0),
  22936. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  22937. "Tertiary MI2S_RX Hostless Playback",
  22938. 0, 0, 0, 0),
  22939. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  22940. "Quaternary MI2S_RX Hostless Playback",
  22941. 0, 0, 0, 0),
  22942. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  22943. "Quinary MI2S_RX Hostless Playback",
  22944. 0, 0, 0, 0),
  22945. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  22946. "Senary MI2S_RX Hostless Playback",
  22947. 0, 0, 0, 0),
  22948. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  22949. 0, 0, 0, 0),
  22950. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  22951. 0, 0, 0, 0),
  22952. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  22953. 0, 0, 0, 0),
  22954. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  22955. 0, 0, 0, 0),
  22956. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  22957. 0, 0, 0, 0),
  22958. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  22959. "INT3 MI2S_TX Hostless Capture",
  22960. 0, 0, 0, 0),
  22961. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  22962. "Tertiary MI2S_TX Hostless Capture",
  22963. 0, 0, 0, 0),
  22964. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  22965. "Secondary MI2S_TX Hostless Capture",
  22966. 0, 0, 0, 0),
  22967. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  22968. "Primary MI2S_TX Hostless Capture",
  22969. 0, 0, 0, 0),
  22970. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  22971. 0, 0, 0, 0),
  22972. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  22973. 0, 0, 0, 0),
  22974. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  22975. "Quaternary MI2S_TX Hostless Capture",
  22976. 0, 0, 0, 0),
  22977. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  22978. "Quinary MI2S_TX Hostless Capture",
  22979. 0, 0, 0, 0),
  22980. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  22981. "Senary MI2S_TX Hostless Capture",
  22982. 0, 0, 0, 0),
  22983. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  22984. "Primary TDM0 Hostless Playback",
  22985. 0, 0, 0, 0),
  22986. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  22987. "Primary TDM0 Hostless Capture",
  22988. 0, 0, 0, 0),
  22989. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  22990. "Primary TDM1 Hostless Playback",
  22991. 0, 0, 0, 0),
  22992. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  22993. "Primary TDM1 Hostless Capture",
  22994. 0, 0, 0, 0),
  22995. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  22996. "Primary TDM2 Hostless Playback",
  22997. 0, 0, 0, 0),
  22998. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  22999. "Primary TDM2 Hostless Capture",
  23000. 0, 0, 0, 0),
  23001. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  23002. "Primary TDM3 Hostless Playback",
  23003. 0, 0, 0, 0),
  23004. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  23005. "Primary TDM3 Hostless Capture",
  23006. 0, 0, 0, 0),
  23007. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  23008. "Primary TDM4 Hostless Playback",
  23009. 0, 0, 0, 0),
  23010. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  23011. "Primary TDM4 Hostless Capture",
  23012. 0, 0, 0, 0),
  23013. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  23014. "Primary TDM5 Hostless Playback",
  23015. 0, 0, 0, 0),
  23016. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  23017. "Primary TDM5 Hostless Capture",
  23018. 0, 0, 0, 0),
  23019. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  23020. "Primary TDM6 Hostless Playback",
  23021. 0, 0, 0, 0),
  23022. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  23023. "Primary TDM6 Hostless Capture",
  23024. 0, 0, 0, 0),
  23025. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  23026. "Primary TDM7 Hostless Playback",
  23027. 0, 0, 0, 0),
  23028. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  23029. "Primary TDM7 Hostless Capture",
  23030. 0, 0, 0, 0),
  23031. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  23032. "Secondary TDM0 Hostless Playback",
  23033. 0, 0, 0, 0),
  23034. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  23035. "Secondary TDM0 Hostless Capture",
  23036. 0, 0, 0, 0),
  23037. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  23038. "Secondary TDM1 Hostless Playback",
  23039. 0, 0, 0, 0),
  23040. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  23041. "Secondary TDM1 Hostless Capture",
  23042. 0, 0, 0, 0),
  23043. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  23044. "Secondary TDM2 Hostless Playback",
  23045. 0, 0, 0, 0),
  23046. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  23047. "Secondary TDM2 Hostless Capture",
  23048. 0, 0, 0, 0),
  23049. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  23050. "Secondary TDM3 Hostless Playback",
  23051. 0, 0, 0, 0),
  23052. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  23053. "Secondary TDM3 Hostless Capture",
  23054. 0, 0, 0, 0),
  23055. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  23056. "Secondary TDM4 Hostless Playback",
  23057. 0, 0, 0, 0),
  23058. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  23059. "Secondary TDM4 Hostless Capture",
  23060. 0, 0, 0, 0),
  23061. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  23062. "Secondary TDM5 Hostless Playback",
  23063. 0, 0, 0, 0),
  23064. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  23065. "Secondary TDM5 Hostless Capture",
  23066. 0, 0, 0, 0),
  23067. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  23068. "Secondary TDM6 Hostless Playback",
  23069. 0, 0, 0, 0),
  23070. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  23071. "Secondary TDM6 Hostless Capture",
  23072. 0, 0, 0, 0),
  23073. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  23074. "Secondary TDM7 Hostless Playback",
  23075. 0, 0, 0, 0),
  23076. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  23077. "Secondary TDM7 Hostless Capture",
  23078. 0, 0, 0, 0),
  23079. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  23080. "Tertiary TDM0 Hostless Playback",
  23081. 0, 0, 0, 0),
  23082. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  23083. "Tertiary TDM0 Hostless Capture",
  23084. 0, 0, 0, 0),
  23085. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  23086. "Tertiary TDM1 Hostless Playback",
  23087. 0, 0, 0, 0),
  23088. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  23089. "Tertiary TDM1 Hostless Capture",
  23090. 0, 0, 0, 0),
  23091. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  23092. "Tertiary TDM2 Hostless Playback",
  23093. 0, 0, 0, 0),
  23094. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  23095. "Tertiary TDM2 Hostless Capture",
  23096. 0, 0, 0, 0),
  23097. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  23098. "Tertiary TDM3 Hostless Playback",
  23099. 0, 0, 0, 0),
  23100. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  23101. "Tertiary TDM3 Hostless Capture",
  23102. 0, 0, 0, 0),
  23103. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  23104. "Tertiary TDM4 Hostless Playback",
  23105. 0, 0, 0, 0),
  23106. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  23107. "Tertiary TDM4 Hostless Capture",
  23108. 0, 0, 0, 0),
  23109. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  23110. "Tertiary TDM5 Hostless Playback",
  23111. 0, 0, 0, 0),
  23112. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  23113. "Tertiary TDM5 Hostless Capture",
  23114. 0, 0, 0, 0),
  23115. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  23116. "Tertiary TDM6 Hostless Playback",
  23117. 0, 0, 0, 0),
  23118. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  23119. "Tertiary TDM6 Hostless Capture",
  23120. 0, 0, 0, 0),
  23121. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  23122. "Tertiary TDM7 Hostless Playback",
  23123. 0, 0, 0, 0),
  23124. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  23125. "Tertiary TDM7 Hostless Capture",
  23126. 0, 0, 0, 0),
  23127. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  23128. "Quaternary TDM0 Hostless Playback",
  23129. 0, 0, 0, 0),
  23130. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  23131. "Quaternary TDM0 Hostless Capture",
  23132. 0, 0, 0, 0),
  23133. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  23134. "Quaternary TDM1 Hostless Playback",
  23135. 0, 0, 0, 0),
  23136. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  23137. "Quaternary TDM1 Hostless Capture",
  23138. 0, 0, 0, 0),
  23139. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  23140. "Quaternary TDM2 Hostless Playback",
  23141. 0, 0, 0, 0),
  23142. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  23143. "Quaternary TDM2 Hostless Capture",
  23144. 0, 0, 0, 0),
  23145. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  23146. "Quaternary TDM3 Hostless Playback",
  23147. 0, 0, 0, 0),
  23148. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  23149. "Quaternary TDM3 Hostless Capture",
  23150. 0, 0, 0, 0),
  23151. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  23152. "Quaternary TDM4 Hostless Playback",
  23153. 0, 0, 0, 0),
  23154. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  23155. "Quaternary TDM4 Hostless Capture",
  23156. 0, 0, 0, 0),
  23157. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  23158. "Quaternary TDM5 Hostless Playback",
  23159. 0, 0, 0, 0),
  23160. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  23161. "Quaternary TDM5 Hostless Capture",
  23162. 0, 0, 0, 0),
  23163. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  23164. "Quaternary TDM6 Hostless Playback",
  23165. 0, 0, 0, 0),
  23166. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  23167. "Quaternary TDM6 Hostless Capture",
  23168. 0, 0, 0, 0),
  23169. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  23170. "Quaternary TDM7 Hostless Playback",
  23171. 0, 0, 0, 0),
  23172. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  23173. "Quaternary TDM7 Hostless Capture",
  23174. 0, 0, 0, 0),
  23175. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  23176. "Quinary TDM0 Hostless Playback",
  23177. 0, 0, 0, 0),
  23178. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  23179. "Quinary TDM0 Hostless Capture",
  23180. 0, 0, 0, 0),
  23181. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  23182. "Quinary TDM1 Hostless Playback",
  23183. 0, 0, 0, 0),
  23184. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  23185. "Quinary TDM1 Hostless Capture",
  23186. 0, 0, 0, 0),
  23187. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  23188. "Quinary TDM2 Hostless Playback",
  23189. 0, 0, 0, 0),
  23190. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  23191. "Quinary TDM2 Hostless Capture",
  23192. 0, 0, 0, 0),
  23193. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  23194. "Quinary TDM3 Hostless Playback",
  23195. 0, 0, 0, 0),
  23196. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  23197. "Quinary TDM3 Hostless Capture",
  23198. 0, 0, 0, 0),
  23199. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  23200. "Quinary TDM4 Hostless Playback",
  23201. 0, 0, 0, 0),
  23202. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  23203. "Quinary TDM4 Hostless Capture",
  23204. 0, 0, 0, 0),
  23205. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  23206. "Quinary TDM5 Hostless Playback",
  23207. 0, 0, 0, 0),
  23208. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  23209. "Quinary TDM5 Hostless Capture",
  23210. 0, 0, 0, 0),
  23211. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  23212. "Quinary TDM6 Hostless Playback",
  23213. 0, 0, 0, 0),
  23214. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  23215. "Quinary TDM6 Hostless Capture",
  23216. 0, 0, 0, 0),
  23217. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  23218. "Quinary TDM7 Hostless Playback",
  23219. 0, 0, 0, 0),
  23220. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  23221. "Quinary TDM7 Hostless Capture",
  23222. 0, 0, 0, 0),
  23223. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  23224. "Senary TDM0 Hostless Playback",
  23225. 0, 0, 0, 0),
  23226. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  23227. "Senary TDM0 Hostless Capture",
  23228. 0, 0, 0, 0),
  23229. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  23230. "Senary TDM1 Hostless Playback",
  23231. 0, 0, 0, 0),
  23232. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  23233. "Senary TDM1 Hostless Capture",
  23234. 0, 0, 0, 0),
  23235. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  23236. "Senary TDM2 Hostless Playback",
  23237. 0, 0, 0, 0),
  23238. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  23239. "Senary TDM2 Hostless Capture",
  23240. 0, 0, 0, 0),
  23241. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  23242. "Senary TDM3 Hostless Playback",
  23243. 0, 0, 0, 0),
  23244. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  23245. "Senary TDM3 Hostless Capture",
  23246. 0, 0, 0, 0),
  23247. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  23248. "Senary TDM4 Hostless Playback",
  23249. 0, 0, 0, 0),
  23250. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  23251. "Senary TDM4 Hostless Capture",
  23252. 0, 0, 0, 0),
  23253. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  23254. "Senary TDM5 Hostless Playback",
  23255. 0, 0, 0, 0),
  23256. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  23257. "Senary TDM5 Hostless Capture",
  23258. 0, 0, 0, 0),
  23259. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  23260. "Senary TDM6 Hostless Playback",
  23261. 0, 0, 0, 0),
  23262. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  23263. "Senary TDM6 Hostless Capture",
  23264. 0, 0, 0, 0),
  23265. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  23266. "Senary TDM7 Hostless Playback",
  23267. 0, 0, 0, 0),
  23268. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  23269. "Senary TDM7 Hostless Capture",
  23270. 0, 0, 0, 0),
  23271. /* LSM */
  23272. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  23273. 0, 0, 0, 0),
  23274. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  23275. 0, 0, 0, 0),
  23276. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  23277. 0, 0, 0, 0),
  23278. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  23279. 0, 0, 0, 0),
  23280. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  23281. 0, 0, 0, 0),
  23282. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  23283. 0, 0, 0, 0),
  23284. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  23285. 0, 0, 0, 0),
  23286. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  23287. 0, 0, 0, 0),
  23288. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  23289. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  23290. /* Backend AIF */
  23291. /* Stream name equals to backend dai link stream name */
  23292. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  23293. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  23294. 0, 0, 0, 0),
  23295. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  23296. 0, 0, 0, 0),
  23297. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  23298. 0, 0, 0, 0),
  23299. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  23300. 0, 0, 0, 0),
  23301. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  23302. 0, 0, 0, 0),
  23303. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  23304. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  23305. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  23306. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  23307. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  23308. 0, 0, 0, 0),
  23309. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  23310. 0, 0, 0, 0),
  23311. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  23312. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  23313. 0, 0, 0, 0),
  23314. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  23315. 0, 0, 0, 0),
  23316. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  23317. 0, 0, 0, 0),
  23318. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  23319. "Secondary MI2S Playback SD1",
  23320. 0, 0, 0, 0),
  23321. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  23322. 0, 0, 0, 0),
  23323. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  23324. 0, 0, 0, 0),
  23325. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  23326. 0, 0, 0, 0),
  23327. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  23328. 0, 0, 0, 0),
  23329. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  23330. 0, 0, 0, 0),
  23331. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  23332. 0, 0, 0, 0),
  23333. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  23334. 0, 0, 0, 0),
  23335. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  23336. 0, 0, 0, 0),
  23337. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  23338. 0, 0, 0, 0),
  23339. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  23340. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  23341. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  23342. 0, 0, 0, 0),
  23343. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  23344. 0, 0, 0, 0),
  23345. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  23346. 0, 0, 0, 0),
  23347. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  23348. 0, 0, 0, 0),
  23349. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  23350. 0, 0, 0, 0),
  23351. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  23352. 0, 0, 0, 0),
  23353. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  23354. 0, 0, 0, 0),
  23355. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  23356. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  23357. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  23358. 0, 0, 0, 0),
  23359. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  23360. 0, 0, 0, 0),
  23361. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  23362. 0, 0, 0, 0),
  23363. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  23364. 0, 0, 0, 0),
  23365. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  23366. 0, 0, 0, 0),
  23367. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  23368. 0, 0, 0, 0),
  23369. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  23370. 0, 0, 0, 0),
  23371. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  23372. 0, 0, 0, 0),
  23373. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  23374. 0, 0, 0, 0),
  23375. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  23376. 0, 0, 0, 0),
  23377. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  23378. 0, 0, 0, 0),
  23379. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  23380. 0, 0, 0, 0),
  23381. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  23382. 0, 0, 0, 0),
  23383. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  23384. 0, 0, 0, 0),
  23385. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  23386. 0, 0, 0, 0),
  23387. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  23388. 0, 0, 0, 0),
  23389. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  23390. 0, 0, 0, 0),
  23391. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  23392. 0, 0, 0, 0),
  23393. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  23394. 0, 0, 0, 0),
  23395. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  23396. 0, 0, 0, 0),
  23397. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  23398. 0, 0, 0, 0),
  23399. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  23400. 0, 0, 0, 0),
  23401. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  23402. 0, 0, 0, 0),
  23403. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  23404. 0, 0, 0, 0),
  23405. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  23406. 0, 0, 0, 0),
  23407. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  23408. 0, 0, 0, 0),
  23409. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  23410. 0, 0, 0, 0),
  23411. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  23412. 0, 0, 0, 0),
  23413. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  23414. 0, 0, 0, 0),
  23415. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  23416. 0, 0, 0, 0),
  23417. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  23418. 0, 0, 0, 0),
  23419. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  23420. 0, 0, 0, 0),
  23421. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  23422. 0, 0, 0, 0),
  23423. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  23424. 0, 0, 0, 0),
  23425. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  23426. 0, 0, 0, 0),
  23427. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  23428. 0, 0, 0, 0),
  23429. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  23430. 0, 0, 0, 0),
  23431. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  23432. 0, 0, 0, 0),
  23433. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  23434. 0, 0, 0, 0),
  23435. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  23436. 0, 0, 0, 0),
  23437. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  23438. 0, 0, 0, 0),
  23439. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  23440. 0, 0, 0, 0),
  23441. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  23442. 0, 0, 0, 0),
  23443. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  23444. 0, 0, 0, 0),
  23445. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  23446. 0, 0, 0, 0),
  23447. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  23448. 0, 0, 0, 0),
  23449. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  23450. 0, 0, 0, 0),
  23451. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  23452. 0, 0, 0, 0),
  23453. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  23454. 0, 0, 0, 0),
  23455. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  23456. 0, 0, 0, 0),
  23457. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  23458. 0, 0, 0, 0),
  23459. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  23460. 0, 0, 0, 0),
  23461. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  23462. 0, 0, 0, 0),
  23463. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  23464. 0, 0, 0, 0),
  23465. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  23466. 0, 0, 0, 0),
  23467. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  23468. 0, 0, 0, 0),
  23469. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  23470. 0, 0, 0, 0),
  23471. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  23472. 0, 0, 0, 0),
  23473. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  23474. 0, 0, 0, 0),
  23475. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  23476. 0, 0, 0, 0),
  23477. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  23478. 0, 0, 0, 0),
  23479. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  23480. 0, 0, 0, 0),
  23481. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  23482. 0, 0, 0, 0),
  23483. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  23484. 0, 0, 0, 0),
  23485. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  23486. 0, 0, 0, 0),
  23487. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  23488. 0, 0, 0, 0),
  23489. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  23490. 0, 0, 0, 0),
  23491. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  23492. 0, 0, 0, 0),
  23493. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  23494. 0, 0, 0, 0),
  23495. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  23496. 0, 0, 0, 0),
  23497. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  23498. 0, 0, 0, 0),
  23499. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  23500. 0, 0, 0, 0),
  23501. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  23502. 0, 0, 0, 0),
  23503. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  23504. 0, 0, 0, 0),
  23505. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  23506. 0, 0, 0, 0),
  23507. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  23508. 0, 0, 0, 0),
  23509. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  23510. 0, 0, 0, 0),
  23511. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  23512. 0, 0, 0, 0),
  23513. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  23514. 0, 0, 0, 0),
  23515. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  23516. 0, 0, 0, 0),
  23517. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  23518. 0, 0, 0, 0),
  23519. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  23520. 0, 0, 0, 0),
  23521. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  23522. 0, 0, 0, 0),
  23523. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  23524. 0, 0, 0, 0),
  23525. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  23526. 0, 0, 0, 0),
  23527. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  23528. 0, 0, 0, 0),
  23529. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  23530. 0, 0, 0, 0),
  23531. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  23532. 0, 0, 0, 0),
  23533. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  23534. 0, 0, 0, 0),
  23535. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  23536. 0, 0, 0, 0),
  23537. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  23538. 0, 0, 0, 0),
  23539. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  23540. 0, 0, 0, 0),
  23541. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  23542. 0, 0, 0, 0),
  23543. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  23544. 0, 0, 0, 0),
  23545. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  23546. 0, 0, 0, 0),
  23547. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  23548. 0, 0, 0, 0),
  23549. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  23550. 0, 0, 0, 0),
  23551. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  23552. 0, 0, 0, 0),
  23553. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  23554. 0, 0, 0, 0),
  23555. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  23556. 0, 0, 0, 0),
  23557. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  23558. 0, 0, 0, 0),
  23559. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  23560. 0, 0, 0, 0),
  23561. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  23562. 0, 0, 0, 0),
  23563. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  23564. 0, 0, 0, 0),
  23565. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  23566. 0, 0, 0, 0),
  23567. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  23568. 0, 0, 0, 0),
  23569. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  23570. 0, 0, 0, 0),
  23571. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  23572. 0, 0, 0, 0),
  23573. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  23574. 0, 0, 0, 0),
  23575. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  23576. 0, 0, 0, 0),
  23577. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  23578. 0, 0, 0, 0),
  23579. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  23580. 0, 0, 0, 0),
  23581. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  23582. 0, 0, 0, 0),
  23583. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  23584. 0, 0, 0, 0),
  23585. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  23586. 0, 0, 0, 0),
  23587. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  23588. 0, 0, 0, 0),
  23589. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  23590. 0, 0, 0, 0),
  23591. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  23592. 0, 0, 0, 0),
  23593. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  23594. 0, 0, 0, 0),
  23595. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  23596. 0, 0, 0, 0),
  23597. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  23598. 0, 0, 0, 0),
  23599. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  23600. 0, 0, 0, 0),
  23601. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  23602. 0, 0, 0, 0),
  23603. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  23604. 0, 0, 0, 0),
  23605. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  23606. 0, 0, 0, 0),
  23607. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  23608. 0, 0, 0, 0),
  23609. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  23610. 0, 0, 0, 0),
  23611. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  23612. 0, 0, 0, 0),
  23613. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  23614. 0, 0, 0, 0),
  23615. /* incall */
  23616. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  23617. 0, 0, 0, 0),
  23618. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  23619. 0, 0, 0, 0),
  23620. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  23621. 0, 0, 0, 0),
  23622. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  23623. 0, 0, 0, 0),
  23624. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  23625. 0, 0, 0, 0),
  23626. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  23627. 0, 0, 0, 0),
  23628. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  23629. 0, 0, 0, 0),
  23630. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  23631. 0, 0, 0, 0),
  23632. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  23633. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  23634. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  23635. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  23636. 0, 0, 0, 0),
  23637. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  23638. 0, 0, 0, 0),
  23639. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  23640. 0, 0, 0, 0),
  23641. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  23642. 0, 0, 0, 0),
  23643. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  23644. 0, 0, 0, 0),
  23645. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  23646. 0, 0, 0, 0),
  23647. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  23648. 0, 0, 0, 0),
  23649. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  23650. 0, 0, 0, 0),
  23651. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  23652. 0, 0, 0, 0),
  23653. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  23654. 0, 0, 0, 0),
  23655. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  23656. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  23657. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  23658. 0, 0, 0, 0),
  23659. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  23660. 0, 0, 0, 0),
  23661. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  23662. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  23663. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  23664. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  23665. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  23666. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  23667. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  23668. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  23669. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  23670. /* In- call recording */
  23671. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  23672. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  23673. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  23674. 0, 0, 0, 0),
  23675. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  23676. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  23677. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  23678. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  23679. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  23680. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  23681. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  23682. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  23683. SND_SOC_DAPM_AIF_OUT("PROXY_RX", "Proxy Playback", 0, 0, 0, 0),
  23684. SND_SOC_DAPM_AIF_IN("PROXY_TX", "Proxy Capture", 0, 0, 0, 0),
  23685. /* Switch Definitions */
  23686. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  23687. &slim_fm_switch_mixer_controls),
  23688. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  23689. &slim1_fm_switch_mixer_controls),
  23690. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  23691. &slim3_fm_switch_mixer_controls),
  23692. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  23693. &slim4_fm_switch_mixer_controls),
  23694. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  23695. &slim6_fm_switch_mixer_controls),
  23696. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23697. &pcm_rx_switch_mixer_controls),
  23698. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23699. &int0_mi2s_rx_switch_mixer_controls),
  23700. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23701. &int4_mi2s_rx_switch_mixer_controls),
  23702. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23703. &pri_mi2s_rx_switch_mixer_controls),
  23704. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23705. &sec_mi2s_rx_switch_mixer_controls),
  23706. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23707. &tert_mi2s_rx_switch_mixer_controls),
  23708. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23709. &quat_mi2s_rx_switch_mixer_controls),
  23710. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23711. &quin_mi2s_rx_switch_mixer_controls),
  23712. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  23713. &sco_slim7_switch_mixer_controls),
  23714. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23715. &sen_mi2s_rx_switch_mixer_controls),
  23716. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23717. &hfp_pri_aux_switch_mixer_controls),
  23718. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23719. &hfp_aux_switch_mixer_controls),
  23720. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  23721. &hfp_int_switch_mixer_controls),
  23722. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23723. &hfp_slim7_switch_mixer_controls),
  23724. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  23725. &usb_switch_mixer_controls),
  23726. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23727. &a2dp_slim7_switch_mixer_controls),
  23728. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23729. &cdc_dma_wsa_switch_mixer_controls),
  23730. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23731. &cdc_dma_rx_switch_mixer_controls),
  23732. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_1_DL_HL", SND_SOC_NOPM, 0, 0,
  23733. &cdc_dma_rx_1_switch_mixer_controls),
  23734. /* Mixer definitions */
  23735. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23736. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  23737. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23738. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  23739. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23740. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  23741. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23742. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  23743. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23744. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  23745. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23746. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  23747. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23748. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  23749. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  23750. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  23751. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  23752. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  23753. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  23754. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  23755. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23756. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  23757. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23758. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  23759. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23760. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  23761. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23762. quaternary_mi2s_rx_mixer_controls,
  23763. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  23764. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23765. tertiary_mi2s_rx_mixer_controls,
  23766. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  23767. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23768. secondary_mi2s_rx_mixer_controls,
  23769. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  23770. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23771. secondary_mi2s_rx2_mixer_controls,
  23772. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  23773. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23774. primary_mi2s_rx_mixer_controls,
  23775. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  23776. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23777. int0_mi2s_rx_mixer_controls,
  23778. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  23779. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23780. int4_mi2s_rx_mixer_controls,
  23781. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  23782. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23783. quinary_mi2s_rx_mixer_controls,
  23784. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  23785. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23786. senary_mi2s_rx_mixer_controls,
  23787. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  23788. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23789. pri_tdm_rx_0_mixer_controls,
  23790. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  23791. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23792. pri_tdm_rx_1_mixer_controls,
  23793. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  23794. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23795. pri_tdm_rx_2_mixer_controls,
  23796. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  23797. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23798. pri_tdm_rx_3_mixer_controls,
  23799. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  23800. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23801. pri_tdm_tx_0_mixer_controls,
  23802. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  23803. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23804. sec_tdm_rx_0_mixer_controls,
  23805. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  23806. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23807. sec_tdm_rx_1_mixer_controls,
  23808. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  23809. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23810. sec_tdm_rx_2_mixer_controls,
  23811. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  23812. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23813. sec_tdm_rx_3_mixer_controls,
  23814. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  23815. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23816. sec_tdm_tx_0_mixer_controls,
  23817. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  23818. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23819. tert_tdm_rx_0_mixer_controls,
  23820. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  23821. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23822. tert_tdm_tx_0_mixer_controls,
  23823. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  23824. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23825. tert_tdm_rx_1_mixer_controls,
  23826. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  23827. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23828. tert_tdm_rx_2_mixer_controls,
  23829. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  23830. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23831. tert_tdm_rx_3_mixer_controls,
  23832. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  23833. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23834. tert_tdm_rx_4_mixer_controls,
  23835. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  23836. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23837. quat_tdm_rx_0_mixer_controls,
  23838. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  23839. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23840. quat_tdm_tx_0_mixer_controls,
  23841. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  23842. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23843. quat_tdm_rx_1_mixer_controls,
  23844. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  23845. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23846. quat_tdm_rx_2_mixer_controls,
  23847. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  23848. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23849. quat_tdm_rx_3_mixer_controls,
  23850. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  23851. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23852. quin_tdm_rx_0_mixer_controls,
  23853. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  23854. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23855. quin_tdm_tx_0_mixer_controls,
  23856. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  23857. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23858. quin_tdm_rx_1_mixer_controls,
  23859. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  23860. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23861. quin_tdm_tx_1_mixer_controls,
  23862. ARRAY_SIZE(quin_tdm_tx_1_mixer_controls)),
  23863. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23864. quin_tdm_rx_2_mixer_controls,
  23865. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  23866. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23867. quin_tdm_tx_2_mixer_controls,
  23868. ARRAY_SIZE(quin_tdm_tx_2_mixer_controls)),
  23869. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23870. quin_tdm_rx_3_mixer_controls,
  23871. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  23872. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23873. quin_tdm_tx_3_mixer_controls,
  23874. ARRAY_SIZE(quin_tdm_tx_3_mixer_controls)),
  23875. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23876. sen_tdm_tx_0_mixer_controls,
  23877. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  23878. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23879. sen_tdm_rx_0_mixer_controls,
  23880. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  23881. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23882. sen_tdm_rx_1_mixer_controls,
  23883. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  23884. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23885. sen_tdm_rx_2_mixer_controls,
  23886. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  23887. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23888. sen_tdm_rx_3_mixer_controls,
  23889. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  23890. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23891. pri_meta_mi2s_rx_mixer_controls,
  23892. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  23893. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23894. sec_meta_mi2s_rx_mixer_controls,
  23895. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  23896. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23897. wsa_cdc_dma_rx_0_mixer_controls,
  23898. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  23899. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23900. wsa_cdc_dma_rx_1_mixer_controls,
  23901. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  23902. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23903. rx_cdc_dma_rx_0_mixer_controls,
  23904. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  23905. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23906. rx_cdc_dma_rx_1_mixer_controls,
  23907. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  23908. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23909. rx_cdc_dma_rx_2_mixer_controls,
  23910. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  23911. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23912. rx_cdc_dma_rx_3_mixer_controls,
  23913. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  23914. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23915. rx_cdc_dma_rx_4_mixer_controls,
  23916. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  23917. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23918. rx_cdc_dma_rx_5_mixer_controls,
  23919. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  23920. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23921. rx_cdc_dma_rx_6_mixer_controls,
  23922. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  23923. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23924. rx_cdc_dma_rx_7_mixer_controls,
  23925. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  23926. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  23927. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  23928. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  23929. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  23930. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  23931. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  23932. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  23933. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  23934. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  23935. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  23936. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  23937. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  23938. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  23939. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  23940. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  23941. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  23942. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  23943. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  23944. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  23945. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  23946. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  23947. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  23948. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  23949. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  23950. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  23951. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  23952. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  23953. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  23954. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  23955. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  23956. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  23957. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  23958. SND_SOC_DAPM_MIXER("MultiMedia23 Mixer", SND_SOC_NOPM, 0, 0,
  23959. mmul23_mixer_controls, ARRAY_SIZE(mmul23_mixer_controls)),
  23960. SND_SOC_DAPM_MIXER("MultiMedia24 Mixer", SND_SOC_NOPM, 0, 0,
  23961. mmul24_mixer_controls, ARRAY_SIZE(mmul24_mixer_controls)),
  23962. SND_SOC_DAPM_MIXER("MultiMedia25 Mixer", SND_SOC_NOPM, 0, 0,
  23963. mmul25_mixer_controls, ARRAY_SIZE(mmul25_mixer_controls)),
  23964. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  23965. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  23966. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  23967. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  23968. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  23969. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  23970. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  23971. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  23972. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23973. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  23974. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23975. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  23976. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23977. tert_auxpcm_rx_mixer_controls,
  23978. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  23979. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23980. quat_auxpcm_rx_mixer_controls,
  23981. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  23982. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23983. quin_auxpcm_rx_mixer_controls,
  23984. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  23985. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23986. sen_auxpcm_rx_mixer_controls,
  23987. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  23988. /* incall */
  23989. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  23990. incall_music_delivery_mixer_controls,
  23991. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  23992. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23993. incall_music2_delivery_mixer_controls,
  23994. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  23995. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23996. slimbus_4_rx_mixer_controls,
  23997. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  23998. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23999. slimbus_6_rx_mixer_controls,
  24000. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  24001. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24002. usb_audio_rx_mixer_controls,
  24003. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  24004. /* Voice Mixer */
  24005. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  24006. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  24007. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  24008. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  24009. SND_SOC_NOPM, 0, 0,
  24010. sec_i2s_rx_voice_mixer_controls,
  24011. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  24012. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  24013. SND_SOC_NOPM, 0, 0,
  24014. sec_mi2s_rx_voice_mixer_controls,
  24015. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  24016. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  24017. SND_SOC_NOPM, 0, 0,
  24018. slimbus_rx_voice_mixer_controls,
  24019. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  24020. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  24021. SND_SOC_NOPM, 0, 0,
  24022. bt_sco_rx_voice_mixer_controls,
  24023. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  24024. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  24025. SND_SOC_NOPM, 0, 0,
  24026. afe_pcm_rx_voice_mixer_controls,
  24027. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  24028. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  24029. SND_SOC_NOPM, 0, 0,
  24030. aux_pcm_rx_voice_mixer_controls,
  24031. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  24032. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  24033. SND_SOC_NOPM, 0, 0,
  24034. sec_aux_pcm_rx_voice_mixer_controls,
  24035. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  24036. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  24037. SND_SOC_NOPM, 0, 0,
  24038. tert_aux_pcm_rx_voice_mixer_controls,
  24039. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  24040. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  24041. SND_SOC_NOPM, 0, 0,
  24042. quat_aux_pcm_rx_voice_mixer_controls,
  24043. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  24044. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  24045. SND_SOC_NOPM, 0, 0,
  24046. quin_aux_pcm_rx_voice_mixer_controls,
  24047. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  24048. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  24049. SND_SOC_NOPM, 0, 0,
  24050. sen_aux_pcm_rx_voice_mixer_controls,
  24051. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  24052. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  24053. SND_SOC_NOPM, 0, 0,
  24054. hdmi_rx_voice_mixer_controls,
  24055. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  24056. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  24057. SND_SOC_NOPM, 0, 0,
  24058. mi2s_rx_voice_mixer_controls,
  24059. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  24060. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  24061. SND_SOC_NOPM, 0, 0,
  24062. pri_mi2s_rx_voice_mixer_controls,
  24063. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  24064. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  24065. SND_SOC_NOPM, 0, 0,
  24066. int0_mi2s_rx_voice_mixer_controls,
  24067. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  24068. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  24069. SND_SOC_NOPM, 0, 0,
  24070. int4_mi2s_rx_voice_mixer_controls,
  24071. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  24072. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  24073. SND_SOC_NOPM, 0, 0,
  24074. tert_mi2s_rx_voice_mixer_controls,
  24075. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  24076. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  24077. SND_SOC_NOPM, 0, 0,
  24078. quat_mi2s_rx_voice_mixer_controls,
  24079. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  24080. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  24081. SND_SOC_NOPM, 0, 0,
  24082. quin_mi2s_rx_voice_mixer_controls,
  24083. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  24084. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  24085. SND_SOC_NOPM, 0, 0,
  24086. pri_tdm_rx_0_voice_mixer_controls,
  24087. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  24088. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  24089. SND_SOC_NOPM, 0, 0,
  24090. pri_tdm_rx_1_voice_mixer_controls,
  24091. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  24092. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  24093. SND_SOC_NOPM, 0, 0,
  24094. pri_tdm_rx_2_voice_mixer_controls,
  24095. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  24096. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  24097. SND_SOC_NOPM, 0, 0,
  24098. pri_tdm_rx_3_voice_mixer_controls,
  24099. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  24100. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  24101. SND_SOC_NOPM, 0, 0,
  24102. sen_mi2s_rx_voice_mixer_controls,
  24103. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  24104. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  24105. SND_SOC_NOPM, 0, 0,
  24106. quat_tdm_rx_2_voice_mixer_controls,
  24107. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  24108. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2_Voice Mixer",
  24109. SND_SOC_NOPM, 0, 0,
  24110. quin_tdm_rx_2_voice_mixer_controls,
  24111. ARRAY_SIZE(quin_tdm_rx_2_voice_mixer_controls)),
  24112. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  24113. SND_SOC_NOPM, 0, 0,
  24114. wsa_cdc_dma_rx_0_voice_mixer_controls,
  24115. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  24116. SND_SOC_DAPM_MIXER("PROXY_RX_Voice Mixer",
  24117. SND_SOC_NOPM, 0, 0,
  24118. proxy_rx_voice_mixer_controls,
  24119. ARRAY_SIZE(proxy_rx_voice_mixer_controls)),
  24120. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  24121. SND_SOC_NOPM, 0, 0,
  24122. rx_cdc_dma_rx_0_voice_mixer_controls,
  24123. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  24124. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1_Voice Mixer",
  24125. SND_SOC_NOPM, 0, 0,
  24126. rx_cdc_dma_rx_1_voice_mixer_controls,
  24127. ARRAY_SIZE(rx_cdc_dma_rx_1_voice_mixer_controls)),
  24128. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  24129. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  24130. ARRAY_SIZE(tx_voip_mixer_controls)),
  24131. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  24132. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  24133. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  24134. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  24135. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  24136. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  24137. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24138. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  24139. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24140. int_bt_a2dp_rx_mixer_controls,
  24141. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  24142. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24143. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  24144. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24145. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  24146. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24147. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  24148. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24149. tx_voice2_stub_mixer_controls,
  24150. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  24151. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24152. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  24153. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  24154. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  24155. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  24156. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  24157. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24158. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  24159. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  24160. SND_SOC_NOPM, 0, 0,
  24161. slimbus_6_rx_voice_mixer_controls,
  24162. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  24163. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24164. slimbus_7_rx_voice_mixer_controls,
  24165. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  24166. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24167. slimbus_8_rx_voice_mixer_controls,
  24168. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  24169. /* port mixer */
  24170. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  24171. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  24172. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  24173. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  24174. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  24175. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  24176. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  24177. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  24178. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  24179. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  24180. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  24181. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  24182. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  24183. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  24184. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  24185. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  24186. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  24187. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  24188. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  24189. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  24190. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  24191. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24192. sbus_1_rx_port_mixer_controls,
  24193. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  24194. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24195. bt_sco_rx_port_mixer_controls,
  24196. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  24197. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  24198. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  24199. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  24200. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  24201. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  24202. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  24203. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  24204. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  24205. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  24206. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  24207. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  24208. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  24209. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  24210. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  24211. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  24212. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  24213. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  24214. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  24215. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  24216. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  24217. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  24218. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24219. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  24220. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24221. primary_mi2s_rx_port_mixer_controls,
  24222. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  24223. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24224. sec_mi2s_rx_port_mixer_controls,
  24225. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  24226. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24227. tert_mi2s_rx_port_mixer_controls,
  24228. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  24229. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24230. quat_mi2s_rx_port_mixer_controls,
  24231. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  24232. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24233. quin_mi2s_rx_port_mixer_controls,
  24234. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  24235. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24236. sen_mi2s_rx_port_mixer_controls,
  24237. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  24238. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24239. pri_tdm_rx_0_port_mixer_controls,
  24240. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  24241. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24242. pri_tdm_rx_1_port_mixer_controls,
  24243. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  24244. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24245. pri_tdm_rx_2_port_mixer_controls,
  24246. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  24247. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24248. pri_tdm_rx_3_port_mixer_controls,
  24249. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  24250. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24251. sec_tdm_rx_0_port_mixer_controls,
  24252. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  24253. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24254. sec_tdm_rx_1_port_mixer_controls,
  24255. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  24256. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24257. sec_tdm_rx_2_port_mixer_controls,
  24258. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  24259. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24260. sec_tdm_rx_3_port_mixer_controls,
  24261. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  24262. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24263. sec_tdm_rx_7_port_mixer_controls,
  24264. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  24265. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24266. tert_tdm_rx_0_port_mixer_controls,
  24267. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  24268. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24269. tert_tdm_rx_1_port_mixer_controls,
  24270. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  24271. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24272. tert_tdm_rx_2_port_mixer_controls,
  24273. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  24274. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24275. tert_tdm_rx_3_port_mixer_controls,
  24276. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  24277. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24278. quat_tdm_rx_0_port_mixer_controls,
  24279. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  24280. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24281. quat_tdm_rx_1_port_mixer_controls,
  24282. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  24283. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24284. quat_tdm_rx_2_port_mixer_controls,
  24285. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  24286. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24287. quat_tdm_rx_3_port_mixer_controls,
  24288. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  24289. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24290. quat_tdm_rx_7_port_mixer_controls,
  24291. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  24292. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24293. quin_tdm_rx_0_port_mixer_controls,
  24294. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  24295. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24296. quin_tdm_rx_1_port_mixer_controls,
  24297. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  24298. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24299. quin_tdm_rx_2_port_mixer_controls,
  24300. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  24301. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24302. quin_tdm_rx_3_port_mixer_controls,
  24303. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  24304. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24305. quin_tdm_rx_7_port_mixer_controls,
  24306. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  24307. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24308. sen_tdm_rx_0_port_mixer_controls,
  24309. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  24310. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24311. sen_tdm_rx_1_port_mixer_controls,
  24312. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  24313. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24314. sen_tdm_rx_2_port_mixer_controls,
  24315. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  24316. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24317. sen_tdm_rx_3_port_mixer_controls,
  24318. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  24319. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24320. int0_mi2s_rx_port_mixer_controls,
  24321. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  24322. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24323. int4_mi2s_rx_port_mixer_controls,
  24324. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  24325. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24326. wsa_cdc_dma_rx_0_port_mixer_controls,
  24327. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  24328. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24329. rx_cdc_dma_rx_0_port_mixer_controls,
  24330. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  24331. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24332. rx_cdc_dma_rx_1_port_mixer_controls,
  24333. ARRAY_SIZE(rx_cdc_dma_rx_1_port_mixer_controls)),
  24334. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  24335. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  24336. ARRAY_SIZE(tx_qchat_mixer_controls)),
  24337. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  24338. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  24339. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  24340. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  24341. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  24342. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  24343. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  24344. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  24345. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  24346. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  24347. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  24348. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  24349. /* lsm mixer definitions */
  24350. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  24351. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  24352. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  24353. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  24354. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  24355. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  24356. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  24357. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  24358. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  24359. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  24360. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  24361. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  24362. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  24363. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  24364. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  24365. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  24366. /* Virtual Pins to force backends ON atm */
  24367. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  24368. SND_SOC_DAPM_INPUT("BE_IN"),
  24369. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24370. &slim0_rx_vi_fb_lch_mux),
  24371. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24372. &slim0_rx_vi_fb_rch_mux),
  24373. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24374. &wsa_rx_0_vi_fb_lch_mux),
  24375. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24376. &wsa_rx_0_vi_fb_rch_mux),
  24377. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  24378. &mi2s_rx_vi_fb_mux),
  24379. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24380. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  24381. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24382. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  24383. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  24384. &voc_ext_ec_mux),
  24385. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  24386. &ext_ec_ref_mux_ul1),
  24387. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  24388. &ext_ec_ref_mux_ul2),
  24389. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  24390. &ext_ec_ref_mux_ul3),
  24391. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  24392. &ext_ec_ref_mux_ul4),
  24393. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  24394. &ext_ec_ref_mux_ul5),
  24395. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  24396. &ext_ec_ref_mux_ul6),
  24397. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  24398. &ext_ec_ref_mux_ul8),
  24399. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  24400. &ext_ec_ref_mux_ul9),
  24401. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  24402. &ext_ec_ref_mux_ul10),
  24403. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  24404. &ext_ec_ref_mux_ul16),
  24405. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  24406. &ext_ec_ref_mux_ul17),
  24407. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  24408. &ext_ec_ref_mux_ul18),
  24409. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  24410. &ext_ec_ref_mux_ul19),
  24411. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  24412. &ext_ec_ref_mux_ul28),
  24413. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  24414. &ext_ec_ref_mux_ul29),
  24415. };
  24416. static const struct snd_soc_dapm_route intercon[] = {
  24417. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24418. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24419. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24420. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24421. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24422. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24423. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24424. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24425. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24426. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24427. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24428. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24429. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24430. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24431. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24432. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24433. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24434. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  24435. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24436. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24437. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24438. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24439. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24440. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24441. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24442. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24443. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24444. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24445. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24446. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24447. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24448. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24449. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24450. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24451. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24452. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  24453. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24454. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24455. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24456. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24457. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24458. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24459. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24460. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24461. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24462. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24463. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24464. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24465. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24466. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24467. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24468. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24469. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24470. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  24471. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24472. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24473. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24474. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24475. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24476. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24477. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24478. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24479. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24480. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24481. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24482. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24483. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24484. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24485. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24486. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24487. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24488. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  24489. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24490. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24491. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24492. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24493. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24494. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24495. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24496. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24497. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24498. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24499. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24500. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24501. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24502. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24503. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24504. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24505. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24506. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  24507. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24508. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24509. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24510. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24511. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24512. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24513. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24514. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24515. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24516. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24517. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24518. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24519. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24520. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24521. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24522. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24523. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24524. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24525. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24526. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  24527. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24528. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24529. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24530. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24531. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24532. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24533. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24534. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24535. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24536. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24537. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24538. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24539. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24540. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24541. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24542. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24543. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24544. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24545. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24546. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  24547. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24548. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24549. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24550. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24551. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24552. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24553. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24554. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24555. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24556. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24557. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24558. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24559. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24560. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24561. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24562. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24563. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24564. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24565. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24566. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  24567. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24568. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24569. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24570. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24571. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24572. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24573. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24574. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24575. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24576. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24577. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24578. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24579. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24580. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24581. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24582. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24583. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24584. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24585. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24586. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  24587. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24588. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24589. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24590. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24591. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24592. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24593. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24594. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24595. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24596. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24597. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24598. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24599. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24600. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24601. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24602. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24603. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24604. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24605. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24606. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  24607. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24608. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24609. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24610. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24611. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24612. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24613. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24614. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24615. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24616. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24617. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24618. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24619. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24620. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24621. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24622. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24623. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24624. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24625. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24626. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  24627. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24628. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24629. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24630. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24631. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24632. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24633. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24634. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24635. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24636. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24637. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24638. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24639. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24640. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24641. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24642. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24643. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24644. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24645. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24646. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  24647. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24648. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24649. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24650. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24651. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24652. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24653. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24654. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24655. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24656. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24657. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24658. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24659. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24660. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24661. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24662. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24663. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24664. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24665. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24666. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  24667. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24668. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24669. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24670. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24671. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24672. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24673. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24674. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24675. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24676. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24677. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24678. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24679. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24680. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24681. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24682. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24683. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24684. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24685. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24686. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  24687. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24688. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24689. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24690. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24691. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24692. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24693. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24694. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24695. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24696. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24697. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24698. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24699. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24700. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24701. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24702. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24703. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24704. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24705. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24706. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  24707. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  24708. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  24709. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  24710. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  24711. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  24712. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  24713. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  24714. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  24715. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  24716. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  24717. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  24718. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  24719. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  24720. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  24721. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  24722. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  24723. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  24724. {"HDMI", NULL, "HDMI Mixer"},
  24725. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  24726. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  24727. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  24728. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  24729. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  24730. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  24731. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  24732. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  24733. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  24734. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  24735. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  24736. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  24737. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  24738. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  24739. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  24740. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  24741. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  24742. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  24743. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  24744. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  24745. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  24746. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  24747. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  24748. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  24749. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  24750. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  24751. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  24752. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  24753. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  24754. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  24755. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  24756. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  24757. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  24758. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  24759. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  24760. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  24761. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24762. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24763. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24764. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24765. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24766. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24767. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24768. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24769. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24770. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24771. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24772. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24773. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24774. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24775. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24776. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24777. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24778. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  24779. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24780. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24781. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24782. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24783. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24784. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24785. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24786. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24787. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24788. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24789. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24790. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24791. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24792. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24793. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24794. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24795. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24796. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  24797. /* incall */
  24798. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  24799. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  24800. {"Incall_Music Audio Mixer", "MultiMedia4", "MM_DL4"},
  24801. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  24802. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  24803. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  24804. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24805. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24806. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24807. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24808. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  24809. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24810. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24811. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24812. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24813. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  24814. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24815. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24816. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24817. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24818. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24819. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24820. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24821. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24822. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24823. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24824. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24825. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24826. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24827. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24828. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24829. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24830. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24831. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  24832. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24833. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24834. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24835. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24836. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24837. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24838. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24839. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24840. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24841. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24842. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24843. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24844. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24845. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24846. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24847. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24848. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24849. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  24850. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24851. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24852. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24853. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24854. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24855. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24856. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24857. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24858. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24859. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24860. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24861. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24862. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24863. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24864. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24865. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24866. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24867. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  24868. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24869. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24870. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24871. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24872. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24873. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24874. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24875. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24876. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24877. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24878. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24879. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24880. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24881. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24882. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24883. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24884. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24885. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  24886. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24887. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24888. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24889. {"MultiMedia9 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24890. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24891. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24892. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24893. {"MultiMedia9 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24894. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  24895. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24896. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24897. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24898. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24899. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24900. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24901. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24902. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24903. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24904. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24905. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24906. {"MultiMedia17 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24907. {"MultiMedia17 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24908. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24909. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24910. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24911. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24912. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24913. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24914. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24915. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24916. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24917. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24918. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24919. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24920. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24921. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24922. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24923. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24924. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24925. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24926. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24927. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24928. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24929. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24930. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24931. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24932. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24933. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24934. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24935. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24936. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24937. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24938. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24939. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24940. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24941. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24942. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24943. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24944. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24945. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24946. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24947. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24948. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24949. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24950. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24951. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24952. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24953. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24954. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24955. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24956. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24957. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24958. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24959. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24960. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24961. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24962. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24963. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24964. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24965. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24966. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24967. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24968. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24969. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24970. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24971. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24972. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24973. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24974. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24975. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24976. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24977. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24978. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24979. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24980. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24981. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24982. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24983. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24984. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24985. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24986. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24987. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  24988. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24989. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24990. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24991. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24992. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24993. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24994. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24995. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24996. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24997. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24998. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24999. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25000. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25001. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25002. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25003. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25004. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25005. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  25006. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25007. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25008. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25009. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25010. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25011. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25012. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25013. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25014. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25015. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25016. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25017. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25018. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25019. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25020. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25021. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  25022. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25023. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25024. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25025. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25026. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25027. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25028. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25029. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25030. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25031. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25032. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25033. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25034. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25035. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25036. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25037. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  25038. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25039. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  25040. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25041. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25042. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25043. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25044. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25045. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25046. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25047. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25048. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25049. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25050. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25051. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25052. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25053. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25054. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25055. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25056. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25057. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25058. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25059. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  25060. {"PRI_MI2S_RX Audio Mixer", "DTMF", "DTMF_DL_HL"},
  25061. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25062. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25063. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25064. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25065. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25066. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25067. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25068. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25069. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25070. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25071. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25072. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25073. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25074. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25075. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25076. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  25077. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25078. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25079. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25080. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25081. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25082. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25083. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25084. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25085. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25086. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25087. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25088. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25089. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25090. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25091. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25092. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  25093. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25094. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25095. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25096. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25097. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25098. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25099. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25100. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25101. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25102. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25103. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25104. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25105. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25106. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25107. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25108. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25109. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25110. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  25111. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25112. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25113. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25114. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25115. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25116. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25117. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25118. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25119. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25120. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25121. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25122. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25123. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25124. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25125. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25126. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  25127. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25128. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25129. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25130. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25131. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25132. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25133. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25134. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25135. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25136. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25137. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25138. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25139. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25140. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25141. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25142. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25143. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25144. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  25145. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25146. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25147. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25148. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25149. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25150. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25151. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25152. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25153. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25154. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25155. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25156. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25157. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25158. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25159. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25160. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25161. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25162. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  25163. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25164. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25165. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25166. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25167. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25168. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25169. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25170. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25171. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25172. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25173. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25174. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25175. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25176. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25177. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25178. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25179. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25180. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25181. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25182. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25183. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25184. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  25185. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25186. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25187. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25188. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25189. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25190. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25191. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25192. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25193. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25194. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25195. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25196. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25197. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25198. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25199. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25200. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25201. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25202. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25203. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25204. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25205. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25206. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  25207. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25208. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25209. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25210. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25211. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25212. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25213. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25214. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25215. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25216. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25217. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25218. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25219. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25220. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25221. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25222. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25223. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25224. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25225. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25226. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25227. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25228. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  25229. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25230. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25231. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25232. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25233. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25234. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25235. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25236. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25237. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25238. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25239. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25240. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25241. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25242. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25243. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25244. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25245. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25246. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25247. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25248. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25249. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25250. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  25251. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25252. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25253. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25254. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25255. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25256. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25257. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25258. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25259. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25260. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25261. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25262. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25263. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25264. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25265. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25266. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25267. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25268. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25269. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25270. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  25271. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25272. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25273. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25274. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25275. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25276. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25277. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25278. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25279. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25280. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25281. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25282. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25283. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25284. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25285. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25286. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25287. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25288. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25289. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25290. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25291. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25292. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  25293. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25294. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25295. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25296. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25297. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25298. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25299. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25300. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25301. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25302. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25303. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25304. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25305. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25306. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25307. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25308. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25309. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25310. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25311. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25312. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25313. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25314. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  25315. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25316. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25317. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25318. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25319. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25320. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25321. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25322. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25323. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25324. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25325. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25326. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25327. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25328. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25329. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25330. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25331. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25332. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25333. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25334. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25335. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25336. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  25337. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25338. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25339. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25340. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25341. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25342. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25343. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25344. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25345. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25346. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25347. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25348. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25349. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25350. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25351. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25352. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25353. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25354. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25355. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25356. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25357. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25358. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  25359. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25360. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25361. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25362. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25363. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25364. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25365. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25366. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25367. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25368. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25369. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25370. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25371. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25372. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25373. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25374. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25375. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25376. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25377. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25378. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  25379. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25380. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25381. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25382. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25383. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25384. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25385. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25386. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25387. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25388. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25389. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25390. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25391. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25392. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25393. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25394. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25395. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25396. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25397. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25398. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25399. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25400. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  25401. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25402. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25403. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25404. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25405. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25406. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25407. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25408. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25409. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25410. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25411. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25412. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25413. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25414. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25415. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25416. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25417. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25418. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25419. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25420. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  25421. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25422. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25423. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25424. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25425. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25426. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25427. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25428. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25429. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25430. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25431. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25432. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25433. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25434. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25435. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25436. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25437. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25438. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25439. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25440. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25441. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25442. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  25443. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25444. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25445. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25446. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25447. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25448. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25449. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25450. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25451. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25452. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25453. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25454. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25455. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25456. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25457. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25458. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25459. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25460. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25461. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25462. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25463. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25464. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  25465. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25466. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25467. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25468. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25469. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25470. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25471. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25472. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25473. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25474. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25475. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25476. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25477. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25478. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25479. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25480. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25481. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25482. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25483. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25484. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25485. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25486. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  25487. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25488. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25489. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25490. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25491. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25492. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25493. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25494. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25495. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25496. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25497. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25498. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25499. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25500. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25501. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25502. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25503. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25504. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25505. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25506. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25507. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25508. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  25509. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25510. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25511. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25512. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25513. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25514. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25515. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25516. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25517. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25518. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25519. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25520. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25521. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25522. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25523. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25524. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25525. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25526. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25527. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25528. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25529. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25530. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25531. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  25532. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25533. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25534. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25535. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25536. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25537. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25538. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25539. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25540. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25541. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25542. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25543. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25544. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25545. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25546. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25547. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25548. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25549. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25550. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25551. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  25552. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25553. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25554. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25555. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25556. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25557. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25558. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25559. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25560. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25561. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25562. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25563. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25564. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25565. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25566. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25567. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25568. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25569. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25570. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25571. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25572. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25573. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25574. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  25575. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25576. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25577. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25578. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25579. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25580. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25581. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25582. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25583. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25584. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25585. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25586. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25587. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25588. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25589. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25590. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25591. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25592. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25593. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25594. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25595. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25596. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25597. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  25598. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25599. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25600. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25601. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25602. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25603. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25604. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25605. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25606. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25607. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25608. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25609. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25610. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25611. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25612. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25613. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25614. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25615. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25616. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25617. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25618. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25619. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25620. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  25621. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25622. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25623. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25624. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25625. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25626. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25627. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25628. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25629. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25630. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25631. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25632. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25633. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25634. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25635. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25636. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25637. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25638. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25639. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25640. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25641. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25642. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25643. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  25644. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25645. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25646. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25647. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25648. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25649. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25650. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25651. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25652. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25653. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25654. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25655. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25656. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25657. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25658. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25659. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25660. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25661. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25662. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25663. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  25664. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25665. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25666. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25667. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25668. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25669. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25670. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25671. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25672. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25673. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25674. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25675. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25676. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25677. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25678. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25679. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25680. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25681. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25682. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25683. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25684. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25685. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25686. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  25687. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25688. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25689. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25690. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25691. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25692. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25693. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25694. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25695. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25696. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25697. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25698. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25699. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25700. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25701. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25702. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25703. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25704. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25705. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25706. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25707. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25708. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25709. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  25710. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25711. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25712. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25713. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25714. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25715. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25716. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25717. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25718. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25719. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25720. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25721. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25722. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25723. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25724. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25725. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25726. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25727. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25728. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25729. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25730. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25731. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25732. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  25733. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25734. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25735. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25736. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25737. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25738. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25739. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25740. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25741. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25742. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25743. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25744. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25745. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25746. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25747. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25748. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25749. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25750. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25751. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  25752. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25753. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25754. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25755. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25756. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25757. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25758. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25759. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25760. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25761. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25762. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25763. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25764. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25765. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25766. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25767. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25768. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  25769. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25770. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25771. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25772. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25773. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25774. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25775. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25776. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25777. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25778. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25779. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25780. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25781. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25782. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25783. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25784. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25785. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25786. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25787. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  25788. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25789. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25790. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25791. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25792. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25793. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25794. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25795. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25796. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25797. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25798. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25799. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25800. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25801. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25802. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25803. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25804. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25805. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25806. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  25807. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25808. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25809. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25810. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25811. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25812. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25813. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25814. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25815. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25816. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25817. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25818. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25819. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25820. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25821. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25822. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25823. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25824. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25825. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  25826. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  25827. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  25828. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  25829. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  25830. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  25831. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  25832. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  25833. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25834. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25835. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25836. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25837. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25838. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25839. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25840. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25841. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25842. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25843. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25844. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25845. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25846. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25847. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25848. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25849. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25850. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25851. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25852. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25853. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25854. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25855. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25856. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25857. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25858. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25859. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  25860. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25861. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25862. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25863. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  25864. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25865. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25866. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25867. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25868. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  25869. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  25870. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  25871. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  25872. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  25873. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  25874. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25875. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25876. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25877. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25878. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25879. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25880. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25881. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25882. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25883. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25884. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25885. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25886. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25887. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25888. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25889. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25890. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25891. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25892. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25893. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25894. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25895. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25896. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25897. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25898. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25899. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25900. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25901. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25902. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25903. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25904. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25905. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25906. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25907. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25908. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25909. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25910. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25911. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25912. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25913. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25914. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25915. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25916. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25917. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25918. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25919. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25920. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25921. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25922. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25923. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25924. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25925. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25926. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25927. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25928. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25929. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25930. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25931. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25932. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25933. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25934. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25935. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25936. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25937. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25938. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25939. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25940. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25941. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25942. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25943. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25944. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25945. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25946. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25947. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25948. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25949. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25950. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25951. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25952. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25953. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25954. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25955. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25956. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25957. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25958. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25959. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25960. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25961. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25962. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25963. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25964. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25965. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25966. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25967. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25968. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25969. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25970. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25971. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25972. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25973. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25974. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25975. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25976. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25977. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25978. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25979. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25980. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25981. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25982. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25983. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25984. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25985. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25986. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25987. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25988. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25989. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25990. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25991. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25992. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25993. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25994. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25995. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25996. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25997. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25998. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25999. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26000. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26001. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26002. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26003. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26004. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26005. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26006. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26007. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26008. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26009. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26010. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26011. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26012. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26013. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26014. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26015. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26016. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26017. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26018. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26019. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26020. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26021. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26022. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26023. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26024. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26025. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26026. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26027. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26028. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26029. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26030. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26031. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26032. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26033. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26034. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26035. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26036. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26037. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26038. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26039. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26040. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26041. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26042. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26043. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26044. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26045. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26046. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26047. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26048. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26049. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26050. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26051. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26052. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26053. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26054. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26055. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26056. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26057. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26058. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26059. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26060. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26061. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26062. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26063. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26064. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26065. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26066. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26067. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26068. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26069. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26070. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26071. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26072. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26073. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26074. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26075. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26076. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26077. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26078. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26079. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26080. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26081. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26082. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26083. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26084. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26085. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26086. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26087. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26088. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26089. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26090. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26091. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26092. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26093. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26094. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26095. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26096. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26097. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26098. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26099. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26100. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26101. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26102. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26103. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26104. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26105. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26106. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26107. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26108. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26109. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26110. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26111. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26112. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26113. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26114. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26115. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26116. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26117. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26118. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26119. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26120. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26121. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26122. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26123. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26124. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26125. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26126. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26127. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26128. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26129. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26130. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26131. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26132. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26133. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26134. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26135. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26136. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26137. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26138. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26139. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26140. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26141. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26142. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26143. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26144. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26145. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26146. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26147. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26148. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26149. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26150. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26151. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26152. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26153. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26154. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26155. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26156. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26157. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26158. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26159. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26160. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26161. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26162. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26163. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26164. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26165. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26166. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26167. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26168. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26169. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26170. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26171. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26172. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26173. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26174. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26175. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26176. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26177. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26178. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26179. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26180. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26181. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26182. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26183. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26184. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26185. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26186. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26187. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26188. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26189. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26190. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26191. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26192. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26193. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26194. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26195. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26196. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26197. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26198. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26199. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26200. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26201. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26202. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26203. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26204. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26205. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26206. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26207. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26208. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26209. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26210. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26211. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26212. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26213. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26214. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26215. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26216. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26217. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26218. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26219. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26220. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26221. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26222. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26223. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26224. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26225. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26226. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26227. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26228. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26229. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26230. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26231. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26232. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26233. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26234. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26235. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26236. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26237. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26238. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26239. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26240. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26241. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26242. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26243. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26244. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26245. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26246. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26247. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26248. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26249. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26250. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26251. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26252. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26253. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26254. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26255. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26256. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26257. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26258. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26259. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26260. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26261. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26262. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26263. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26264. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26265. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26266. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26267. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26268. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26269. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26270. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26271. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26272. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26273. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26274. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26275. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26276. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26277. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26278. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26279. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26280. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26281. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26282. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26283. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26284. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26285. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26286. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26287. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26288. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26289. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26290. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26291. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26292. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26293. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26294. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26295. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26296. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26297. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26298. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26299. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26300. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26301. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26302. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26303. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26304. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26305. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26306. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26307. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26308. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26309. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26310. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26311. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26312. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26313. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26314. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26315. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26316. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26317. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26318. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26319. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26320. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26321. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26322. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26323. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26324. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26325. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26326. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26327. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26328. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26329. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26330. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26331. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26332. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26333. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26334. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26335. {"MultiMedia23 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26336. {"MultiMedia23 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26337. {"MultiMedia23 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26338. {"MultiMedia23 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26339. {"MultiMedia23 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26340. {"MultiMedia23 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26341. {"MultiMedia23 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26342. {"MultiMedia23 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26343. {"MultiMedia23 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26344. {"MultiMedia23 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26345. {"MultiMedia23 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26346. {"MultiMedia23 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26347. {"MultiMedia23 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26348. {"MultiMedia23 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26349. {"MultiMedia23 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26350. {"MultiMedia23 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26351. {"MultiMedia23 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26352. {"MultiMedia23 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26353. {"MultiMedia23 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26354. {"MultiMedia23 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26355. {"MultiMedia24 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26356. {"MultiMedia24 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26357. {"MultiMedia24 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26358. {"MultiMedia24 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26359. {"MultiMedia24 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26360. {"MultiMedia24 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26361. {"MultiMedia24 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26362. {"MultiMedia24 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26363. {"MultiMedia24 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26364. {"MultiMedia24 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26365. {"MultiMedia24 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26366. {"MultiMedia24 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26367. {"MultiMedia24 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26368. {"MultiMedia24 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26369. {"MultiMedia24 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26370. {"MultiMedia24 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26371. {"MultiMedia24 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26372. {"MultiMedia24 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26373. {"MultiMedia24 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26374. {"MultiMedia24 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26375. {"MultiMedia25 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26376. {"MultiMedia25 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26377. {"MultiMedia25 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26378. {"MultiMedia25 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26379. {"MultiMedia25 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26380. {"MultiMedia25 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26381. {"MultiMedia25 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26382. {"MultiMedia25 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26383. {"MultiMedia25 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26384. {"MultiMedia25 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26385. {"MultiMedia25 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26386. {"MultiMedia25 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26387. {"MultiMedia25 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26388. {"MultiMedia25 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26389. {"MultiMedia25 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26390. {"MultiMedia25 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26391. {"MultiMedia25 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26392. {"MultiMedia25 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26393. {"MultiMedia25 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26394. {"MultiMedia25 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26395. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26396. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26397. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  26398. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26399. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26400. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26401. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26402. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26403. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26404. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26405. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26406. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26407. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26408. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26409. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26410. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26411. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26412. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26413. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26414. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26415. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26416. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26417. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26418. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26419. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26420. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26421. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26422. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26423. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26424. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26425. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26426. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26427. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26428. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26429. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26430. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26431. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26432. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26433. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26434. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26435. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26436. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26437. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26438. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26439. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26440. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26441. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26442. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26443. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26444. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26445. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26446. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26447. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26448. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26449. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26450. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26451. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26452. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26453. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26454. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26455. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26456. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26457. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26458. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26459. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26460. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26461. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26462. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26463. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26464. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26465. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26466. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26467. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26468. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26469. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26470. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26471. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26472. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26473. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26474. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26475. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26476. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26477. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26478. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26479. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26480. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26481. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26482. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26483. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26484. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26485. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26486. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26487. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26488. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26489. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26490. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26491. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26492. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26493. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26494. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26495. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26496. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26497. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26498. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26499. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26500. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26501. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26502. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26503. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26504. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26505. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26506. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26507. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26508. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26509. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26510. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26511. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26512. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26513. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26514. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26515. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26516. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26517. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  26518. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26519. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26520. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26521. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26522. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26523. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26524. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26525. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26526. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26527. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26528. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26529. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26530. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26531. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26532. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26533. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26534. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26535. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  26536. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26537. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26538. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26539. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26540. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26541. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26542. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26543. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26544. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26545. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26546. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26547. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26548. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26549. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26550. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26551. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26552. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  26553. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26554. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26555. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26556. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26557. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26558. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26559. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26560. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26561. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26562. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26563. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26564. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26565. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26566. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26567. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26568. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26569. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  26570. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26571. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26572. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26573. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26574. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26575. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26576. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26577. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26578. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26579. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26580. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26581. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26582. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26583. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26584. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26585. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26586. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26587. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26588. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26589. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26590. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26591. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26592. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26593. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26594. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26595. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26596. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26597. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26598. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26599. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26600. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26601. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26602. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26603. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26604. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26605. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26606. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26607. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26608. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  26609. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26610. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  26611. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  26612. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  26613. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  26614. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  26615. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  26616. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  26617. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  26618. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  26619. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  26620. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  26621. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  26622. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  26623. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  26624. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  26625. {"MM_UL23", NULL, "MultiMedia23 Mixer"},
  26626. {"MM_UL24", NULL, "MultiMedia24 Mixer"},
  26627. {"MM_UL25", NULL, "MultiMedia25 Mixer"},
  26628. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  26629. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  26630. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  26631. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  26632. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26633. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26634. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26635. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26636. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26637. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26638. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26639. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26640. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26641. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26642. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26643. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26644. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26645. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26646. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26647. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26648. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26649. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  26650. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26651. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26652. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26653. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26654. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26655. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26656. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26657. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26658. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26659. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26660. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26661. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26662. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26663. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26664. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26665. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26666. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26667. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  26668. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26669. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26670. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26671. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26672. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26673. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26674. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26675. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26676. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26677. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26678. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26679. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26680. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26681. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26682. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26683. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26684. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  26685. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26686. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26687. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26688. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26689. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26690. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26691. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26692. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26693. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26694. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26695. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26696. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26697. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26698. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26699. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26700. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26701. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  26702. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26703. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26704. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26705. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26706. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26707. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26708. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26709. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26710. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26711. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26712. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26713. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26714. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26715. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26716. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26717. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26718. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  26719. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26720. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26721. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26722. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26723. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26724. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26725. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26726. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26727. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26728. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26729. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26730. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26731. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26732. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26733. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26734. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26735. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  26736. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26737. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26738. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26739. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26740. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26741. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  26742. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26743. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26744. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26745. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  26746. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26747. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26748. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26749. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26750. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26751. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26752. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26753. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  26754. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26755. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26756. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26757. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26758. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26759. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  26760. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26761. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26762. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26763. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26764. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26765. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  26766. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26767. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26768. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26769. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26770. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26771. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  26772. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26773. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26774. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26775. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26776. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26777. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  26778. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  26779. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26780. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26781. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26782. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26783. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  26784. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26785. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26786. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26787. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26788. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26789. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  26790. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26791. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26792. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26793. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26794. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26795. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  26796. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26797. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26798. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26799. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26800. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26801. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  26802. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26803. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26804. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26805. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26806. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26807. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  26808. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26809. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26810. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26811. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26812. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26813. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  26814. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26815. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26816. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26817. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26818. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26819. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  26820. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26821. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26822. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26823. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26824. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26825. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  26826. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26827. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26828. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26829. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26830. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26831. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  26832. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26833. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26834. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26835. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26836. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26837. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  26838. {"HDMI", NULL, "HDMI_DL_HL"},
  26839. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26840. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26841. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26842. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26843. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26844. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26845. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26846. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  26847. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26848. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26849. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26850. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26851. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26852. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26853. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26854. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  26855. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26856. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26857. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26858. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26859. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26860. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  26861. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26862. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26863. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26864. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26865. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26866. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  26867. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26868. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26869. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26870. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26871. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26872. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26873. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26874. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  26875. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26876. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26877. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26878. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26879. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26880. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26881. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  26882. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26883. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26884. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26885. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26886. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26887. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26888. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  26889. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26890. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26891. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26892. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26893. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26894. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26895. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26896. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26897. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  26898. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  26899. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26900. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26901. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26902. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26903. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26904. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26905. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26906. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  26907. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  26908. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26909. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26910. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26911. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26912. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26913. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26914. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26915. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  26916. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  26917. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26918. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26919. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26920. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26921. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26922. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26923. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26924. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  26925. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26926. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26927. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26928. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26929. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  26930. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26931. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  26932. {"QUIN_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26933. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_Voice Mixer"},
  26934. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26935. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26936. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26937. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  26938. {"PROXY_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26939. {"PROXY_RX", NULL, "PROXY_RX_Voice Mixer"},
  26940. {"PROXY_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26941. {"PROXY_RX", NULL, "PROXY_RX_Voice Mixer"},
  26942. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26943. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26944. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26945. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  26946. {"RX_CDC_DMA_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  26947. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26948. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26949. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_Voice Mixer"},
  26950. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26951. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26952. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26953. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26954. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26955. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26956. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  26957. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  26958. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  26959. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  26960. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  26961. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26962. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26963. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26964. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26965. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26966. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26967. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  26968. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  26969. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  26970. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26971. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  26972. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26973. {"AUDIO_REF_EC_UL1 MUX", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26974. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26975. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26976. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26977. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26978. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26979. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26980. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26981. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26982. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26983. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26984. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26985. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26986. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26987. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26988. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26989. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26990. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26991. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26992. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26993. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26994. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26995. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26996. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26997. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26998. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26999. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27000. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27001. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27002. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27003. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27004. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27005. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27006. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27007. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27008. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  27009. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  27010. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  27011. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27012. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  27013. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27014. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27015. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27016. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27017. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27018. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27019. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27020. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27021. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27022. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27023. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27024. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27025. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27026. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27027. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27028. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27029. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27030. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27031. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27032. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27033. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27034. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27035. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27036. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27037. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27038. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27039. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27040. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27041. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27042. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27043. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27044. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27045. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27046. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27047. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  27048. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  27049. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  27050. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  27051. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  27052. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  27053. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  27054. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  27055. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  27056. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  27057. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  27058. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  27059. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  27060. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  27061. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  27062. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  27063. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  27064. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  27065. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  27066. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  27067. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  27068. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  27069. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  27070. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  27071. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  27072. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  27073. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  27074. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  27075. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  27076. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  27077. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  27078. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  27079. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  27080. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  27081. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  27082. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  27083. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  27084. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  27085. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  27086. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  27087. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  27088. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  27089. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  27090. {"VoiceMMode1_Tx Mixer", "PROXY_TX_MMode1", "PROXY_TX"},
  27091. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  27092. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  27093. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  27094. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  27095. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  27096. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  27097. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  27098. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  27099. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  27100. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  27101. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  27102. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  27103. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  27104. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  27105. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  27106. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  27107. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  27108. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  27109. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  27110. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  27111. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  27112. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  27113. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  27114. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  27115. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  27116. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  27117. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  27118. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  27119. {"VoiceMMode2_Tx Mixer", "PROXY_TX_MMode2", "PROXY_TX"},
  27120. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  27121. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  27122. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  27123. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  27124. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  27125. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  27126. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  27127. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  27128. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  27129. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  27130. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  27131. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  27132. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  27133. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  27134. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  27135. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  27136. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  27137. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  27138. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  27139. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  27140. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  27141. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  27142. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  27143. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  27144. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  27145. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  27146. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  27147. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  27148. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  27149. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  27150. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  27151. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  27152. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  27153. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  27154. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  27155. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  27156. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  27157. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  27158. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  27159. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  27160. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  27161. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  27162. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  27163. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  27164. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27165. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  27166. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  27167. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27168. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  27169. {"RX_CDC_DMA_RX_1_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27170. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_DL_HL"},
  27171. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  27172. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27173. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27174. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27175. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27176. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27177. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27178. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27179. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27180. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27181. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27182. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27183. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27184. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27185. {"LSM1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27186. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  27187. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27188. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27189. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27190. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27191. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27192. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27193. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27194. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27195. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27196. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27197. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27198. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27199. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27200. {"LSM2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27201. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  27202. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27203. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27204. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27205. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27206. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27207. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27208. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27209. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27210. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27211. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27212. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27213. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27214. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27215. {"LSM3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27216. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  27217. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27218. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27219. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27220. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27221. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27222. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27223. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27224. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27225. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27226. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27227. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27228. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27229. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27230. {"LSM4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27231. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  27232. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27233. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27234. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27235. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27236. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27237. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27238. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27239. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27240. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27241. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27242. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27243. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27244. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27245. {"LSM5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27246. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  27247. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27248. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27249. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27250. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27251. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27252. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27253. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27254. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27255. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27256. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27257. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27258. {"LSM6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27259. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  27260. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27261. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27262. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27263. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27264. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27265. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27266. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27267. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27268. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27269. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27270. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27271. {"LSM7 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27272. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  27273. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27274. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27275. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27276. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27277. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27278. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27279. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27280. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27281. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27282. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27283. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27284. {"LSM8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27285. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  27286. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  27287. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  27288. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  27289. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  27290. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  27291. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  27292. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  27293. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  27294. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  27295. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  27296. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  27297. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  27298. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  27299. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  27300. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  27301. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  27302. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  27303. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  27304. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  27305. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  27306. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  27307. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  27308. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  27309. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  27310. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  27311. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  27312. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  27313. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  27314. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27315. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  27316. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  27317. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  27318. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27319. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  27320. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  27321. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  27322. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  27323. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  27324. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  27325. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  27326. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  27327. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27328. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  27329. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27330. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  27331. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  27332. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  27333. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  27334. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  27335. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  27336. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  27337. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  27338. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  27339. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  27340. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  27341. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  27342. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  27343. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27344. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  27345. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27346. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  27347. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  27348. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  27349. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  27350. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  27351. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  27352. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  27353. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  27354. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  27355. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  27356. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  27357. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  27358. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  27359. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  27360. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  27361. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  27362. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  27363. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  27364. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  27365. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  27366. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  27367. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  27368. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  27369. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  27370. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  27371. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  27372. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  27373. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  27374. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  27375. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  27376. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  27377. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  27378. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  27379. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  27380. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  27381. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  27382. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  27383. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  27384. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  27385. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  27386. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  27387. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  27388. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  27389. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  27390. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  27391. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  27392. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  27393. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  27394. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  27395. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  27396. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  27397. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  27398. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  27399. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  27400. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  27401. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  27402. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  27403. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  27404. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  27405. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  27406. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  27407. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27408. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27409. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27410. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27411. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27412. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27413. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27414. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27415. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27416. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27417. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27418. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27419. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27420. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27421. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27422. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27423. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27424. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27425. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27426. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27427. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27428. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27429. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27430. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27431. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  27432. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27433. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27434. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27435. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27436. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27437. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27438. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27439. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27440. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27441. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27442. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27443. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27444. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27445. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27446. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27447. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27448. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27449. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27450. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27451. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27452. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27453. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27454. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27455. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27456. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  27457. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27458. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27459. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27460. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27461. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27462. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27463. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27464. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27465. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27466. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27467. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27468. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27469. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27470. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27471. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27472. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27473. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27474. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27475. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27476. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27477. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27478. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27479. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27480. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27481. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  27482. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27483. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27484. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27485. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27486. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27487. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27488. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27489. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27490. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27491. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27492. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27493. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27494. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27495. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27496. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27497. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27498. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27499. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27500. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27501. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27502. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27503. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27504. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27505. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27506. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  27507. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27508. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27509. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27510. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27511. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27512. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27513. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27514. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27515. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27516. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27517. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27518. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27519. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27520. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27521. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27522. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27523. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27524. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27525. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27526. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27527. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27528. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27529. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27530. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27531. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  27532. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27533. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27534. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27535. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27536. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27537. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27538. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27539. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27540. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27541. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27542. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27543. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27544. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27545. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27546. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27547. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27548. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27549. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27550. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27551. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27552. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27553. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27554. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27555. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27556. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  27557. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27558. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27559. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27560. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27561. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27562. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27563. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27564. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27565. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27566. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27567. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27568. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27569. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27570. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27571. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27572. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27573. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27574. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27575. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27576. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27577. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27578. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27579. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27580. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27581. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  27582. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27583. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27584. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27585. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27586. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27587. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27588. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27589. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27590. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27591. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27592. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27593. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27594. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27595. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27596. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27597. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27598. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27599. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27600. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27601. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27602. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27603. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27604. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27605. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27606. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  27607. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  27608. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  27609. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27610. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27611. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27612. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27613. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27614. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27615. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27616. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27617. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27618. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27619. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27620. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27621. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27622. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27623. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27624. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27625. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27626. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27627. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27628. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27629. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27630. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27631. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27632. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27633. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  27634. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27635. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27636. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27637. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27638. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27639. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27640. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27641. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27642. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27643. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27644. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27645. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27646. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27647. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27648. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27649. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27650. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27651. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27652. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27653. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27654. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27655. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27656. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27657. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27658. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  27659. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27660. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27661. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27662. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27663. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27664. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27665. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27666. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27667. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27668. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27669. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27670. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27671. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27672. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27673. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27674. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27675. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27676. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27677. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27678. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27679. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27680. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27681. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27682. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27683. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  27684. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27685. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27686. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27687. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27688. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27689. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27690. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27691. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27692. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27693. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27694. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27695. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27696. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27697. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27698. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27699. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27700. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27701. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27702. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27703. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27704. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27705. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27706. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27707. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27708. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  27709. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27710. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27711. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27712. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27713. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27714. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27715. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27716. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27717. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27718. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27719. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27720. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27721. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27722. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27723. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27724. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27725. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27726. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27727. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27728. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27729. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27730. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27731. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27732. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27733. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  27734. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27735. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27736. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27737. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27738. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27739. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27740. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27741. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27742. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27743. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27744. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27745. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27746. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27747. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27748. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27749. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27750. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27751. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27752. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27753. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27754. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27755. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27756. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27757. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27758. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  27759. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27760. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27761. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27762. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27763. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27764. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27765. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27766. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27767. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27768. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27769. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27770. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27771. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27772. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27773. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27774. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27775. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27776. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27777. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27778. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27779. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27780. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27781. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27782. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27783. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  27784. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27785. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27786. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27787. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27788. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27789. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27790. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27791. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27792. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27793. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27794. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27795. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27796. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27797. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27798. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27799. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27800. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27801. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27802. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27803. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27804. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27805. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27806. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27807. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27808. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  27809. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  27810. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  27811. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  27812. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27813. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27814. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27815. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27816. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27817. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27818. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27819. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27820. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27821. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27822. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27823. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27824. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27825. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27826. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27827. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27828. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27829. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27830. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27831. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27832. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27833. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27834. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27835. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27836. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  27837. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27838. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27839. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27840. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27841. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27842. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27843. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27844. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27845. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27846. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27847. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27848. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27849. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27850. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27851. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27852. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27853. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27854. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27855. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27856. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27857. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27858. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27859. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27860. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27861. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  27862. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27863. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27864. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27865. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27866. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27867. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27868. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27869. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27870. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27871. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27872. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27873. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27874. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27875. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27876. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27877. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27878. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27879. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27880. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27881. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27882. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27883. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27884. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27885. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27886. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  27887. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27888. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27889. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27890. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27891. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27892. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27893. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27894. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27895. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27896. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27897. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27898. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27899. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27900. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27901. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27902. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27903. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27904. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27905. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27906. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27907. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27908. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27909. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27910. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27911. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  27912. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  27913. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  27914. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  27915. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  27916. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27917. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27918. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27919. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27920. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27921. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27922. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27923. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27924. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27925. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27926. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27927. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27928. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27929. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27930. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27931. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27932. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27933. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27934. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27935. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27936. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  27937. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27938. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27939. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27940. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27941. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27942. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27943. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27944. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27945. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27946. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27947. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27948. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27949. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27950. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27951. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27952. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27953. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27954. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27955. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27956. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27957. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  27958. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27959. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27960. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27961. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27962. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27963. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27964. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27965. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27966. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27967. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27968. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27969. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27970. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27971. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27972. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27973. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27974. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27975. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27976. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27977. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27978. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  27979. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27980. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27981. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27982. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27983. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27984. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27985. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27986. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27987. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27988. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27989. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27990. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27991. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27992. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27993. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27994. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27995. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27996. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27997. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27998. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27999. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  28000. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28001. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28002. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28003. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28004. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28005. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28006. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28007. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28008. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28009. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28010. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28011. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28012. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  28013. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28014. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28015. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28016. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28017. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28018. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28019. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28020. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28021. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28022. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28023. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28024. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28025. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  28026. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  28027. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28028. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28029. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28030. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  28031. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28032. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28033. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28034. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  28035. {"RX_CDC_DMA_RX_1 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  28036. {"RX_CDC_DMA_RX_1 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28037. {"RX_CDC_DMA_RX_1 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28038. {"RX_CDC_DMA_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28039. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Port Mixer"},
  28040. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28041. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28042. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28043. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28044. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28045. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28046. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28047. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28048. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28049. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28050. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28051. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  28052. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28053. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28054. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28055. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28056. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28057. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28058. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28059. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28060. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  28061. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28062. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28063. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  28064. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  28065. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  28066. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  28067. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  28068. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  28069. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28070. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28071. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28072. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28073. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28074. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28075. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28076. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  28077. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28078. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28079. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28080. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28081. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  28082. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28083. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28084. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28085. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  28086. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28087. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28088. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28089. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  28090. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28091. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28092. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28093. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  28094. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28095. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28096. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28097. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28098. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28099. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28100. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28101. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28102. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28103. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  28104. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  28105. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28106. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28107. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28108. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28109. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28110. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28111. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28112. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28113. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28114. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  28115. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28116. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28117. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28118. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28119. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28120. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28121. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28122. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28123. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28124. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28125. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28126. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  28127. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28128. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28129. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28130. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28131. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28132. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28133. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28134. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28135. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28136. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28137. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28138. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28139. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  28140. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28141. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28142. {"STUB_RX", NULL, "STUB_RX Mixer"},
  28143. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28144. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28145. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  28146. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28147. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28148. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  28149. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28150. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28151. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28152. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28153. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28154. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  28155. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28156. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28157. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28158. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28159. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28160. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  28161. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28162. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28163. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28164. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  28165. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28166. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28167. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  28168. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  28169. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28170. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  28171. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  28172. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  28173. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  28174. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28175. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28176. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28177. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28178. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28179. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28180. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28181. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28182. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28183. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28184. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28185. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28186. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28187. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  28188. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28189. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  28190. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28191. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  28192. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  28193. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  28194. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28195. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  28196. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28197. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28198. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  28199. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28200. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28201. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28202. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28203. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28204. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28205. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28206. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28207. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28208. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28209. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28210. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  28211. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28212. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28213. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28214. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28215. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28216. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28217. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28218. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28219. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28220. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28221. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  28222. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28223. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28224. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28225. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28226. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28227. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28228. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28229. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28230. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  28231. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28232. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28233. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28234. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28235. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28236. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28237. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28238. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28239. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28240. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28241. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  28242. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28243. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28244. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28245. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28246. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28247. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28248. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28249. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28250. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  28251. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28252. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28253. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28254. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28255. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28256. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28257. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28258. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  28259. /* Backend Enablement */
  28260. {"BE_OUT", NULL, "PRI_I2S_RX"},
  28261. {"BE_OUT", NULL, "SEC_I2S_RX"},
  28262. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  28263. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  28264. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  28265. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28266. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  28267. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  28268. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  28269. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  28270. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  28271. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  28272. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  28273. {"BE_OUT", NULL, "HDMI"},
  28274. {"BE_OUT", NULL, "DISPLAY_PORT"},
  28275. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  28276. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  28277. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  28278. {"BE_OUT", NULL, "MI2S_RX"},
  28279. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  28280. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  28281. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  28282. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  28283. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  28284. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  28285. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  28286. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  28287. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  28288. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  28289. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  28290. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  28291. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28292. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  28293. {"BE_OUT", NULL, "INT_FM_RX"},
  28294. {"BE_OUT", NULL, "PCM_RX"},
  28295. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28296. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28297. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  28298. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  28299. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  28300. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  28301. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  28302. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28303. {"BE_OUT", NULL, "INT_FM_RX"},
  28304. {"BE_OUT", NULL, "PCM_RX"},
  28305. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28306. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  28307. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  28308. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  28309. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  28310. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  28311. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  28312. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  28313. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  28314. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  28315. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  28316. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  28317. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  28318. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  28319. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  28320. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  28321. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  28322. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  28323. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  28324. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  28325. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  28326. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  28327. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  28328. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  28329. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  28330. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  28331. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  28332. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  28333. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  28334. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  28335. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  28336. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  28337. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  28338. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  28339. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  28340. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  28341. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  28342. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  28343. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  28344. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  28345. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  28346. {"BE_OUT", NULL, "PROXY_RX"},
  28347. {"PRI_I2S_TX", NULL, "BE_IN"},
  28348. {"MI2S_TX", NULL, "BE_IN"},
  28349. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  28350. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  28351. {"PRI_MI2S_TX", NULL, "BE_IN"},
  28352. {"TERT_MI2S_TX", NULL, "BE_IN"},
  28353. {"INT0_MI2S_TX", NULL, "BE_IN"},
  28354. {"INT2_MI2S_TX", NULL, "BE_IN"},
  28355. {"INT3_MI2S_TX", NULL, "BE_IN"},
  28356. {"INT4_MI2S_TX", NULL, "BE_IN"},
  28357. {"INT5_MI2S_TX", NULL, "BE_IN"},
  28358. {"SEC_MI2S_TX", NULL, "BE_IN"},
  28359. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  28360. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  28361. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  28362. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  28363. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  28364. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  28365. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  28366. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  28367. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  28368. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  28369. {"USB_AUDIO_TX", NULL, "BE_IN" },
  28370. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  28371. {"INT_FM_TX", NULL, "BE_IN"},
  28372. {"PCM_TX", NULL, "BE_IN"},
  28373. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28374. {"BE_OUT", NULL, "STUB_RX"},
  28375. {"STUB_TX", NULL, "BE_IN"},
  28376. {"STUB_1_TX", NULL, "BE_IN"},
  28377. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28378. {"AUX_PCM_TX", NULL, "BE_IN"},
  28379. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  28380. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  28381. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  28382. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  28383. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  28384. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  28385. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  28386. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28387. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28388. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28389. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28390. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  28391. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28392. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28393. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  28394. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  28395. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  28396. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  28397. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  28398. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  28399. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  28400. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  28401. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  28402. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  28403. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  28404. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  28405. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  28406. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  28407. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  28408. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  28409. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  28410. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  28411. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  28412. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  28413. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  28414. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  28415. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  28416. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  28417. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  28418. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  28419. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  28420. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  28421. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  28422. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  28423. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  28424. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  28425. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  28426. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  28427. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  28428. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28429. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28430. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28431. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28432. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28433. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28434. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  28435. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  28436. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  28437. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  28438. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  28439. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  28440. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  28441. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  28442. {"PROXY_TX", NULL, "BE_IN"},
  28443. };
  28444. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  28445. struct snd_pcm_hw_params *params)
  28446. {
  28447. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28448. unsigned int be_id = rtd->dai_link->id;
  28449. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28450. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28451. return -EINVAL;
  28452. }
  28453. mutex_lock(&routing_lock);
  28454. msm_bedais[be_id].sample_rate = params_rate(params);
  28455. msm_bedais[be_id].channel = params_channels(params);
  28456. msm_bedais[be_id].format = params_format(params);
  28457. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  28458. __func__, msm_bedais[be_id].sample_rate,
  28459. msm_bedais[be_id].format, be_id);
  28460. mutex_unlock(&routing_lock);
  28461. return 0;
  28462. }
  28463. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  28464. {
  28465. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28466. unsigned int be_id = rtd->dai_link->id;
  28467. int i, session_type, path_type, topology;
  28468. struct msm_pcm_routing_bdai_data *bedai;
  28469. struct msm_pcm_routing_fdai_data *fdai;
  28470. pr_debug("%s: substream->pcm->id:%s\n",
  28471. __func__, substream->pcm->id);
  28472. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28473. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28474. return -EINVAL;
  28475. }
  28476. bedai = &msm_bedais[be_id];
  28477. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  28478. 0 : 1);
  28479. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28480. path_type = ADM_PATH_PLAYBACK;
  28481. else
  28482. path_type = ADM_PATH_LIVE_REC;
  28483. mutex_lock(&routing_lock);
  28484. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28485. if (!is_mm_lsm_fe_id(i))
  28486. continue;
  28487. fdai = &fe_dai_map[i][session_type];
  28488. if (fdai->strm_id != INVALID_SESSION) {
  28489. int idx;
  28490. int port_id;
  28491. unsigned long copp =
  28492. session_copp_map[i][session_type][be_id];
  28493. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  28494. if (test_bit(idx, &copp))
  28495. break;
  28496. if (idx >= MAX_COPPS_PER_PORT) {
  28497. pr_debug("%s: copp idx is invalid, exiting\n",
  28498. __func__);
  28499. continue;
  28500. }
  28501. fdai->be_srate = bedai->sample_rate;
  28502. port_id = get_port_id(bedai->port_id);
  28503. topology = adm_get_topology_for_port_copp_idx(port_id,
  28504. idx);
  28505. msm_routing_unload_topology(topology);
  28506. adm_close(port_id, fdai->perf_mode, idx);
  28507. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  28508. __func__, copp, i, session_type, be_id,
  28509. topology);
  28510. clear_bit(idx,
  28511. &session_copp_map[i][session_type][be_id]);
  28512. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28513. (fdai->passthr_mode == LEGACY_PCM))
  28514. msm_pcm_routing_deinit_pp(port_id,
  28515. topology);
  28516. }
  28517. }
  28518. bedai->active = 0;
  28519. bedai->sample_rate = 0;
  28520. bedai->channel = 0;
  28521. mutex_unlock(&routing_lock);
  28522. return 0;
  28523. }
  28524. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  28525. {
  28526. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28527. unsigned int be_id = rtd->dai_link->id;
  28528. int i, path_type, topology;
  28529. int session_type = INVALID_SESSION;
  28530. struct msm_pcm_routing_bdai_data *bedai;
  28531. u32 channels, sample_rate;
  28532. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  28533. struct msm_pcm_routing_fdai_data *fdai;
  28534. u32 session_id;
  28535. struct media_format_info voc_be_media_format;
  28536. bool is_lsm;
  28537. pr_debug("%s: substream->pcm->id:%s\n",
  28538. __func__, substream->pcm->id);
  28539. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28540. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28541. return -EINVAL;
  28542. }
  28543. bedai = &msm_bedais[be_id];
  28544. mutex_lock(&routing_lock);
  28545. if (bedai->active == 1)
  28546. goto done; /* Ignore prepare if back-end already active */
  28547. /* AFE port is not active at this point. However, still
  28548. * go ahead setting active flag under the notion that
  28549. * QDSP6 is able to handle ADM starting before AFE port
  28550. * is started.
  28551. */
  28552. bedai->active = 1;
  28553. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28554. if (!(is_mm_lsm_fe_id(i) &&
  28555. route_check_fe_id_adm_support(i)))
  28556. continue;
  28557. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  28558. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28559. fdai = &fe_dai_map[i][session_type];
  28560. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  28561. if (fdai->passthr_mode != LEGACY_PCM)
  28562. path_type = ADM_PATH_COMPRESSED_RX;
  28563. else
  28564. path_type = ADM_PATH_PLAYBACK;
  28565. } else {
  28566. if ((fdai->passthr_mode != LEGACY_PCM) &&
  28567. (fdai->passthr_mode != LISTEN))
  28568. path_type = ADM_PATH_COMPRESSED_TX;
  28569. else
  28570. path_type = ADM_PATH_LIVE_REC;
  28571. }
  28572. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  28573. (i <= MSM_FRONTEND_DAI_LSM8);
  28574. if (fdai->strm_id != INVALID_SESSION) {
  28575. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  28576. int port_id = get_port_id(bedai->port_id);
  28577. if (session_type == SESSION_TYPE_TX &&
  28578. fdai->be_srate &&
  28579. (fdai->be_srate != bedai->sample_rate)) {
  28580. pr_debug("%s: flush strm %d diff BE rates\n",
  28581. __func__,
  28582. fdai->strm_id);
  28583. if (fdai->event_info.event_func)
  28584. fdai->event_info.event_func(
  28585. MSM_PCM_RT_EVT_BUF_RECFG,
  28586. fdai->event_info.priv_data);
  28587. fdai->be_srate = 0; /* might not need it */
  28588. }
  28589. bits_per_sample = msm_routing_get_bit_width(
  28590. bedai->format);
  28591. app_type =
  28592. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  28593. if (app_type && is_lsm) {
  28594. app_type_idx =
  28595. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  28596. sample_rate =
  28597. fe_dai_app_type_cfg[i][session_type][be_id]
  28598. .sample_rate;
  28599. bits_per_sample =
  28600. lsm_app_type_cfg[app_type_idx].bit_width;
  28601. } else if (app_type) {
  28602. app_type_idx =
  28603. msm_pcm_routing_get_app_type_idx(app_type);
  28604. sample_rate =
  28605. fe_dai_app_type_cfg[i][session_type]
  28606. [be_id].sample_rate;
  28607. bits_per_sample =
  28608. app_type_cfg[app_type_idx].bit_width;
  28609. } else
  28610. sample_rate = bedai->sample_rate;
  28611. /*
  28612. * check if ADM needs to be configured with different
  28613. * channel mapping than backend
  28614. */
  28615. if (!bedai->adm_override_ch)
  28616. channels = bedai->channel;
  28617. else
  28618. channels = bedai->adm_override_ch;
  28619. acdb_dev_id =
  28620. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  28621. topology = msm_routing_get_adm_topology(i, session_type,
  28622. be_id);
  28623. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  28624. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  28625. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  28626. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  28627. be_bit_width = msm_routing_get_bit_width(
  28628. bedai->format);
  28629. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  28630. || bedai->sample_rate == 352800) &&
  28631. be_bit_width == 32)
  28632. bits_per_sample = msm_routing_get_bit_width(
  28633. SNDRV_PCM_FORMAT_S32_LE);
  28634. copp_idx = adm_open(port_id, path_type,
  28635. sample_rate, channels, topology,
  28636. fdai->perf_mode, bits_per_sample,
  28637. app_type, acdb_dev_id,
  28638. session_type);
  28639. if ((copp_idx < 0) ||
  28640. (copp_idx >= MAX_COPPS_PER_PORT)) {
  28641. pr_err("%s: adm open failed\n", __func__);
  28642. mutex_unlock(&routing_lock);
  28643. return -EINVAL;
  28644. }
  28645. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  28646. __func__, i, session_type, be_id);
  28647. set_bit(copp_idx,
  28648. &session_copp_map[i][session_type][be_id]);
  28649. if (msm_is_resample_needed(
  28650. sample_rate,
  28651. bedai->sample_rate))
  28652. adm_copp_mfc_cfg(port_id, copp_idx,
  28653. bedai->sample_rate);
  28654. msm_pcm_routing_build_matrix(i, session_type, path_type,
  28655. fdai->perf_mode, fdai->passthr_mode);
  28656. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28657. (fdai->passthr_mode == LEGACY_PCM))
  28658. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  28659. topology, channels);
  28660. }
  28661. }
  28662. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28663. session_id = msm_pcm_routing_get_voc_sessionid(i);
  28664. if (session_id) {
  28665. pr_debug("%s voice session_id: 0x%x\n", __func__,
  28666. session_id);
  28667. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28668. voc_path_type = RX_PATH;
  28669. else
  28670. voc_path_type = TX_PATH;
  28671. voc_set_route_flag(session_id, voc_path_type, 1);
  28672. memset(&voc_be_media_format, 0,
  28673. sizeof(struct media_format_info));
  28674. voc_be_media_format.port_id = bedai->port_id;
  28675. voc_be_media_format.num_channels = bedai->channel;
  28676. voc_be_media_format.sample_rate = bedai->sample_rate;
  28677. voc_be_media_format.bits_per_sample = bedai->format;
  28678. /* Defaulting this to 1 for voice call usecases */
  28679. voc_be_media_format.channel_mapping[0] = 1;
  28680. voc_set_device_config(session_id, voc_path_type,
  28681. &voc_be_media_format);
  28682. if (voc_get_route_flag(session_id, RX_PATH) &&
  28683. voc_get_route_flag(session_id, TX_PATH))
  28684. voc_enable_device(session_id);
  28685. }
  28686. }
  28687. /* Check if backend is an external ec ref port and set as needed */
  28688. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  28689. memset(&voc_be_media_format, 0,
  28690. sizeof(struct media_format_info));
  28691. /* Get format info for ec ref port from msm_bedais[] */
  28692. voc_be_media_format.port_id = bedai->port_id;
  28693. voc_be_media_format.num_channels = bedai->channel;
  28694. voc_be_media_format.bits_per_sample = bedai->format;
  28695. voc_be_media_format.sample_rate = bedai->sample_rate;
  28696. /* Defaulting this to 1 for voice call usecases */
  28697. voc_be_media_format.channel_mapping[0] = 1;
  28698. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  28699. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  28700. __func__, voc_be_media_format.port_id,
  28701. voc_be_media_format.num_channels,
  28702. voc_be_media_format.bits_per_sample,
  28703. voc_be_media_format.sample_rate);
  28704. }
  28705. done:
  28706. mutex_unlock(&routing_lock);
  28707. return 0;
  28708. }
  28709. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  28710. int fe_id)
  28711. {
  28712. int index, topo_id, be_idx;
  28713. unsigned long pp_config = 0;
  28714. bool mute_on;
  28715. int latency, session_type;
  28716. bool compr_passthr_mode = true;
  28717. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  28718. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  28719. pr_err("%s: Device pp params on invalid port %d, copp_idx %d, fe_id %d\n",
  28720. __func__, port_id, copp_idx, fe_id);
  28721. return -EINVAL;
  28722. }
  28723. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  28724. if (port_id == msm_bedais[be_idx].port_id)
  28725. break;
  28726. }
  28727. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28728. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  28729. return -EINVAL;
  28730. }
  28731. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  28732. if (msm_bedais_pp_params[index].port_id == port_id)
  28733. break;
  28734. }
  28735. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  28736. pr_err("%s: Invalid backend pp params index %d\n",
  28737. __func__, index);
  28738. return -EINVAL;
  28739. }
  28740. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  28741. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  28742. pr_err("%s: Invalid passthrough topology 0x%x\n",
  28743. __func__, topo_id);
  28744. return -EINVAL;
  28745. }
  28746. session_type =
  28747. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  28748. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28749. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  28750. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  28751. compr_passthr_mode = false;
  28752. pp_config = msm_bedais_pp_params[index].pp_params_config;
  28753. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  28754. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  28755. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  28756. mute_on = msm_bedais_pp_params[index].mute_on;
  28757. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28758. adm_send_compressed_device_mute(port_id,
  28759. copp_idx,
  28760. mute_on);
  28761. }
  28762. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  28763. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  28764. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  28765. &pp_config);
  28766. latency = msm_bedais_pp_params[index].latency;
  28767. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28768. adm_send_compressed_device_latency(port_id,
  28769. copp_idx,
  28770. latency);
  28771. }
  28772. return 0;
  28773. }
  28774. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  28775. {
  28776. uint32_t topology = NULL_COPP_TOPOLOGY;
  28777. void *cal_info = NULL;
  28778. uint32_t size = 0;
  28779. /* Retrieve cal_info size from cal data*/
  28780. if (data_size < sizeof(struct audio_cal_type_basic) +
  28781. sizeof(struct audio_cal_info_adm_top)) {
  28782. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  28783. goto done;
  28784. }
  28785. size = data_size - sizeof(struct audio_cal_type_basic);
  28786. cal_info = kzalloc(size, GFP_KERNEL);
  28787. if (!cal_info)
  28788. goto done;
  28789. memcpy(cal_info,
  28790. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  28791. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  28792. kfree(cal_info);
  28793. cal_info = NULL;
  28794. done:
  28795. pr_debug("%s: Using topology %d\n", __func__, topology);
  28796. return topology;
  28797. }
  28798. static void msm_routing_load_topology(size_t data_size, void *data)
  28799. {
  28800. uint32_t topology_id;
  28801. int ret = -EINVAL;
  28802. topology_id = msm_routing_get_topology(data_size, data);
  28803. if (topology_id != NULL_COPP_TOPOLOGY)
  28804. ret = q6core_load_unload_topo_modules(topology_id,
  28805. CORE_LOAD_TOPOLOGY);
  28806. if (ret < 0)
  28807. pr_debug("%s %d load topology failed\n",
  28808. __func__, topology_id);
  28809. }
  28810. static void msm_routing_unload_topology(uint32_t topology_id)
  28811. {
  28812. int ret = -EINVAL;
  28813. if (topology_id != NULL_COPP_TOPOLOGY)
  28814. ret = q6core_load_unload_topo_modules(topology_id,
  28815. CORE_UNLOAD_TOPOLOGY);
  28816. if (ret < 0)
  28817. pr_debug("%s %d unload topology failed\n",
  28818. __func__, topology_id);
  28819. }
  28820. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  28821. struct snd_ctl_elem_value *ucontrol)
  28822. {
  28823. int pp_id = ucontrol->value.integer.value[0];
  28824. int port_id = 0;
  28825. int index, be_idx, i, topo_id, idx;
  28826. bool mute;
  28827. int latency, session_type;
  28828. bool compr_passthr_mode = true;
  28829. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  28830. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  28831. port_id = msm_bedais[be_idx].port_id;
  28832. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  28833. break;
  28834. }
  28835. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28836. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  28837. return -EINVAL;
  28838. }
  28839. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  28840. if (msm_bedais_pp_params[index].port_id == port_id)
  28841. break;
  28842. }
  28843. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  28844. pr_err("%s: Invalid pp params backend index %d\n",
  28845. __func__, index);
  28846. return -EINVAL;
  28847. }
  28848. session_type =
  28849. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  28850. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28851. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  28852. MSM_FRONTEND_DAI_MM_SIZE) {
  28853. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  28854. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  28855. compr_passthr_mode = false;
  28856. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  28857. unsigned long copp =
  28858. session_copp_map[i]
  28859. [SESSION_TYPE_RX][be_idx];
  28860. if (!test_bit(idx, &copp))
  28861. continue;
  28862. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  28863. idx);
  28864. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  28865. continue;
  28866. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  28867. __func__, port_id, copp, msm_bedais[be_idx].active,
  28868. fe_dai_map[i][session_type].passthr_mode);
  28869. switch (pp_id) {
  28870. case ADM_PP_PARAM_MUTE_ID:
  28871. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  28872. mute = ucontrol->value.integer.value[1] ? true : false;
  28873. msm_bedais_pp_params[index].mute_on = mute;
  28874. set_bit(ADM_PP_PARAM_MUTE_BIT,
  28875. &msm_bedais_pp_params[index].pp_params_config);
  28876. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28877. adm_send_compressed_device_mute(port_id,
  28878. idx, mute);
  28879. break;
  28880. case ADM_PP_PARAM_LATENCY_ID:
  28881. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  28882. msm_bedais_pp_params[index].latency =
  28883. ucontrol->value.integer.value[1];
  28884. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  28885. &msm_bedais_pp_params[index].pp_params_config);
  28886. latency = msm_bedais_pp_params[index].latency =
  28887. ucontrol->value.integer.value[1];
  28888. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28889. adm_send_compressed_device_latency(port_id,
  28890. idx, latency);
  28891. break;
  28892. default:
  28893. pr_info("%s, device pp param %d not supported\n",
  28894. __func__, pp_id);
  28895. break;
  28896. }
  28897. }
  28898. }
  28899. return 0;
  28900. }
  28901. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  28902. struct snd_ctl_elem_value *ucontrol)
  28903. {
  28904. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  28905. return 0;
  28906. }
  28907. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  28908. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  28909. 0, 3, msm_routing_get_device_pp_params_mixer,
  28910. msm_routing_put_device_pp_params_mixer),
  28911. };
  28912. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  28913. struct snd_ctl_elem_value *ucontrol)
  28914. {
  28915. ucontrol->value.integer.value[0] =
  28916. core_get_license_status(ASM_MEDIA_FMT_APTX);
  28917. pr_debug("%s: status %ld\n", __func__,
  28918. ucontrol->value.integer.value[0]);
  28919. return 0;
  28920. }
  28921. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  28922. struct snd_ctl_elem_value *ucontrol)
  28923. {
  28924. int32_t status = 0;
  28925. status = core_set_license(ucontrol->value.integer.value[0],
  28926. APTX_CLASSIC_DEC_LICENSE_ID);
  28927. pr_debug("%s: status %d\n", __func__, status);
  28928. return status;
  28929. }
  28930. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  28931. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  28932. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  28933. msm_aptx_dec_license_control_put),
  28934. };
  28935. static int msm_routing_get_pll_clk_drift(struct snd_kcontrol *kcontrol,
  28936. struct snd_ctl_elem_value *ucontrol)
  28937. {
  28938. return 0;
  28939. }
  28940. static int msm_routing_put_pll_clk_drift(struct snd_kcontrol *kcontrol,
  28941. struct snd_ctl_elem_value *ucontrol)
  28942. {
  28943. u16 port_id = 0;
  28944. int32_t clk_drift = 0;
  28945. uint32_t clk_reset = 0;
  28946. int be_idx, ret = -EINVAL;
  28947. be_idx = ucontrol->value.integer.value[0];
  28948. clk_drift = ucontrol->value.integer.value[1];
  28949. clk_reset = ucontrol->value.integer.value[2];
  28950. if (be_idx < 0 && be_idx >= MSM_BACKEND_DAI_MAX) {
  28951. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  28952. return -EINVAL;
  28953. }
  28954. if (!msm_bedais[be_idx].active && !clk_reset) {
  28955. pr_err("%s:BE is not active %d, cannot set clock drift\n",
  28956. __func__, be_idx);
  28957. return -EINVAL;
  28958. }
  28959. port_id = msm_bedais[be_idx].port_id;
  28960. pr_debug("%s: clk drift %d be idx %d clk reset %d port id 0x%x\n",
  28961. __func__, clk_drift, be_idx, clk_reset, port_id);
  28962. ret = afe_set_pll_clk_drift(port_id, clk_drift, clk_reset);
  28963. if (ret < 0)
  28964. pr_err("%s: failed to set pll clk drift\n", __func__);
  28965. return ret;
  28966. }
  28967. static const struct snd_kcontrol_new pll_clk_drift_controls[] = {
  28968. SOC_SINGLE_MULTI_EXT("PLL config data", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  28969. 0, 128, msm_routing_get_pll_clk_drift, msm_routing_put_pll_clk_drift),
  28970. };
  28971. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  28972. struct snd_ctl_elem_value *ucontrol)
  28973. {
  28974. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  28975. uint32_t be_idx = ucontrol->value.integer.value[0];
  28976. int i;
  28977. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28978. pr_err("%s: Invalid Backend index %d\n", __func__, be_idx);
  28979. return -EINVAL;
  28980. }
  28981. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  28982. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  28983. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  28984. pr_err("%s: Invalid channel map %d\n",
  28985. __func__, channel_map[i]);
  28986. return -EINVAL;
  28987. }
  28988. }
  28989. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  28990. return 0;
  28991. }
  28992. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  28993. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  28994. MSM_BACKEND_DAI_MAX, 0,
  28995. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  28996. msm_routing_put_port_chmap_mixer),
  28997. };
  28998. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  28999. struct snd_ctl_elem_info *uinfo)
  29000. {
  29001. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  29002. uinfo->count = sizeof(be_dai_name_table);
  29003. return 0;
  29004. }
  29005. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  29006. unsigned int __user *bytes,
  29007. unsigned int size)
  29008. {
  29009. int i;
  29010. int ret = 0;
  29011. if (size < sizeof(be_dai_name_table)) {
  29012. pr_err("%s: invalid size %d requested, returning\n",
  29013. __func__, size);
  29014. ret = -EINVAL;
  29015. goto done;
  29016. }
  29017. /*
  29018. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  29019. * needed when adding new backends
  29020. */
  29021. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  29022. be_dai_name_table[i].be_id = i;
  29023. strlcpy(be_dai_name_table[i].be_name,
  29024. msm_bedais[i].name,
  29025. LPASS_BE_NAME_MAX_LENGTH);
  29026. }
  29027. ret = copy_to_user(bytes, &be_dai_name_table,
  29028. sizeof(be_dai_name_table));
  29029. if (ret) {
  29030. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  29031. ret = -EFAULT;
  29032. }
  29033. done:
  29034. return ret;
  29035. }
  29036. static const struct snd_kcontrol_new
  29037. msm_routing_be_dai_name_table_mixer_controls[] = {
  29038. {
  29039. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  29040. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  29041. .info = msm_routing_be_dai_name_table_info,
  29042. .name = "Backend DAI Name Table",
  29043. .tlv.c = snd_soc_bytes_tlv_callback,
  29044. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  29045. .max = sizeof(be_dai_name_table),
  29046. .get = msm_routing_be_dai_name_table_tlv_get,
  29047. }
  29048. },
  29049. };
  29050. static int msm_routing_stereo_channel_reverse_control_get(
  29051. struct snd_kcontrol *kcontrol,
  29052. struct snd_ctl_elem_value *ucontrol)
  29053. {
  29054. ucontrol->value.integer.value[0] = swap_ch;
  29055. pr_debug("%s: Swap channel value: %ld\n", __func__,
  29056. ucontrol->value.integer.value[0]);
  29057. return 0;
  29058. }
  29059. static int msm_routing_stereo_channel_reverse_control_put(
  29060. struct snd_kcontrol *kcontrol,
  29061. struct snd_ctl_elem_value *ucontrol)
  29062. {
  29063. int i, idx, be_index, port_id;
  29064. int ret = 0;
  29065. unsigned long copp;
  29066. pr_debug("%s Swap channel value:%ld\n", __func__,
  29067. ucontrol->value.integer.value[0]);
  29068. swap_ch = ucontrol->value.integer.value[0];
  29069. mutex_lock(&routing_lock);
  29070. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  29071. port_id = msm_bedais[be_index].port_id;
  29072. if (!msm_bedais[be_index].active)
  29073. continue;
  29074. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  29075. MSM_FRONTEND_DAI_MM_SIZE) {
  29076. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  29077. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  29078. if (!test_bit(idx, &copp))
  29079. continue;
  29080. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  29081. __func__, port_id, idx);
  29082. ret = adm_swap_speaker_channels(
  29083. port_id, idx,
  29084. msm_bedais[be_index].sample_rate,
  29085. swap_ch);
  29086. if (ret) {
  29087. pr_err("%s:Swap_channel failed, err=%d\n",
  29088. __func__, ret);
  29089. goto done;
  29090. }
  29091. }
  29092. }
  29093. }
  29094. done:
  29095. mutex_unlock(&routing_lock);
  29096. return ret;
  29097. }
  29098. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  29099. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  29100. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  29101. msm_routing_stereo_channel_reverse_control_put),
  29102. };
  29103. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  29104. struct snd_ctl_elem_info *uinfo)
  29105. {
  29106. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  29107. uinfo->count = 1;
  29108. return 0;
  29109. }
  29110. static int msm_routing_instance_id_support_put(
  29111. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  29112. {
  29113. bool supported = ucontrol->value.integer.value[0] ? true : false;
  29114. q6common_update_instance_id_support(supported);
  29115. return 0;
  29116. }
  29117. static int msm_routing_instance_id_support_get(
  29118. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  29119. {
  29120. bool supported = false;
  29121. supported = q6common_is_instance_id_supported();
  29122. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  29123. return 0;
  29124. }
  29125. static const struct snd_kcontrol_new
  29126. msm_routing_feature_support_mixer_controls[] = {
  29127. {
  29128. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  29129. SNDRV_CTL_ELEM_ACCESS_WRITE,
  29130. .info = msm_routing_instance_id_support_info,
  29131. .name = "Instance ID Support",
  29132. .put = msm_routing_instance_id_support_put,
  29133. .get = msm_routing_instance_id_support_get,
  29134. },
  29135. };
  29136. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  29137. .hw_params = msm_pcm_routing_hw_params,
  29138. .close = msm_pcm_routing_close,
  29139. .prepare = msm_pcm_routing_prepare,
  29140. };
  29141. #ifdef CONFIG_DOA_PARAMS_ENABLED
  29142. void msm_routing_add_doa_control(struct snd_soc_component *component)
  29143. {
  29144. snd_soc_add_component_controls(component,
  29145. msm_source_doa_tracking_controls,
  29146. ARRAY_SIZE(msm_source_doa_tracking_controls));
  29147. }
  29148. #else
  29149. void msm_routing_add_doa_control(struct snd_soc_component *component)
  29150. {
  29151. return;
  29152. }
  29153. #endif
  29154. /* Not used but frame seems to require it */
  29155. static int msm_routing_probe(struct snd_soc_component *component)
  29156. {
  29157. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  29158. ARRAY_SIZE(msm_qdsp6_widgets));
  29159. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  29160. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  29161. snd_soc_dapm_add_routes(&component->dapm, intercon,
  29162. ARRAY_SIZE(intercon));
  29163. snd_soc_dapm_new_widgets(component->dapm.card);
  29164. snd_soc_add_component_controls(component, lsm_controls,
  29165. ARRAY_SIZE(lsm_controls));
  29166. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  29167. ARRAY_SIZE(aanc_slim_0_rx_mux));
  29168. snd_soc_add_component_controls(component, aanc_noise_level,
  29169. ARRAY_SIZE(aanc_noise_level));
  29170. snd_soc_add_component_controls(component, msm_voc_session_controls,
  29171. ARRAY_SIZE(msm_voc_session_controls));
  29172. snd_soc_add_component_controls(component, app_type_cfg_controls,
  29173. ARRAY_SIZE(app_type_cfg_controls));
  29174. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  29175. ARRAY_SIZE(lsm_app_type_cfg_controls));
  29176. snd_soc_add_component_controls(component, module_cfg_controls,
  29177. ARRAY_SIZE(module_cfg_controls));
  29178. snd_soc_add_component_controls(component,
  29179. stereo_to_custom_stereo_controls,
  29180. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  29181. snd_soc_add_component_controls(component, ec_ref_param_controls,
  29182. ARRAY_SIZE(ec_ref_param_controls));
  29183. snd_soc_add_component_controls(component, channel_mixer_controls,
  29184. ARRAY_SIZE(channel_mixer_controls));
  29185. msm_qti_pp_add_controls(component);
  29186. msm_dts_srs_tm_add_controls(component);
  29187. msm_dolby_dap_add_controls(component);
  29188. snd_soc_add_component_controls(component,
  29189. use_ds1_or_ds2_controls,
  29190. ARRAY_SIZE(use_ds1_or_ds2_controls));
  29191. snd_soc_add_component_controls(component,
  29192. hifi_filter_controls,
  29193. ARRAY_SIZE(hifi_filter_controls));
  29194. snd_soc_add_component_controls(component,
  29195. use_ffecns_freeze_event_controls,
  29196. ARRAY_SIZE(use_ffecns_freeze_event_controls));
  29197. snd_soc_add_component_controls(component,
  29198. device_pp_params_mixer_controls,
  29199. ARRAY_SIZE(device_pp_params_mixer_controls));
  29200. snd_soc_add_component_controls(component,
  29201. msm_routing_be_dai_name_table_mixer_controls,
  29202. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  29203. /* Add doa control based on config */
  29204. msm_routing_add_doa_control(component);
  29205. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  29206. ARRAY_SIZE(msm_source_tracking_controls));
  29207. snd_soc_add_component_controls(component, adm_channel_config_controls,
  29208. ARRAY_SIZE(adm_channel_config_controls));
  29209. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  29210. ARRAY_SIZE(aptx_dec_license_controls));
  29211. snd_soc_add_component_controls(component,
  29212. stereo_channel_reverse_control,
  29213. ARRAY_SIZE(stereo_channel_reverse_control));
  29214. snd_soc_add_component_controls(
  29215. component, msm_routing_feature_support_mixer_controls,
  29216. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  29217. snd_soc_add_component_controls(component,
  29218. port_multi_channel_map_mixer_controls,
  29219. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  29220. snd_soc_add_component_controls(component, pll_clk_drift_controls,
  29221. ARRAY_SIZE(pll_clk_drift_controls));
  29222. return 0;
  29223. }
  29224. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  29225. {
  29226. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  29227. }
  29228. void msm_routing_pcm_free(struct snd_pcm *pcm)
  29229. {
  29230. msm_pcm_routing_hwdep_free(pcm);
  29231. }
  29232. static struct snd_soc_component_driver msm_soc_routing_component = {
  29233. .name = DRV_NAME,
  29234. .ops = &msm_routing_pcm_ops,
  29235. .probe = msm_routing_probe,
  29236. .pcm_new = msm_routing_pcm_new,
  29237. .pcm_free = msm_routing_pcm_free,
  29238. };
  29239. static int msm_routing_pcm_probe(struct platform_device *pdev)
  29240. {
  29241. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  29242. return snd_soc_register_component(&pdev->dev,
  29243. &msm_soc_routing_component,
  29244. NULL, 0);
  29245. }
  29246. static int msm_routing_pcm_remove(struct platform_device *pdev)
  29247. {
  29248. snd_soc_unregister_component(&pdev->dev);
  29249. return 0;
  29250. }
  29251. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  29252. {.compatible = "qcom,msm-pcm-routing"},
  29253. {}
  29254. };
  29255. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  29256. static struct platform_driver msm_routing_pcm_driver = {
  29257. .driver = {
  29258. .name = "msm-pcm-routing",
  29259. .owner = THIS_MODULE,
  29260. .of_match_table = msm_pcm_routing_dt_match,
  29261. .suppress_bind_attrs = true,
  29262. },
  29263. .probe = msm_routing_pcm_probe,
  29264. .remove = msm_routing_pcm_remove,
  29265. };
  29266. int msm_routing_check_backend_enabled(int fedai_id)
  29267. {
  29268. int i;
  29269. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  29270. /* bad ID assigned in machine driver */
  29271. pr_err("%s: bad MM ID\n", __func__);
  29272. return 0;
  29273. }
  29274. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  29275. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  29276. return msm_bedais[i].active;
  29277. }
  29278. return 0;
  29279. }
  29280. static int get_cal_type_index(int32_t cal_type)
  29281. {
  29282. int ret = -EINVAL;
  29283. switch (cal_type) {
  29284. case ADM_TOPOLOGY_CAL_TYPE:
  29285. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  29286. break;
  29287. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  29288. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  29289. break;
  29290. default:
  29291. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  29292. }
  29293. return ret;
  29294. }
  29295. static int msm_routing_set_cal(int32_t cal_type,
  29296. size_t data_size, void *data)
  29297. {
  29298. int ret = 0;
  29299. int cal_index;
  29300. pr_debug("%s\n", __func__);
  29301. cal_index = get_cal_type_index(cal_type);
  29302. if (cal_index < 0) {
  29303. pr_err("%s: Could not get cal index %d\n",
  29304. __func__, cal_index);
  29305. ret = -EINVAL;
  29306. goto done;
  29307. }
  29308. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  29309. if (ret < 0) {
  29310. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  29311. __func__, ret, cal_type);
  29312. ret = -EINVAL;
  29313. goto done;
  29314. }
  29315. /* Pre-load if it is ADM topology */
  29316. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  29317. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  29318. msm_routing_load_topology(data_size, data);
  29319. }
  29320. done:
  29321. return ret;
  29322. }
  29323. static void msm_routing_delete_cal_data(void)
  29324. {
  29325. pr_debug("%s\n", __func__);
  29326. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  29327. }
  29328. static int msm_routing_init_cal_data(void)
  29329. {
  29330. int ret = 0;
  29331. struct cal_type_info cal_type_info[] = {
  29332. {{ADM_TOPOLOGY_CAL_TYPE,
  29333. {NULL, NULL, NULL,
  29334. msm_routing_set_cal, NULL, NULL} },
  29335. {NULL, NULL, cal_utils_match_buf_num} },
  29336. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  29337. {NULL, NULL, NULL,
  29338. msm_routing_set_cal, NULL, NULL} },
  29339. {NULL, NULL, cal_utils_match_buf_num} },
  29340. };
  29341. pr_debug("%s\n", __func__);
  29342. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  29343. &cal_type_info[0]);
  29344. if (ret < 0) {
  29345. pr_err("%s: could not create cal type!\n",
  29346. __func__);
  29347. ret = -EINVAL;
  29348. goto err;
  29349. }
  29350. return ret;
  29351. err:
  29352. msm_routing_delete_cal_data();
  29353. return ret;
  29354. }
  29355. int __init msm_soc_routing_platform_init(void)
  29356. {
  29357. mutex_init(&routing_lock);
  29358. if (msm_routing_init_cal_data())
  29359. pr_err("%s: could not init cal data!\n", __func__);
  29360. afe_set_routing_callback(
  29361. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  29362. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29363. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  29364. return platform_driver_register(&msm_routing_pcm_driver);
  29365. }
  29366. void msm_soc_routing_platform_exit(void)
  29367. {
  29368. msm_routing_delete_cal_data();
  29369. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29370. mutex_destroy(&routing_lock);
  29371. platform_driver_unregister(&msm_routing_pcm_driver);
  29372. }
  29373. MODULE_DESCRIPTION("MSM routing platform driver");
  29374. MODULE_LICENSE("GPL v2");