msm-pcm-routing-v2.c 1.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/err.h>
  6. #include <linux/module.h>
  7. #include <linux/moduleparam.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/bitops.h>
  10. #include <linux/mutex.h>
  11. #include <linux/of_device.h>
  12. #include <linux/slab.h>
  13. #include <sound/core.h>
  14. #include <sound/soc.h>
  15. #include <sound/soc-dapm.h>
  16. #include <sound/pcm.h>
  17. #include <sound/initval.h>
  18. #include <sound/control.h>
  19. #include <sound/tlv.h>
  20. #include <sound/asound.h>
  21. #include <sound/pcm_params.h>
  22. #include <sound/hwdep.h>
  23. #include <sound/audio_effects.h>
  24. #include <dsp/msm-dts-srs-tm-config.h>
  25. #include <dsp/q6voice.h>
  26. #include <dsp/q6adm-v2.h>
  27. #include <dsp/q6asm-v2.h>
  28. #include <dsp/q6afe-v2.h>
  29. #include <dsp/q6lsm.h>
  30. #include <dsp/q6core.h>
  31. #include <dsp/q6common.h>
  32. #include <dsp/audio_cal_utils.h>
  33. #include "msm-pcm-routing-v2.h"
  34. #include "msm-pcm-routing-devdep.h"
  35. #include "msm-qti-pp-config.h"
  36. #include "msm-dolby-dap-config.h"
  37. #include "msm-ds2-dap-config.h"
  38. #define DRV_NAME "msm-pcm-routing-v2"
  39. #ifndef CONFIG_DOLBY_DAP
  40. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  41. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  42. #endif
  43. #ifndef CONFIG_DOLBY_DS2
  44. #undef DS2_ADM_COPP_TOPOLOGY_ID
  45. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  46. #endif
  47. static struct mutex routing_lock;
  48. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  49. static int fm_switch_enable;
  50. static int hfp_switch_enable;
  51. static int a2dp_switch_enable;
  52. static int sco_switch_enable;
  53. static int int0_mi2s_switch_enable;
  54. static int int4_mi2s_switch_enable;
  55. static int pri_mi2s_switch_enable;
  56. static int sec_mi2s_switch_enable;
  57. static int tert_mi2s_switch_enable;
  58. static int quat_mi2s_switch_enable;
  59. static int quin_mi2s_switch_enable;
  60. static int sen_mi2s_switch_enable;
  61. static int fm_pcmrx_switch_enable;
  62. static int usb_switch_enable;
  63. static int lsm_port_index;
  64. static int slim0_rx_aanc_fb_port;
  65. static int msm_route_ec_ref_rx;
  66. static int msm_ec_ref_ch = 4;
  67. static int msm_ec_ref_ch_downmixed = 4;
  68. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  69. static int msm_ec_ref_sampling_rate = 48000;
  70. static uint32_t voc_session_id = ALL_SESSION_VSID;
  71. static int msm_route_ext_ec_ref;
  72. static bool is_custom_stereo_on;
  73. static bool is_ds2_on;
  74. static bool swap_ch;
  75. static bool hifi_filter_enabled;
  76. static int aanc_level;
  77. static int num_app_cfg_types;
  78. static int msm_ec_ref_port_id;
  79. static int afe_loopback_tx_port_index;
  80. static int afe_loopback_tx_port_id = -1;
  81. #define WEIGHT_0_DB 0x4000
  82. /* all the FEs which can support channel mixer */
  83. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  84. /* all the FES which can support channel mixer for bidirection */
  85. static struct msm_pcm_channel_mixer
  86. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  87. /* input BE for each FE */
  88. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  89. enum {
  90. MADNONE,
  91. MADAUDIO,
  92. MADBEACON,
  93. MADULTRASOUND,
  94. MADSWAUDIO,
  95. };
  96. #define ADM_LSM_PORT_INDEX 9
  97. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  98. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  99. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  100. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  101. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  102. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  103. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  104. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  105. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  106. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  107. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  108. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  109. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  110. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  111. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  112. #define TERT_TDM_TX_TEXT "TERT_TDM_TX_0"
  113. #define LSM_FUNCTION_TEXT "LSM Function"
  114. static const char * const lsm_port_text[] = {
  115. "None",
  116. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  117. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  118. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  119. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  120. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT,
  121. TERT_TDM_TX_TEXT
  122. };
  123. struct msm_pcm_route_bdai_pp_params {
  124. u16 port_id; /* AFE port ID */
  125. unsigned long pp_params_config;
  126. bool mute_on;
  127. int latency;
  128. };
  129. static struct msm_pcm_route_bdai_pp_params
  130. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  131. {HDMI_RX, 0, 0, 0},
  132. {DISPLAY_PORT_RX, 0, 0, 0},
  133. };
  134. /*
  135. * The be_dai_name_table is passed to HAL so that it can specify the
  136. * BE ID for the BE it wants to enable based on the name. Thus there
  137. * is a matching table and structure in HAL that need to be updated
  138. * if any changes to these are made.
  139. */
  140. struct msm_pcm_route_bdai_name {
  141. unsigned int be_id;
  142. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  143. };
  144. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  145. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  146. int fe_id);
  147. static void msm_routing_load_topology(size_t data_size, void *data);
  148. static void msm_routing_unload_topology(uint32_t topology_id);
  149. static int msm_routing_get_bit_width(unsigned int format)
  150. {
  151. int bit_width;
  152. switch (format) {
  153. case SNDRV_PCM_FORMAT_S32_LE:
  154. bit_width = 32;
  155. break;
  156. case SNDRV_PCM_FORMAT_S24_LE:
  157. case SNDRV_PCM_FORMAT_S24_3LE:
  158. bit_width = 24;
  159. break;
  160. case SNDRV_PCM_FORMAT_S16_LE:
  161. default:
  162. bit_width = 16;
  163. }
  164. return bit_width;
  165. }
  166. static bool msm_is_resample_needed(int input_sr, int output_sr)
  167. {
  168. bool rc = false;
  169. if (input_sr != output_sr)
  170. rc = true;
  171. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  172. (rc ? "oh yes" : "not really"),
  173. input_sr, output_sr);
  174. return rc;
  175. }
  176. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  177. int channels)
  178. {
  179. int rc = 0;
  180. switch (topology) {
  181. case SRS_TRUMEDIA_TOPOLOGY_ID:
  182. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  183. msm_dts_srs_tm_init(port_id, copp_idx);
  184. break;
  185. case DS2_ADM_COPP_TOPOLOGY_ID:
  186. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  187. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  188. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  189. is_custom_stereo_on);
  190. if (rc < 0)
  191. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  192. __func__, topology, port_id,
  193. is_custom_stereo_on, rc);
  194. break;
  195. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  196. if (is_ds2_on) {
  197. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  198. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  199. is_custom_stereo_on);
  200. if (rc < 0)
  201. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  202. __func__, topology, port_id, rc);
  203. } else {
  204. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  205. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  206. is_custom_stereo_on);
  207. if (rc < 0)
  208. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  209. __func__, topology, port_id, rc);
  210. }
  211. break;
  212. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  213. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  214. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  215. if (rc < 0)
  216. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  217. __func__, topology, port_id, copp_idx, rc);
  218. break;
  219. default:
  220. /* custom topology specific feature param handlers */
  221. break;
  222. }
  223. }
  224. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  225. {
  226. switch (topology) {
  227. case SRS_TRUMEDIA_TOPOLOGY_ID:
  228. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  229. msm_dts_srs_tm_deinit(port_id);
  230. break;
  231. case DS2_ADM_COPP_TOPOLOGY_ID:
  232. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  233. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  234. msm_ds2_dap_deinit(port_id);
  235. break;
  236. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  237. if (is_ds2_on) {
  238. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  239. msm_ds2_dap_deinit(port_id);
  240. } else {
  241. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  242. msm_dolby_dap_deinit(port_id);
  243. }
  244. break;
  245. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  246. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  247. msm_qti_pp_asphere_deinit(port_id);
  248. break;
  249. default:
  250. /* custom topology specific feature deinit handlers */
  251. break;
  252. }
  253. }
  254. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  255. int path_type, int perf_mode)
  256. {
  257. int itr = 0, rc = 0;
  258. if ((path_type == ADM_PATH_PLAYBACK) &&
  259. (perf_mode == LEGACY_PCM_MODE) &&
  260. is_custom_stereo_on) {
  261. for (itr = 0; itr < payload.num_copps; itr++) {
  262. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  263. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  264. continue;
  265. }
  266. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  267. payload.port_id[itr],
  268. payload.copp_idx[itr],
  269. payload.session_id,
  270. Q14_GAIN_ZERO_POINT_FIVE,
  271. Q14_GAIN_ZERO_POINT_FIVE,
  272. Q14_GAIN_ZERO_POINT_FIVE,
  273. Q14_GAIN_ZERO_POINT_FIVE);
  274. if (rc < 0)
  275. pr_err("%s: err setting custom stereo\n",
  276. __func__);
  277. }
  278. }
  279. }
  280. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  281. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  282. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  283. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  284. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  285. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  286. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  287. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  288. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  289. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  290. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  291. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  292. LPASS_BE_AFE_PCM_RX},
  293. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  294. LPASS_BE_AFE_PCM_TX},
  295. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  296. LPASS_BE_AUXPCM_RX},
  297. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  298. LPASS_BE_AUXPCM_TX},
  299. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  300. LPASS_BE_VOICE_PLAYBACK_TX},
  301. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  302. LPASS_BE_VOICE2_PLAYBACK_TX},
  303. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  304. LPASS_BE_INCALL_RECORD_RX},
  305. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  306. LPASS_BE_INCALL_RECORD_TX},
  307. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  308. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  309. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  310. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  311. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  312. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  313. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  314. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  315. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  316. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  317. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  318. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  319. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  320. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  321. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  322. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  323. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  324. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  325. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  326. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  327. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  328. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  329. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  330. LPASS_BE_QUAT_MI2S_RX},
  331. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  332. LPASS_BE_QUAT_MI2S_TX},
  333. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  334. LPASS_BE_SEC_MI2S_RX},
  335. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  336. LPASS_BE_SEC_MI2S_TX},
  337. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  338. LPASS_BE_PRI_MI2S_RX},
  339. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  340. LPASS_BE_PRI_MI2S_TX},
  341. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  342. LPASS_BE_TERT_MI2S_RX},
  343. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  344. LPASS_BE_TERT_MI2S_TX},
  345. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  346. LPASS_BE_AUDIO_I2S_RX},
  347. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  348. LPASS_BE_SEC_AUXPCM_RX},
  349. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  350. LPASS_BE_SEC_AUXPCM_TX},
  351. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  352. LPASS_BE_PRI_SPDIF_RX},
  353. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  354. LPASS_BE_SEC_MI2S_RX_SD1},
  355. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  356. LPASS_BE_QUIN_MI2S_RX},
  357. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  358. LPASS_BE_QUIN_MI2S_TX},
  359. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  360. LPASS_BE_SENARY_MI2S_TX},
  361. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  362. LPASS_BE_PRI_TDM_RX_0},
  363. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  364. LPASS_BE_PRI_TDM_TX_0},
  365. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  366. LPASS_BE_PRI_TDM_RX_1},
  367. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  368. LPASS_BE_PRI_TDM_TX_1},
  369. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  370. LPASS_BE_PRI_TDM_RX_2},
  371. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  372. LPASS_BE_PRI_TDM_TX_2},
  373. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  374. LPASS_BE_PRI_TDM_RX_3},
  375. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  376. LPASS_BE_PRI_TDM_TX_3},
  377. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  378. LPASS_BE_PRI_TDM_RX_4},
  379. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  380. LPASS_BE_PRI_TDM_TX_4},
  381. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  382. LPASS_BE_PRI_TDM_RX_5},
  383. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  384. LPASS_BE_PRI_TDM_TX_5},
  385. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  386. LPASS_BE_PRI_TDM_RX_6},
  387. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  388. LPASS_BE_PRI_TDM_TX_6},
  389. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  390. LPASS_BE_PRI_TDM_RX_7},
  391. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  392. LPASS_BE_PRI_TDM_TX_7},
  393. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  394. LPASS_BE_SEC_TDM_RX_0},
  395. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  396. LPASS_BE_SEC_TDM_TX_0},
  397. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  398. LPASS_BE_SEC_TDM_RX_1},
  399. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  400. LPASS_BE_SEC_TDM_TX_1},
  401. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  402. LPASS_BE_SEC_TDM_RX_2},
  403. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  404. LPASS_BE_SEC_TDM_TX_2},
  405. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  406. LPASS_BE_SEC_TDM_RX_3},
  407. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  408. LPASS_BE_SEC_TDM_TX_3},
  409. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  410. LPASS_BE_SEC_TDM_RX_4},
  411. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  412. LPASS_BE_SEC_TDM_TX_4},
  413. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  414. LPASS_BE_SEC_TDM_RX_5},
  415. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  416. LPASS_BE_SEC_TDM_TX_5},
  417. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  418. LPASS_BE_SEC_TDM_RX_6},
  419. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  420. LPASS_BE_SEC_TDM_TX_6},
  421. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  422. LPASS_BE_SEC_TDM_RX_7},
  423. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  424. LPASS_BE_SEC_TDM_TX_7},
  425. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  426. LPASS_BE_TERT_TDM_RX_0},
  427. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  428. LPASS_BE_TERT_TDM_TX_0},
  429. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  430. LPASS_BE_TERT_TDM_RX_1},
  431. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  432. LPASS_BE_TERT_TDM_TX_1},
  433. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  434. LPASS_BE_TERT_TDM_RX_2},
  435. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  436. LPASS_BE_TERT_TDM_TX_2},
  437. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  438. LPASS_BE_TERT_TDM_RX_3},
  439. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  440. LPASS_BE_TERT_TDM_TX_3},
  441. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  442. LPASS_BE_TERT_TDM_RX_4},
  443. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  444. LPASS_BE_TERT_TDM_TX_4},
  445. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  446. LPASS_BE_TERT_TDM_RX_5},
  447. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  448. LPASS_BE_TERT_TDM_TX_5},
  449. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  450. LPASS_BE_TERT_TDM_RX_6},
  451. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  452. LPASS_BE_TERT_TDM_TX_6},
  453. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  454. LPASS_BE_TERT_TDM_RX_7},
  455. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  456. LPASS_BE_TERT_TDM_TX_7},
  457. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  458. LPASS_BE_QUAT_TDM_RX_0},
  459. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  460. LPASS_BE_QUAT_TDM_TX_0},
  461. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  462. LPASS_BE_QUAT_TDM_RX_1},
  463. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  464. LPASS_BE_QUAT_TDM_TX_1},
  465. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  466. LPASS_BE_QUAT_TDM_RX_2},
  467. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  468. LPASS_BE_QUAT_TDM_TX_2},
  469. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  470. LPASS_BE_QUAT_TDM_RX_3},
  471. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  472. LPASS_BE_QUAT_TDM_TX_3},
  473. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  474. LPASS_BE_QUAT_TDM_RX_4},
  475. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  476. LPASS_BE_QUAT_TDM_TX_4},
  477. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  478. LPASS_BE_QUAT_TDM_RX_5},
  479. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  480. LPASS_BE_QUAT_TDM_TX_5},
  481. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  482. LPASS_BE_QUAT_TDM_RX_6},
  483. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  484. LPASS_BE_QUAT_TDM_TX_6},
  485. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  486. LPASS_BE_QUAT_TDM_RX_7},
  487. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  488. LPASS_BE_QUAT_TDM_TX_7},
  489. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  490. LPASS_BE_QUIN_TDM_RX_0},
  491. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  492. LPASS_BE_QUIN_TDM_TX_0},
  493. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  494. LPASS_BE_QUIN_TDM_RX_1},
  495. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  496. LPASS_BE_QUIN_TDM_TX_1},
  497. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  498. LPASS_BE_QUIN_TDM_RX_2},
  499. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  500. LPASS_BE_QUIN_TDM_TX_2},
  501. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  502. LPASS_BE_QUIN_TDM_RX_3},
  503. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  504. LPASS_BE_QUIN_TDM_TX_3},
  505. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  506. LPASS_BE_QUIN_TDM_RX_4},
  507. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  508. LPASS_BE_QUIN_TDM_TX_4},
  509. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  510. LPASS_BE_QUIN_TDM_RX_5},
  511. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  512. LPASS_BE_QUIN_TDM_TX_5},
  513. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  514. LPASS_BE_QUIN_TDM_RX_6},
  515. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  516. LPASS_BE_QUIN_TDM_TX_6},
  517. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  518. LPASS_BE_QUIN_TDM_RX_7},
  519. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  520. LPASS_BE_QUIN_TDM_TX_7},
  521. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  522. LPASS_BE_SEN_TDM_RX_0},
  523. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  524. LPASS_BE_SEN_TDM_TX_0},
  525. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  526. LPASS_BE_SEN_TDM_RX_1},
  527. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  528. LPASS_BE_SEN_TDM_TX_1},
  529. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  530. LPASS_BE_SEN_TDM_RX_2},
  531. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  532. LPASS_BE_SEN_TDM_TX_2},
  533. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  534. LPASS_BE_SEN_TDM_RX_3},
  535. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  536. LPASS_BE_SEN_TDM_TX_3},
  537. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  538. LPASS_BE_SEN_TDM_RX_4},
  539. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  540. LPASS_BE_SEN_TDM_TX_4},
  541. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  542. LPASS_BE_SEN_TDM_RX_5},
  543. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  544. LPASS_BE_SEN_TDM_TX_5},
  545. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  546. LPASS_BE_SEN_TDM_RX_6},
  547. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  548. LPASS_BE_SEN_TDM_TX_6},
  549. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  550. LPASS_BE_SEN_TDM_RX_7},
  551. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  552. LPASS_BE_SEN_TDM_TX_7},
  553. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  554. LPASS_BE_INT_BT_A2DP_RX},
  555. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  556. LPASS_BE_USB_AUDIO_RX},
  557. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  558. LPASS_BE_USB_AUDIO_TX},
  559. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  560. LPASS_BE_DISPLAY_PORT},
  561. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  562. LPASS_BE_DISPLAY_PORT1},
  563. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  564. LPASS_BE_TERT_AUXPCM_RX},
  565. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  566. LPASS_BE_TERT_AUXPCM_TX},
  567. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  568. LPASS_BE_QUAT_AUXPCM_RX},
  569. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  570. LPASS_BE_QUAT_AUXPCM_TX},
  571. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  572. LPASS_BE_QUIN_AUXPCM_RX},
  573. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  574. LPASS_BE_QUIN_AUXPCM_TX},
  575. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  576. LPASS_BE_INT0_MI2S_RX},
  577. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  578. LPASS_BE_INT0_MI2S_TX},
  579. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  580. LPASS_BE_INT1_MI2S_RX},
  581. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  582. LPASS_BE_INT1_MI2S_TX},
  583. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  584. LPASS_BE_INT2_MI2S_RX},
  585. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  586. LPASS_BE_INT2_MI2S_TX},
  587. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  588. LPASS_BE_INT3_MI2S_RX},
  589. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  590. LPASS_BE_INT3_MI2S_TX},
  591. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  592. LPASS_BE_INT4_MI2S_RX},
  593. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  594. LPASS_BE_INT4_MI2S_TX},
  595. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  596. LPASS_BE_INT5_MI2S_RX},
  597. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  598. LPASS_BE_INT5_MI2S_TX},
  599. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  600. LPASS_BE_INT6_MI2S_RX},
  601. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  602. LPASS_BE_INT6_MI2S_TX},
  603. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  604. LPASS_BE_SEN_AUXPCM_RX},
  605. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  606. LPASS_BE_SEN_AUXPCM_TX},
  607. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  608. LPASS_BE_SENARY_MI2S_RX},
  609. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  610. LPASS_BE_WSA_CDC_DMA_RX_0},
  611. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  612. LPASS_BE_WSA_CDC_DMA_TX_0},
  613. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  614. LPASS_BE_WSA_CDC_DMA_RX_1},
  615. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  616. LPASS_BE_WSA_CDC_DMA_TX_1},
  617. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  618. LPASS_BE_WSA_CDC_DMA_TX_2},
  619. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  620. LPASS_BE_VA_CDC_DMA_TX_0},
  621. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  622. LPASS_BE_VA_CDC_DMA_TX_1},
  623. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  624. LPASS_BE_VA_CDC_DMA_TX_2},
  625. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  626. LPASS_BE_RX_CDC_DMA_RX_0},
  627. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  628. LPASS_BE_TX_CDC_DMA_TX_0},
  629. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  630. LPASS_BE_RX_CDC_DMA_RX_1},
  631. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  632. LPASS_BE_TX_CDC_DMA_TX_1},
  633. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  634. LPASS_BE_RX_CDC_DMA_RX_2},
  635. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  636. LPASS_BE_TX_CDC_DMA_TX_2},
  637. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  638. LPASS_BE_RX_CDC_DMA_RX_3},
  639. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  640. LPASS_BE_TX_CDC_DMA_TX_3},
  641. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  642. LPASS_BE_RX_CDC_DMA_RX_4},
  643. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  644. LPASS_BE_TX_CDC_DMA_TX_4},
  645. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  646. LPASS_BE_RX_CDC_DMA_RX_5},
  647. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  648. LPASS_BE_TX_CDC_DMA_TX_5},
  649. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  650. LPASS_BE_RX_CDC_DMA_RX_6},
  651. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  652. LPASS_BE_RX_CDC_DMA_RX_7},
  653. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  654. LPASS_BE_PRI_SPDIF_TX},
  655. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  656. LPASS_BE_SEC_SPDIF_RX},
  657. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  658. LPASS_BE_SEC_SPDIF_TX},
  659. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  660. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  661. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  662. { AFE_PORT_ID_PRIMARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  663. LPASS_BE_PRI_META_MI2S_RX},
  664. { AFE_PORT_ID_SECONDARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  665. LPASS_BE_SEC_META_MI2S_RX},
  666. };
  667. /* Track ASM playback & capture sessions of DAI
  668. * Track LSM listen sessions
  669. */
  670. static struct msm_pcm_routing_fdai_data
  671. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  672. /* MULTIMEDIA1 */
  673. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  674. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  675. /* MULTIMEDIA2 */
  676. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  677. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  678. /* MULTIMEDIA3 */
  679. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  680. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  681. /* MULTIMEDIA4 */
  682. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  683. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  684. /* MULTIMEDIA5 */
  685. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  686. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  687. /* MULTIMEDIA6 */
  688. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  689. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  690. /* MULTIMEDIA7*/
  691. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  692. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  693. /* MULTIMEDIA8 */
  694. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  695. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  696. /* MULTIMEDIA9 */
  697. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  698. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  699. /* MULTIMEDIA10 */
  700. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  701. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  702. /* MULTIMEDIA11 */
  703. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  704. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  705. /* MULTIMEDIA12 */
  706. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  707. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  708. /* MULTIMEDIA13 */
  709. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  710. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  711. /* MULTIMEDIA14 */
  712. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  713. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  714. /* MULTIMEDIA15 */
  715. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  716. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  717. /* MULTIMEDIA16 */
  718. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  719. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  720. /* MULTIMEDIA17 */
  721. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  722. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  723. /* MULTIMEDIA18 */
  724. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  725. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  726. /* MULTIMEDIA19 */
  727. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  728. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  729. /* MULTIMEDIA20 */
  730. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  731. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  732. /* MULTIMEDIA21 */
  733. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  734. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  735. /* MULTIMEDIA22 */
  736. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  737. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  738. /* MULTIMEDIA23 */
  739. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  740. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  741. /* MULTIMEDIA26 */
  742. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  743. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  744. /* MULTIMEDIA27 */
  745. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  746. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  747. /* MULTIMEDIA28 */
  748. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  749. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  750. /* MULTIMEDIA29 */
  751. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  752. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  753. /* MULTIMEDIA30 */
  754. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  755. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  756. /* VOIP */
  757. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  758. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  759. /* AFE_RX */
  760. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  761. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  762. /* AFE_TX */
  763. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  764. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  765. /* VOICE_STUB */
  766. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  767. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  768. /* DTMF_RX */
  769. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  770. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  771. /* QCHAT */
  772. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  773. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  774. /* VOLTE_STUB */
  775. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  776. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  777. /* LSM1 */
  778. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  779. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  780. /* LSM2 */
  781. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  782. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  783. /* LSM3 */
  784. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  785. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  786. /* LSM4 */
  787. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  788. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  789. /* LSM5 */
  790. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  791. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  792. /* LSM6 */
  793. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  794. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  795. /* LSM7 */
  796. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  797. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  798. /* LSM8 */
  799. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  800. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  801. /* VOICE2_STUB */
  802. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  803. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  804. /* VOICEMMODE1 */
  805. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  806. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  807. /* VOICEMMODE2 */
  808. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  809. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  810. };
  811. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  812. [MSM_BACKEND_DAI_MAX];
  813. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  814. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  815. static struct msm_pcm_stream_app_type_cfg
  816. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  817. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  818. /* The caller of this should acquire routing lock */
  819. void msm_pcm_routing_get_bedai_info(int be_idx,
  820. struct msm_pcm_routing_bdai_data *be_dai)
  821. {
  822. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  823. memcpy(be_dai, &msm_bedais[be_idx],
  824. sizeof(struct msm_pcm_routing_bdai_data));
  825. }
  826. /* The caller of this should acquire routing lock */
  827. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  828. struct msm_pcm_routing_fdai_data *fe_dai)
  829. {
  830. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  831. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  832. sizeof(struct msm_pcm_routing_fdai_data));
  833. }
  834. void msm_pcm_routing_acquire_lock(void)
  835. {
  836. mutex_lock(&routing_lock);
  837. }
  838. void msm_pcm_routing_release_lock(void)
  839. {
  840. mutex_unlock(&routing_lock);
  841. }
  842. static int msm_pcm_routing_get_app_type_idx(int app_type)
  843. {
  844. int idx;
  845. pr_debug("%s: app_type: %d\n", __func__, app_type);
  846. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  847. if (app_type_cfg[idx].app_type == app_type)
  848. return idx;
  849. }
  850. pr_info("%s: App type not available, fallback to default\n", __func__);
  851. return 0;
  852. }
  853. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  854. {
  855. int idx;
  856. pr_debug("%s: app_type: %d\n", __func__, app_type);
  857. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  858. if (lsm_app_type_cfg[idx].app_type == app_type)
  859. return idx;
  860. }
  861. pr_debug("%s: App type not available, fallback to default\n", __func__);
  862. return 0;
  863. }
  864. static int get_port_id(int port_id)
  865. {
  866. int ret = port_id;
  867. if (port_id == AFE_LOOPBACK_TX) {
  868. /*
  869. * Return afe_loopback_tx_port_id if set. Else return
  870. * msm_ec_ref_port_id to maintain backward compatibility.
  871. */
  872. if (afe_loopback_tx_port_id != -1)
  873. ret = afe_loopback_tx_port_id;
  874. else
  875. ret = msm_ec_ref_port_id;
  876. }
  877. return ret;
  878. }
  879. static bool is_mm_lsm_fe_id(int fe_id)
  880. {
  881. bool rc = true;
  882. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  883. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  884. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  885. rc = false;
  886. }
  887. return rc;
  888. }
  889. /*
  890. * msm_pcm_routing_send_chmix_cfg:
  891. * send the channel mixer command to mix the input channels
  892. * into output channels.
  893. *
  894. * @fe_id: front end id
  895. * @ip_channel_cnt: input channel count
  896. * @op_channel_cnt: output channel count
  897. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  898. * @session_type: indicates session is of type TX or RX
  899. * @stream_type: indicates either Audio or Listen stream type
  900. */
  901. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  902. int op_channel_cnt, int *ch_wght_coeff,
  903. int session_type, int stream_type)
  904. {
  905. int rc = 0, idx = 0;
  906. int be_index = 0, port_id;
  907. unsigned int session_id = 0;
  908. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  909. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  910. stream_type);
  911. if (!is_mm_lsm_fe_id(fe_id)) {
  912. /* bad ID assigned in machine driver */
  913. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  914. return -EINVAL;
  915. }
  916. if (ch_wght_coeff == NULL) {
  917. pr_err("%s: Null channel weightage coefficients passed\n",
  918. __func__);
  919. return -EINVAL;
  920. }
  921. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  922. port_id = msm_bedais[be_index].port_id;
  923. if (!msm_bedais[be_index].active ||
  924. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  925. continue;
  926. session_id = fe_dai_map[fe_id][session_type].strm_id;
  927. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  928. unsigned long copp =
  929. session_copp_map[fe_id][session_type][be_index];
  930. if (!test_bit(idx, &copp))
  931. continue;
  932. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  933. session_id, ip_channel_cnt,
  934. op_channel_cnt, ch_wght_coeff,
  935. session_type, stream_type);
  936. if (rc < 0)
  937. pr_err("%s: err setting channel mix config\n",
  938. __func__);
  939. }
  940. }
  941. return 0;
  942. }
  943. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  944. /**
  945. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  946. * setting before use case start.
  947. *
  948. * @fe_id: frontend idx
  949. * @type: stream direction type
  950. * @params: parameters of channel mixer setting
  951. *
  952. * Return 0 for success
  953. */
  954. int msm_pcm_routing_set_channel_mixer_cfg(
  955. int fe_id, int type,
  956. struct msm_pcm_channel_mixer *params)
  957. {
  958. int i, j = 0;
  959. channel_mixer_v2[fe_id][type].enable = params->enable;
  960. channel_mixer_v2[fe_id][type].rule = params->rule;
  961. channel_mixer_v2[fe_id][type].input_channel =
  962. params->input_channel;
  963. channel_mixer_v2[fe_id][type].output_channel =
  964. params->output_channel;
  965. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  966. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  967. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  968. params->in_ch_map[i];
  969. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  970. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  971. params->out_ch_map[i];
  972. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  973. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  974. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  975. params->channel_weight[i][j];
  976. channel_mixer_v2[fe_id][type].override_in_ch_map =
  977. params->override_in_ch_map;
  978. channel_mixer_v2[fe_id][type].override_out_ch_map =
  979. params->override_out_ch_map;
  980. return 0;
  981. }
  982. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  983. int msm_pcm_routing_reg_stream_app_type_cfg(
  984. int fedai_id, int session_type, int be_id,
  985. struct msm_pcm_stream_app_type_cfg *cfg_data)
  986. {
  987. int ret = 0;
  988. if (cfg_data == NULL) {
  989. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  990. ret = -EINVAL;
  991. goto done;
  992. }
  993. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  994. __func__, fedai_id, session_type, be_id,
  995. cfg_data->app_type, cfg_data->acdb_dev_id,
  996. cfg_data->sample_rate);
  997. if (!is_mm_lsm_fe_id(fedai_id)) {
  998. pr_err("%s: Invalid machine driver ID %d\n",
  999. __func__, fedai_id);
  1000. ret = -EINVAL;
  1001. goto done;
  1002. }
  1003. if (session_type != SESSION_TYPE_RX &&
  1004. session_type != SESSION_TYPE_TX) {
  1005. pr_err("%s: Invalid session type %d\n",
  1006. __func__, session_type);
  1007. ret = -EINVAL;
  1008. goto done;
  1009. }
  1010. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1011. pr_err("%s: Received out of bounds be_id %d\n",
  1012. __func__, be_id);
  1013. ret = -EINVAL;
  1014. goto done;
  1015. }
  1016. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1017. /*
  1018. * Store the BE ID of the configuration information set as the latest so
  1019. * the get mixer control knows what to return.
  1020. */
  1021. last_be_id_configured[fedai_id][session_type] = be_id;
  1022. done:
  1023. return ret;
  1024. }
  1025. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1026. /**
  1027. * msm_pcm_routing_get_stream_app_type_cfg
  1028. *
  1029. * Receives fedai_id, session_type, be_id, and populates app_type,
  1030. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1031. * -EINVAL and does not alter passed values.
  1032. *
  1033. * fedai_id - Passed value, front end ID for which app type config is wanted
  1034. * session_type - Passed value, session type for which app type config
  1035. * is wanted
  1036. * be_id - Returned value, back end device id the app type config data is for
  1037. * cfg_data - Returned value, configuration data used by app type config
  1038. */
  1039. int msm_pcm_routing_get_stream_app_type_cfg(
  1040. int fedai_id, int session_type, int *bedai_id,
  1041. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1042. {
  1043. int be_id;
  1044. int ret = 0;
  1045. if (bedai_id == NULL) {
  1046. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1047. ret = -EINVAL;
  1048. goto done;
  1049. } else if (cfg_data == NULL) {
  1050. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1051. ret = -EINVAL;
  1052. goto done;
  1053. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1054. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1055. ret = -EINVAL;
  1056. goto done;
  1057. } else if (session_type != SESSION_TYPE_RX &&
  1058. session_type != SESSION_TYPE_TX) {
  1059. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1060. ret = -EINVAL;
  1061. goto done;
  1062. }
  1063. be_id = last_be_id_configured[fedai_id][session_type];
  1064. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1065. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1066. ret = -EINVAL;
  1067. goto done;
  1068. }
  1069. *bedai_id = be_id;
  1070. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1071. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1072. __func__, fedai_id, session_type, *bedai_id,
  1073. cfg_data->app_type, cfg_data->acdb_dev_id,
  1074. cfg_data->sample_rate);
  1075. done:
  1076. return ret;
  1077. }
  1078. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1079. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1080. int cal_index)
  1081. {
  1082. struct list_head *ptr, *next;
  1083. struct cal_block_data *cal_block = NULL;
  1084. pr_debug("%s\n", __func__);
  1085. list_for_each_safe(ptr, next,
  1086. &cal_data[cal_index]->cal_blocks) {
  1087. cal_block = list_entry(ptr,
  1088. struct cal_block_data, list);
  1089. if (cal_utils_is_cal_stale(cal_block))
  1090. continue;
  1091. if (((struct audio_cal_info_adm_top *)cal_block
  1092. ->cal_info)->path == path) {
  1093. return cal_block;
  1094. }
  1095. }
  1096. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1097. return NULL;
  1098. }
  1099. static struct cal_block_data *msm_routing_find_topology(int path,
  1100. int app_type,
  1101. int acdb_id,
  1102. int cal_index,
  1103. bool exact)
  1104. {
  1105. struct list_head *ptr, *next;
  1106. struct cal_block_data *cal_block = NULL;
  1107. struct audio_cal_info_adm_top *cal_info;
  1108. pr_debug("%s\n", __func__);
  1109. list_for_each_safe(ptr, next,
  1110. &cal_data[cal_index]->cal_blocks) {
  1111. cal_block = list_entry(ptr,
  1112. struct cal_block_data, list);
  1113. if (cal_utils_is_cal_stale(cal_block))
  1114. continue;
  1115. cal_info = (struct audio_cal_info_adm_top *)
  1116. cal_block->cal_info;
  1117. if ((cal_info->path == path) &&
  1118. (cal_info->app_type == app_type) &&
  1119. (cal_info->acdb_id == acdb_id)) {
  1120. return cal_block;
  1121. }
  1122. }
  1123. pr_debug("%s: Can't find topology for path %d, app %d, "
  1124. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1125. exact ? "fail" : "defaulting to search by path");
  1126. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1127. cal_index);
  1128. }
  1129. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1130. int acdb_dev_id, int idx,
  1131. bool exact)
  1132. {
  1133. int topology = -EINVAL;
  1134. struct cal_block_data *cal_block = NULL;
  1135. mutex_lock(&cal_data[idx]->lock);
  1136. cal_block = msm_routing_find_topology(session_type, app_type,
  1137. acdb_dev_id, idx, exact);
  1138. if (cal_block != NULL) {
  1139. topology = ((struct audio_cal_info_adm_top *)
  1140. cal_block->cal_info)->topology;
  1141. }
  1142. mutex_unlock(&cal_data[idx]->lock);
  1143. return topology;
  1144. }
  1145. /*
  1146. * Retrieving cal_block will mark cal_block as stale.
  1147. * Hence it cannot be reused or resent unless the flag
  1148. * is reset.
  1149. */
  1150. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1151. int be_id)
  1152. {
  1153. int topology = NULL_COPP_TOPOLOGY;
  1154. int app_type = 0, acdb_dev_id = 0;
  1155. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1156. __func__, fedai_id, session_type, be_id);
  1157. if (cal_data == NULL)
  1158. goto done;
  1159. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1160. acdb_dev_id =
  1161. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1162. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1163. topology = msm_routing_find_topology_on_index(session_type,
  1164. app_type,
  1165. acdb_dev_id,
  1166. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1167. true /*exact*/);
  1168. if (topology < 0) {
  1169. pr_debug("%s: Check for compatible topology\n", __func__);
  1170. topology = msm_routing_find_topology_on_index(session_type,
  1171. app_type,
  1172. acdb_dev_id,
  1173. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1174. false /*exact*/);
  1175. if (topology < 0)
  1176. topology = NULL_COPP_TOPOLOGY;
  1177. }
  1178. done:
  1179. pr_debug("%s: Using topology %d\n", __func__, topology);
  1180. return topology;
  1181. }
  1182. static uint8_t is_be_dai_extproc(int be_dai)
  1183. {
  1184. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1185. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1186. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1187. return 1;
  1188. else
  1189. return 0;
  1190. }
  1191. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1192. int path_type, int perf_mode,
  1193. uint32_t passthr_mode)
  1194. {
  1195. int i, port_type, j, num_copps = 0;
  1196. struct route_payload payload;
  1197. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1198. path_type == ADM_PATH_COMPRESSED_RX) ?
  1199. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1200. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1201. if (!is_be_dai_extproc(i) &&
  1202. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1203. (msm_bedais[i].active) &&
  1204. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1205. int port_id = get_port_id(msm_bedais[i].port_id);
  1206. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1207. unsigned long copp =
  1208. session_copp_map[fedai_id][sess_type][i];
  1209. if (test_bit(j, &copp)) {
  1210. payload.port_id[num_copps] = port_id;
  1211. payload.copp_idx[num_copps] = j;
  1212. payload.app_type[num_copps] =
  1213. fe_dai_app_type_cfg
  1214. [fedai_id][sess_type][i]
  1215. .app_type;
  1216. payload.acdb_dev_id[num_copps] =
  1217. fe_dai_app_type_cfg
  1218. [fedai_id][sess_type][i]
  1219. .acdb_dev_id;
  1220. payload.sample_rate[num_copps] =
  1221. fe_dai_app_type_cfg
  1222. [fedai_id][sess_type][i]
  1223. .sample_rate;
  1224. num_copps++;
  1225. }
  1226. }
  1227. }
  1228. }
  1229. if (num_copps) {
  1230. payload.num_copps = num_copps;
  1231. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1232. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1233. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1234. }
  1235. }
  1236. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1237. int stream_type)
  1238. {
  1239. int i, session_type, path_type, port_type;
  1240. u32 mode = 0;
  1241. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1242. /* bad ID assigned in machine driver */
  1243. pr_err("%s: bad MM ID\n", __func__);
  1244. return;
  1245. }
  1246. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1247. session_type = SESSION_TYPE_RX;
  1248. path_type = ADM_PATH_PLAYBACK;
  1249. port_type = MSM_AFE_PORT_TYPE_RX;
  1250. } else {
  1251. session_type = SESSION_TYPE_TX;
  1252. path_type = ADM_PATH_LIVE_REC;
  1253. port_type = MSM_AFE_PORT_TYPE_TX;
  1254. }
  1255. mutex_lock(&routing_lock);
  1256. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1257. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1258. if (!is_be_dai_extproc(i) &&
  1259. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1260. (msm_bedais[i].active) &&
  1261. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1262. mode = afe_get_port_type(msm_bedais[i].port_id);
  1263. adm_connect_afe_port(mode, dspst_id,
  1264. msm_bedais[i].port_id);
  1265. break;
  1266. }
  1267. }
  1268. mutex_unlock(&routing_lock);
  1269. }
  1270. static bool route_check_fe_id_adm_support(int fe_id)
  1271. {
  1272. bool rc = true;
  1273. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1274. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1275. /* fe id is listen while port is set to afe */
  1276. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1277. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1278. __func__, fe_id, lsm_port_index);
  1279. rc = false;
  1280. }
  1281. }
  1282. return rc;
  1283. }
  1284. /*
  1285. * msm_pcm_routing_get_pp_ch_cnt:
  1286. * Read the processed channel count
  1287. *
  1288. * @fe_id: Front end ID
  1289. * @session_type: Inidicates RX or TX session type
  1290. */
  1291. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1292. {
  1293. struct msm_pcm_stream_app_type_cfg cfg_data;
  1294. int be_id = 0, app_type_idx = 0, app_type = 0;
  1295. int ret = -EINVAL;
  1296. memset(&cfg_data, 0, sizeof(cfg_data));
  1297. if (!is_mm_lsm_fe_id(fe_id)) {
  1298. pr_err("%s: bad MM ID\n", __func__);
  1299. return -EINVAL;
  1300. }
  1301. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1302. &be_id, &cfg_data);
  1303. if (ret) {
  1304. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1305. return ret;
  1306. }
  1307. app_type = cfg_data.app_type;
  1308. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1309. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1310. }
  1311. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1312. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1313. int dspst_id, int stream_type,
  1314. uint32_t passthr_mode)
  1315. {
  1316. int i, j, session_type, path_type, port_type, topology;
  1317. int num_copps = 0;
  1318. struct route_payload payload;
  1319. u32 channels, sample_rate;
  1320. u16 bit_width = 16, be_bit_width;
  1321. bool is_lsm;
  1322. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1323. __func__, fe_id, perf_mode, dspst_id,
  1324. stream_type, passthr_mode);
  1325. if (!is_mm_lsm_fe_id(fe_id)) {
  1326. /* bad ID assigned in machine driver */
  1327. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1328. return -EINVAL;
  1329. }
  1330. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1331. session_type = SESSION_TYPE_RX;
  1332. if (passthr_mode != LEGACY_PCM)
  1333. path_type = ADM_PATH_COMPRESSED_RX;
  1334. else
  1335. path_type = ADM_PATH_PLAYBACK;
  1336. port_type = MSM_AFE_PORT_TYPE_RX;
  1337. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1338. session_type = SESSION_TYPE_TX;
  1339. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1340. path_type = ADM_PATH_COMPRESSED_TX;
  1341. else
  1342. path_type = ADM_PATH_LIVE_REC;
  1343. port_type = MSM_AFE_PORT_TYPE_TX;
  1344. } else {
  1345. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1346. return -EINVAL;
  1347. }
  1348. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1349. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1350. mutex_lock(&routing_lock);
  1351. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1352. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1353. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1354. if (!route_check_fe_id_adm_support(fe_id)) {
  1355. /* ignore adm open if not supported for fe_id */
  1356. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1357. mutex_unlock(&routing_lock);
  1358. return 0;
  1359. }
  1360. payload.num_copps = 0; /* only RX needs to use payload */
  1361. /* re-enable EQ if active */
  1362. msm_qti_pp_send_eq_values(fe_id);
  1363. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1364. if (!is_be_dai_extproc(i) &&
  1365. (afe_get_port_type(msm_bedais[i].port_id) ==
  1366. port_type) &&
  1367. (msm_bedais[i].active) &&
  1368. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1369. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1370. int port_id = get_port_id(msm_bedais[i].port_id);
  1371. /*
  1372. * check if ADM needs to be configured with different
  1373. * channel mapping than backend
  1374. */
  1375. if (!msm_bedais[i].adm_override_ch)
  1376. channels = msm_bedais[i].channel;
  1377. else
  1378. channels = msm_bedais[i].adm_override_ch;
  1379. bit_width = msm_routing_get_bit_width(
  1380. msm_bedais[i].format);
  1381. app_type =
  1382. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1383. if (app_type && is_lsm) {
  1384. app_type_idx =
  1385. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1386. sample_rate =
  1387. fe_dai_app_type_cfg[fe_id][session_type][i]
  1388. .sample_rate;
  1389. bit_width =
  1390. lsm_app_type_cfg[app_type_idx].bit_width;
  1391. } else if (app_type) {
  1392. app_type_idx =
  1393. msm_pcm_routing_get_app_type_idx(
  1394. app_type);
  1395. sample_rate =
  1396. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1397. bit_width =
  1398. app_type_cfg[app_type_idx].bit_width;
  1399. } else {
  1400. sample_rate = msm_bedais[i].sample_rate;
  1401. }
  1402. acdb_dev_id =
  1403. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1404. topology = msm_routing_get_adm_topology(fe_id,
  1405. session_type,
  1406. i);
  1407. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1408. || (passthr_mode ==
  1409. COMPRESSED_PASSTHROUGH_GEN)
  1410. || (passthr_mode ==
  1411. COMPRESSED_PASSTHROUGH_IEC61937))
  1412. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1413. pr_debug("%s: Before adm open topology %d\n", __func__,
  1414. topology);
  1415. be_bit_width = msm_routing_get_bit_width(
  1416. msm_bedais[i].format);
  1417. if (hifi_filter_enabled && (msm_bedais[i].sample_rate
  1418. == 384000 || msm_bedais[i].sample_rate ==
  1419. 352800) && be_bit_width == 32)
  1420. bit_width = msm_routing_get_bit_width(
  1421. SNDRV_PCM_FORMAT_S32_LE);
  1422. copp_idx =
  1423. adm_open(port_id, path_type, sample_rate,
  1424. channels, topology, perf_mode,
  1425. bit_width, app_type, acdb_dev_id,
  1426. session_type);
  1427. if ((copp_idx < 0) ||
  1428. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1429. pr_err("%s:adm open failed coppid:%d\n",
  1430. __func__, copp_idx);
  1431. mutex_unlock(&routing_lock);
  1432. return -EINVAL;
  1433. }
  1434. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1435. __func__, fe_id, session_type, i);
  1436. set_bit(copp_idx,
  1437. &session_copp_map[fe_id][session_type][i]);
  1438. if (msm_is_resample_needed(
  1439. sample_rate,
  1440. msm_bedais[i].sample_rate))
  1441. adm_copp_mfc_cfg(port_id, copp_idx,
  1442. msm_bedais[i].sample_rate);
  1443. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1444. unsigned long copp =
  1445. session_copp_map[fe_id][session_type][i];
  1446. if (test_bit(j, &copp)) {
  1447. payload.port_id[num_copps] = port_id;
  1448. payload.copp_idx[num_copps] = j;
  1449. payload.app_type[num_copps] =
  1450. fe_dai_app_type_cfg
  1451. [fe_id][session_type][i]
  1452. .app_type;
  1453. payload.acdb_dev_id[num_copps] =
  1454. fe_dai_app_type_cfg
  1455. [fe_id][session_type][i]
  1456. .acdb_dev_id;
  1457. payload.sample_rate[num_copps] =
  1458. fe_dai_app_type_cfg
  1459. [fe_id][session_type][i]
  1460. .sample_rate;
  1461. num_copps++;
  1462. }
  1463. }
  1464. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1465. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1466. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1467. msm_routing_send_device_pp_params(port_id,
  1468. copp_idx, fe_id);
  1469. }
  1470. }
  1471. if (num_copps) {
  1472. payload.num_copps = num_copps;
  1473. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1474. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1475. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1476. }
  1477. mutex_unlock(&routing_lock);
  1478. return 0;
  1479. }
  1480. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1481. {
  1482. u32 session_id;
  1483. switch (val) {
  1484. case MSM_FRONTEND_DAI_QCHAT:
  1485. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1486. break;
  1487. case MSM_FRONTEND_DAI_VOIP:
  1488. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1489. break;
  1490. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1491. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1492. break;
  1493. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1494. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1495. break;
  1496. default:
  1497. session_id = 0;
  1498. }
  1499. pr_debug("%s session_id 0x%x", __func__, session_id);
  1500. return session_id;
  1501. }
  1502. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1503. int dspst_id, int stream_type)
  1504. {
  1505. int copp_idx = 0;
  1506. int sess_type = 0;
  1507. int j = 0, be_id = 0;
  1508. int ret = 0;
  1509. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1510. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1511. return 0;
  1512. }
  1513. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1514. sess_type = SESSION_TYPE_RX;
  1515. else
  1516. sess_type = SESSION_TYPE_TX;
  1517. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1518. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1519. __func__, fe_id, sess_type);
  1520. return 0;
  1521. }
  1522. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1523. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1524. channel_mixer_v2[fe_id][sess_type].input_channel;
  1525. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1526. __func__, sess_type, fe_id,
  1527. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1528. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1529. msm_bedais[be_id].active);
  1530. if ((msm_bedais[be_id].active) &&
  1531. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1532. unsigned long copp =
  1533. session_copp_map[fe_id][sess_type][be_id];
  1534. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1535. if (test_bit(j, &copp)) {
  1536. copp_idx = j;
  1537. break;
  1538. }
  1539. }
  1540. ret = adm_programable_channel_mixer(
  1541. msm_bedais[be_id].port_id,
  1542. copp_idx, dspst_id, sess_type,
  1543. &channel_mixer_v2[fe_id][sess_type], 0);
  1544. }
  1545. return ret;
  1546. }
  1547. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1548. int dspst_id, int stream_type)
  1549. {
  1550. int copp_idx = 0;
  1551. int sess_type = 0;
  1552. int i = 0, j = 0, be_id;
  1553. int ret = 0;
  1554. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1555. dspst_id, stream_type);
  1556. if (ret) {
  1557. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1558. fe_id);
  1559. return ret;
  1560. }
  1561. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1562. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1563. return 0;
  1564. }
  1565. if (!(channel_mixer[fe_id].enable)) {
  1566. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1567. __func__, fe_id);
  1568. return 0;
  1569. }
  1570. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1571. sess_type = SESSION_TYPE_RX;
  1572. else
  1573. sess_type = SESSION_TYPE_TX;
  1574. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1575. ++i) {
  1576. be_id = channel_input[fe_id][i] - 1;
  1577. channel_mixer[fe_id].input_channels[i] =
  1578. msm_bedais[be_id].channel;
  1579. if ((msm_bedais[be_id].active) &&
  1580. test_bit(fe_id,
  1581. &msm_bedais[be_id].fe_sessions[0])) {
  1582. unsigned long copp =
  1583. session_copp_map[fe_id][sess_type][be_id];
  1584. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1585. if (test_bit(j, &copp)) {
  1586. copp_idx = j;
  1587. break;
  1588. }
  1589. }
  1590. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1591. __func__,
  1592. fe_id, be_id, msm_bedais[be_id].channel,
  1593. copp_idx);
  1594. ret = adm_programable_channel_mixer(
  1595. get_port_id(msm_bedais[be_id].port_id),
  1596. copp_idx, dspst_id, sess_type,
  1597. channel_mixer + fe_id, i);
  1598. }
  1599. }
  1600. return ret;
  1601. }
  1602. /**
  1603. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1604. * setting during runtime.
  1605. *
  1606. * @be_id: backend index
  1607. * @session_id: session index
  1608. * @session_type: session type
  1609. * @params: parameters for channel mixer
  1610. *
  1611. * Retuen: 0 for success, else error
  1612. */
  1613. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1614. int session_type,
  1615. struct msm_pcm_channel_mixer *params)
  1616. {
  1617. int rc = 0;
  1618. int port_id, copp_idx = 0;
  1619. be_id--;
  1620. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1621. pr_err("%s: invalid backend id %d\n", __func__,
  1622. be_id);
  1623. return -EINVAL;
  1624. }
  1625. port_id = msm_bedais[be_id].port_id;
  1626. copp_idx = adm_get_default_copp_idx(port_id);
  1627. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1628. __func__, port_id, copp_idx, session_id);
  1629. if ((params->input_channel < 0) ||
  1630. (params->input_channel > ADM_MAX_CHANNELS)) {
  1631. pr_err("%s: invalid input channel %d\n", __func__,
  1632. params->input_channel);
  1633. return -EINVAL;
  1634. }
  1635. if ((params->output_channel < 0) ||
  1636. (params->output_channel > ADM_MAX_CHANNELS)) {
  1637. pr_err("%s: invalid output channel %d\n", __func__,
  1638. params->output_channel);
  1639. return -EINVAL;
  1640. }
  1641. params->input_channels[0] = params->input_channel;
  1642. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1643. __func__, session_type,
  1644. params->override_in_ch_map,
  1645. params->override_out_ch_map,
  1646. msm_bedais[be_id].active);
  1647. rc = adm_programable_channel_mixer(port_id,
  1648. copp_idx,
  1649. session_id,
  1650. session_type,
  1651. params,
  1652. 0);
  1653. if (rc) {
  1654. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1655. rc = -EINVAL;
  1656. }
  1657. return rc;
  1658. }
  1659. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1660. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1661. int dspst_id, int stream_type)
  1662. {
  1663. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1664. struct route_payload payload;
  1665. u32 channels, sample_rate;
  1666. uint16_t bits_per_sample = 16, be_bit_width;
  1667. uint32_t passthr_mode = LEGACY_PCM;
  1668. int ret = 0;
  1669. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1670. /* bad ID assigned in machine driver */
  1671. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1672. return -EINVAL;
  1673. }
  1674. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1675. session_type = SESSION_TYPE_RX;
  1676. path_type = ADM_PATH_PLAYBACK;
  1677. port_type = MSM_AFE_PORT_TYPE_RX;
  1678. } else {
  1679. session_type = SESSION_TYPE_TX;
  1680. path_type = ADM_PATH_LIVE_REC;
  1681. port_type = MSM_AFE_PORT_TYPE_TX;
  1682. }
  1683. mutex_lock(&routing_lock);
  1684. payload.num_copps = 0; /* only RX needs to use payload */
  1685. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1686. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1687. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1688. /* re-enable EQ if active */
  1689. msm_qti_pp_send_eq_values(fedai_id);
  1690. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1691. if (!is_be_dai_extproc(i) &&
  1692. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1693. (msm_bedais[i].active) &&
  1694. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1695. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1696. int port_id = get_port_id(msm_bedais[i].port_id);
  1697. /*
  1698. * check if ADM needs to be configured with different
  1699. * channel mapping than backend
  1700. */
  1701. if (!msm_bedais[i].adm_override_ch)
  1702. channels = msm_bedais[i].channel;
  1703. else
  1704. channels = msm_bedais[i].adm_override_ch;
  1705. bits_per_sample = msm_routing_get_bit_width(
  1706. msm_bedais[i].format);
  1707. app_type =
  1708. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1709. if (app_type) {
  1710. app_type_idx =
  1711. msm_pcm_routing_get_app_type_idx(app_type);
  1712. sample_rate =
  1713. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1714. .sample_rate;
  1715. bits_per_sample =
  1716. app_type_cfg[app_type_idx].bit_width;
  1717. } else
  1718. sample_rate = msm_bedais[i].sample_rate;
  1719. acdb_dev_id =
  1720. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1721. .acdb_dev_id;
  1722. topology = msm_routing_get_adm_topology(fedai_id,
  1723. session_type,
  1724. i);
  1725. be_bit_width = msm_routing_get_bit_width(
  1726. msm_bedais[i].format);
  1727. if (hifi_filter_enabled && (msm_bedais[i].sample_rate ==
  1728. 384000 ||msm_bedais[i].sample_rate == 352800)
  1729. && be_bit_width == 32)
  1730. bits_per_sample = msm_routing_get_bit_width(
  1731. SNDRV_PCM_FORMAT_S32_LE);
  1732. copp_idx = adm_open(port_id, path_type,
  1733. sample_rate, channels, topology,
  1734. perf_mode, bits_per_sample,
  1735. app_type, acdb_dev_id,
  1736. session_type);
  1737. if ((copp_idx < 0) ||
  1738. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1739. pr_err("%s: adm open failed copp_idx:%d\n",
  1740. __func__, copp_idx);
  1741. mutex_unlock(&routing_lock);
  1742. return -EINVAL;
  1743. }
  1744. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1745. __func__, fedai_id, session_type, i);
  1746. set_bit(copp_idx,
  1747. &session_copp_map[fedai_id][session_type][i]);
  1748. if (msm_is_resample_needed(
  1749. sample_rate,
  1750. msm_bedais[i].sample_rate))
  1751. adm_copp_mfc_cfg(port_id, copp_idx,
  1752. msm_bedais[i].sample_rate);
  1753. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1754. unsigned long copp =
  1755. session_copp_map[fedai_id][session_type][i];
  1756. if (test_bit(j, &copp)) {
  1757. payload.port_id[num_copps] = port_id;
  1758. payload.copp_idx[num_copps] = j;
  1759. payload.app_type[num_copps] =
  1760. fe_dai_app_type_cfg
  1761. [fedai_id][session_type]
  1762. [i].app_type;
  1763. payload.acdb_dev_id[num_copps] =
  1764. fe_dai_app_type_cfg
  1765. [fedai_id][session_type]
  1766. [i].acdb_dev_id;
  1767. payload.sample_rate[num_copps] =
  1768. fe_dai_app_type_cfg
  1769. [fedai_id][session_type]
  1770. [i].sample_rate;
  1771. num_copps++;
  1772. }
  1773. }
  1774. if (perf_mode == LEGACY_PCM_MODE)
  1775. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1776. topology, channels);
  1777. }
  1778. }
  1779. if (num_copps) {
  1780. payload.num_copps = num_copps;
  1781. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1782. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1783. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1784. }
  1785. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1786. dspst_id, stream_type);
  1787. mutex_unlock(&routing_lock);
  1788. return ret;
  1789. }
  1790. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1791. int dspst_id, int stream_type,
  1792. struct msm_pcm_routing_evt event_info)
  1793. {
  1794. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1795. stream_type)) {
  1796. pr_err("%s: failed to reg phy stream\n", __func__);
  1797. return -EINVAL;
  1798. }
  1799. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1800. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1801. else
  1802. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1803. return 0;
  1804. }
  1805. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1806. {
  1807. int i, port_type, session_type, path_type, topology, port_id;
  1808. struct msm_pcm_routing_fdai_data *fdai;
  1809. if (!is_mm_lsm_fe_id(fedai_id)) {
  1810. /* bad ID assigned in machine driver */
  1811. pr_err("%s: bad MM ID\n", __func__);
  1812. return;
  1813. }
  1814. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1815. port_type = MSM_AFE_PORT_TYPE_RX;
  1816. session_type = SESSION_TYPE_RX;
  1817. path_type = ADM_PATH_PLAYBACK;
  1818. } else {
  1819. port_type = MSM_AFE_PORT_TYPE_TX;
  1820. session_type = SESSION_TYPE_TX;
  1821. path_type = ADM_PATH_LIVE_REC;
  1822. }
  1823. mutex_lock(&routing_lock);
  1824. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1825. if (!is_be_dai_extproc(i) &&
  1826. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1827. (msm_bedais[i].active) &&
  1828. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1829. int idx;
  1830. unsigned long copp =
  1831. session_copp_map[fedai_id][session_type][i];
  1832. fdai = &fe_dai_map[fedai_id][session_type];
  1833. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1834. if (test_bit(idx, &copp))
  1835. break;
  1836. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1837. pr_debug("%s: copp idx is invalid, exiting\n",
  1838. __func__);
  1839. continue;
  1840. }
  1841. port_id = get_port_id(msm_bedais[i].port_id);
  1842. topology = adm_get_topology_for_port_copp_idx(
  1843. port_id, idx);
  1844. msm_routing_unload_topology(topology);
  1845. adm_close(port_id, fdai->perf_mode, idx);
  1846. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1847. __func__, copp, fedai_id, session_type, i);
  1848. clear_bit(idx,
  1849. &session_copp_map[fedai_id][session_type][i]);
  1850. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1851. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1852. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1853. (fdai->passthr_mode == LEGACY_PCM))
  1854. msm_pcm_routing_deinit_pp(port_id, topology);
  1855. }
  1856. }
  1857. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1858. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1859. mutex_unlock(&routing_lock);
  1860. }
  1861. /* Check if FE/BE route is set */
  1862. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1863. {
  1864. bool rc = false;
  1865. if (!is_mm_lsm_fe_id(fe_id)) {
  1866. /* recheck FE ID in the mixer control defined in this file */
  1867. pr_err("%s: bad MM ID\n", __func__);
  1868. return rc;
  1869. }
  1870. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1871. rc = true;
  1872. return rc;
  1873. }
  1874. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1875. {
  1876. int session_type, path_type, topology;
  1877. u32 channels, sample_rate;
  1878. uint16_t bits_per_sample = 16, be_bit_width;
  1879. struct msm_pcm_routing_fdai_data *fdai;
  1880. uint32_t passthr_mode;
  1881. bool is_lsm;
  1882. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1883. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1884. afe_get_port_type(msm_bedais[reg].port_id) ==
  1885. MSM_AFE_PORT_TYPE_RX) {
  1886. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1887. __func__, set, msm_bedais[reg].port_id);
  1888. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1889. } else if (!is_mm_lsm_fe_id(val)) {
  1890. /* recheck FE ID in the mixer control defined in this file */
  1891. pr_err("%s: bad MM ID\n", __func__);
  1892. return;
  1893. }
  1894. if (!route_check_fe_id_adm_support(val)) {
  1895. /* ignore adm open if not supported for fe_id */
  1896. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1897. if (set)
  1898. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1899. else
  1900. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1901. return;
  1902. }
  1903. session_type =
  1904. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1905. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1906. fdai = &fe_dai_map[val][session_type];
  1907. passthr_mode = fdai->passthr_mode;
  1908. if (session_type == SESSION_TYPE_RX) {
  1909. if (passthr_mode != LEGACY_PCM)
  1910. path_type = ADM_PATH_COMPRESSED_RX;
  1911. else
  1912. path_type = ADM_PATH_PLAYBACK;
  1913. } else {
  1914. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1915. path_type = ADM_PATH_COMPRESSED_TX;
  1916. else
  1917. path_type = ADM_PATH_LIVE_REC;
  1918. }
  1919. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1920. (val <= MSM_FRONTEND_DAI_LSM8);
  1921. mutex_lock(&routing_lock);
  1922. if (set) {
  1923. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1924. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1925. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1926. voc_start_playback(set, msm_bedais[reg].port_id);
  1927. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1928. if (msm_bedais[reg].active && fdai->strm_id !=
  1929. INVALID_SESSION) {
  1930. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1931. int port_id = get_port_id(msm_bedais[reg].port_id);
  1932. /*
  1933. * check if ADM needs to be configured with different
  1934. * channel mapping than backend
  1935. */
  1936. if (!msm_bedais[reg].adm_override_ch)
  1937. channels = msm_bedais[reg].channel;
  1938. else
  1939. channels = msm_bedais[reg].adm_override_ch;
  1940. if (session_type == SESSION_TYPE_TX &&
  1941. fdai->be_srate &&
  1942. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1943. pr_debug("%s: flush strm %d diff BE rates\n",
  1944. __func__, fdai->strm_id);
  1945. if (fdai->event_info.event_func)
  1946. fdai->event_info.event_func(
  1947. MSM_PCM_RT_EVT_BUF_RECFG,
  1948. fdai->event_info.priv_data);
  1949. fdai->be_srate = 0; /* might not need it */
  1950. }
  1951. bits_per_sample = msm_routing_get_bit_width(
  1952. msm_bedais[reg].format);
  1953. app_type =
  1954. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1955. if (app_type && is_lsm) {
  1956. app_type_idx =
  1957. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1958. sample_rate =
  1959. fe_dai_app_type_cfg[val][session_type][reg]
  1960. .sample_rate;
  1961. bits_per_sample =
  1962. lsm_app_type_cfg[app_type_idx].bit_width;
  1963. } else if (app_type) {
  1964. app_type_idx =
  1965. msm_pcm_routing_get_app_type_idx(app_type);
  1966. sample_rate =
  1967. fe_dai_app_type_cfg[val][session_type][reg]
  1968. .sample_rate;
  1969. bits_per_sample =
  1970. app_type_cfg[app_type_idx].bit_width;
  1971. } else
  1972. sample_rate = msm_bedais[reg].sample_rate;
  1973. topology = msm_routing_get_adm_topology(val,
  1974. session_type,
  1975. reg);
  1976. acdb_dev_id =
  1977. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1978. be_bit_width = msm_routing_get_bit_width(
  1979. msm_bedais[reg].format);
  1980. if (hifi_filter_enabled && (msm_bedais[reg].sample_rate
  1981. == 384000 ||msm_bedais[reg].sample_rate ==
  1982. 352800) && be_bit_width == 32)
  1983. bits_per_sample = msm_routing_get_bit_width(
  1984. SNDRV_PCM_FORMAT_S32_LE);
  1985. copp_idx = adm_open(port_id, path_type,
  1986. sample_rate, channels, topology,
  1987. fdai->perf_mode, bits_per_sample,
  1988. app_type, acdb_dev_id,
  1989. session_type);
  1990. if ((copp_idx < 0) ||
  1991. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1992. pr_err("%s: adm open failed\n", __func__);
  1993. mutex_unlock(&routing_lock);
  1994. return;
  1995. }
  1996. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1997. __func__, val, session_type, reg);
  1998. set_bit(copp_idx,
  1999. &session_copp_map[val][session_type][reg]);
  2000. if (msm_is_resample_needed(
  2001. sample_rate,
  2002. msm_bedais[reg].sample_rate))
  2003. adm_copp_mfc_cfg(port_id, copp_idx,
  2004. msm_bedais[reg].sample_rate);
  2005. if (session_type == SESSION_TYPE_RX &&
  2006. fdai->event_info.event_func)
  2007. fdai->event_info.event_func(
  2008. MSM_PCM_RT_EVT_DEVSWITCH,
  2009. fdai->event_info.priv_data);
  2010. msm_pcm_routing_build_matrix(val, session_type,
  2011. path_type,
  2012. fdai->perf_mode,
  2013. passthr_mode);
  2014. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  2015. (passthr_mode == LEGACY_PCM))
  2016. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  2017. topology, channels);
  2018. }
  2019. } else {
  2020. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2021. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2022. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2023. voc_start_playback(set, msm_bedais[reg].port_id);
  2024. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2025. if (msm_bedais[reg].active && fdai->strm_id !=
  2026. INVALID_SESSION) {
  2027. int idx;
  2028. int port_id;
  2029. unsigned long copp =
  2030. session_copp_map[val][session_type][reg];
  2031. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2032. if (test_bit(idx, &copp))
  2033. break;
  2034. if (idx >= MAX_COPPS_PER_PORT) {
  2035. pr_debug("%s: copp idx is invalid, exiting\n",
  2036. __func__);
  2037. mutex_unlock(&routing_lock);
  2038. return;
  2039. }
  2040. port_id = get_port_id(msm_bedais[reg].port_id);
  2041. topology = adm_get_topology_for_port_copp_idx(port_id,
  2042. idx);
  2043. msm_routing_unload_topology(topology);
  2044. adm_close(port_id, fdai->perf_mode, idx);
  2045. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2046. __func__, copp, val, session_type, reg,
  2047. topology);
  2048. clear_bit(idx,
  2049. &session_copp_map[val][session_type][reg]);
  2050. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2051. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2052. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2053. (passthr_mode == LEGACY_PCM))
  2054. msm_pcm_routing_deinit_pp(port_id, topology);
  2055. msm_pcm_routing_build_matrix(val, session_type,
  2056. path_type,
  2057. fdai->perf_mode,
  2058. passthr_mode);
  2059. }
  2060. }
  2061. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2062. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2063. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2064. mutex_unlock(&routing_lock);
  2065. }
  2066. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2067. struct snd_ctl_elem_value *ucontrol)
  2068. {
  2069. struct soc_mixer_control *mc =
  2070. (struct soc_mixer_control *)kcontrol->private_value;
  2071. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2072. ucontrol->value.integer.value[0] = 1;
  2073. else
  2074. ucontrol->value.integer.value[0] = 0;
  2075. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2076. ucontrol->value.integer.value[0]);
  2077. return 0;
  2078. }
  2079. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2080. struct snd_ctl_elem_value *ucontrol)
  2081. {
  2082. struct snd_soc_dapm_widget *widget =
  2083. snd_soc_dapm_kcontrol_widget(kcontrol);
  2084. struct soc_mixer_control *mc =
  2085. (struct soc_mixer_control *)kcontrol->private_value;
  2086. struct snd_soc_dapm_update *update = NULL;
  2087. if (ucontrol->value.integer.value[0] &&
  2088. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2089. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2090. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2091. update);
  2092. } else if (!ucontrol->value.integer.value[0] &&
  2093. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2094. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2095. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2096. update);
  2097. }
  2098. return 1;
  2099. }
  2100. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2101. struct snd_ctl_elem_value *ucontrol)
  2102. {
  2103. struct soc_mixer_control *mc =
  2104. (struct soc_mixer_control *)kcontrol->private_value;
  2105. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2106. ucontrol->value.integer.value[0] = 1;
  2107. else
  2108. ucontrol->value.integer.value[0] = 0;
  2109. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2110. ucontrol->value.integer.value[0]);
  2111. return 0;
  2112. }
  2113. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2114. struct snd_ctl_elem_value *ucontrol)
  2115. {
  2116. struct snd_soc_dapm_widget *widget =
  2117. snd_soc_dapm_kcontrol_widget(kcontrol);
  2118. struct soc_mixer_control *mc =
  2119. (struct soc_mixer_control *)kcontrol->private_value;
  2120. struct snd_soc_dapm_update *update = NULL;
  2121. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2122. ucontrol->value.integer.value[0]);
  2123. if (ucontrol->value.integer.value[0]) {
  2124. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2125. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2126. snd_soc_dapm_mixer_update_power(widget->dapm,
  2127. kcontrol, 1, update);
  2128. } else if (!ucontrol->value.integer.value[0]) {
  2129. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2130. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2131. snd_soc_dapm_mixer_update_power(widget->dapm,
  2132. kcontrol, 0, update);
  2133. }
  2134. return 1;
  2135. }
  2136. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2137. {
  2138. u32 session_id = 0;
  2139. u16 path_type;
  2140. struct media_format_info voc_be_media_format;
  2141. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2142. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2143. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2144. __func__, val, session_id);
  2145. mutex_lock(&routing_lock);
  2146. if (set)
  2147. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2148. else
  2149. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2150. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2151. afe_get_port_type(msm_bedais[reg].port_id) ==
  2152. MSM_AFE_PORT_TYPE_RX) {
  2153. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2154. __func__, set, msm_bedais[reg].port_id);
  2155. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2156. }
  2157. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2158. MSM_AFE_PORT_TYPE_RX)
  2159. path_type = RX_PATH;
  2160. else
  2161. path_type = TX_PATH;
  2162. if (set) {
  2163. if (msm_bedais[reg].active) {
  2164. voc_set_route_flag(session_id, path_type, 1);
  2165. memset(&voc_be_media_format, 0,
  2166. sizeof(struct media_format_info));
  2167. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2168. voc_be_media_format.num_channels =
  2169. msm_bedais[reg].channel;
  2170. voc_be_media_format.sample_rate =
  2171. msm_bedais[reg].sample_rate;
  2172. voc_be_media_format.bits_per_sample =
  2173. msm_bedais[reg].format;
  2174. /* Defaulting this to 1 for voice call usecases */
  2175. voc_be_media_format.channel_mapping[0] = 1;
  2176. voc_set_device_config(session_id, path_type,
  2177. &voc_be_media_format);
  2178. if (voc_get_route_flag(session_id, TX_PATH) &&
  2179. voc_get_route_flag(session_id, RX_PATH))
  2180. voc_enable_device(session_id);
  2181. } else {
  2182. pr_debug("%s BE is not active\n", __func__);
  2183. }
  2184. } else {
  2185. voc_set_route_flag(session_id, path_type, 0);
  2186. voc_disable_device(session_id);
  2187. }
  2188. mutex_unlock(&routing_lock);
  2189. }
  2190. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2191. struct snd_ctl_elem_value *ucontrol)
  2192. {
  2193. struct soc_mixer_control *mc =
  2194. (struct soc_mixer_control *)kcontrol->private_value;
  2195. mutex_lock(&routing_lock);
  2196. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2197. ucontrol->value.integer.value[0] = 1;
  2198. else
  2199. ucontrol->value.integer.value[0] = 0;
  2200. mutex_unlock(&routing_lock);
  2201. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2202. ucontrol->value.integer.value[0]);
  2203. return 0;
  2204. }
  2205. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2206. struct snd_ctl_elem_value *ucontrol)
  2207. {
  2208. struct snd_soc_dapm_widget *widget =
  2209. snd_soc_dapm_kcontrol_widget(kcontrol);
  2210. struct soc_mixer_control *mc =
  2211. (struct soc_mixer_control *)kcontrol->private_value;
  2212. struct snd_soc_dapm_update *update = NULL;
  2213. if (ucontrol->value.integer.value[0]) {
  2214. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2215. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2216. update);
  2217. } else {
  2218. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2219. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2220. update);
  2221. }
  2222. return 1;
  2223. }
  2224. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2225. struct snd_ctl_elem_value *ucontrol)
  2226. {
  2227. struct soc_mixer_control *mc =
  2228. (struct soc_mixer_control *)kcontrol->private_value;
  2229. mutex_lock(&routing_lock);
  2230. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2231. ucontrol->value.integer.value[0] = 1;
  2232. else
  2233. ucontrol->value.integer.value[0] = 0;
  2234. mutex_unlock(&routing_lock);
  2235. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2236. ucontrol->value.integer.value[0]);
  2237. return 0;
  2238. }
  2239. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2240. struct snd_ctl_elem_value *ucontrol)
  2241. {
  2242. struct snd_soc_dapm_widget *widget =
  2243. snd_soc_dapm_kcontrol_widget(kcontrol);
  2244. struct soc_mixer_control *mc =
  2245. (struct soc_mixer_control *)kcontrol->private_value;
  2246. struct snd_soc_dapm_update *update = NULL;
  2247. if (ucontrol->value.integer.value[0]) {
  2248. mutex_lock(&routing_lock);
  2249. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2250. mutex_unlock(&routing_lock);
  2251. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2252. update);
  2253. } else {
  2254. mutex_lock(&routing_lock);
  2255. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2256. mutex_unlock(&routing_lock);
  2257. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2258. update);
  2259. }
  2260. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2261. ucontrol->value.integer.value[0]);
  2262. return 1;
  2263. }
  2264. /*
  2265. * Return the mapping between port ID and backend ID to enable the AFE callback
  2266. * to determine the acdb_dev_id from the port id
  2267. */
  2268. int msm_pcm_get_be_id_from_port_id(int port_id)
  2269. {
  2270. int i;
  2271. int be_id = -EINVAL;
  2272. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2273. if (msm_bedais[i].port_id == port_id) {
  2274. be_id = i;
  2275. break;
  2276. }
  2277. }
  2278. return be_id;
  2279. }
  2280. /*
  2281. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2282. * correct AFE calibration information by comparing the header information.
  2283. */
  2284. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2285. {
  2286. int acdb_id = -EINVAL;
  2287. int i = 0;
  2288. int session;
  2289. int port_type = afe_get_port_type(port_id);
  2290. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2291. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2292. __func__, port_id, be_id, port_type);
  2293. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2294. session = SESSION_TYPE_TX;
  2295. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2296. session = SESSION_TYPE_RX;
  2297. } else {
  2298. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2299. acdb_id = -EINVAL;
  2300. goto exit;
  2301. }
  2302. if (be_id < 0) {
  2303. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2304. goto exit;
  2305. }
  2306. mutex_lock(&routing_lock);
  2307. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2308. MSM_FRONTEND_DAI_MAX);
  2309. if (i < MSM_FRONTEND_DAI_MAX)
  2310. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2311. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2312. __func__, i, session, be_id, acdb_id);
  2313. mutex_unlock(&routing_lock);
  2314. exit:
  2315. return acdb_id;
  2316. }
  2317. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2318. struct snd_ctl_elem_value *ucontrol)
  2319. {
  2320. ucontrol->value.integer.value[0] = fm_switch_enable;
  2321. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2322. ucontrol->value.integer.value[0]);
  2323. return 0;
  2324. }
  2325. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2326. struct snd_ctl_elem_value *ucontrol)
  2327. {
  2328. struct snd_soc_dapm_widget *widget =
  2329. snd_soc_dapm_kcontrol_widget(kcontrol);
  2330. struct snd_soc_dapm_update *update = NULL;
  2331. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2332. ucontrol->value.integer.value[0]);
  2333. if (ucontrol->value.integer.value[0])
  2334. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2335. update);
  2336. else
  2337. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2338. update);
  2339. fm_switch_enable = ucontrol->value.integer.value[0];
  2340. return 1;
  2341. }
  2342. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2343. struct snd_ctl_elem_value *ucontrol)
  2344. {
  2345. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2346. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2347. ucontrol->value.integer.value[0]);
  2348. return 0;
  2349. }
  2350. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2351. struct snd_ctl_elem_value *ucontrol)
  2352. {
  2353. struct snd_soc_dapm_widget *widget =
  2354. snd_soc_dapm_kcontrol_widget(kcontrol);
  2355. struct snd_soc_dapm_update *update = NULL;
  2356. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2357. ucontrol->value.integer.value[0]);
  2358. if (ucontrol->value.integer.value[0])
  2359. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2360. 1, update);
  2361. else
  2362. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2363. 0, update);
  2364. hfp_switch_enable = ucontrol->value.integer.value[0];
  2365. return 1;
  2366. }
  2367. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2368. struct snd_ctl_elem_value *ucontrol)
  2369. {
  2370. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2371. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2372. ucontrol->value.integer.value[0]);
  2373. return 0;
  2374. }
  2375. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2376. struct snd_ctl_elem_value *ucontrol)
  2377. {
  2378. struct snd_soc_dapm_widget *widget =
  2379. snd_soc_dapm_kcontrol_widget(kcontrol);
  2380. struct snd_soc_dapm_update *update = NULL;
  2381. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2382. ucontrol->value.integer.value[0]);
  2383. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2384. if (a2dp_switch_enable)
  2385. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2386. 1, update);
  2387. else
  2388. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2389. 0, update);
  2390. return 1;
  2391. }
  2392. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2393. struct snd_ctl_elem_value *ucontrol)
  2394. {
  2395. ucontrol->value.integer.value[0] = sco_switch_enable;
  2396. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2397. ucontrol->value.integer.value[0]);
  2398. return 0;
  2399. }
  2400. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2401. struct snd_ctl_elem_value *ucontrol)
  2402. {
  2403. struct snd_soc_dapm_widget *widget =
  2404. snd_soc_dapm_kcontrol_widget(kcontrol);
  2405. struct snd_soc_dapm_update *update = NULL;
  2406. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2407. ucontrol->value.integer.value[0]);
  2408. sco_switch_enable = ucontrol->value.integer.value[0];
  2409. if (sco_switch_enable)
  2410. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2411. 1, update);
  2412. else
  2413. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2414. 0, update);
  2415. return 1;
  2416. }
  2417. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2418. struct snd_ctl_elem_value *ucontrol)
  2419. {
  2420. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2421. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2422. ucontrol->value.integer.value[0]);
  2423. return 0;
  2424. }
  2425. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2426. struct snd_ctl_elem_value *ucontrol)
  2427. {
  2428. struct snd_soc_dapm_widget *widget =
  2429. snd_soc_dapm_kcontrol_widget(kcontrol);
  2430. struct snd_soc_dapm_update *update = NULL;
  2431. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2432. ucontrol->value.integer.value[0]);
  2433. if (ucontrol->value.integer.value[0])
  2434. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2435. update);
  2436. else
  2437. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2438. update);
  2439. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2440. return 1;
  2441. }
  2442. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2443. struct snd_ctl_elem_value *ucontrol)
  2444. {
  2445. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2446. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2447. ucontrol->value.integer.value[0]);
  2448. return 0;
  2449. }
  2450. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2451. struct snd_ctl_elem_value *ucontrol)
  2452. {
  2453. struct snd_soc_dapm_widget *widget =
  2454. snd_soc_dapm_kcontrol_widget(kcontrol);
  2455. struct snd_soc_dapm_update *update = NULL;
  2456. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2457. ucontrol->value.integer.value[0]);
  2458. if (ucontrol->value.integer.value[0])
  2459. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2460. update);
  2461. else
  2462. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2463. update);
  2464. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2465. return 1;
  2466. }
  2467. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2468. struct snd_ctl_elem_value *ucontrol)
  2469. {
  2470. ucontrol->value.integer.value[0] = usb_switch_enable;
  2471. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2472. ucontrol->value.integer.value[0]);
  2473. return 0;
  2474. }
  2475. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2476. struct snd_ctl_elem_value *ucontrol)
  2477. {
  2478. struct snd_soc_dapm_widget *widget =
  2479. snd_soc_dapm_kcontrol_widget(kcontrol);
  2480. struct snd_soc_dapm_update *update = NULL;
  2481. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2482. ucontrol->value.integer.value[0]);
  2483. if (ucontrol->value.integer.value[0])
  2484. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2485. 1, update);
  2486. else
  2487. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2488. 0, update);
  2489. usb_switch_enable = ucontrol->value.integer.value[0];
  2490. return 1;
  2491. }
  2492. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2493. struct snd_ctl_elem_value *ucontrol)
  2494. {
  2495. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2496. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2497. ucontrol->value.integer.value[0]);
  2498. return 0;
  2499. }
  2500. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2501. struct snd_ctl_elem_value *ucontrol)
  2502. {
  2503. struct snd_soc_dapm_widget *widget =
  2504. snd_soc_dapm_kcontrol_widget(kcontrol);
  2505. struct snd_soc_dapm_update *update = NULL;
  2506. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2507. ucontrol->value.integer.value[0]);
  2508. if (ucontrol->value.integer.value[0])
  2509. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2510. update);
  2511. else
  2512. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2513. update);
  2514. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2515. return 1;
  2516. }
  2517. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2518. struct snd_ctl_elem_value *ucontrol)
  2519. {
  2520. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2521. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2522. ucontrol->value.integer.value[0]);
  2523. return 0;
  2524. }
  2525. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2526. struct snd_ctl_elem_value *ucontrol)
  2527. {
  2528. struct snd_soc_dapm_widget *widget =
  2529. snd_soc_dapm_kcontrol_widget(kcontrol);
  2530. struct snd_soc_dapm_update *update = NULL;
  2531. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2532. ucontrol->value.integer.value[0]);
  2533. if (ucontrol->value.integer.value[0])
  2534. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2535. update);
  2536. else
  2537. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2538. update);
  2539. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2540. return 1;
  2541. }
  2542. static int msm_routing_get_tert_mi2s_switch_mixer(
  2543. struct snd_kcontrol *kcontrol,
  2544. struct snd_ctl_elem_value *ucontrol)
  2545. {
  2546. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2547. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2548. ucontrol->value.integer.value[0]);
  2549. return 0;
  2550. }
  2551. static int msm_routing_put_tert_mi2s_switch_mixer(
  2552. struct snd_kcontrol *kcontrol,
  2553. struct snd_ctl_elem_value *ucontrol)
  2554. {
  2555. struct snd_soc_dapm_widget *widget =
  2556. snd_soc_dapm_kcontrol_widget(kcontrol);
  2557. struct snd_soc_dapm_update *update = NULL;
  2558. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2559. ucontrol->value.integer.value[0]);
  2560. if (ucontrol->value.integer.value[0])
  2561. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2562. update);
  2563. else
  2564. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2565. update);
  2566. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2567. return 1;
  2568. }
  2569. static int msm_routing_get_quat_mi2s_switch_mixer(
  2570. struct snd_kcontrol *kcontrol,
  2571. struct snd_ctl_elem_value *ucontrol)
  2572. {
  2573. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2574. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2575. ucontrol->value.integer.value[0]);
  2576. return 0;
  2577. }
  2578. static int msm_routing_put_quat_mi2s_switch_mixer(
  2579. struct snd_kcontrol *kcontrol,
  2580. struct snd_ctl_elem_value *ucontrol)
  2581. {
  2582. struct snd_soc_dapm_widget *widget =
  2583. snd_soc_dapm_kcontrol_widget(kcontrol);
  2584. struct snd_soc_dapm_update *update = NULL;
  2585. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2586. ucontrol->value.integer.value[0]);
  2587. if (ucontrol->value.integer.value[0])
  2588. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2589. update);
  2590. else
  2591. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2592. update);
  2593. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2594. return 1;
  2595. }
  2596. static int msm_routing_get_quin_mi2s_switch_mixer(
  2597. struct snd_kcontrol *kcontrol,
  2598. struct snd_ctl_elem_value *ucontrol)
  2599. {
  2600. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2601. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2602. ucontrol->value.integer.value[0]);
  2603. return 0;
  2604. }
  2605. static int msm_routing_put_quin_mi2s_switch_mixer(
  2606. struct snd_kcontrol *kcontrol,
  2607. struct snd_ctl_elem_value *ucontrol)
  2608. {
  2609. struct snd_soc_dapm_widget *widget =
  2610. snd_soc_dapm_kcontrol_widget(kcontrol);
  2611. struct snd_soc_dapm_update *update = NULL;
  2612. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2613. ucontrol->value.integer.value[0]);
  2614. if (ucontrol->value.integer.value[0])
  2615. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2616. update);
  2617. else
  2618. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2619. update);
  2620. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2621. return 1;
  2622. }
  2623. static int msm_routing_get_sen_mi2s_switch_mixer(
  2624. struct snd_kcontrol *kcontrol,
  2625. struct snd_ctl_elem_value *ucontrol)
  2626. {
  2627. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2628. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2629. ucontrol->value.integer.value[0]);
  2630. return 0;
  2631. }
  2632. static int msm_routing_put_sen_mi2s_switch_mixer(
  2633. struct snd_kcontrol *kcontrol,
  2634. struct snd_ctl_elem_value *ucontrol)
  2635. {
  2636. struct snd_soc_dapm_widget *widget =
  2637. snd_soc_dapm_kcontrol_widget(kcontrol);
  2638. struct snd_soc_dapm_update *update = NULL;
  2639. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2640. ucontrol->value.integer.value[0]);
  2641. if (ucontrol->value.integer.value[0])
  2642. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2643. update);
  2644. else
  2645. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2646. update);
  2647. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2648. return 1;
  2649. }
  2650. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2651. struct snd_ctl_elem_value *ucontrol)
  2652. {
  2653. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2654. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2655. ucontrol->value.integer.value[0]);
  2656. return 0;
  2657. }
  2658. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2659. struct snd_ctl_elem_value *ucontrol)
  2660. {
  2661. struct snd_soc_dapm_widget *widget =
  2662. snd_soc_dapm_kcontrol_widget(kcontrol);
  2663. struct snd_soc_dapm_update *update = NULL;
  2664. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2665. ucontrol->value.integer.value[0]);
  2666. if (ucontrol->value.integer.value[0])
  2667. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2668. update);
  2669. else
  2670. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2671. update);
  2672. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2673. return 1;
  2674. }
  2675. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2676. struct snd_ctl_elem_value *ucontrol)
  2677. {
  2678. ucontrol->value.integer.value[0] = lsm_port_index;
  2679. return 0;
  2680. }
  2681. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2682. struct snd_ctl_elem_value *ucontrol)
  2683. {
  2684. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2685. int mux = ucontrol->value.enumerated.item[0];
  2686. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2687. if (mux >= e->items) {
  2688. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2689. return -EINVAL;
  2690. }
  2691. pr_debug("%s: LSM enable %ld\n", __func__,
  2692. ucontrol->value.integer.value[0]);
  2693. switch (ucontrol->value.integer.value[0]) {
  2694. case 1:
  2695. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2696. break;
  2697. case 2:
  2698. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2699. break;
  2700. case 3:
  2701. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2702. break;
  2703. case 4:
  2704. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2705. break;
  2706. case 5:
  2707. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2708. break;
  2709. case 6:
  2710. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2711. break;
  2712. case 7:
  2713. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2714. break;
  2715. case 8:
  2716. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2717. break;
  2718. case 9:
  2719. lsm_port = ADM_LSM_PORT_ID;
  2720. break;
  2721. case 10:
  2722. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2723. break;
  2724. case 11:
  2725. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2726. break;
  2727. case 12:
  2728. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2729. break;
  2730. case 13:
  2731. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2732. break;
  2733. case 14:
  2734. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2735. break;
  2736. case 15:
  2737. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2738. break;
  2739. case 16:
  2740. lsm_port = AFE_PORT_ID_TERTIARY_TDM_TX;
  2741. break;
  2742. default:
  2743. pr_err("Default lsm port");
  2744. break;
  2745. }
  2746. set_lsm_port(lsm_port);
  2747. lsm_port_index = ucontrol->value.integer.value[0];
  2748. return 0;
  2749. }
  2750. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2751. struct snd_ctl_elem_value *ucontrol)
  2752. {
  2753. int i;
  2754. u16 port_id;
  2755. enum afe_mad_type mad_type;
  2756. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2757. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2758. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2759. strlen(lsm_port_text[i])))
  2760. break;
  2761. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2762. pr_warn("%s: Invalid id name %s\n", __func__,
  2763. kcontrol->id.name);
  2764. return -EINVAL;
  2765. }
  2766. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2767. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2768. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2769. strlen(lsm_port_text[7])))
  2770. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2771. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2772. strlen(lsm_port_text[8])))
  2773. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2774. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2775. strlen(lsm_port_text[10])))
  2776. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2777. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2778. strlen(lsm_port_text[14])))
  2779. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2780. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2781. strlen(lsm_port_text[15])))
  2782. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2783. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2784. strlen(lsm_port_text[16])))
  2785. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2786. mad_type = afe_port_get_mad_type(port_id);
  2787. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2788. mad_type);
  2789. switch (mad_type) {
  2790. case MAD_HW_NONE:
  2791. ucontrol->value.integer.value[0] = MADNONE;
  2792. break;
  2793. case MAD_HW_AUDIO:
  2794. ucontrol->value.integer.value[0] = MADAUDIO;
  2795. break;
  2796. case MAD_HW_BEACON:
  2797. ucontrol->value.integer.value[0] = MADBEACON;
  2798. break;
  2799. case MAD_HW_ULTRASOUND:
  2800. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2801. break;
  2802. case MAD_SW_AUDIO:
  2803. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2804. break;
  2805. default:
  2806. pr_warn("%s: Unknown\n", __func__);
  2807. return -EINVAL;
  2808. }
  2809. return 0;
  2810. }
  2811. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2812. struct snd_ctl_elem_value *ucontrol)
  2813. {
  2814. int i;
  2815. u16 port_id;
  2816. enum afe_mad_type mad_type;
  2817. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2818. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2819. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2820. strlen(lsm_port_text[i])))
  2821. break;
  2822. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2823. pr_warn("%s: Invalid id name %s\n", __func__,
  2824. kcontrol->id.name);
  2825. return -EINVAL;
  2826. }
  2827. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2828. switch (ucontrol->value.integer.value[0]) {
  2829. case MADNONE:
  2830. mad_type = MAD_HW_NONE;
  2831. break;
  2832. case MADAUDIO:
  2833. mad_type = MAD_HW_AUDIO;
  2834. break;
  2835. case MADBEACON:
  2836. mad_type = MAD_HW_BEACON;
  2837. break;
  2838. case MADULTRASOUND:
  2839. mad_type = MAD_HW_ULTRASOUND;
  2840. break;
  2841. case MADSWAUDIO:
  2842. mad_type = MAD_SW_AUDIO;
  2843. break;
  2844. default:
  2845. pr_warn("%s: Unknown\n", __func__);
  2846. return -EINVAL;
  2847. }
  2848. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2849. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2850. strlen(lsm_port_text[7])))
  2851. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2852. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2853. strlen(lsm_port_text[8])))
  2854. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2855. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2856. strlen(lsm_port_text[10])))
  2857. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2858. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2859. strlen(lsm_port_text[14])))
  2860. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2861. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2862. strlen(lsm_port_text[15])))
  2863. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2864. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2865. strlen(lsm_port_text[16])))
  2866. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2867. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2868. mad_type);
  2869. return afe_port_set_mad_type(port_id, mad_type);
  2870. }
  2871. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2872. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  2873. adm_override_chs_text);
  2874. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2875. {
  2876. int backend_id;
  2877. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2878. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2879. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2880. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2881. } else {
  2882. pr_err("%s: unsupported backend id: %s",
  2883. __func__, kcontrol->id.name);
  2884. return -EINVAL;
  2885. }
  2886. return backend_id;
  2887. }
  2888. static int msm_routing_adm_channel_config_get(
  2889. struct snd_kcontrol *kcontrol,
  2890. struct snd_ctl_elem_value *ucontrol)
  2891. {
  2892. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2893. if (backend_id >= 0) {
  2894. mutex_lock(&routing_lock);
  2895. ucontrol->value.integer.value[0] =
  2896. msm_bedais[backend_id].adm_override_ch;
  2897. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2898. ucontrol->value.integer.value[0], backend_id);
  2899. mutex_unlock(&routing_lock);
  2900. }
  2901. return 0;
  2902. }
  2903. static int msm_routing_adm_channel_config_put(
  2904. struct snd_kcontrol *kcontrol,
  2905. struct snd_ctl_elem_value *ucontrol)
  2906. {
  2907. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2908. if (backend_id >= 0) {
  2909. mutex_lock(&routing_lock);
  2910. msm_bedais[backend_id].adm_override_ch =
  2911. ucontrol->value.integer.value[0];
  2912. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2913. __func__, backend_id,
  2914. msm_bedais[backend_id].adm_override_ch);
  2915. mutex_unlock(&routing_lock);
  2916. }
  2917. return 0;
  2918. }
  2919. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2920. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2921. msm_routing_adm_channel_config_get,
  2922. msm_routing_adm_channel_config_put),
  2923. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2924. msm_routing_adm_channel_config_get,
  2925. msm_routing_adm_channel_config_put),
  2926. };
  2927. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2928. struct snd_ctl_elem_value *ucontrol)
  2929. {
  2930. mutex_lock(&routing_lock);
  2931. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2932. mutex_unlock(&routing_lock);
  2933. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2934. ucontrol->value.integer.value[0]);
  2935. return 0;
  2936. };
  2937. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2938. struct snd_ctl_elem_value *ucontrol)
  2939. {
  2940. struct aanc_data aanc_info;
  2941. mutex_lock(&routing_lock);
  2942. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2943. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2944. ucontrol->value.integer.value[0]);
  2945. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2946. if (ucontrol->value.integer.value[0] == 0) {
  2947. aanc_info.aanc_active = false;
  2948. aanc_info.aanc_tx_port = 0;
  2949. aanc_info.aanc_rx_port = 0;
  2950. } else {
  2951. aanc_info.aanc_active = true;
  2952. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2953. aanc_info.aanc_tx_port =
  2954. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2955. }
  2956. afe_set_aanc_info(&aanc_info);
  2957. mutex_unlock(&routing_lock);
  2958. return 0;
  2959. };
  2960. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2961. struct snd_ctl_elem_value *ucontrol)
  2962. {
  2963. int idx = 0, shift = 0;
  2964. struct soc_mixer_control *mc =
  2965. (struct soc_mixer_control *)kcontrol->private_value;
  2966. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2967. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2968. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2969. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2970. return -EINVAL;
  2971. }
  2972. if (test_bit(shift,
  2973. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2974. ucontrol->value.integer.value[0] = 1;
  2975. else
  2976. ucontrol->value.integer.value[0] = 0;
  2977. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2978. ucontrol->value.integer.value[0]);
  2979. return 0;
  2980. }
  2981. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2982. struct snd_ctl_elem_value *ucontrol)
  2983. {
  2984. int idx = 0, shift = 0;
  2985. struct soc_mixer_control *mc =
  2986. (struct soc_mixer_control *)kcontrol->private_value;
  2987. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2988. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2989. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2990. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2991. return -EINVAL;
  2992. }
  2993. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2994. __func__, mc->shift, mc->rshift,
  2995. ucontrol->value.integer.value[0], idx, shift);
  2996. if (ucontrol->value.integer.value[0]) {
  2997. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2998. msm_bedais[mc->rshift].port_id);
  2999. set_bit(shift,
  3000. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3001. } else {
  3002. afe_loopback(0, msm_bedais[mc->shift].port_id,
  3003. msm_bedais[mc->rshift].port_id);
  3004. clear_bit(shift,
  3005. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3006. }
  3007. return 1;
  3008. }
  3009. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  3010. struct snd_ctl_elem_value *ucontrol)
  3011. {
  3012. u16 fe_id = 0;
  3013. fe_id = ((struct soc_mixer_control *)
  3014. kcontrol->private_value)->shift;
  3015. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3016. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3017. return -EINVAL;
  3018. }
  3019. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  3020. return 0;
  3021. }
  3022. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  3023. struct snd_ctl_elem_value *ucontrol)
  3024. {
  3025. u16 fe_id = 0;
  3026. fe_id = ((struct soc_mixer_control *)
  3027. kcontrol->private_value)->shift;
  3028. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3029. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3030. return -EINVAL;
  3031. }
  3032. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3033. return 1;
  3034. }
  3035. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3036. struct snd_ctl_elem_value *ucontrol)
  3037. {
  3038. u16 fe_id = 0;
  3039. fe_id = ((struct soc_multi_mixer_control *)
  3040. kcontrol->private_value)->shift;
  3041. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3042. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3043. return -EINVAL;
  3044. }
  3045. ucontrol->value.integer.value[0] =
  3046. channel_mixer[fe_id].output_channel;
  3047. return 0;
  3048. }
  3049. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3050. struct snd_ctl_elem_value *ucontrol)
  3051. {
  3052. u16 fe_id = 0;
  3053. fe_id = ((struct soc_multi_mixer_control *)
  3054. kcontrol->private_value)->shift;
  3055. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3056. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3057. return -EINVAL;
  3058. }
  3059. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3060. fe_id,
  3061. (unsigned int)(ucontrol->value.integer.value[0]));
  3062. channel_mixer[fe_id].output_channel =
  3063. (unsigned int)(ucontrol->value.integer.value[0]);
  3064. return 1;
  3065. }
  3066. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3067. /* If new backend is added, need update this array */
  3068. static const char *const be_name[] = {
  3069. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3070. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3071. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3072. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3073. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3074. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3075. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3076. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3077. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3078. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3079. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3080. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3081. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3082. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3083. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3084. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3085. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3086. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3087. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3088. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3089. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3090. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3091. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3092. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3093. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3094. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3095. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3096. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3097. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3098. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3099. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3100. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3101. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3102. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3103. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3104. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3105. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3106. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3107. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3108. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3109. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3110. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3111. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3112. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3113. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3114. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3115. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3116. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3117. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3118. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3119. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3120. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3121. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3122. "SEC_META_MI2S_RX"
  3123. };
  3124. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3125. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3126. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3127. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3128. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3129. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3130. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3131. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3132. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3133. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3134. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3135. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3136. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3137. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3138. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3139. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3140. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3141. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3142. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3143. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3144. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3145. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3146. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3147. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3148. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3149. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3150. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3151. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3152. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3153. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3154. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3155. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3156. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3157. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3158. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3159. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3160. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3161. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3162. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3163. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3164. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3165. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3166. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3167. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3168. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3169. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3170. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3171. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3172. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3173. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3174. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3175. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3176. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3177. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3178. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3179. unsigned int channels,
  3180. unsigned int items, const char *const names[])
  3181. {
  3182. if (uinfo->value.enumerated.item >= items)
  3183. uinfo->value.enumerated.item = items - 1;
  3184. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3185. sizeof(uinfo->value.enumerated.name),
  3186. "ALSA: too long item name '%s'\n",
  3187. names[uinfo->value.enumerated.item]);
  3188. strlcpy(uinfo->value.enumerated.name,
  3189. names[uinfo->value.enumerated.item],
  3190. sizeof(uinfo->value.enumerated.name));
  3191. return 0;
  3192. }
  3193. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3194. struct snd_ctl_elem_info *uinfo)
  3195. {
  3196. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3197. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3198. uinfo->count = 1;
  3199. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3200. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3201. return 0;
  3202. }
  3203. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3204. struct snd_ctl_elem_value *ucontrol)
  3205. {
  3206. u16 fe_id = 0;
  3207. fe_id = ((struct soc_enum *)
  3208. kcontrol->private_value)->shift_l;
  3209. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3210. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3211. return -EINVAL;
  3212. }
  3213. pr_debug("%s: FE %d %s\n", __func__,
  3214. fe_id,
  3215. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3216. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3217. return 0;
  3218. }
  3219. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3220. struct snd_ctl_elem_value *ucontrol)
  3221. {
  3222. u16 fe_id = 0;
  3223. fe_id = ((struct soc_enum *)
  3224. kcontrol->private_value)->shift_l;
  3225. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3226. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3227. return -EINVAL;
  3228. }
  3229. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3230. pr_debug("%s: %s FE %d\n", __func__,
  3231. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3232. fe_id);
  3233. return 0;
  3234. }
  3235. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3236. struct snd_ctl_elem_info *uinfo)
  3237. {
  3238. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3239. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3240. uinfo->count = 1;
  3241. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3242. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3243. return 0;
  3244. }
  3245. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3246. struct snd_ctl_elem_value *ucontrol)
  3247. {
  3248. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3249. u16 fe_id = 0, in_ch = 0;
  3250. fe_id = e->shift_l;
  3251. in_ch = e->shift_r;
  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. if (in_ch >= ADM_MAX_CHANNELS) {
  3257. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3258. return -EINVAL;
  3259. }
  3260. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3261. return 1;
  3262. }
  3263. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3264. struct snd_ctl_elem_value *ucontrol)
  3265. {
  3266. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3267. u16 fe_id = 0, in_ch = 0;
  3268. fe_id = e->shift_l;
  3269. in_ch = e->shift_r;
  3270. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3271. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3272. return -EINVAL;
  3273. }
  3274. if (in_ch >= ADM_MAX_CHANNELS) {
  3275. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3276. return -EINVAL;
  3277. }
  3278. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3279. return 1;
  3280. }
  3281. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3282. struct snd_ctl_elem_info *uinfo)
  3283. {
  3284. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3285. uinfo->count = ADM_MAX_CHANNELS;
  3286. uinfo->value.integer.min = 0;
  3287. uinfo->value.integer.max = WEIGHT_0_DB;
  3288. return 0;
  3289. }
  3290. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3291. struct snd_ctl_elem_value *ucontrol)
  3292. {
  3293. u16 fe_id = 0, out_ch = 0;
  3294. int i, weight;
  3295. fe_id = ((struct soc_multi_mixer_control *)
  3296. kcontrol->private_value)->shift;
  3297. out_ch = ((struct soc_multi_mixer_control *)
  3298. kcontrol->private_value)->rshift;
  3299. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3300. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3301. return -EINVAL;
  3302. }
  3303. if (out_ch >= ADM_MAX_CHANNELS) {
  3304. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3305. return -EINVAL;
  3306. }
  3307. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3308. __func__, fe_id,
  3309. ucontrol->value.integer.value[0],
  3310. ucontrol->value.integer.value[1],
  3311. ucontrol->value.integer.value[2],
  3312. ucontrol->value.integer.value[3],
  3313. ucontrol->value.integer.value[4],
  3314. ucontrol->value.integer.value[5],
  3315. ucontrol->value.integer.value[6],
  3316. ucontrol->value.integer.value[7]);
  3317. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3318. weight = ucontrol->value.integer.value[i];
  3319. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3320. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3321. __func__, fe_id, out_ch, i,
  3322. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3323. }
  3324. return 0;
  3325. }
  3326. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3327. struct snd_ctl_elem_value *ucontrol)
  3328. {
  3329. u16 fe_id = 0, out_ch = 0;
  3330. int i;
  3331. fe_id = ((struct soc_multi_mixer_control *)
  3332. kcontrol->private_value)->shift;
  3333. out_ch = ((struct soc_multi_mixer_control *)
  3334. kcontrol->private_value)->rshift;
  3335. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3336. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3337. return -EINVAL;
  3338. }
  3339. if (out_ch >= ADM_MAX_CHANNELS) {
  3340. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3341. return -EINVAL;
  3342. }
  3343. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3344. ucontrol->value.integer.value[i] =
  3345. channel_mixer[fe_id].channel_weight[out_ch][i];
  3346. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3347. __func__, fe_id,
  3348. ucontrol->value.integer.value[0],
  3349. ucontrol->value.integer.value[1],
  3350. ucontrol->value.integer.value[2],
  3351. ucontrol->value.integer.value[3],
  3352. ucontrol->value.integer.value[4],
  3353. ucontrol->value.integer.value[5],
  3354. ucontrol->value.integer.value[6],
  3355. ucontrol->value.integer.value[7]);
  3356. return 0;
  3357. }
  3358. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3359. struct snd_ctl_elem_info *uinfo)
  3360. {
  3361. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3362. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3363. /* Valid channel map value ranges from 1 to 64 */
  3364. uinfo->value.integer.min = 0;
  3365. uinfo->value.integer.max = 64;
  3366. return 0;
  3367. }
  3368. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3369. struct snd_ctl_elem_value *ucontrol)
  3370. {
  3371. u16 fe_id = 0;
  3372. int i, ch_map;
  3373. fe_id = ((struct soc_multi_mixer_control *)
  3374. kcontrol->private_value)->shift;
  3375. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3376. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3377. return -EINVAL;
  3378. }
  3379. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3380. ch_map = ucontrol->value.integer.value[i];
  3381. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3382. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3383. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3384. }
  3385. /* Make override_out_ch_map false if ch map is reset */
  3386. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3387. channel_mixer[fe_id].override_out_ch_map = false;
  3388. else
  3389. channel_mixer[fe_id].override_out_ch_map = true;
  3390. return 0;
  3391. }
  3392. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3393. struct snd_ctl_elem_value *ucontrol)
  3394. {
  3395. u16 fe_id = 0;
  3396. int i;
  3397. fe_id = ((struct soc_multi_mixer_control *)
  3398. kcontrol->private_value)->shift;
  3399. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3400. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3401. return -EINVAL;
  3402. }
  3403. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3404. ucontrol->value.integer.value[i] =
  3405. channel_mixer[fe_id].out_ch_map[i];
  3406. return 0;
  3407. }
  3408. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3409. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3410. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3411. msm_pcm_get_channel_rule_index,
  3412. msm_pcm_put_channel_rule_index),
  3413. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3414. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3415. msm_pcm_get_channel_rule_index,
  3416. msm_pcm_put_channel_rule_index),
  3417. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3418. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3419. msm_pcm_get_channel_rule_index,
  3420. msm_pcm_put_channel_rule_index),
  3421. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3422. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3423. msm_pcm_get_channel_rule_index,
  3424. msm_pcm_put_channel_rule_index),
  3425. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3426. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3427. msm_pcm_get_channel_rule_index,
  3428. msm_pcm_put_channel_rule_index),
  3429. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3430. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3431. msm_pcm_get_channel_rule_index,
  3432. msm_pcm_put_channel_rule_index),
  3433. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3434. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3435. msm_pcm_get_channel_rule_index,
  3436. msm_pcm_put_channel_rule_index),
  3437. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3438. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3439. msm_pcm_get_channel_rule_index,
  3440. msm_pcm_put_channel_rule_index),
  3441. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3442. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3443. msm_pcm_get_channel_rule_index,
  3444. msm_pcm_put_channel_rule_index),
  3445. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3446. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3447. msm_pcm_get_channel_rule_index,
  3448. msm_pcm_put_channel_rule_index),
  3449. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3450. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3451. msm_pcm_get_channel_rule_index,
  3452. msm_pcm_put_channel_rule_index),
  3453. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3454. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3455. msm_pcm_get_out_chs,
  3456. msm_pcm_put_out_chs),
  3457. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3458. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3459. msm_pcm_get_out_chs,
  3460. msm_pcm_put_out_chs),
  3461. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3462. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3463. msm_pcm_get_out_chs,
  3464. msm_pcm_put_out_chs),
  3465. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3466. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3467. msm_pcm_get_out_chs,
  3468. msm_pcm_put_out_chs),
  3469. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3470. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3471. msm_pcm_get_out_chs,
  3472. msm_pcm_put_out_chs),
  3473. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3474. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3475. msm_pcm_get_out_chs,
  3476. msm_pcm_put_out_chs),
  3477. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3478. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3479. msm_pcm_get_out_chs,
  3480. msm_pcm_put_out_chs),
  3481. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3482. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3483. msm_pcm_get_out_chs,
  3484. msm_pcm_put_out_chs),
  3485. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3486. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3487. msm_pcm_get_out_chs,
  3488. msm_pcm_put_out_chs),
  3489. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3490. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3491. msm_pcm_get_out_chs,
  3492. msm_pcm_put_out_chs),
  3493. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3494. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3495. msm_pcm_get_out_chs,
  3496. msm_pcm_put_out_chs),
  3497. {
  3498. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3499. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3500. .name = "MultiMedia1 Channel Mixer",
  3501. .info = msm_pcm_channel_mixer_info,
  3502. .get = msm_pcm_channel_mixer_get,
  3503. .put = msm_pcm_channel_mixer_put,
  3504. .private_value = (unsigned long)&(mm1_channel_mux)
  3505. },
  3506. {
  3507. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3508. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3509. .name = "MultiMedia2 Channel Mixer",
  3510. .info = msm_pcm_channel_mixer_info,
  3511. .get = msm_pcm_channel_mixer_get,
  3512. .put = msm_pcm_channel_mixer_put,
  3513. .private_value = (unsigned long)&(mm2_channel_mux)
  3514. },
  3515. {
  3516. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3517. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3518. .name = "MultiMedia3 Channel Mixer",
  3519. .info = msm_pcm_channel_mixer_info,
  3520. .get = msm_pcm_channel_mixer_get,
  3521. .put = msm_pcm_channel_mixer_put,
  3522. .private_value = (unsigned long)&(mm3_channel_mux)
  3523. },
  3524. {
  3525. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3526. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3527. .name = "MultiMedia4 Channel Mixer",
  3528. .info = msm_pcm_channel_mixer_info,
  3529. .get = msm_pcm_channel_mixer_get,
  3530. .put = msm_pcm_channel_mixer_put,
  3531. .private_value = (unsigned long)&(mm4_channel_mux)
  3532. },
  3533. {
  3534. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3535. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3536. .name = "MultiMedia18 Channel Mixer",
  3537. .info = msm_pcm_channel_mixer_info,
  3538. .get = msm_pcm_channel_mixer_get,
  3539. .put = msm_pcm_channel_mixer_put,
  3540. .private_value = (unsigned long)&(mm18_channel_mux)
  3541. },
  3542. {
  3543. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3544. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3545. .name = "MultiMedia19 Channel Mixer",
  3546. .info = msm_pcm_channel_mixer_info,
  3547. .get = msm_pcm_channel_mixer_get,
  3548. .put = msm_pcm_channel_mixer_put,
  3549. .private_value = (unsigned long)&(mm19_channel_mux)
  3550. },
  3551. {
  3552. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3553. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3554. .name = "MultiMedia28 Channel Mixer",
  3555. .info = msm_pcm_channel_mixer_info,
  3556. .get = msm_pcm_channel_mixer_get,
  3557. .put = msm_pcm_channel_mixer_put,
  3558. .private_value = (unsigned long)&(mm28_channel_mux)
  3559. },
  3560. {
  3561. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3562. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3563. .name = "MultiMedia29 Channel Mixer",
  3564. .info = msm_pcm_channel_mixer_info,
  3565. .get = msm_pcm_channel_mixer_get,
  3566. .put = msm_pcm_channel_mixer_put,
  3567. .private_value = (unsigned long)&(mm29_channel_mux)
  3568. },
  3569. {
  3570. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3571. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3572. .name = "MultiMedia30 Channel Mixer",
  3573. .info = msm_pcm_channel_mixer_info,
  3574. .get = msm_pcm_channel_mixer_get,
  3575. .put = msm_pcm_channel_mixer_put,
  3576. .private_value = (unsigned long)&(mm30_channel_mux)
  3577. },
  3578. {
  3579. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3580. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3581. .name = "MultiMedia1 Output Channel1",
  3582. .info = msm_pcm_channel_weight_info,
  3583. .get = msm_pcm_channel_weight_get,
  3584. .put = msm_pcm_channel_weight_put,
  3585. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3586. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3587. },
  3588. {
  3589. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3590. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3591. .name = "MultiMedia1 Output Channel2",
  3592. .info = msm_pcm_channel_weight_info,
  3593. .get = msm_pcm_channel_weight_get,
  3594. .put = msm_pcm_channel_weight_put,
  3595. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3596. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3597. },
  3598. {
  3599. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3600. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3601. .name = "MultiMedia1 Output Channel3",
  3602. .info = msm_pcm_channel_weight_info,
  3603. .get = msm_pcm_channel_weight_get,
  3604. .put = msm_pcm_channel_weight_put,
  3605. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3606. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3607. },
  3608. {
  3609. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3610. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3611. .name = "MultiMedia1 Output Channel4",
  3612. .info = msm_pcm_channel_weight_info,
  3613. .get = msm_pcm_channel_weight_get,
  3614. .put = msm_pcm_channel_weight_put,
  3615. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3616. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3617. },
  3618. {
  3619. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3620. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3621. .name = "MultiMedia1 Output Channel5",
  3622. .info = msm_pcm_channel_weight_info,
  3623. .get = msm_pcm_channel_weight_get,
  3624. .put = msm_pcm_channel_weight_put,
  3625. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3626. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3627. },
  3628. {
  3629. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3630. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3631. .name = "MultiMedia1 Output Channel6",
  3632. .info = msm_pcm_channel_weight_info,
  3633. .get = msm_pcm_channel_weight_get,
  3634. .put = msm_pcm_channel_weight_put,
  3635. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3636. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3637. },
  3638. {
  3639. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3640. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3641. .name = "MultiMedia1 Output Channel7",
  3642. .info = msm_pcm_channel_weight_info,
  3643. .get = msm_pcm_channel_weight_get,
  3644. .put = msm_pcm_channel_weight_put,
  3645. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3646. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3647. },
  3648. {
  3649. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3650. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3651. .name = "MultiMedia1 Output Channel8",
  3652. .info = msm_pcm_channel_weight_info,
  3653. .get = msm_pcm_channel_weight_get,
  3654. .put = msm_pcm_channel_weight_put,
  3655. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3656. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3657. },
  3658. {
  3659. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3660. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3661. .name = "MultiMedia1 Output Channel9",
  3662. .info = msm_pcm_channel_weight_info,
  3663. .get = msm_pcm_channel_weight_get,
  3664. .put = msm_pcm_channel_weight_put,
  3665. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3666. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3667. },
  3668. {
  3669. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3670. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3671. .name = "MultiMedia1 Output Channel10",
  3672. .info = msm_pcm_channel_weight_info,
  3673. .get = msm_pcm_channel_weight_get,
  3674. .put = msm_pcm_channel_weight_put,
  3675. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3676. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3677. },
  3678. {
  3679. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3680. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3681. .name = "MultiMedia1 Output Channel11",
  3682. .info = msm_pcm_channel_weight_info,
  3683. .get = msm_pcm_channel_weight_get,
  3684. .put = msm_pcm_channel_weight_put,
  3685. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3686. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3687. },
  3688. {
  3689. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3690. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3691. .name = "MultiMedia1 Output Channel12",
  3692. .info = msm_pcm_channel_weight_info,
  3693. .get = msm_pcm_channel_weight_get,
  3694. .put = msm_pcm_channel_weight_put,
  3695. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3696. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3697. },
  3698. {
  3699. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3700. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3701. .name = "MultiMedia1 Output Channel13",
  3702. .info = msm_pcm_channel_weight_info,
  3703. .get = msm_pcm_channel_weight_get,
  3704. .put = msm_pcm_channel_weight_put,
  3705. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3706. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3707. },
  3708. {
  3709. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3710. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3711. .name = "MultiMedia1 Output Channel14",
  3712. .info = msm_pcm_channel_weight_info,
  3713. .get = msm_pcm_channel_weight_get,
  3714. .put = msm_pcm_channel_weight_put,
  3715. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3716. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3717. },
  3718. {
  3719. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3720. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3721. .name = "MultiMedia2 Output Channel1",
  3722. .info = msm_pcm_channel_weight_info,
  3723. .get = msm_pcm_channel_weight_get,
  3724. .put = msm_pcm_channel_weight_put,
  3725. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3726. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3727. },
  3728. {
  3729. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3730. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3731. .name = "MultiMedia2 Output Channel2",
  3732. .info = msm_pcm_channel_weight_info,
  3733. .get = msm_pcm_channel_weight_get,
  3734. .put = msm_pcm_channel_weight_put,
  3735. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3736. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3737. },
  3738. {
  3739. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3740. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3741. .name = "MultiMedia2 Output Channel3",
  3742. .info = msm_pcm_channel_weight_info,
  3743. .get = msm_pcm_channel_weight_get,
  3744. .put = msm_pcm_channel_weight_put,
  3745. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3746. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3747. },
  3748. {
  3749. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3750. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3751. .name = "MultiMedia3 Output Channel1",
  3752. .info = msm_pcm_channel_weight_info,
  3753. .get = msm_pcm_channel_weight_get,
  3754. .put = msm_pcm_channel_weight_put,
  3755. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3756. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3757. },
  3758. {
  3759. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3760. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3761. .name = "MultiMedia3 Output Channel2",
  3762. .info = msm_pcm_channel_weight_info,
  3763. .get = msm_pcm_channel_weight_get,
  3764. .put = msm_pcm_channel_weight_put,
  3765. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3766. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3767. },
  3768. {
  3769. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3770. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3771. .name = "MultiMedia18 Output Channel1",
  3772. .info = msm_pcm_channel_weight_info,
  3773. .get = msm_pcm_channel_weight_get,
  3774. .put = msm_pcm_channel_weight_put,
  3775. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3776. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  3777. },
  3778. {
  3779. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3780. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3781. .name = "MultiMedia18 Output Channel2",
  3782. .info = msm_pcm_channel_weight_info,
  3783. .get = msm_pcm_channel_weight_get,
  3784. .put = msm_pcm_channel_weight_put,
  3785. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3786. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  3787. },
  3788. {
  3789. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3790. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3791. .name = "MultiMedia18 Output Channel3",
  3792. .info = msm_pcm_channel_weight_info,
  3793. .get = msm_pcm_channel_weight_get,
  3794. .put = msm_pcm_channel_weight_put,
  3795. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3796. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  3797. },
  3798. {
  3799. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3800. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3801. .name = "MultiMedia18 Output Channel4",
  3802. .info = msm_pcm_channel_weight_info,
  3803. .get = msm_pcm_channel_weight_get,
  3804. .put = msm_pcm_channel_weight_put,
  3805. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3806. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  3807. },
  3808. {
  3809. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3810. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3811. .name = "MultiMedia18 Output Channel5",
  3812. .info = msm_pcm_channel_weight_info,
  3813. .get = msm_pcm_channel_weight_get,
  3814. .put = msm_pcm_channel_weight_put,
  3815. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3816. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  3817. },
  3818. {
  3819. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3820. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3821. .name = "MultiMedia18 Output Channel6",
  3822. .info = msm_pcm_channel_weight_info,
  3823. .get = msm_pcm_channel_weight_get,
  3824. .put = msm_pcm_channel_weight_put,
  3825. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3826. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  3827. },
  3828. {
  3829. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3830. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3831. .name = "MultiMedia18 Output Channel7",
  3832. .info = msm_pcm_channel_weight_info,
  3833. .get = msm_pcm_channel_weight_get,
  3834. .put = msm_pcm_channel_weight_put,
  3835. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3836. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  3837. },
  3838. {
  3839. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3840. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3841. .name = "MultiMedia18 Output Channel8",
  3842. .info = msm_pcm_channel_weight_info,
  3843. .get = msm_pcm_channel_weight_get,
  3844. .put = msm_pcm_channel_weight_put,
  3845. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3846. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  3847. },
  3848. {
  3849. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3850. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3851. .name = "MultiMedia18 Output Channel9",
  3852. .info = msm_pcm_channel_weight_info,
  3853. .get = msm_pcm_channel_weight_get,
  3854. .put = msm_pcm_channel_weight_put,
  3855. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3856. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  3857. },
  3858. {
  3859. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3860. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3861. .name = "MultiMedia18 Output Channel10",
  3862. .info = msm_pcm_channel_weight_info,
  3863. .get = msm_pcm_channel_weight_get,
  3864. .put = msm_pcm_channel_weight_put,
  3865. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3866. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 9,}
  3867. },
  3868. {
  3869. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3870. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3871. .name = "MultiMedia18 Output Channel11",
  3872. .info = msm_pcm_channel_weight_info,
  3873. .get = msm_pcm_channel_weight_get,
  3874. .put = msm_pcm_channel_weight_put,
  3875. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3876. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 10,}
  3877. },
  3878. {
  3879. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3880. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3881. .name = "MultiMedia18 Output Channel12",
  3882. .info = msm_pcm_channel_weight_info,
  3883. .get = msm_pcm_channel_weight_get,
  3884. .put = msm_pcm_channel_weight_put,
  3885. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3886. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 11,}
  3887. },
  3888. {
  3889. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3890. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3891. .name = "MultiMedia18 Output Channel13",
  3892. .info = msm_pcm_channel_weight_info,
  3893. .get = msm_pcm_channel_weight_get,
  3894. .put = msm_pcm_channel_weight_put,
  3895. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3896. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 12,}
  3897. },
  3898. {
  3899. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3900. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3901. .name = "MultiMedia18 Output Channel14",
  3902. .info = msm_pcm_channel_weight_info,
  3903. .get = msm_pcm_channel_weight_get,
  3904. .put = msm_pcm_channel_weight_put,
  3905. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3906. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 13,}
  3907. },
  3908. {
  3909. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3910. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3911. .name = "MultiMedia19 Output Channel1",
  3912. .info = msm_pcm_channel_weight_info,
  3913. .get = msm_pcm_channel_weight_get,
  3914. .put = msm_pcm_channel_weight_put,
  3915. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3916. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 0,}
  3917. },
  3918. {
  3919. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3920. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3921. .name = "MultiMedia19 Output Channel2",
  3922. .info = msm_pcm_channel_weight_info,
  3923. .get = msm_pcm_channel_weight_get,
  3924. .put = msm_pcm_channel_weight_put,
  3925. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3926. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 1, }
  3927. },
  3928. {
  3929. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3930. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3931. .name = "MultiMedia19 Output Channel3",
  3932. .info = msm_pcm_channel_weight_info,
  3933. .get = msm_pcm_channel_weight_get,
  3934. .put = msm_pcm_channel_weight_put,
  3935. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3936. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 2,}
  3937. },
  3938. {
  3939. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3940. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3941. .name = "MultiMedia19 Output Channel4",
  3942. .info = msm_pcm_channel_weight_info,
  3943. .get = msm_pcm_channel_weight_get,
  3944. .put = msm_pcm_channel_weight_put,
  3945. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3946. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  3947. },
  3948. {
  3949. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3950. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3951. .name = "MultiMedia19 Output Channel5",
  3952. .info = msm_pcm_channel_weight_info,
  3953. .get = msm_pcm_channel_weight_get,
  3954. .put = msm_pcm_channel_weight_put,
  3955. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3956. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  3957. },
  3958. {
  3959. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3960. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3961. .name = "MultiMedia19 Output Channel6",
  3962. .info = msm_pcm_channel_weight_info,
  3963. .get = msm_pcm_channel_weight_get,
  3964. .put = msm_pcm_channel_weight_put,
  3965. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3966. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  3967. },
  3968. {
  3969. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3970. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3971. .name = "MultiMedia19 Output Channel7",
  3972. .info = msm_pcm_channel_weight_info,
  3973. .get = msm_pcm_channel_weight_get,
  3974. .put = msm_pcm_channel_weight_put,
  3975. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3976. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  3977. },
  3978. {
  3979. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3980. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3981. .name = "MultiMedia19 Output Channel8",
  3982. .info = msm_pcm_channel_weight_info,
  3983. .get = msm_pcm_channel_weight_get,
  3984. .put = msm_pcm_channel_weight_put,
  3985. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3986. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  3987. },
  3988. {
  3989. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3990. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3991. .name = "MultiMedia19 Output Channel9",
  3992. .info = msm_pcm_channel_weight_info,
  3993. .get = msm_pcm_channel_weight_get,
  3994. .put = msm_pcm_channel_weight_put,
  3995. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3996. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  3997. },
  3998. {
  3999. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4000. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4001. .name = "MultiMedia19 Output Channel10",
  4002. .info = msm_pcm_channel_weight_info,
  4003. .get = msm_pcm_channel_weight_get,
  4004. .put = msm_pcm_channel_weight_put,
  4005. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4006. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 9,}
  4007. },
  4008. {
  4009. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4010. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4011. .name = "MultiMedia19 Output Channel11",
  4012. .info = msm_pcm_channel_weight_info,
  4013. .get = msm_pcm_channel_weight_get,
  4014. .put = msm_pcm_channel_weight_put,
  4015. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4016. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 10,}
  4017. },
  4018. {
  4019. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4020. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4021. .name = "MultiMedia19 Output Channel12",
  4022. .info = msm_pcm_channel_weight_info,
  4023. .get = msm_pcm_channel_weight_get,
  4024. .put = msm_pcm_channel_weight_put,
  4025. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4026. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 11,}
  4027. },
  4028. {
  4029. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4030. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4031. .name = "MultiMedia19 Output Channel13",
  4032. .info = msm_pcm_channel_weight_info,
  4033. .get = msm_pcm_channel_weight_get,
  4034. .put = msm_pcm_channel_weight_put,
  4035. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4036. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 12,}
  4037. },
  4038. {
  4039. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4040. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4041. .name = "MultiMedia19 Output Channel14",
  4042. .info = msm_pcm_channel_weight_info,
  4043. .get = msm_pcm_channel_weight_get,
  4044. .put = msm_pcm_channel_weight_put,
  4045. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4046. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 13,}
  4047. },
  4048. {
  4049. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4050. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4051. .name = "MultiMedia28 Output Channel1",
  4052. .info = msm_pcm_channel_weight_info,
  4053. .get = msm_pcm_channel_weight_get,
  4054. .put = msm_pcm_channel_weight_put,
  4055. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4056. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 0,}
  4057. },
  4058. {
  4059. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4060. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4061. .name = "MultiMedia28 Output Channel2",
  4062. .info = msm_pcm_channel_weight_info,
  4063. .get = msm_pcm_channel_weight_get,
  4064. .put = msm_pcm_channel_weight_put,
  4065. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4066. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 1, }
  4067. },
  4068. {
  4069. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4070. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4071. .name = "MultiMedia28 Output Channel3",
  4072. .info = msm_pcm_channel_weight_info,
  4073. .get = msm_pcm_channel_weight_get,
  4074. .put = msm_pcm_channel_weight_put,
  4075. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4076. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 2,}
  4077. },
  4078. {
  4079. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4080. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4081. .name = "MultiMedia28 Output Channel4",
  4082. .info = msm_pcm_channel_weight_info,
  4083. .get = msm_pcm_channel_weight_get,
  4084. .put = msm_pcm_channel_weight_put,
  4085. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4086. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4087. },
  4088. {
  4089. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4090. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4091. .name = "MultiMedia28 Output Channel5",
  4092. .info = msm_pcm_channel_weight_info,
  4093. .get = msm_pcm_channel_weight_get,
  4094. .put = msm_pcm_channel_weight_put,
  4095. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4096. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4097. },
  4098. {
  4099. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4100. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4101. .name = "MultiMedia28 Output Channel6",
  4102. .info = msm_pcm_channel_weight_info,
  4103. .get = msm_pcm_channel_weight_get,
  4104. .put = msm_pcm_channel_weight_put,
  4105. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4106. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4107. },
  4108. {
  4109. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4110. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4111. .name = "MultiMedia28 Output Channel7",
  4112. .info = msm_pcm_channel_weight_info,
  4113. .get = msm_pcm_channel_weight_get,
  4114. .put = msm_pcm_channel_weight_put,
  4115. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4116. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4117. },
  4118. {
  4119. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4120. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4121. .name = "MultiMedia28 Output Channel8",
  4122. .info = msm_pcm_channel_weight_info,
  4123. .get = msm_pcm_channel_weight_get,
  4124. .put = msm_pcm_channel_weight_put,
  4125. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4126. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4127. },
  4128. {
  4129. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4130. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4131. .name = "MultiMedia28 Output Channel9",
  4132. .info = msm_pcm_channel_weight_info,
  4133. .get = msm_pcm_channel_weight_get,
  4134. .put = msm_pcm_channel_weight_put,
  4135. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4136. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4137. },
  4138. {
  4139. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4140. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4141. .name = "MultiMedia28 Output Channel10",
  4142. .info = msm_pcm_channel_weight_info,
  4143. .get = msm_pcm_channel_weight_get,
  4144. .put = msm_pcm_channel_weight_put,
  4145. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4146. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 9,}
  4147. },
  4148. {
  4149. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4150. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4151. .name = "MultiMedia28 Output Channel11",
  4152. .info = msm_pcm_channel_weight_info,
  4153. .get = msm_pcm_channel_weight_get,
  4154. .put = msm_pcm_channel_weight_put,
  4155. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4156. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 10,}
  4157. },
  4158. {
  4159. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4160. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4161. .name = "MultiMedia28 Output Channel12",
  4162. .info = msm_pcm_channel_weight_info,
  4163. .get = msm_pcm_channel_weight_get,
  4164. .put = msm_pcm_channel_weight_put,
  4165. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4166. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 11,}
  4167. },
  4168. {
  4169. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4170. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4171. .name = "MultiMedia28 Output Channel13",
  4172. .info = msm_pcm_channel_weight_info,
  4173. .get = msm_pcm_channel_weight_get,
  4174. .put = msm_pcm_channel_weight_put,
  4175. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4176. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 12,}
  4177. },
  4178. {
  4179. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4180. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4181. .name = "MultiMedia28 Output Channel14",
  4182. .info = msm_pcm_channel_weight_info,
  4183. .get = msm_pcm_channel_weight_get,
  4184. .put = msm_pcm_channel_weight_put,
  4185. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4186. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 13,}
  4187. },
  4188. {
  4189. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4190. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4191. .name = "MultiMedia29 Output Channel1",
  4192. .info = msm_pcm_channel_weight_info,
  4193. .get = msm_pcm_channel_weight_get,
  4194. .put = msm_pcm_channel_weight_put,
  4195. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4196. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 0,}
  4197. },
  4198. {
  4199. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4200. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4201. .name = "MultiMedia29 Output Channel2",
  4202. .info = msm_pcm_channel_weight_info,
  4203. .get = msm_pcm_channel_weight_get,
  4204. .put = msm_pcm_channel_weight_put,
  4205. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4206. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 1, }
  4207. },
  4208. {
  4209. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4210. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4211. .name = "MultiMedia29 Output Channel3",
  4212. .info = msm_pcm_channel_weight_info,
  4213. .get = msm_pcm_channel_weight_get,
  4214. .put = msm_pcm_channel_weight_put,
  4215. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4216. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 2,}
  4217. },
  4218. {
  4219. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4220. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4221. .name = "MultiMedia29 Output Channel4",
  4222. .info = msm_pcm_channel_weight_info,
  4223. .get = msm_pcm_channel_weight_get,
  4224. .put = msm_pcm_channel_weight_put,
  4225. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4226. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4227. },
  4228. {
  4229. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4230. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4231. .name = "MultiMedia29 Output Channel5",
  4232. .info = msm_pcm_channel_weight_info,
  4233. .get = msm_pcm_channel_weight_get,
  4234. .put = msm_pcm_channel_weight_put,
  4235. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4236. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4237. },
  4238. {
  4239. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4240. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4241. .name = "MultiMedia29 Output Channel6",
  4242. .info = msm_pcm_channel_weight_info,
  4243. .get = msm_pcm_channel_weight_get,
  4244. .put = msm_pcm_channel_weight_put,
  4245. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4246. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4247. },
  4248. {
  4249. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4250. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4251. .name = "MultiMedia29 Output Channel7",
  4252. .info = msm_pcm_channel_weight_info,
  4253. .get = msm_pcm_channel_weight_get,
  4254. .put = msm_pcm_channel_weight_put,
  4255. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4256. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4257. },
  4258. {
  4259. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4260. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4261. .name = "MultiMedia29 Output Channel8",
  4262. .info = msm_pcm_channel_weight_info,
  4263. .get = msm_pcm_channel_weight_get,
  4264. .put = msm_pcm_channel_weight_put,
  4265. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4266. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4267. },
  4268. {
  4269. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4270. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4271. .name = "MultiMedia29 Output Channel9",
  4272. .info = msm_pcm_channel_weight_info,
  4273. .get = msm_pcm_channel_weight_get,
  4274. .put = msm_pcm_channel_weight_put,
  4275. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4276. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4277. },
  4278. {
  4279. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4280. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4281. .name = "MultiMedia29 Output Channel10",
  4282. .info = msm_pcm_channel_weight_info,
  4283. .get = msm_pcm_channel_weight_get,
  4284. .put = msm_pcm_channel_weight_put,
  4285. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4286. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 9,}
  4287. },
  4288. {
  4289. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4290. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4291. .name = "MultiMedia29 Output Channel11",
  4292. .info = msm_pcm_channel_weight_info,
  4293. .get = msm_pcm_channel_weight_get,
  4294. .put = msm_pcm_channel_weight_put,
  4295. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4296. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 10,}
  4297. },
  4298. {
  4299. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4300. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4301. .name = "MultiMedia29 Output Channel12",
  4302. .info = msm_pcm_channel_weight_info,
  4303. .get = msm_pcm_channel_weight_get,
  4304. .put = msm_pcm_channel_weight_put,
  4305. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4306. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 11,}
  4307. },
  4308. {
  4309. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4310. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4311. .name = "MultiMedia29 Output Channel13",
  4312. .info = msm_pcm_channel_weight_info,
  4313. .get = msm_pcm_channel_weight_get,
  4314. .put = msm_pcm_channel_weight_put,
  4315. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4316. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 12,}
  4317. },
  4318. {
  4319. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4320. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4321. .name = "MultiMedia29 Output Channel14",
  4322. .info = msm_pcm_channel_weight_info,
  4323. .get = msm_pcm_channel_weight_get,
  4324. .put = msm_pcm_channel_weight_put,
  4325. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4326. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 13,}
  4327. },
  4328. {
  4329. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4330. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4331. .name = "MultiMedia30 Output Channel1",
  4332. .info = msm_pcm_channel_weight_info,
  4333. .get = msm_pcm_channel_weight_get,
  4334. .put = msm_pcm_channel_weight_put,
  4335. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4336. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 0,}
  4337. },
  4338. {
  4339. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4340. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4341. .name = "MultiMedia30 Output Channel2",
  4342. .info = msm_pcm_channel_weight_info,
  4343. .get = msm_pcm_channel_weight_get,
  4344. .put = msm_pcm_channel_weight_put,
  4345. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4346. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 1, }
  4347. },
  4348. {
  4349. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4350. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4351. .name = "MultiMedia30 Output Channel3",
  4352. .info = msm_pcm_channel_weight_info,
  4353. .get = msm_pcm_channel_weight_get,
  4354. .put = msm_pcm_channel_weight_put,
  4355. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4356. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 2,}
  4357. },
  4358. {
  4359. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4360. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4361. .name = "MultiMedia30 Output Channel4",
  4362. .info = msm_pcm_channel_weight_info,
  4363. .get = msm_pcm_channel_weight_get,
  4364. .put = msm_pcm_channel_weight_put,
  4365. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4366. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 3,}
  4367. },
  4368. {
  4369. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4370. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4371. .name = "MultiMedia30 Output Channel5",
  4372. .info = msm_pcm_channel_weight_info,
  4373. .get = msm_pcm_channel_weight_get,
  4374. .put = msm_pcm_channel_weight_put,
  4375. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4376. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 4,}
  4377. },
  4378. {
  4379. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4380. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4381. .name = "MultiMedia30 Output Channel6",
  4382. .info = msm_pcm_channel_weight_info,
  4383. .get = msm_pcm_channel_weight_get,
  4384. .put = msm_pcm_channel_weight_put,
  4385. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4386. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 5,}
  4387. },
  4388. {
  4389. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4390. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4391. .name = "MultiMedia30 Output Channel7",
  4392. .info = msm_pcm_channel_weight_info,
  4393. .get = msm_pcm_channel_weight_get,
  4394. .put = msm_pcm_channel_weight_put,
  4395. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4396. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 6,}
  4397. },
  4398. {
  4399. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4400. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4401. .name = "MultiMedia30 Output Channel8",
  4402. .info = msm_pcm_channel_weight_info,
  4403. .get = msm_pcm_channel_weight_get,
  4404. .put = msm_pcm_channel_weight_put,
  4405. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4406. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 7,}
  4407. },
  4408. {
  4409. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4410. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4411. .name = "MultiMedia30 Output Channel9",
  4412. .info = msm_pcm_channel_weight_info,
  4413. .get = msm_pcm_channel_weight_get,
  4414. .put = msm_pcm_channel_weight_put,
  4415. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4416. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 8,}
  4417. },
  4418. {
  4419. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4420. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4421. .name = "MultiMedia30 Output Channel10",
  4422. .info = msm_pcm_channel_weight_info,
  4423. .get = msm_pcm_channel_weight_get,
  4424. .put = msm_pcm_channel_weight_put,
  4425. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4426. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 9,}
  4427. },
  4428. {
  4429. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4430. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4431. .name = "MultiMedia30 Output Channel11",
  4432. .info = msm_pcm_channel_weight_info,
  4433. .get = msm_pcm_channel_weight_get,
  4434. .put = msm_pcm_channel_weight_put,
  4435. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4436. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 10,}
  4437. },
  4438. {
  4439. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4440. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4441. .name = "MultiMedia30 Output Channel12",
  4442. .info = msm_pcm_channel_weight_info,
  4443. .get = msm_pcm_channel_weight_get,
  4444. .put = msm_pcm_channel_weight_put,
  4445. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4446. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4447. },
  4448. {
  4449. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4450. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4451. .name = "MultiMedia30 Output Channel13",
  4452. .info = msm_pcm_channel_weight_info,
  4453. .get = msm_pcm_channel_weight_get,
  4454. .put = msm_pcm_channel_weight_put,
  4455. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4456. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4457. },
  4458. {
  4459. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4460. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4461. .name = "MultiMedia30 Output Channel14",
  4462. .info = msm_pcm_channel_weight_info,
  4463. .get = msm_pcm_channel_weight_get,
  4464. .put = msm_pcm_channel_weight_put,
  4465. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4466. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4467. },
  4468. {
  4469. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4470. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4471. .name = "MultiMedia1 Channel1",
  4472. .info = msm_pcm_channel_input_be_info,
  4473. .get = msm_pcm_channel_input_be_get,
  4474. .put = msm_pcm_channel_input_be_put,
  4475. .private_value = (unsigned long)&(mm1_ch1_enum)
  4476. },
  4477. {
  4478. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4479. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4480. .name = "MultiMedia1 Channel2",
  4481. .info = msm_pcm_channel_input_be_info,
  4482. .get = msm_pcm_channel_input_be_get,
  4483. .put = msm_pcm_channel_input_be_put,
  4484. .private_value = (unsigned long)&(mm1_ch2_enum)
  4485. },
  4486. {
  4487. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4488. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4489. .name = "MultiMedia1 Channel3",
  4490. .info = msm_pcm_channel_input_be_info,
  4491. .get = msm_pcm_channel_input_be_get,
  4492. .put = msm_pcm_channel_input_be_put,
  4493. .private_value = (unsigned long)&(mm1_ch3_enum)
  4494. },
  4495. {
  4496. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4497. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4498. .name = "MultiMedia1 Channel4",
  4499. .info = msm_pcm_channel_input_be_info,
  4500. .get = msm_pcm_channel_input_be_get,
  4501. .put = msm_pcm_channel_input_be_put,
  4502. .private_value = (unsigned long)&(mm1_ch4_enum)
  4503. },
  4504. {
  4505. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4506. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4507. .name = "MultiMedia1 Channel5",
  4508. .info = msm_pcm_channel_input_be_info,
  4509. .get = msm_pcm_channel_input_be_get,
  4510. .put = msm_pcm_channel_input_be_put,
  4511. .private_value = (unsigned long)&(mm1_ch5_enum)
  4512. },
  4513. {
  4514. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4515. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4516. .name = "MultiMedia1 Channel6",
  4517. .info = msm_pcm_channel_input_be_info,
  4518. .get = msm_pcm_channel_input_be_get,
  4519. .put = msm_pcm_channel_input_be_put,
  4520. .private_value = (unsigned long)&(mm1_ch6_enum)
  4521. },
  4522. {
  4523. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4524. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4525. .name = "MultiMedia1 Channel7",
  4526. .info = msm_pcm_channel_input_be_info,
  4527. .get = msm_pcm_channel_input_be_get,
  4528. .put = msm_pcm_channel_input_be_put,
  4529. .private_value = (unsigned long)&(mm1_ch7_enum)
  4530. },
  4531. {
  4532. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4533. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4534. .name = "MultiMedia1 Channel8",
  4535. .info = msm_pcm_channel_input_be_info,
  4536. .get = msm_pcm_channel_input_be_get,
  4537. .put = msm_pcm_channel_input_be_put,
  4538. .private_value = (unsigned long)&(mm1_ch8_enum)
  4539. },
  4540. {
  4541. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4542. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4543. .name = "MultiMedia18 Channel1",
  4544. .info = msm_pcm_channel_input_be_info,
  4545. .get = msm_pcm_channel_input_be_get,
  4546. .put = msm_pcm_channel_input_be_put,
  4547. .private_value = (unsigned long)&(mm18_ch1_enum)
  4548. },
  4549. {
  4550. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4551. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4552. .name = "MultiMedia18 Channel2",
  4553. .info = msm_pcm_channel_input_be_info,
  4554. .get = msm_pcm_channel_input_be_get,
  4555. .put = msm_pcm_channel_input_be_put,
  4556. .private_value = (unsigned long)&(mm18_ch2_enum)
  4557. },
  4558. {
  4559. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4560. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4561. .name = "MultiMedia19 Channel1",
  4562. .info = msm_pcm_channel_input_be_info,
  4563. .get = msm_pcm_channel_input_be_get,
  4564. .put = msm_pcm_channel_input_be_put,
  4565. .private_value = (unsigned long)&(mm19_ch1_enum)
  4566. },
  4567. {
  4568. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4569. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4570. .name = "MultiMedia19 Channel2",
  4571. .info = msm_pcm_channel_input_be_info,
  4572. .get = msm_pcm_channel_input_be_get,
  4573. .put = msm_pcm_channel_input_be_put,
  4574. .private_value = (unsigned long)&(mm19_ch2_enum)
  4575. },
  4576. {
  4577. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4578. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4579. .name = "MultiMedia28 Channel1",
  4580. .info = msm_pcm_channel_input_be_info,
  4581. .get = msm_pcm_channel_input_be_get,
  4582. .put = msm_pcm_channel_input_be_put,
  4583. .private_value = (unsigned long)&(mm28_ch1_enum)
  4584. },
  4585. {
  4586. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4587. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4588. .name = "MultiMedia28 Channel2",
  4589. .info = msm_pcm_channel_input_be_info,
  4590. .get = msm_pcm_channel_input_be_get,
  4591. .put = msm_pcm_channel_input_be_put,
  4592. .private_value = (unsigned long)&(mm28_ch2_enum)
  4593. },
  4594. {
  4595. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4596. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4597. .name = "MultiMedia29 Channel1",
  4598. .info = msm_pcm_channel_input_be_info,
  4599. .get = msm_pcm_channel_input_be_get,
  4600. .put = msm_pcm_channel_input_be_put,
  4601. .private_value = (unsigned long)&(mm29_ch1_enum)
  4602. },
  4603. {
  4604. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4605. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4606. .name = "MultiMedia29 Channel2",
  4607. .info = msm_pcm_channel_input_be_info,
  4608. .get = msm_pcm_channel_input_be_get,
  4609. .put = msm_pcm_channel_input_be_put,
  4610. .private_value = (unsigned long)&(mm29_ch2_enum)
  4611. },
  4612. {
  4613. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4614. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4615. .name = "MultiMedia30 Channel1",
  4616. .info = msm_pcm_channel_input_be_info,
  4617. .get = msm_pcm_channel_input_be_get,
  4618. .put = msm_pcm_channel_input_be_put,
  4619. .private_value = (unsigned long)&(mm30_ch1_enum)
  4620. },
  4621. {
  4622. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4623. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4624. .name = "MultiMedia30 Channel2",
  4625. .info = msm_pcm_channel_input_be_info,
  4626. .get = msm_pcm_channel_input_be_get,
  4627. .put = msm_pcm_channel_input_be_put,
  4628. .private_value = (unsigned long)&(mm30_ch2_enum)
  4629. },
  4630. {
  4631. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4632. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4633. .name = "MultiMedia1 Output Channel Map",
  4634. .info = msm_pcm_channel_output_map_info,
  4635. .get = msm_pcm_channel_output_map_get,
  4636. .put = msm_pcm_channel_output_map_put,
  4637. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4638. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4639. },
  4640. {
  4641. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4642. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4643. .name = "MultiMedia2 Output Channel Map",
  4644. .info = msm_pcm_channel_output_map_info,
  4645. .get = msm_pcm_channel_output_map_get,
  4646. .put = msm_pcm_channel_output_map_put,
  4647. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4648. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4649. },
  4650. {
  4651. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4652. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4653. .name = "MultiMedia3 Output Channel Map",
  4654. .info = msm_pcm_channel_output_map_info,
  4655. .get = msm_pcm_channel_output_map_get,
  4656. .put = msm_pcm_channel_output_map_put,
  4657. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4658. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4659. },
  4660. {
  4661. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4662. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4663. .name = "MultiMedia4 Output Channel Map",
  4664. .info = msm_pcm_channel_output_map_info,
  4665. .get = msm_pcm_channel_output_map_get,
  4666. .put = msm_pcm_channel_output_map_put,
  4667. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4668. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4669. },
  4670. {
  4671. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4672. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4673. .name = "MultiMedia5 Output Channel Map",
  4674. .info = msm_pcm_channel_output_map_info,
  4675. .get = msm_pcm_channel_output_map_get,
  4676. .put = msm_pcm_channel_output_map_put,
  4677. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4678. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4679. },
  4680. {
  4681. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4682. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4683. .name = "MultiMedia6 Output Channel Map",
  4684. .info = msm_pcm_channel_output_map_info,
  4685. .get = msm_pcm_channel_output_map_get,
  4686. .put = msm_pcm_channel_output_map_put,
  4687. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4688. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4689. },
  4690. {
  4691. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4692. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4693. .name = "MultiMedia18 Output Channel Map",
  4694. .info = msm_pcm_channel_output_map_info,
  4695. .get = msm_pcm_channel_output_map_get,
  4696. .put = msm_pcm_channel_output_map_put,
  4697. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4698. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4699. },
  4700. {
  4701. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4702. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4703. .name = "MultiMedia19 Output Channel Map",
  4704. .info = msm_pcm_channel_output_map_info,
  4705. .get = msm_pcm_channel_output_map_get,
  4706. .put = msm_pcm_channel_output_map_put,
  4707. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4708. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4709. },
  4710. {
  4711. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4712. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4713. .name = "MultiMedia28 Output Channel Map",
  4714. .info = msm_pcm_channel_output_map_info,
  4715. .get = msm_pcm_channel_output_map_get,
  4716. .put = msm_pcm_channel_output_map_put,
  4717. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4718. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4719. },
  4720. {
  4721. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4722. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4723. .name = "MultiMedia29 Output Channel Map",
  4724. .info = msm_pcm_channel_output_map_info,
  4725. .get = msm_pcm_channel_output_map_get,
  4726. .put = msm_pcm_channel_output_map_put,
  4727. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4728. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4729. },
  4730. {
  4731. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4732. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4733. .name = "MultiMedia30 Output Channel Map",
  4734. .info = msm_pcm_channel_output_map_info,
  4735. .get = msm_pcm_channel_output_map_get,
  4736. .put = msm_pcm_channel_output_map_put,
  4737. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4738. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4739. },
  4740. };
  4741. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4742. struct snd_ctl_elem_value *ucontrol)
  4743. {
  4744. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4745. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4746. ucontrol->value.integer.value[0]);
  4747. return 0;
  4748. }
  4749. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4750. struct snd_ctl_elem_value *ucontrol)
  4751. {
  4752. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4753. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4754. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4755. return 0;
  4756. }
  4757. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4758. struct snd_ctl_elem_value *ucontrol)
  4759. {
  4760. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4761. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4762. ucontrol->value.integer.value[0]);
  4763. return 0;
  4764. }
  4765. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4766. struct snd_ctl_elem_value *ucontrol)
  4767. {
  4768. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4769. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4770. __func__, msm_ec_ref_ch_downmixed);
  4771. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4772. return 0;
  4773. }
  4774. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4775. struct snd_ctl_elem_value *ucontrol)
  4776. {
  4777. int i = 0, ret = 0;
  4778. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4779. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4780. kcontrol->private_value)->shift;
  4781. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4782. weights[i] = ucontrol->value.integer.value[i];
  4783. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  4784. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  4785. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  4786. return ret;
  4787. }
  4788. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  4789. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  4790. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  4791. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  4792. struct snd_ctl_elem_value *ucontrol)
  4793. {
  4794. switch (msm_ec_ref_bit_format) {
  4795. case SNDRV_PCM_FORMAT_S24_LE:
  4796. ucontrol->value.integer.value[0] = 2;
  4797. break;
  4798. case SNDRV_PCM_FORMAT_S16_LE:
  4799. ucontrol->value.integer.value[0] = 1;
  4800. break;
  4801. default:
  4802. ucontrol->value.integer.value[0] = 0;
  4803. break;
  4804. }
  4805. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  4806. __func__, ucontrol->value.integer.value[0]);
  4807. return 0;
  4808. }
  4809. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  4810. struct snd_ctl_elem_value *ucontrol)
  4811. {
  4812. u16 bit_width = 0;
  4813. switch (ucontrol->value.integer.value[0]) {
  4814. case 2:
  4815. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  4816. break;
  4817. case 1:
  4818. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  4819. break;
  4820. default:
  4821. msm_ec_ref_bit_format = 0;
  4822. break;
  4823. }
  4824. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  4825. bit_width = 16;
  4826. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  4827. bit_width = 24;
  4828. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  4829. __func__, msm_ec_ref_bit_format);
  4830. adm_ec_ref_rx_bit_width(bit_width);
  4831. return 0;
  4832. }
  4833. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  4834. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  4835. struct snd_ctl_elem_value *ucontrol)
  4836. {
  4837. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  4838. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  4839. __func__, ucontrol->value.integer.value[0]);
  4840. return 0;
  4841. }
  4842. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  4843. struct snd_ctl_elem_value *ucontrol)
  4844. {
  4845. switch (ucontrol->value.integer.value[0]) {
  4846. case 0:
  4847. msm_ec_ref_sampling_rate = 0;
  4848. break;
  4849. case 1:
  4850. msm_ec_ref_sampling_rate = 8000;
  4851. break;
  4852. case 2:
  4853. msm_ec_ref_sampling_rate = 16000;
  4854. break;
  4855. case 3:
  4856. msm_ec_ref_sampling_rate = 32000;
  4857. break;
  4858. case 4:
  4859. msm_ec_ref_sampling_rate = 44100;
  4860. break;
  4861. case 5:
  4862. msm_ec_ref_sampling_rate = 48000;
  4863. break;
  4864. case 6:
  4865. msm_ec_ref_sampling_rate = 96000;
  4866. break;
  4867. case 7:
  4868. msm_ec_ref_sampling_rate = 192000;
  4869. break;
  4870. case 8:
  4871. msm_ec_ref_sampling_rate = 384000;
  4872. break;
  4873. default:
  4874. msm_ec_ref_sampling_rate = 48000;
  4875. break;
  4876. }
  4877. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  4878. __func__, msm_ec_ref_sampling_rate);
  4879. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  4880. return 0;
  4881. }
  4882. static int get_ec_ref_port_id(int value, int *index)
  4883. {
  4884. int port_id;
  4885. switch (value) {
  4886. case 0:
  4887. *index = 0;
  4888. port_id = AFE_PORT_INVALID;
  4889. break;
  4890. case 1:
  4891. *index = 1;
  4892. port_id = SLIMBUS_0_RX;
  4893. break;
  4894. case 2:
  4895. *index = 2;
  4896. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  4897. break;
  4898. case 3:
  4899. *index = 3;
  4900. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4901. break;
  4902. case 4:
  4903. *index = 4;
  4904. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4905. break;
  4906. case 5:
  4907. *index = 5;
  4908. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4909. break;
  4910. case 6:
  4911. *index = 6;
  4912. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4913. break;
  4914. case 7:
  4915. *index = 7;
  4916. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  4917. break;
  4918. case 9:
  4919. *index = 9;
  4920. port_id = SLIMBUS_5_RX;
  4921. break;
  4922. case 10:
  4923. *index = 10;
  4924. port_id = SLIMBUS_1_TX;
  4925. break;
  4926. case 11:
  4927. *index = 11;
  4928. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  4929. break;
  4930. case 12:
  4931. *index = 12;
  4932. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  4933. break;
  4934. case 13:
  4935. *index = 13;
  4936. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  4937. break;
  4938. case 14:
  4939. *index = 14;
  4940. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  4941. break;
  4942. case 15:
  4943. *index = 15;
  4944. port_id = SLIMBUS_6_RX;
  4945. break;
  4946. case 16:
  4947. *index = 16;
  4948. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  4949. break;
  4950. case 17:
  4951. *index = 17;
  4952. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  4953. break;
  4954. case 18:
  4955. *index = 18;
  4956. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  4957. break;
  4958. case 19:
  4959. *index = 19;
  4960. port_id = AFE_PORT_ID_USB_RX;
  4961. break;
  4962. case 20:
  4963. *index = 20;
  4964. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  4965. break;
  4966. case 21:
  4967. *index = 21;
  4968. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  4969. break;
  4970. case 22:
  4971. *index = 22;
  4972. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  4973. break;
  4974. case 23:
  4975. *index = 23;
  4976. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  4977. break;
  4978. case 24:
  4979. *index = 24;
  4980. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  4981. break;
  4982. case 25:
  4983. *index = 25;
  4984. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  4985. break;
  4986. case 26:
  4987. *index = 26;
  4988. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  4989. break;
  4990. case 27:
  4991. *index = 27;
  4992. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  4993. break;
  4994. case 28:
  4995. *index = 28;
  4996. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  4997. break;
  4998. case 29:
  4999. *index = 29;
  5000. port_id = SLIMBUS_7_RX;
  5001. break;
  5002. case 30:
  5003. *index = 30;
  5004. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  5005. break;
  5006. case 31:
  5007. *index = 31;
  5008. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  5009. break;
  5010. case 32:
  5011. *index = 32;
  5012. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  5013. break;
  5014. case 33:
  5015. *index = 33;
  5016. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  5017. break;
  5018. case 34:
  5019. *index = 34;
  5020. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  5021. break;
  5022. case 35:
  5023. *index = 35;
  5024. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  5025. break;
  5026. case 36:
  5027. *index = 36;
  5028. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5029. break;
  5030. case 37:
  5031. *index = 37;
  5032. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5033. break;
  5034. case 38:
  5035. *index = 38;
  5036. port_id = AFE_PORT_ID_SENARY_MI2S_RX;
  5037. break;
  5038. default:
  5039. *index = 0; /* NONE */
  5040. pr_err("%s: Invalid value %d\n", __func__, value);
  5041. port_id = AFE_PORT_INVALID;
  5042. break;
  5043. }
  5044. return port_id;
  5045. }
  5046. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5047. struct snd_ctl_elem_value *ucontrol)
  5048. {
  5049. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5050. mutex_lock(&routing_lock);
  5051. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5052. mutex_unlock(&routing_lock);
  5053. return 0;
  5054. }
  5055. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5056. struct snd_ctl_elem_value *ucontrol)
  5057. {
  5058. int value = ucontrol->value.integer.value[0];
  5059. mutex_lock(&routing_lock);
  5060. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5061. &afe_loopback_tx_port_index);
  5062. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5063. __func__, afe_loopback_tx_port_index);
  5064. mutex_unlock(&routing_lock);
  5065. return 0;
  5066. }
  5067. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5068. "32000", "44100", "48000", "96000", "192000", "384000"};
  5069. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5070. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5071. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5072. ec_ref_bit_format_text),
  5073. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5074. };
  5075. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5076. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5077. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5078. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5079. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5080. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5081. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5082. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5083. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5084. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5085. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5086. "DISPLAY_PORT1", "SEN_MI2S_RX",
  5087. };
  5088. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5089. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5090. };
  5091. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5092. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5093. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5094. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5095. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5096. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5097. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5098. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5099. msm_route_ec_ref_params_enum[0],
  5100. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5101. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5102. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5103. msm_ec_ref_chmixer_weights_put),
  5104. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5105. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5106. msm_ec_ref_chmixer_weights_put),
  5107. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5108. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5109. msm_ec_ref_chmixer_weights_put),
  5110. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5111. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5112. msm_ec_ref_chmixer_weights_put),
  5113. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5114. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5115. msm_ec_ref_chmixer_weights_put),
  5116. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5117. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5118. msm_ec_ref_chmixer_weights_put),
  5119. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5120. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5121. };
  5122. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5123. struct snd_ctl_elem_value *ucontrol)
  5124. {
  5125. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5126. mutex_lock(&routing_lock);
  5127. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5128. mutex_unlock(&routing_lock);
  5129. return 0;
  5130. }
  5131. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5132. struct snd_ctl_elem_value *ucontrol)
  5133. {
  5134. int value = ucontrol->value.integer.value[0];
  5135. struct snd_soc_dapm_widget *widget =
  5136. snd_soc_dapm_kcontrol_widget(kcontrol);
  5137. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5138. struct snd_soc_dapm_update *update = NULL;
  5139. mutex_lock(&routing_lock);
  5140. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5141. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5142. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5143. __func__, msm_route_ec_ref_rx);
  5144. mutex_unlock(&routing_lock);
  5145. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5146. msm_route_ec_ref_rx, e, update);
  5147. return 0;
  5148. }
  5149. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5150. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5151. msm_route_ec_ref_rx_enum[0],
  5152. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5153. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5154. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5155. msm_route_ec_ref_rx_enum[0],
  5156. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5157. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5158. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5159. msm_route_ec_ref_rx_enum[0],
  5160. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5161. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5162. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5163. msm_route_ec_ref_rx_enum[0],
  5164. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5165. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5166. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5167. msm_route_ec_ref_rx_enum[0],
  5168. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5169. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5170. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5171. msm_route_ec_ref_rx_enum[0],
  5172. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5173. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5174. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5175. msm_route_ec_ref_rx_enum[0],
  5176. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5177. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5178. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5179. msm_route_ec_ref_rx_enum[0],
  5180. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5181. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5182. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5183. msm_route_ec_ref_rx_enum[0],
  5184. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5185. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5186. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5187. msm_route_ec_ref_rx_enum[0],
  5188. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5189. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5190. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5191. msm_route_ec_ref_rx_enum[0],
  5192. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5193. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5194. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5195. msm_route_ec_ref_rx_enum[0],
  5196. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5197. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5198. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5199. msm_route_ec_ref_rx_enum[0],
  5200. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5201. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5202. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5203. msm_route_ec_ref_rx_enum[0],
  5204. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5205. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5206. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5207. msm_route_ec_ref_rx_enum[0],
  5208. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5209. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5210. struct snd_ctl_elem_value *ucontrol)
  5211. {
  5212. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5213. mutex_lock(&routing_lock);
  5214. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5215. mutex_unlock(&routing_lock);
  5216. return 0;
  5217. }
  5218. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5219. struct snd_ctl_elem_value *ucontrol)
  5220. {
  5221. struct snd_soc_dapm_widget *widget =
  5222. snd_soc_dapm_kcontrol_widget(kcontrol);
  5223. int mux = ucontrol->value.enumerated.item[0];
  5224. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5225. int ret = 1;
  5226. bool state = true;
  5227. uint16_t ext_ec_ref_port_id;
  5228. struct snd_soc_dapm_update *update = NULL;
  5229. if (mux >= e->items) {
  5230. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5231. return -EINVAL;
  5232. }
  5233. mutex_lock(&routing_lock);
  5234. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5235. switch (msm_route_ext_ec_ref) {
  5236. case EXT_EC_REF_PRI_MI2S_TX:
  5237. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5238. break;
  5239. case EXT_EC_REF_SEC_MI2S_TX:
  5240. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5241. break;
  5242. case EXT_EC_REF_TERT_MI2S_TX:
  5243. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5244. break;
  5245. case EXT_EC_REF_QUAT_MI2S_TX:
  5246. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5247. break;
  5248. case EXT_EC_REF_QUIN_MI2S_TX:
  5249. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5250. break;
  5251. case EXT_EC_REF_SLIM_1_TX:
  5252. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5253. break;
  5254. case EXT_EC_REF_PRI_TDM_TX:
  5255. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5256. break;
  5257. case EXT_EC_REF_SEC_TDM_TX:
  5258. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5259. break;
  5260. case EXT_EC_REF_NONE:
  5261. default:
  5262. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5263. state = false;
  5264. break;
  5265. }
  5266. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5267. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5268. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5269. mutex_unlock(&routing_lock);
  5270. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5271. update);
  5272. } else {
  5273. ret = -EINVAL;
  5274. mutex_unlock(&routing_lock);
  5275. }
  5276. return ret;
  5277. }
  5278. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5279. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5280. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5281. "SLIM_1_TX", "PRI_TDM_TX",
  5282. "SEC_TDM_TX"};
  5283. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5284. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5285. };
  5286. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5287. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5288. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5289. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5290. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5291. MSM_BACKEND_DAI_PRI_I2S_RX,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5295. MSM_BACKEND_DAI_PRI_I2S_RX,
  5296. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5297. msm_routing_put_audio_mixer),
  5298. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5299. MSM_BACKEND_DAI_PRI_I2S_RX,
  5300. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5301. msm_routing_put_audio_mixer),
  5302. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5303. MSM_BACKEND_DAI_PRI_I2S_RX,
  5304. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5305. msm_routing_put_audio_mixer),
  5306. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5307. MSM_BACKEND_DAI_PRI_I2S_RX,
  5308. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5309. msm_routing_put_audio_mixer),
  5310. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5311. MSM_BACKEND_DAI_PRI_I2S_RX,
  5312. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5313. msm_routing_put_audio_mixer),
  5314. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5315. MSM_BACKEND_DAI_PRI_I2S_RX,
  5316. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5317. msm_routing_put_audio_mixer),
  5318. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5319. MSM_BACKEND_DAI_PRI_I2S_RX,
  5320. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5321. msm_routing_put_audio_mixer),
  5322. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5323. MSM_BACKEND_DAI_PRI_I2S_RX,
  5324. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5325. msm_routing_put_audio_mixer),
  5326. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5327. MSM_BACKEND_DAI_PRI_I2S_RX,
  5328. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5329. msm_routing_put_audio_mixer),
  5330. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5331. MSM_BACKEND_DAI_PRI_I2S_RX,
  5332. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5333. msm_routing_put_audio_mixer),
  5334. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5335. MSM_BACKEND_DAI_PRI_I2S_RX,
  5336. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5337. msm_routing_put_audio_mixer),
  5338. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5339. MSM_BACKEND_DAI_PRI_I2S_RX,
  5340. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5341. msm_routing_put_audio_mixer),
  5342. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5343. MSM_BACKEND_DAI_PRI_I2S_RX,
  5344. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5345. msm_routing_put_audio_mixer),
  5346. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5347. MSM_BACKEND_DAI_PRI_I2S_RX,
  5348. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5349. msm_routing_put_audio_mixer),
  5350. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5351. MSM_BACKEND_DAI_PRI_I2S_RX,
  5352. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5353. msm_routing_put_audio_mixer),
  5354. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5355. MSM_BACKEND_DAI_PRI_I2S_RX,
  5356. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5357. msm_routing_put_audio_mixer),
  5358. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5359. MSM_BACKEND_DAI_PRI_I2S_RX,
  5360. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5361. msm_routing_put_audio_mixer),
  5362. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5363. MSM_BACKEND_DAI_PRI_I2S_RX,
  5364. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5365. msm_routing_put_audio_mixer),
  5366. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5367. MSM_BACKEND_DAI_PRI_I2S_RX,
  5368. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5369. msm_routing_put_audio_mixer),
  5370. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5371. MSM_BACKEND_DAI_PRI_I2S_RX,
  5372. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5373. msm_routing_put_audio_mixer),
  5374. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5375. MSM_BACKEND_DAI_PRI_I2S_RX,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5379. MSM_BACKEND_DAI_PRI_I2S_RX,
  5380. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5381. msm_routing_put_audio_mixer),
  5382. };
  5383. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5384. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5385. MSM_BACKEND_DAI_SEC_I2S_RX,
  5386. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5387. msm_routing_put_audio_mixer),
  5388. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5389. MSM_BACKEND_DAI_SEC_I2S_RX,
  5390. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5391. msm_routing_put_audio_mixer),
  5392. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5393. MSM_BACKEND_DAI_SEC_I2S_RX,
  5394. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5395. msm_routing_put_audio_mixer),
  5396. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5397. MSM_BACKEND_DAI_SEC_I2S_RX,
  5398. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5399. msm_routing_put_audio_mixer),
  5400. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5401. MSM_BACKEND_DAI_SEC_I2S_RX,
  5402. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5403. msm_routing_put_audio_mixer),
  5404. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5405. MSM_BACKEND_DAI_SEC_I2S_RX,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5409. MSM_BACKEND_DAI_SEC_I2S_RX,
  5410. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5411. msm_routing_put_audio_mixer),
  5412. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5413. MSM_BACKEND_DAI_SEC_I2S_RX,
  5414. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5415. msm_routing_put_audio_mixer),
  5416. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5417. MSM_BACKEND_DAI_SEC_I2S_RX,
  5418. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5419. msm_routing_put_audio_mixer),
  5420. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5421. MSM_BACKEND_DAI_SEC_I2S_RX,
  5422. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5423. msm_routing_put_audio_mixer),
  5424. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5425. MSM_BACKEND_DAI_SEC_I2S_RX,
  5426. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5427. msm_routing_put_audio_mixer),
  5428. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5429. MSM_BACKEND_DAI_SEC_I2S_RX,
  5430. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5431. msm_routing_put_audio_mixer),
  5432. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5433. MSM_BACKEND_DAI_SEC_I2S_RX,
  5434. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5435. msm_routing_put_audio_mixer),
  5436. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5437. MSM_BACKEND_DAI_SEC_I2S_RX,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5441. MSM_BACKEND_DAI_SEC_I2S_RX,
  5442. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5443. msm_routing_put_audio_mixer),
  5444. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5445. MSM_BACKEND_DAI_SEC_I2S_RX,
  5446. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5447. msm_routing_put_audio_mixer),
  5448. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5449. MSM_BACKEND_DAI_SEC_I2S_RX,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5453. MSM_BACKEND_DAI_SEC_I2S_RX,
  5454. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5455. msm_routing_put_audio_mixer),
  5456. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5457. MSM_BACKEND_DAI_SEC_I2S_RX,
  5458. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5459. msm_routing_put_audio_mixer),
  5460. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5461. MSM_BACKEND_DAI_SEC_I2S_RX,
  5462. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5463. msm_routing_put_audio_mixer),
  5464. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5465. MSM_BACKEND_DAI_SEC_I2S_RX,
  5466. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5467. msm_routing_put_audio_mixer),
  5468. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5469. MSM_BACKEND_DAI_SEC_I2S_RX,
  5470. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5471. msm_routing_put_audio_mixer),
  5472. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5473. MSM_BACKEND_DAI_SEC_I2S_RX,
  5474. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5475. msm_routing_put_audio_mixer),
  5476. };
  5477. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5478. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5479. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5480. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5481. msm_routing_put_audio_mixer),
  5482. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5483. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5484. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5485. msm_routing_put_audio_mixer),
  5486. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5487. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5488. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5489. msm_routing_put_audio_mixer),
  5490. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5491. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5492. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5493. msm_routing_put_audio_mixer),
  5494. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5495. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5496. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5497. msm_routing_put_audio_mixer),
  5498. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5499. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5503. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5504. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5505. msm_routing_put_audio_mixer),
  5506. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5507. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5508. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5509. msm_routing_put_audio_mixer),
  5510. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5511. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5515. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5519. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5520. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5521. msm_routing_put_audio_mixer),
  5522. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5523. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5524. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5525. msm_routing_put_audio_mixer),
  5526. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5531. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5535. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5536. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5537. msm_routing_put_audio_mixer),
  5538. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5539. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5540. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5541. msm_routing_put_audio_mixer),
  5542. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5543. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5547. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5548. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5549. msm_routing_put_audio_mixer),
  5550. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5551. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5552. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5553. msm_routing_put_audio_mixer),
  5554. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5555. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5556. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5557. msm_routing_put_audio_mixer),
  5558. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5559. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5560. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5561. msm_routing_put_audio_mixer),
  5562. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5563. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5564. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5565. msm_routing_put_audio_mixer),
  5566. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5567. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5568. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5569. msm_routing_put_audio_mixer),
  5570. };
  5571. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5572. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5573. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5574. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5575. msm_routing_put_audio_mixer),
  5576. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5577. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5601. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5605. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5609. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5613. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5617. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5621. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5625. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5629. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5630. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5631. msm_routing_put_audio_mixer),
  5632. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5633. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5637. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5641. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5642. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5643. msm_routing_put_audio_mixer),
  5644. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5645. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5646. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5647. msm_routing_put_audio_mixer),
  5648. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5649. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5650. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5651. msm_routing_put_audio_mixer),
  5652. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5653. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5654. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5655. msm_routing_put_audio_mixer),
  5656. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5657. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5658. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5659. msm_routing_put_audio_mixer),
  5660. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5661. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5662. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5663. msm_routing_put_audio_mixer),
  5664. };
  5665. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5666. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5671. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5675. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5679. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5680. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5681. msm_routing_put_audio_mixer),
  5682. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5687. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5691. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5695. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5699. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5707. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5708. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5709. msm_routing_put_audio_mixer),
  5710. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5711. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5712. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5713. msm_routing_put_audio_mixer),
  5714. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5715. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5716. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5717. msm_routing_put_audio_mixer),
  5718. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5719. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5720. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5721. msm_routing_put_audio_mixer),
  5722. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5723. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5724. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5725. msm_routing_put_audio_mixer),
  5726. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5727. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5728. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5729. msm_routing_put_audio_mixer),
  5730. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5731. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5732. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5733. msm_routing_put_audio_mixer),
  5734. };
  5735. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5736. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5765. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5777. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5781. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5785. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5786. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5787. msm_routing_put_audio_mixer),
  5788. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5789. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5790. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5791. msm_routing_put_audio_mixer),
  5792. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5793. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5794. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5795. msm_routing_put_audio_mixer),
  5796. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5797. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5798. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5799. msm_routing_put_audio_mixer),
  5800. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5801. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5802. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5803. msm_routing_put_audio_mixer),
  5804. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5805. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5806. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5807. msm_routing_put_audio_mixer),
  5808. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5809. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5810. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5811. msm_routing_put_audio_mixer),
  5812. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5813. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5814. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5815. msm_routing_put_audio_mixer),
  5816. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5817. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5818. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5819. msm_routing_put_audio_mixer),
  5820. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5821. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5822. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5823. msm_routing_put_audio_mixer),
  5824. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5825. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5826. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5827. msm_routing_put_audio_mixer),
  5828. };
  5829. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5830. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5831. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5835. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5836. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5837. msm_routing_put_audio_mixer),
  5838. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5839. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5843. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5855. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5859. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5860. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5861. msm_routing_put_audio_mixer),
  5862. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5863. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5864. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5865. msm_routing_put_audio_mixer),
  5866. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5867. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5868. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5869. msm_routing_put_audio_mixer),
  5870. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5871. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5872. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5873. msm_routing_put_audio_mixer),
  5874. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5875. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5876. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5877. msm_routing_put_audio_mixer),
  5878. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5879. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5880. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5881. msm_routing_put_audio_mixer),
  5882. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5883. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5884. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5885. msm_routing_put_audio_mixer),
  5886. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5887. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5888. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5889. msm_routing_put_audio_mixer),
  5890. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5891. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5892. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5893. msm_routing_put_audio_mixer),
  5894. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5895. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5896. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5897. msm_routing_put_audio_mixer),
  5898. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5899. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5900. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5901. msm_routing_put_audio_mixer),
  5902. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5903. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5904. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5905. msm_routing_put_audio_mixer),
  5906. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5907. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5908. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5909. msm_routing_put_audio_mixer),
  5910. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5911. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5912. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5913. msm_routing_put_audio_mixer),
  5914. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5915. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5916. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5917. msm_routing_put_audio_mixer),
  5918. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5919. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5920. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5921. msm_routing_put_audio_mixer),
  5922. };
  5923. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  5924. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5925. MSM_BACKEND_DAI_MI2S_RX,
  5926. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5927. msm_routing_put_audio_mixer),
  5928. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5929. MSM_BACKEND_DAI_MI2S_RX,
  5930. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5931. msm_routing_put_audio_mixer),
  5932. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5933. MSM_BACKEND_DAI_MI2S_RX,
  5934. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5935. msm_routing_put_audio_mixer),
  5936. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5937. MSM_BACKEND_DAI_MI2S_RX,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5941. MSM_BACKEND_DAI_MI2S_RX,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5945. MSM_BACKEND_DAI_MI2S_RX,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5949. MSM_BACKEND_DAI_MI2S_RX,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5953. MSM_BACKEND_DAI_MI2S_RX,
  5954. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5955. msm_routing_put_audio_mixer),
  5956. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5957. MSM_BACKEND_DAI_MI2S_RX,
  5958. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5959. msm_routing_put_audio_mixer),
  5960. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5961. MSM_BACKEND_DAI_MI2S_RX,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5965. MSM_BACKEND_DAI_MI2S_RX,
  5966. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5967. msm_routing_put_audio_mixer),
  5968. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5969. MSM_BACKEND_DAI_MI2S_RX,
  5970. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5971. msm_routing_put_audio_mixer),
  5972. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5973. MSM_BACKEND_DAI_MI2S_RX,
  5974. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5975. msm_routing_put_audio_mixer),
  5976. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5977. MSM_BACKEND_DAI_MI2S_RX,
  5978. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5979. msm_routing_put_audio_mixer),
  5980. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5981. MSM_BACKEND_DAI_MI2S_RX,
  5982. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5983. msm_routing_put_audio_mixer),
  5984. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5985. MSM_BACKEND_DAI_MI2S_RX,
  5986. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5987. msm_routing_put_audio_mixer),
  5988. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5989. MSM_BACKEND_DAI_MI2S_RX,
  5990. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5991. msm_routing_put_audio_mixer),
  5992. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5993. MSM_BACKEND_DAI_MI2S_RX,
  5994. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5995. msm_routing_put_audio_mixer),
  5996. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5997. MSM_BACKEND_DAI_MI2S_RX,
  5998. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5999. msm_routing_put_audio_mixer),
  6000. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6001. MSM_BACKEND_DAI_MI2S_RX,
  6002. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6003. msm_routing_put_audio_mixer),
  6004. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6005. MSM_BACKEND_DAI_MI2S_RX,
  6006. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6007. msm_routing_put_audio_mixer),
  6008. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6009. MSM_BACKEND_DAI_MI2S_RX,
  6010. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6011. msm_routing_put_audio_mixer),
  6012. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6013. MSM_BACKEND_DAI_MI2S_RX,
  6014. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6015. msm_routing_put_audio_mixer),
  6016. };
  6017. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  6018. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6019. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6020. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6021. msm_routing_put_audio_mixer),
  6022. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6023. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6027. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6031. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6035. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6047. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6051. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6052. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6053. msm_routing_put_audio_mixer),
  6054. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6055. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6059. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6060. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6061. msm_routing_put_audio_mixer),
  6062. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6063. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6064. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6065. msm_routing_put_audio_mixer),
  6066. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6067. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6068. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6069. msm_routing_put_audio_mixer),
  6070. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6071. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6075. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6076. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6077. msm_routing_put_audio_mixer),
  6078. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6079. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6080. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6081. msm_routing_put_audio_mixer),
  6082. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6083. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6084. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6085. msm_routing_put_audio_mixer),
  6086. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6087. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6088. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6089. msm_routing_put_audio_mixer),
  6090. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6091. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6092. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6093. msm_routing_put_audio_mixer),
  6094. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6095. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6096. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6097. msm_routing_put_audio_mixer),
  6098. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6099. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6100. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6101. msm_routing_put_audio_mixer),
  6102. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6103. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6104. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6105. msm_routing_put_audio_mixer),
  6106. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6107. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6108. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6109. msm_routing_put_audio_mixer),
  6110. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6111. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6112. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6113. msm_routing_put_audio_mixer),
  6114. };
  6115. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6116. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6117. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6121. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6122. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6123. msm_routing_put_audio_mixer),
  6124. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6125. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6126. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6127. msm_routing_put_audio_mixer),
  6128. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6129. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6130. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6131. msm_routing_put_audio_mixer),
  6132. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6133. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6137. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6141. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6142. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6143. msm_routing_put_audio_mixer),
  6144. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6145. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6149. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6153. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6154. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6155. msm_routing_put_audio_mixer),
  6156. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6157. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6158. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6159. msm_routing_put_audio_mixer),
  6160. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6161. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6162. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6163. msm_routing_put_audio_mixer),
  6164. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6165. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6166. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6167. msm_routing_put_audio_mixer),
  6168. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6169. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6170. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6171. msm_routing_put_audio_mixer),
  6172. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6173. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6174. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6175. msm_routing_put_audio_mixer),
  6176. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6177. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6178. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6179. msm_routing_put_audio_mixer),
  6180. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6181. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6182. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6183. msm_routing_put_audio_mixer),
  6184. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6185. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6186. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6187. msm_routing_put_audio_mixer),
  6188. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6189. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6190. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6191. msm_routing_put_audio_mixer),
  6192. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6193. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6194. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6195. msm_routing_put_audio_mixer),
  6196. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6197. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6198. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6199. msm_routing_put_audio_mixer),
  6200. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6201. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6202. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6203. msm_routing_put_audio_mixer),
  6204. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6205. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6206. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6207. msm_routing_put_audio_mixer),
  6208. };
  6209. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6210. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6215. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6219. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6223. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6231. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6235. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6239. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6243. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6247. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6248. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6249. msm_routing_put_audio_mixer),
  6250. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6251. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6252. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6253. msm_routing_put_audio_mixer),
  6254. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6255. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6259. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6260. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6261. msm_routing_put_audio_mixer),
  6262. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6263. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6264. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6265. msm_routing_put_audio_mixer),
  6266. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6267. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6271. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6272. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6273. msm_routing_put_audio_mixer),
  6274. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6275. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6276. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6277. msm_routing_put_audio_mixer),
  6278. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6279. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6280. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6281. msm_routing_put_audio_mixer),
  6282. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6283. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6284. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6285. msm_routing_put_audio_mixer),
  6286. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6287. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6288. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6289. msm_routing_put_audio_mixer),
  6290. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6291. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6292. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6293. msm_routing_put_audio_mixer),
  6294. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6295. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6296. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6297. msm_routing_put_audio_mixer),
  6298. };
  6299. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6300. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6301. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6305. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6309. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6310. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6311. msm_routing_put_audio_mixer),
  6312. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6313. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6314. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6315. msm_routing_put_audio_mixer),
  6316. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6317. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6321. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6322. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6323. msm_routing_put_audio_mixer),
  6324. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6325. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6357. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6358. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6359. msm_routing_put_audio_mixer),
  6360. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6361. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6365. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6369. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6370. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6371. msm_routing_put_audio_mixer),
  6372. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6373. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6377. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6378. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6379. msm_routing_put_audio_mixer),
  6380. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6381. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6382. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6383. msm_routing_put_audio_mixer),
  6384. };
  6385. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6386. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6387. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6388. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6389. msm_routing_put_audio_mixer),
  6390. };
  6391. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6392. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6393. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6394. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6395. msm_routing_put_audio_mixer),
  6396. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6397. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6398. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6399. msm_routing_put_audio_mixer),
  6400. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6401. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6402. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6403. msm_routing_put_audio_mixer),
  6404. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6405. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6406. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6407. msm_routing_put_audio_mixer),
  6408. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6409. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6410. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6411. msm_routing_put_audio_mixer),
  6412. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6413. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6414. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6415. msm_routing_put_audio_mixer),
  6416. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6417. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6418. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6419. msm_routing_put_audio_mixer),
  6420. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6421. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6422. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6423. msm_routing_put_audio_mixer),
  6424. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6425. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6426. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6427. msm_routing_put_audio_mixer),
  6428. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6429. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6430. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6431. msm_routing_put_audio_mixer),
  6432. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6433. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6434. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6435. msm_routing_put_audio_mixer),
  6436. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6437. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6438. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6439. msm_routing_put_audio_mixer),
  6440. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6441. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6442. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6443. msm_routing_put_audio_mixer),
  6444. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6445. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6446. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6447. msm_routing_put_audio_mixer),
  6448. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6449. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6450. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6451. msm_routing_put_audio_mixer),
  6452. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6453. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6454. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6455. msm_routing_put_audio_mixer),
  6456. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6457. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6458. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6459. msm_routing_put_audio_mixer),
  6460. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6461. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6462. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6463. msm_routing_put_audio_mixer),
  6464. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6465. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6466. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6467. msm_routing_put_audio_mixer),
  6468. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6469. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6473. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6474. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6475. msm_routing_put_audio_mixer),
  6476. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6477. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6478. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6479. msm_routing_put_audio_mixer),
  6480. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6481. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6482. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6483. msm_routing_put_audio_mixer),
  6484. };
  6485. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6486. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6487. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6488. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6489. msm_routing_put_audio_mixer),
  6490. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6491. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6492. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6493. msm_routing_put_audio_mixer),
  6494. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6495. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6496. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6497. msm_routing_put_audio_mixer),
  6498. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6499. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6500. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6501. msm_routing_put_audio_mixer),
  6502. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6503. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6504. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6505. msm_routing_put_audio_mixer),
  6506. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6507. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6508. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6509. msm_routing_put_audio_mixer),
  6510. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6511. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6512. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6513. msm_routing_put_audio_mixer),
  6514. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6515. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6516. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6517. msm_routing_put_audio_mixer),
  6518. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6519. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6520. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6521. msm_routing_put_audio_mixer),
  6522. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6523. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6524. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6525. msm_routing_put_audio_mixer),
  6526. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6527. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6528. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6529. msm_routing_put_audio_mixer),
  6530. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6531. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6535. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6536. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6537. msm_routing_put_audio_mixer),
  6538. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6539. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6540. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6541. msm_routing_put_audio_mixer),
  6542. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6543. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6547. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6548. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6549. msm_routing_put_audio_mixer),
  6550. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6551. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6552. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6553. msm_routing_put_audio_mixer),
  6554. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6555. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6556. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6557. msm_routing_put_audio_mixer),
  6558. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6559. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6560. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6561. msm_routing_put_audio_mixer),
  6562. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6563. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6564. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6565. msm_routing_put_audio_mixer),
  6566. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6567. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6568. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6569. msm_routing_put_audio_mixer),
  6570. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6571. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6572. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6573. msm_routing_put_audio_mixer),
  6574. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6575. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6576. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6577. msm_routing_put_audio_mixer),
  6578. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  6579. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6580. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. };
  6583. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6584. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6585. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6586. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6587. msm_routing_put_audio_mixer),
  6588. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6589. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6590. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6591. msm_routing_put_audio_mixer),
  6592. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6593. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6594. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6595. msm_routing_put_audio_mixer),
  6596. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6597. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6598. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6599. msm_routing_put_audio_mixer),
  6600. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6601. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6602. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6603. msm_routing_put_audio_mixer),
  6604. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6605. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6606. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6607. msm_routing_put_audio_mixer),
  6608. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6609. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6610. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6611. msm_routing_put_audio_mixer),
  6612. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6613. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6614. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6615. msm_routing_put_audio_mixer),
  6616. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6617. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6618. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6619. msm_routing_put_audio_mixer),
  6620. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6621. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6622. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6623. msm_routing_put_audio_mixer),
  6624. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6625. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6626. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6627. msm_routing_put_audio_mixer),
  6628. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6629. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6630. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6631. msm_routing_put_audio_mixer),
  6632. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6633. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6634. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6635. msm_routing_put_audio_mixer),
  6636. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6637. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6638. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6639. msm_routing_put_audio_mixer),
  6640. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6641. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6642. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6643. msm_routing_put_audio_mixer),
  6644. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6645. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6646. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6647. msm_routing_put_audio_mixer),
  6648. };
  6649. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6650. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6651. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6652. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6653. msm_routing_put_audio_mixer),
  6654. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6655. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6656. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6657. msm_routing_put_audio_mixer),
  6658. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6659. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6660. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6661. msm_routing_put_audio_mixer),
  6662. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6663. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6664. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6665. msm_routing_put_audio_mixer),
  6666. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6667. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6668. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6669. msm_routing_put_audio_mixer),
  6670. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6671. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6672. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6673. msm_routing_put_audio_mixer),
  6674. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6675. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6676. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6677. msm_routing_put_audio_mixer),
  6678. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6679. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6680. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6681. msm_routing_put_audio_mixer),
  6682. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6683. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6684. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6685. msm_routing_put_audio_mixer),
  6686. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6687. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6688. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6689. msm_routing_put_audio_mixer),
  6690. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6691. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6692. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6693. msm_routing_put_audio_mixer),
  6694. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6695. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6696. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6697. msm_routing_put_audio_mixer),
  6698. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6699. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6700. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6701. msm_routing_put_audio_mixer),
  6702. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6703. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6704. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6705. msm_routing_put_audio_mixer),
  6706. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6707. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6708. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6709. msm_routing_put_audio_mixer),
  6710. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6711. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6712. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6713. msm_routing_put_audio_mixer),
  6714. };
  6715. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6716. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6717. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6718. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6719. msm_routing_put_audio_mixer),
  6720. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6721. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6722. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6723. msm_routing_put_audio_mixer),
  6724. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6725. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6726. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6727. msm_routing_put_audio_mixer),
  6728. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6729. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6730. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6731. msm_routing_put_audio_mixer),
  6732. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6733. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6737. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6738. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6739. msm_routing_put_audio_mixer),
  6740. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6741. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6742. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6743. msm_routing_put_audio_mixer),
  6744. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6745. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6746. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6747. msm_routing_put_audio_mixer),
  6748. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6749. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6750. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6751. msm_routing_put_audio_mixer),
  6752. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6753. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6754. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6755. msm_routing_put_audio_mixer),
  6756. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6757. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6761. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6762. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6763. msm_routing_put_audio_mixer),
  6764. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6765. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6766. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6767. msm_routing_put_audio_mixer),
  6768. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6769. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6773. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6774. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6775. msm_routing_put_audio_mixer),
  6776. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6777. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6778. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6779. msm_routing_put_audio_mixer),
  6780. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6781. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6782. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6783. msm_routing_put_audio_mixer),
  6784. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6785. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6786. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6787. msm_routing_put_audio_mixer),
  6788. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6789. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6790. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6791. msm_routing_put_audio_mixer),
  6792. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6793. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6794. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6795. msm_routing_put_audio_mixer),
  6796. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6797. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6798. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6799. msm_routing_put_audio_mixer),
  6800. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6801. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6802. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6803. msm_routing_put_audio_mixer),
  6804. };
  6805. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  6806. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6807. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6808. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6809. msm_routing_put_audio_mixer),
  6810. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6811. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6812. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6813. msm_routing_put_audio_mixer),
  6814. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6815. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6816. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6817. msm_routing_put_audio_mixer),
  6818. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6819. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6820. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6821. msm_routing_put_audio_mixer),
  6822. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6823. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6824. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6825. msm_routing_put_audio_mixer),
  6826. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6827. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6828. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6829. msm_routing_put_audio_mixer),
  6830. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6831. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6835. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6836. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6837. msm_routing_put_audio_mixer),
  6838. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6839. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6840. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6841. msm_routing_put_audio_mixer),
  6842. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6843. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6847. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6848. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6849. msm_routing_put_audio_mixer),
  6850. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6851. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6852. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6853. msm_routing_put_audio_mixer),
  6854. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6855. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6859. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6860. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6861. msm_routing_put_audio_mixer),
  6862. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6863. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6864. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6865. msm_routing_put_audio_mixer),
  6866. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6867. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6868. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6869. msm_routing_put_audio_mixer),
  6870. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6871. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6872. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6873. msm_routing_put_audio_mixer),
  6874. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6875. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6876. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6877. msm_routing_put_audio_mixer),
  6878. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6879. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6880. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6881. msm_routing_put_audio_mixer),
  6882. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6883. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6884. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6885. msm_routing_put_audio_mixer),
  6886. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6887. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6888. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6889. msm_routing_put_audio_mixer),
  6890. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6891. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6892. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6893. msm_routing_put_audio_mixer),
  6894. };
  6895. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  6896. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6897. MSM_BACKEND_DAI_HDMI_RX,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6901. MSM_BACKEND_DAI_HDMI_RX,
  6902. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6903. msm_routing_put_audio_mixer),
  6904. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6905. MSM_BACKEND_DAI_HDMI_RX,
  6906. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6907. msm_routing_put_audio_mixer),
  6908. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6909. MSM_BACKEND_DAI_HDMI_RX,
  6910. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6911. msm_routing_put_audio_mixer),
  6912. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6913. MSM_BACKEND_DAI_HDMI_RX,
  6914. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6915. msm_routing_put_audio_mixer),
  6916. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6917. MSM_BACKEND_DAI_HDMI_RX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6921. MSM_BACKEND_DAI_HDMI_RX,
  6922. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6923. msm_routing_put_audio_mixer),
  6924. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6925. MSM_BACKEND_DAI_HDMI_RX,
  6926. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6927. msm_routing_put_audio_mixer),
  6928. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6929. MSM_BACKEND_DAI_HDMI_RX,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6933. MSM_BACKEND_DAI_HDMI_RX,
  6934. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6935. msm_routing_put_audio_mixer),
  6936. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6937. MSM_BACKEND_DAI_HDMI_RX,
  6938. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6939. msm_routing_put_audio_mixer),
  6940. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6941. MSM_BACKEND_DAI_HDMI_RX,
  6942. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6943. msm_routing_put_audio_mixer),
  6944. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6945. MSM_BACKEND_DAI_HDMI_RX,
  6946. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6947. msm_routing_put_audio_mixer),
  6948. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6949. MSM_BACKEND_DAI_HDMI_RX,
  6950. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6951. msm_routing_put_audio_mixer),
  6952. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6953. MSM_BACKEND_DAI_HDMI_RX,
  6954. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6955. msm_routing_put_audio_mixer),
  6956. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6957. MSM_BACKEND_DAI_HDMI_RX,
  6958. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6959. msm_routing_put_audio_mixer),
  6960. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6961. MSM_BACKEND_DAI_HDMI_RX,
  6962. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6963. msm_routing_put_audio_mixer),
  6964. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6965. MSM_BACKEND_DAI_HDMI_RX,
  6966. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6967. msm_routing_put_audio_mixer),
  6968. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6969. MSM_BACKEND_DAI_HDMI_RX,
  6970. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6971. msm_routing_put_audio_mixer),
  6972. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6973. MSM_BACKEND_DAI_HDMI_RX,
  6974. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6975. msm_routing_put_audio_mixer),
  6976. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6977. MSM_BACKEND_DAI_HDMI_RX,
  6978. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6979. msm_routing_put_audio_mixer),
  6980. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6981. MSM_BACKEND_DAI_HDMI_RX,
  6982. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6983. msm_routing_put_audio_mixer),
  6984. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6985. MSM_BACKEND_DAI_HDMI_RX,
  6986. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6987. msm_routing_put_audio_mixer),
  6988. };
  6989. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  6990. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6991. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6992. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6993. msm_routing_put_audio_mixer),
  6994. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6995. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6996. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6997. msm_routing_put_audio_mixer),
  6998. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6999. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7000. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7001. msm_routing_put_audio_mixer),
  7002. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7003. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7004. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7005. msm_routing_put_audio_mixer),
  7006. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7007. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7008. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7009. msm_routing_put_audio_mixer),
  7010. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7011. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7012. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7013. msm_routing_put_audio_mixer),
  7014. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7015. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7016. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7017. msm_routing_put_audio_mixer),
  7018. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7019. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7020. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7021. msm_routing_put_audio_mixer),
  7022. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7023. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7024. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7025. msm_routing_put_audio_mixer),
  7026. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7027. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7028. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7029. msm_routing_put_audio_mixer),
  7030. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7031. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7032. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7033. msm_routing_put_audio_mixer),
  7034. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7035. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7036. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7037. msm_routing_put_audio_mixer),
  7038. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7039. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7040. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7041. msm_routing_put_audio_mixer),
  7042. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7043. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7044. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7045. msm_routing_put_audio_mixer),
  7046. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7047. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7048. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7049. msm_routing_put_audio_mixer),
  7050. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7051. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7052. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7053. msm_routing_put_audio_mixer),
  7054. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7055. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7056. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7057. msm_routing_put_audio_mixer),
  7058. };
  7059. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7060. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7061. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7062. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7063. msm_routing_put_audio_mixer),
  7064. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7065. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7066. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7067. msm_routing_put_audio_mixer),
  7068. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7069. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7070. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7071. msm_routing_put_audio_mixer),
  7072. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7073. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7074. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7075. msm_routing_put_audio_mixer),
  7076. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7077. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7078. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7079. msm_routing_put_audio_mixer),
  7080. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7081. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7082. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7083. msm_routing_put_audio_mixer),
  7084. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7085. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7086. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7087. msm_routing_put_audio_mixer),
  7088. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7089. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7090. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7091. msm_routing_put_audio_mixer),
  7092. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7093. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7097. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7098. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7099. msm_routing_put_audio_mixer),
  7100. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7101. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7102. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7103. msm_routing_put_audio_mixer),
  7104. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7105. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7106. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7107. msm_routing_put_audio_mixer),
  7108. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7109. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7110. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7111. msm_routing_put_audio_mixer),
  7112. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7113. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7114. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7115. msm_routing_put_audio_mixer),
  7116. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7117. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7118. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7119. msm_routing_put_audio_mixer),
  7120. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7121. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7122. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7123. msm_routing_put_audio_mixer),
  7124. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7125. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7126. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7127. msm_routing_put_audio_mixer),
  7128. };
  7129. /* incall music delivery mixer */
  7130. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7131. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7132. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7133. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7134. msm_routing_put_audio_mixer),
  7135. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7136. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7137. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7138. msm_routing_put_audio_mixer),
  7139. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7140. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7141. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7142. msm_routing_put_audio_mixer),
  7143. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7144. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7145. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7146. msm_routing_put_audio_mixer),
  7147. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7148. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7150. msm_routing_put_audio_mixer),
  7151. };
  7152. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7153. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7166. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. };
  7170. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7171. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7172. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7173. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7174. msm_routing_put_audio_mixer),
  7175. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7176. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7177. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7178. msm_routing_put_audio_mixer),
  7179. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7180. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7181. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7182. msm_routing_put_audio_mixer),
  7183. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7184. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7185. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7186. msm_routing_put_audio_mixer),
  7187. };
  7188. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7189. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7190. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7194. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7198. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7199. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7200. msm_routing_put_audio_mixer),
  7201. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7202. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7203. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7204. msm_routing_put_audio_mixer),
  7205. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7206. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7210. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7211. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7212. msm_routing_put_audio_mixer),
  7213. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7214. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7218. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7222. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7223. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7224. msm_routing_put_audio_mixer),
  7225. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7226. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7227. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7228. msm_routing_put_audio_mixer),
  7229. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7230. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7231. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7232. msm_routing_put_audio_mixer),
  7233. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7234. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7235. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7236. msm_routing_put_audio_mixer),
  7237. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7238. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7239. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7240. msm_routing_put_audio_mixer),
  7241. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7242. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7243. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7244. msm_routing_put_audio_mixer),
  7245. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7246. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7247. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7248. msm_routing_put_audio_mixer),
  7249. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7250. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7251. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7252. msm_routing_put_audio_mixer),
  7253. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7254. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7255. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7256. msm_routing_put_audio_mixer),
  7257. };
  7258. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7259. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7260. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7264. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7265. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7266. msm_routing_put_audio_mixer),
  7267. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7268. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7272. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7273. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7274. msm_routing_put_audio_mixer),
  7275. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7280. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7288. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7292. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7293. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7294. msm_routing_put_audio_mixer),
  7295. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7296. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7297. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7298. msm_routing_put_audio_mixer),
  7299. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7300. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7301. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7302. msm_routing_put_audio_mixer),
  7303. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7304. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7305. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7306. msm_routing_put_audio_mixer),
  7307. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7308. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7309. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7310. msm_routing_put_audio_mixer),
  7311. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7312. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7316. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7317. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7318. msm_routing_put_audio_mixer),
  7319. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7320. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7321. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7322. msm_routing_put_audio_mixer),
  7323. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7324. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7325. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7326. msm_routing_put_audio_mixer),
  7327. };
  7328. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7329. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7330. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7331. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7332. msm_routing_put_audio_mixer),
  7333. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7334. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7335. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7336. msm_routing_put_audio_mixer),
  7337. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7338. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7339. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7340. msm_routing_put_audio_mixer),
  7341. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7342. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7350. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7358. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7362. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7363. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7364. msm_routing_put_audio_mixer),
  7365. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7366. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7367. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7368. msm_routing_put_audio_mixer),
  7369. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7370. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7371. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7372. msm_routing_put_audio_mixer),
  7373. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7374. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7378. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7379. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7380. msm_routing_put_audio_mixer),
  7381. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7382. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7386. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7390. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7391. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7392. msm_routing_put_audio_mixer),
  7393. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7394. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7395. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7396. msm_routing_put_audio_mixer),
  7397. };
  7398. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7399. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7400. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7404. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7405. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7406. msm_routing_put_audio_mixer),
  7407. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7408. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7409. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7410. msm_routing_put_audio_mixer),
  7411. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7412. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7413. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7414. msm_routing_put_audio_mixer),
  7415. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7416. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7420. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7424. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7425. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7426. msm_routing_put_audio_mixer),
  7427. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7428. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7429. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7430. msm_routing_put_audio_mixer),
  7431. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7432. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7433. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7434. msm_routing_put_audio_mixer),
  7435. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7436. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7437. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7438. msm_routing_put_audio_mixer),
  7439. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7440. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7441. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7442. msm_routing_put_audio_mixer),
  7443. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7444. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7445. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7446. msm_routing_put_audio_mixer),
  7447. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7448. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7449. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7450. msm_routing_put_audio_mixer),
  7451. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7452. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7456. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7460. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7461. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7462. msm_routing_put_audio_mixer),
  7463. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7464. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7465. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7466. msm_routing_put_audio_mixer),
  7467. };
  7468. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7469. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7470. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7471. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7472. msm_routing_put_audio_mixer),
  7473. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7474. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7475. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7476. msm_routing_put_audio_mixer),
  7477. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7478. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7479. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7480. msm_routing_put_audio_mixer),
  7481. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7482. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7483. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7484. msm_routing_put_audio_mixer),
  7485. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7486. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7487. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7488. msm_routing_put_audio_mixer),
  7489. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7490. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7494. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7495. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7496. msm_routing_put_audio_mixer),
  7497. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7498. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7499. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7500. msm_routing_put_audio_mixer),
  7501. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7502. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7503. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7504. msm_routing_put_audio_mixer),
  7505. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7506. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7507. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7508. msm_routing_put_audio_mixer),
  7509. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7510. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7511. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7512. msm_routing_put_audio_mixer),
  7513. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7514. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7515. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7516. msm_routing_put_audio_mixer),
  7517. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7518. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7519. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7520. msm_routing_put_audio_mixer),
  7521. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7522. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7526. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7527. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7528. msm_routing_put_audio_mixer),
  7529. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7530. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7531. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7532. msm_routing_put_audio_mixer),
  7533. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7534. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7535. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7536. msm_routing_put_audio_mixer),
  7537. };
  7538. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7539. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7540. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7541. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7542. msm_routing_put_audio_mixer),
  7543. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7544. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7545. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7546. msm_routing_put_audio_mixer),
  7547. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7548. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7549. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7550. msm_routing_put_audio_mixer),
  7551. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7552. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7553. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7554. msm_routing_put_audio_mixer),
  7555. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7556. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7557. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7558. msm_routing_put_audio_mixer),
  7559. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7560. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7561. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7562. msm_routing_put_audio_mixer),
  7563. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7564. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7565. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7566. msm_routing_put_audio_mixer),
  7567. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7568. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7569. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7570. msm_routing_put_audio_mixer),
  7571. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7572. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7573. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7574. msm_routing_put_audio_mixer),
  7575. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7576. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7577. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7578. msm_routing_put_audio_mixer),
  7579. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7580. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7581. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7582. msm_routing_put_audio_mixer),
  7583. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7584. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7585. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7586. msm_routing_put_audio_mixer),
  7587. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7588. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7589. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7590. msm_routing_put_audio_mixer),
  7591. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7592. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7593. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7594. msm_routing_put_audio_mixer),
  7595. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7596. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7597. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7598. msm_routing_put_audio_mixer),
  7599. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7600. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7601. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7602. msm_routing_put_audio_mixer),
  7603. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7604. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7605. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7606. msm_routing_put_audio_mixer),
  7607. };
  7608. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7609. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7610. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7611. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7612. msm_routing_put_audio_mixer),
  7613. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7614. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7615. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7616. msm_routing_put_audio_mixer),
  7617. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7618. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7619. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7620. msm_routing_put_audio_mixer),
  7621. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7622. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7623. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7624. msm_routing_put_audio_mixer),
  7625. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7626. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7627. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7628. msm_routing_put_audio_mixer),
  7629. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7630. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7631. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7632. msm_routing_put_audio_mixer),
  7633. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7634. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7635. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7636. msm_routing_put_audio_mixer),
  7637. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7638. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7639. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7640. msm_routing_put_audio_mixer),
  7641. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7642. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7643. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7644. msm_routing_put_audio_mixer),
  7645. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7646. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7647. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7648. msm_routing_put_audio_mixer),
  7649. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7650. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7651. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7652. msm_routing_put_audio_mixer),
  7653. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7654. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7655. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7656. msm_routing_put_audio_mixer),
  7657. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7658. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7659. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7660. msm_routing_put_audio_mixer),
  7661. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7662. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7663. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7664. msm_routing_put_audio_mixer),
  7665. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7666. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7667. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7668. msm_routing_put_audio_mixer),
  7669. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7670. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7671. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7672. msm_routing_put_audio_mixer),
  7673. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7674. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7675. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7676. msm_routing_put_audio_mixer),
  7677. };
  7678. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  7679. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7680. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7681. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7682. msm_routing_put_audio_mixer),
  7683. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7684. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7685. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7686. msm_routing_put_audio_mixer),
  7687. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7688. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7689. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7690. msm_routing_put_audio_mixer),
  7691. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7692. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7693. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7694. msm_routing_put_audio_mixer),
  7695. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7696. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7697. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7698. msm_routing_put_audio_mixer),
  7699. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7700. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7701. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7702. msm_routing_put_audio_mixer),
  7703. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7704. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7705. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7706. msm_routing_put_audio_mixer),
  7707. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7708. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7709. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7710. msm_routing_put_audio_mixer),
  7711. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7712. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7713. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7714. msm_routing_put_audio_mixer),
  7715. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7716. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7717. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7718. msm_routing_put_audio_mixer),
  7719. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7720. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7721. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7722. msm_routing_put_audio_mixer),
  7723. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7724. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7725. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7726. msm_routing_put_audio_mixer),
  7727. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7728. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7729. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7730. msm_routing_put_audio_mixer),
  7731. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7732. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7733. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7734. msm_routing_put_audio_mixer),
  7735. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7736. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7737. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7738. msm_routing_put_audio_mixer),
  7739. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7740. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7741. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7742. msm_routing_put_audio_mixer),
  7743. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7744. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7745. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7746. msm_routing_put_audio_mixer),
  7747. };
  7748. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  7749. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7750. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7751. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7752. msm_routing_put_audio_mixer),
  7753. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7754. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7755. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7756. msm_routing_put_audio_mixer),
  7757. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7758. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7759. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7760. msm_routing_put_audio_mixer),
  7761. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7762. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7763. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7764. msm_routing_put_audio_mixer),
  7765. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7766. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7767. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7768. msm_routing_put_audio_mixer),
  7769. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7770. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7771. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7772. msm_routing_put_audio_mixer),
  7773. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7774. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7775. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7776. msm_routing_put_audio_mixer),
  7777. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7778. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7779. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7780. msm_routing_put_audio_mixer),
  7781. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7782. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7783. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7784. msm_routing_put_audio_mixer),
  7785. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7786. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7787. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7788. msm_routing_put_audio_mixer),
  7789. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7790. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7791. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7792. msm_routing_put_audio_mixer),
  7793. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7794. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7795. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7796. msm_routing_put_audio_mixer),
  7797. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7798. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7799. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7800. msm_routing_put_audio_mixer),
  7801. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7802. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7803. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7804. msm_routing_put_audio_mixer),
  7805. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7806. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7807. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7808. msm_routing_put_audio_mixer),
  7809. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7810. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7811. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7812. msm_routing_put_audio_mixer),
  7813. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7814. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7815. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7816. msm_routing_put_audio_mixer),
  7817. };
  7818. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  7819. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7820. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7821. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7822. msm_routing_put_audio_mixer),
  7823. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7824. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7825. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7826. msm_routing_put_audio_mixer),
  7827. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7828. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7829. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7830. msm_routing_put_audio_mixer),
  7831. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7832. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7833. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7834. msm_routing_put_audio_mixer),
  7835. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7836. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7837. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7838. msm_routing_put_audio_mixer),
  7839. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7840. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7841. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7842. msm_routing_put_audio_mixer),
  7843. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7844. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7845. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7846. msm_routing_put_audio_mixer),
  7847. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7848. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7849. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7850. msm_routing_put_audio_mixer),
  7851. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7852. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7853. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7854. msm_routing_put_audio_mixer),
  7855. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7856. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7857. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7858. msm_routing_put_audio_mixer),
  7859. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7860. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7861. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7862. msm_routing_put_audio_mixer),
  7863. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7864. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7865. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7866. msm_routing_put_audio_mixer),
  7867. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7868. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7869. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7870. msm_routing_put_audio_mixer),
  7871. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7872. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7873. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7874. msm_routing_put_audio_mixer),
  7875. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7876. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7877. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7878. msm_routing_put_audio_mixer),
  7879. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7880. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7881. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7882. msm_routing_put_audio_mixer),
  7883. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7884. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7885. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7886. msm_routing_put_audio_mixer),
  7887. };
  7888. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  7889. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7890. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7891. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7892. msm_routing_put_audio_mixer),
  7893. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7894. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7895. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7896. msm_routing_put_audio_mixer),
  7897. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7898. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7899. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7900. msm_routing_put_audio_mixer),
  7901. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7902. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7903. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7904. msm_routing_put_audio_mixer),
  7905. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7906. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7907. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7908. msm_routing_put_audio_mixer),
  7909. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7910. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7911. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7912. msm_routing_put_audio_mixer),
  7913. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7914. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7915. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7916. msm_routing_put_audio_mixer),
  7917. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7918. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7919. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7920. msm_routing_put_audio_mixer),
  7921. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7922. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7923. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7924. msm_routing_put_audio_mixer),
  7925. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7926. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7927. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7928. msm_routing_put_audio_mixer),
  7929. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7930. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7931. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7932. msm_routing_put_audio_mixer),
  7933. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7934. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7935. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7936. msm_routing_put_audio_mixer),
  7937. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7938. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7939. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7940. msm_routing_put_audio_mixer),
  7941. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7942. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7943. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7944. msm_routing_put_audio_mixer),
  7945. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7946. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7947. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7948. msm_routing_put_audio_mixer),
  7949. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7950. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7951. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7952. msm_routing_put_audio_mixer),
  7953. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7954. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7955. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7956. msm_routing_put_audio_mixer),
  7957. };
  7958. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  7959. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7960. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7961. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7962. msm_routing_put_audio_mixer),
  7963. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7964. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7965. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7966. msm_routing_put_audio_mixer),
  7967. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7968. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7969. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7970. msm_routing_put_audio_mixer),
  7971. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7972. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7973. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7974. msm_routing_put_audio_mixer),
  7975. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7976. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7977. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7978. msm_routing_put_audio_mixer),
  7979. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7980. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7981. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7982. msm_routing_put_audio_mixer),
  7983. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7984. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7985. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7986. msm_routing_put_audio_mixer),
  7987. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7988. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7989. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7990. msm_routing_put_audio_mixer),
  7991. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7992. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7993. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7994. msm_routing_put_audio_mixer),
  7995. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7996. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7997. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7998. msm_routing_put_audio_mixer),
  7999. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8000. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8001. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8002. msm_routing_put_audio_mixer),
  8003. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8004. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8005. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8006. msm_routing_put_audio_mixer),
  8007. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8008. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8009. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8010. msm_routing_put_audio_mixer),
  8011. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8012. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8013. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8014. msm_routing_put_audio_mixer),
  8015. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8016. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8017. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8018. msm_routing_put_audio_mixer),
  8019. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8020. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8021. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8022. msm_routing_put_audio_mixer),
  8023. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8024. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8025. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8026. msm_routing_put_audio_mixer),
  8027. };
  8028. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  8029. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8030. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8031. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8032. msm_routing_put_audio_mixer),
  8033. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8034. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8035. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8036. msm_routing_put_audio_mixer),
  8037. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8038. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8039. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8040. msm_routing_put_audio_mixer),
  8041. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8042. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8043. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8044. msm_routing_put_audio_mixer),
  8045. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8046. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8047. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8048. msm_routing_put_audio_mixer),
  8049. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8050. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8051. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8052. msm_routing_put_audio_mixer),
  8053. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8054. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8055. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8056. msm_routing_put_audio_mixer),
  8057. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8058. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8059. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8060. msm_routing_put_audio_mixer),
  8061. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8062. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8063. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8064. msm_routing_put_audio_mixer),
  8065. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8066. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8067. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8068. msm_routing_put_audio_mixer),
  8069. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8070. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8071. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8072. msm_routing_put_audio_mixer),
  8073. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8074. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8075. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8076. msm_routing_put_audio_mixer),
  8077. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8078. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8079. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8080. msm_routing_put_audio_mixer),
  8081. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8082. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8083. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8084. msm_routing_put_audio_mixer),
  8085. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8086. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8087. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8088. msm_routing_put_audio_mixer),
  8089. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8090. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8091. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8092. msm_routing_put_audio_mixer),
  8093. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8094. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8095. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8096. msm_routing_put_audio_mixer),
  8097. };
  8098. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8099. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8100. MSM_BACKEND_DAI_USB_RX,
  8101. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8102. msm_routing_put_audio_mixer),
  8103. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8104. MSM_BACKEND_DAI_USB_RX,
  8105. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8106. msm_routing_put_audio_mixer),
  8107. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8108. MSM_BACKEND_DAI_USB_RX,
  8109. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8110. msm_routing_put_audio_mixer),
  8111. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8112. MSM_BACKEND_DAI_USB_RX,
  8113. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8114. msm_routing_put_audio_mixer),
  8115. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8116. MSM_BACKEND_DAI_USB_RX,
  8117. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8118. msm_routing_put_audio_mixer),
  8119. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8120. MSM_BACKEND_DAI_USB_RX,
  8121. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8122. msm_routing_put_audio_mixer),
  8123. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8124. MSM_BACKEND_DAI_USB_RX,
  8125. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8126. msm_routing_put_audio_mixer),
  8127. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8128. MSM_BACKEND_DAI_USB_RX,
  8129. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8130. msm_routing_put_audio_mixer),
  8131. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8132. MSM_BACKEND_DAI_USB_RX,
  8133. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8134. msm_routing_put_audio_mixer),
  8135. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8136. MSM_BACKEND_DAI_USB_RX,
  8137. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8138. msm_routing_put_audio_mixer),
  8139. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8140. MSM_BACKEND_DAI_USB_RX,
  8141. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8142. msm_routing_put_audio_mixer),
  8143. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8144. MSM_BACKEND_DAI_USB_RX,
  8145. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8146. msm_routing_put_audio_mixer),
  8147. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8148. MSM_BACKEND_DAI_USB_RX,
  8149. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8150. msm_routing_put_audio_mixer),
  8151. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8152. MSM_BACKEND_DAI_USB_RX,
  8153. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8154. msm_routing_put_audio_mixer),
  8155. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8156. MSM_BACKEND_DAI_USB_RX,
  8157. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8158. msm_routing_put_audio_mixer),
  8159. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8160. MSM_BACKEND_DAI_USB_RX,
  8161. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8162. msm_routing_put_audio_mixer),
  8163. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8164. MSM_BACKEND_DAI_USB_RX,
  8165. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8166. msm_routing_put_audio_mixer),
  8167. };
  8168. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  8169. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8170. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8171. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8172. msm_routing_put_audio_mixer),
  8173. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8174. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8175. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8176. msm_routing_put_audio_mixer),
  8177. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8178. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8179. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8180. msm_routing_put_audio_mixer),
  8181. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8182. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8183. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8184. msm_routing_put_audio_mixer),
  8185. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8186. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8187. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8188. msm_routing_put_audio_mixer),
  8189. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8190. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8191. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8192. msm_routing_put_audio_mixer),
  8193. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8194. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8195. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8196. msm_routing_put_audio_mixer),
  8197. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8198. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8199. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8200. msm_routing_put_audio_mixer),
  8201. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8202. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8203. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8204. msm_routing_put_audio_mixer),
  8205. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8206. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8207. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8208. msm_routing_put_audio_mixer),
  8209. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8210. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8211. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8212. msm_routing_put_audio_mixer),
  8213. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8214. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8215. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8216. msm_routing_put_audio_mixer),
  8217. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8218. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8219. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8220. msm_routing_put_audio_mixer),
  8221. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8222. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8223. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8224. msm_routing_put_audio_mixer),
  8225. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8226. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8227. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8228. msm_routing_put_audio_mixer),
  8229. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8230. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8231. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8232. msm_routing_put_audio_mixer),
  8233. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8234. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8235. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8236. msm_routing_put_audio_mixer),
  8237. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8238. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8239. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8240. msm_routing_put_audio_mixer),
  8241. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8242. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8243. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8244. msm_routing_put_audio_mixer),
  8245. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8246. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8247. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8248. msm_routing_put_audio_mixer),
  8249. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8250. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8251. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8252. msm_routing_put_audio_mixer),
  8253. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8254. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8255. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8256. msm_routing_put_audio_mixer),
  8257. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8258. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8259. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8260. msm_routing_put_audio_mixer),
  8261. };
  8262. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8263. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8264. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8265. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8266. msm_routing_put_audio_mixer),
  8267. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8268. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8269. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8270. msm_routing_put_audio_mixer),
  8271. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8272. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8273. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8274. msm_routing_put_audio_mixer),
  8275. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8276. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8277. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8278. msm_routing_put_audio_mixer),
  8279. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8280. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8281. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8282. msm_routing_put_audio_mixer),
  8283. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8284. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8285. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8286. msm_routing_put_audio_mixer),
  8287. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8288. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8289. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8290. msm_routing_put_audio_mixer),
  8291. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8292. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8293. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8294. msm_routing_put_audio_mixer),
  8295. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8296. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8297. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8298. msm_routing_put_audio_mixer),
  8299. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8300. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8301. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8302. msm_routing_put_audio_mixer),
  8303. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8304. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8305. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8306. msm_routing_put_audio_mixer),
  8307. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8308. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8309. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8310. msm_routing_put_audio_mixer),
  8311. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8312. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8313. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8314. msm_routing_put_audio_mixer),
  8315. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8316. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8317. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8318. msm_routing_put_audio_mixer),
  8319. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8320. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8321. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8322. msm_routing_put_audio_mixer),
  8323. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8324. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8325. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8326. msm_routing_put_audio_mixer),
  8327. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8328. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8329. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8330. msm_routing_put_audio_mixer),
  8331. };
  8332. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8333. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8334. MSM_BACKEND_DAI_INT_FM_RX,
  8335. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8336. msm_routing_put_audio_mixer),
  8337. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8338. MSM_BACKEND_DAI_INT_FM_RX,
  8339. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8340. msm_routing_put_audio_mixer),
  8341. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8342. MSM_BACKEND_DAI_INT_FM_RX,
  8343. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8344. msm_routing_put_audio_mixer),
  8345. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8346. MSM_BACKEND_DAI_INT_FM_RX,
  8347. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8348. msm_routing_put_audio_mixer),
  8349. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_INT_FM_RX,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_INT_FM_RX,
  8355. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8356. msm_routing_put_audio_mixer),
  8357. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_INT_FM_RX,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8362. MSM_BACKEND_DAI_INT_FM_RX,
  8363. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8364. msm_routing_put_audio_mixer),
  8365. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8366. MSM_BACKEND_DAI_INT_FM_RX,
  8367. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8368. msm_routing_put_audio_mixer),
  8369. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8370. MSM_BACKEND_DAI_INT_FM_RX,
  8371. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8372. msm_routing_put_audio_mixer),
  8373. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8374. MSM_BACKEND_DAI_INT_FM_RX,
  8375. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8376. msm_routing_put_audio_mixer),
  8377. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8378. MSM_BACKEND_DAI_INT_FM_RX,
  8379. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8380. msm_routing_put_audio_mixer),
  8381. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8382. MSM_BACKEND_DAI_INT_FM_RX,
  8383. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8384. msm_routing_put_audio_mixer),
  8385. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8386. MSM_BACKEND_DAI_INT_FM_RX,
  8387. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8388. msm_routing_put_audio_mixer),
  8389. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8390. MSM_BACKEND_DAI_INT_FM_RX,
  8391. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8392. msm_routing_put_audio_mixer),
  8393. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8394. MSM_BACKEND_DAI_INT_FM_RX,
  8395. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8396. msm_routing_put_audio_mixer),
  8397. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8398. MSM_BACKEND_DAI_INT_FM_RX,
  8399. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8400. msm_routing_put_audio_mixer),
  8401. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8402. MSM_BACKEND_DAI_INT_FM_RX,
  8403. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8404. msm_routing_put_audio_mixer),
  8405. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8406. MSM_BACKEND_DAI_INT_FM_RX,
  8407. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8408. msm_routing_put_audio_mixer),
  8409. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8410. MSM_BACKEND_DAI_INT_FM_RX,
  8411. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8412. msm_routing_put_audio_mixer),
  8413. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8414. MSM_BACKEND_DAI_INT_FM_RX,
  8415. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8416. msm_routing_put_audio_mixer),
  8417. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8418. MSM_BACKEND_DAI_INT_FM_RX,
  8419. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8420. msm_routing_put_audio_mixer),
  8421. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8422. MSM_BACKEND_DAI_INT_FM_RX,
  8423. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8424. msm_routing_put_audio_mixer),
  8425. };
  8426. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8427. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8428. MSM_BACKEND_DAI_AFE_PCM_RX,
  8429. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8430. msm_routing_put_audio_mixer),
  8431. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8432. MSM_BACKEND_DAI_AFE_PCM_RX,
  8433. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8434. msm_routing_put_audio_mixer),
  8435. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8436. MSM_BACKEND_DAI_AFE_PCM_RX,
  8437. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8438. msm_routing_put_audio_mixer),
  8439. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8440. MSM_BACKEND_DAI_AFE_PCM_RX,
  8441. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8442. msm_routing_put_audio_mixer),
  8443. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8444. MSM_BACKEND_DAI_AFE_PCM_RX,
  8445. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8446. msm_routing_put_audio_mixer),
  8447. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8448. MSM_BACKEND_DAI_AFE_PCM_RX,
  8449. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8450. msm_routing_put_audio_mixer),
  8451. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8452. MSM_BACKEND_DAI_AFE_PCM_RX,
  8453. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8454. msm_routing_put_audio_mixer),
  8455. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8456. MSM_BACKEND_DAI_AFE_PCM_RX,
  8457. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8458. msm_routing_put_audio_mixer),
  8459. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8460. MSM_BACKEND_DAI_AFE_PCM_RX,
  8461. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8462. msm_routing_put_audio_mixer),
  8463. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8464. MSM_BACKEND_DAI_AFE_PCM_RX,
  8465. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8466. msm_routing_put_audio_mixer),
  8467. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8468. MSM_BACKEND_DAI_AFE_PCM_RX,
  8469. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8470. msm_routing_put_audio_mixer),
  8471. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8472. MSM_BACKEND_DAI_AFE_PCM_RX,
  8473. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8474. msm_routing_put_audio_mixer),
  8475. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8476. MSM_BACKEND_DAI_AFE_PCM_RX,
  8477. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8478. msm_routing_put_audio_mixer),
  8479. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8480. MSM_BACKEND_DAI_AFE_PCM_RX,
  8481. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8482. msm_routing_put_audio_mixer),
  8483. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8484. MSM_BACKEND_DAI_AFE_PCM_RX,
  8485. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8486. msm_routing_put_audio_mixer),
  8487. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8488. MSM_BACKEND_DAI_AFE_PCM_RX,
  8489. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8490. msm_routing_put_audio_mixer),
  8491. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8492. MSM_BACKEND_DAI_AFE_PCM_RX,
  8493. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8494. msm_routing_put_audio_mixer),
  8495. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8496. MSM_BACKEND_DAI_AFE_PCM_RX,
  8497. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8498. msm_routing_put_audio_mixer),
  8499. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8500. MSM_BACKEND_DAI_AFE_PCM_RX,
  8501. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8502. msm_routing_put_audio_mixer),
  8503. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8504. MSM_BACKEND_DAI_AFE_PCM_RX,
  8505. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8506. msm_routing_put_audio_mixer),
  8507. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8508. MSM_BACKEND_DAI_AFE_PCM_RX,
  8509. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8510. msm_routing_put_audio_mixer),
  8511. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8512. MSM_BACKEND_DAI_AFE_PCM_RX,
  8513. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8514. msm_routing_put_audio_mixer),
  8515. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8516. MSM_BACKEND_DAI_AFE_PCM_RX,
  8517. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8518. msm_routing_put_audio_mixer),
  8519. };
  8520. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8521. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8522. MSM_BACKEND_DAI_AUXPCM_RX,
  8523. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8524. msm_routing_put_audio_mixer),
  8525. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8526. MSM_BACKEND_DAI_AUXPCM_RX,
  8527. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8528. msm_routing_put_audio_mixer),
  8529. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8530. MSM_BACKEND_DAI_AUXPCM_RX,
  8531. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8532. msm_routing_put_audio_mixer),
  8533. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8534. MSM_BACKEND_DAI_AUXPCM_RX,
  8535. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8536. msm_routing_put_audio_mixer),
  8537. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8538. MSM_BACKEND_DAI_AUXPCM_RX,
  8539. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8540. msm_routing_put_audio_mixer),
  8541. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8542. MSM_BACKEND_DAI_AUXPCM_RX,
  8543. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8544. msm_routing_put_audio_mixer),
  8545. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8546. MSM_BACKEND_DAI_AUXPCM_RX,
  8547. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8548. msm_routing_put_audio_mixer),
  8549. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8550. MSM_BACKEND_DAI_AUXPCM_RX,
  8551. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8552. msm_routing_put_audio_mixer),
  8553. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8554. MSM_BACKEND_DAI_AUXPCM_RX,
  8555. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8556. msm_routing_put_audio_mixer),
  8557. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8558. MSM_BACKEND_DAI_AUXPCM_RX,
  8559. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8560. msm_routing_put_audio_mixer),
  8561. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8562. MSM_BACKEND_DAI_AUXPCM_RX,
  8563. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8564. msm_routing_put_audio_mixer),
  8565. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8566. MSM_BACKEND_DAI_AUXPCM_RX,
  8567. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8568. msm_routing_put_audio_mixer),
  8569. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8570. MSM_BACKEND_DAI_AUXPCM_RX,
  8571. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8572. msm_routing_put_audio_mixer),
  8573. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8574. MSM_BACKEND_DAI_AUXPCM_RX,
  8575. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8576. msm_routing_put_audio_mixer),
  8577. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8578. MSM_BACKEND_DAI_AUXPCM_RX,
  8579. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8580. msm_routing_put_audio_mixer),
  8581. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8582. MSM_BACKEND_DAI_AUXPCM_RX,
  8583. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8584. msm_routing_put_audio_mixer),
  8585. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8586. MSM_BACKEND_DAI_AUXPCM_RX,
  8587. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8588. msm_routing_put_audio_mixer),
  8589. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8590. MSM_BACKEND_DAI_AUXPCM_RX,
  8591. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8592. msm_routing_put_audio_mixer),
  8593. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8594. MSM_BACKEND_DAI_AUXPCM_RX,
  8595. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8596. msm_routing_put_audio_mixer),
  8597. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8598. MSM_BACKEND_DAI_AUXPCM_RX,
  8599. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8600. msm_routing_put_audio_mixer),
  8601. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8602. MSM_BACKEND_DAI_AUXPCM_RX,
  8603. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8604. msm_routing_put_audio_mixer),
  8605. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8606. MSM_BACKEND_DAI_AUXPCM_RX,
  8607. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8608. msm_routing_put_audio_mixer),
  8609. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8610. MSM_BACKEND_DAI_AUXPCM_RX,
  8611. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8612. msm_routing_put_audio_mixer),
  8613. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8614. MSM_BACKEND_DAI_AUXPCM_RX,
  8615. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8616. msm_routing_put_audio_mixer),
  8617. };
  8618. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  8619. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8620. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8621. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8622. msm_routing_put_audio_mixer),
  8623. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8624. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8625. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8626. msm_routing_put_audio_mixer),
  8627. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8628. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8629. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8630. msm_routing_put_audio_mixer),
  8631. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8632. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8633. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8634. msm_routing_put_audio_mixer),
  8635. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8636. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8637. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8638. msm_routing_put_audio_mixer),
  8639. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8640. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8641. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8642. msm_routing_put_audio_mixer),
  8643. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8644. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8645. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8646. msm_routing_put_audio_mixer),
  8647. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8648. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8649. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8650. msm_routing_put_audio_mixer),
  8651. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8652. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8653. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8654. msm_routing_put_audio_mixer),
  8655. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8656. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8657. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8658. msm_routing_put_audio_mixer),
  8659. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8660. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8661. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8662. msm_routing_put_audio_mixer),
  8663. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8664. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8665. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8666. msm_routing_put_audio_mixer),
  8667. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8668. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8669. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8670. msm_routing_put_audio_mixer),
  8671. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8680. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8681. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8682. msm_routing_put_audio_mixer),
  8683. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8684. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8685. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8686. msm_routing_put_audio_mixer),
  8687. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8688. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8689. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8690. msm_routing_put_audio_mixer),
  8691. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8692. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8693. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8694. msm_routing_put_audio_mixer),
  8695. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8696. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8697. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8698. msm_routing_put_audio_mixer),
  8699. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8700. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8701. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8702. msm_routing_put_audio_mixer),
  8703. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8704. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8705. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8706. msm_routing_put_audio_mixer),
  8707. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8708. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8709. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8710. msm_routing_put_audio_mixer),
  8711. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8712. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8713. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8714. msm_routing_put_audio_mixer),
  8715. };
  8716. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  8717. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8718. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8719. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8720. msm_routing_put_audio_mixer),
  8721. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8722. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8723. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8724. msm_routing_put_audio_mixer),
  8725. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8726. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8727. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8728. msm_routing_put_audio_mixer),
  8729. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8730. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8731. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8732. msm_routing_put_audio_mixer),
  8733. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8734. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8735. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8736. msm_routing_put_audio_mixer),
  8737. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8738. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8739. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8740. msm_routing_put_audio_mixer),
  8741. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8742. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8743. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8744. msm_routing_put_audio_mixer),
  8745. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8746. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8747. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8748. msm_routing_put_audio_mixer),
  8749. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8750. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8751. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8752. msm_routing_put_audio_mixer),
  8753. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8754. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8755. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8756. msm_routing_put_audio_mixer),
  8757. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8758. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8759. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8760. msm_routing_put_audio_mixer),
  8761. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8762. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8763. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8764. msm_routing_put_audio_mixer),
  8765. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8766. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8767. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8768. msm_routing_put_audio_mixer),
  8769. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8770. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8771. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8772. msm_routing_put_audio_mixer),
  8773. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8774. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8775. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8776. msm_routing_put_audio_mixer),
  8777. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8778. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8779. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8780. msm_routing_put_audio_mixer),
  8781. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8782. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8783. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8784. msm_routing_put_audio_mixer),
  8785. };
  8786. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  8787. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8788. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8789. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8790. msm_routing_put_audio_mixer),
  8791. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8792. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8793. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8794. msm_routing_put_audio_mixer),
  8795. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8796. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8797. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8798. msm_routing_put_audio_mixer),
  8799. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8800. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8801. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8802. msm_routing_put_audio_mixer),
  8803. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8804. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8805. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8806. msm_routing_put_audio_mixer),
  8807. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8808. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8809. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8810. msm_routing_put_audio_mixer),
  8811. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8812. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8813. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8814. msm_routing_put_audio_mixer),
  8815. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8816. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8817. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8818. msm_routing_put_audio_mixer),
  8819. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8820. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8821. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8822. msm_routing_put_audio_mixer),
  8823. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8824. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8825. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8826. msm_routing_put_audio_mixer),
  8827. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8828. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8829. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8830. msm_routing_put_audio_mixer),
  8831. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8832. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8833. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8834. msm_routing_put_audio_mixer),
  8835. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8836. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8837. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8838. msm_routing_put_audio_mixer),
  8839. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8840. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8841. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8842. msm_routing_put_audio_mixer),
  8843. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8844. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8845. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8846. msm_routing_put_audio_mixer),
  8847. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8848. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8849. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8850. msm_routing_put_audio_mixer),
  8851. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8852. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8853. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8854. msm_routing_put_audio_mixer),
  8855. };
  8856. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  8857. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8858. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8859. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8860. msm_routing_put_audio_mixer),
  8861. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8862. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8863. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8864. msm_routing_put_audio_mixer),
  8865. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8866. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8867. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8868. msm_routing_put_audio_mixer),
  8869. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8870. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8871. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8872. msm_routing_put_audio_mixer),
  8873. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8874. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8875. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8876. msm_routing_put_audio_mixer),
  8877. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8878. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8879. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8880. msm_routing_put_audio_mixer),
  8881. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8882. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8883. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8884. msm_routing_put_audio_mixer),
  8885. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8886. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8887. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8888. msm_routing_put_audio_mixer),
  8889. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8890. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8891. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8892. msm_routing_put_audio_mixer),
  8893. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8894. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8895. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8896. msm_routing_put_audio_mixer),
  8897. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8898. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8899. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8900. msm_routing_put_audio_mixer),
  8901. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8902. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8903. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8904. msm_routing_put_audio_mixer),
  8905. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8906. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8907. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8908. msm_routing_put_audio_mixer),
  8909. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8910. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8911. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8912. msm_routing_put_audio_mixer),
  8913. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8914. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8915. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8916. msm_routing_put_audio_mixer),
  8917. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8918. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8919. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8920. msm_routing_put_audio_mixer),
  8921. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8922. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8923. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8924. msm_routing_put_audio_mixer),
  8925. };
  8926. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  8927. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8928. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8929. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8930. msm_routing_put_audio_mixer),
  8931. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8932. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8933. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8934. msm_routing_put_audio_mixer),
  8935. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8936. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8937. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8938. msm_routing_put_audio_mixer),
  8939. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8940. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8941. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8942. msm_routing_put_audio_mixer),
  8943. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8944. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8945. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8946. msm_routing_put_audio_mixer),
  8947. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8948. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8949. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8950. msm_routing_put_audio_mixer),
  8951. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8952. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8953. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8954. msm_routing_put_audio_mixer),
  8955. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8956. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8957. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8958. msm_routing_put_audio_mixer),
  8959. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8960. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8961. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8962. msm_routing_put_audio_mixer),
  8963. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8964. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8965. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8966. msm_routing_put_audio_mixer),
  8967. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8968. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8969. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8970. msm_routing_put_audio_mixer),
  8971. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8972. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8973. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8974. msm_routing_put_audio_mixer),
  8975. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8976. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8977. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8978. msm_routing_put_audio_mixer),
  8979. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8980. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8981. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8982. msm_routing_put_audio_mixer),
  8983. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8984. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8985. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8986. msm_routing_put_audio_mixer),
  8987. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8988. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8989. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8990. msm_routing_put_audio_mixer),
  8991. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8992. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8993. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8994. msm_routing_put_audio_mixer),
  8995. };
  8996. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  8997. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9002. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9003. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9004. msm_routing_put_audio_mixer),
  9005. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9006. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9007. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9008. msm_routing_put_audio_mixer),
  9009. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9010. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9011. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9012. msm_routing_put_audio_mixer),
  9013. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9014. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9015. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9016. msm_routing_put_audio_mixer),
  9017. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9018. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9019. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9020. msm_routing_put_audio_mixer),
  9021. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9022. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9023. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9024. msm_routing_put_audio_mixer),
  9025. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9026. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9027. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9028. msm_routing_put_audio_mixer),
  9029. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9030. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9031. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9032. msm_routing_put_audio_mixer),
  9033. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9034. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9035. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9036. msm_routing_put_audio_mixer),
  9037. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9038. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9039. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9040. msm_routing_put_audio_mixer),
  9041. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9042. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9043. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9044. msm_routing_put_audio_mixer),
  9045. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9046. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9047. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9048. msm_routing_put_audio_mixer),
  9049. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9050. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9051. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9052. msm_routing_put_audio_mixer),
  9053. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9054. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9055. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9056. msm_routing_put_audio_mixer),
  9057. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9058. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9059. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9060. msm_routing_put_audio_mixer),
  9061. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9062. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9063. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9064. msm_routing_put_audio_mixer),
  9065. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9066. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9067. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9068. msm_routing_put_audio_mixer),
  9069. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9070. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9071. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9072. msm_routing_put_audio_mixer),
  9073. };
  9074. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9075. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9076. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9077. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9078. msm_routing_put_audio_mixer),
  9079. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9080. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9081. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9082. msm_routing_put_audio_mixer),
  9083. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9084. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9085. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9086. msm_routing_put_audio_mixer),
  9087. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9088. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9089. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9090. msm_routing_put_audio_mixer),
  9091. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9092. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9093. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9094. msm_routing_put_audio_mixer),
  9095. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9096. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9097. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9098. msm_routing_put_audio_mixer),
  9099. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9100. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9101. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9102. msm_routing_put_audio_mixer),
  9103. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9104. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9105. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9106. msm_routing_put_audio_mixer),
  9107. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9108. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9109. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9110. msm_routing_put_audio_mixer),
  9111. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9112. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9113. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9114. msm_routing_put_audio_mixer),
  9115. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9116. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9117. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9118. msm_routing_put_audio_mixer),
  9119. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9120. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9121. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9122. msm_routing_put_audio_mixer),
  9123. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9124. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9125. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9126. msm_routing_put_audio_mixer),
  9127. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9128. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9129. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9130. msm_routing_put_audio_mixer),
  9131. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9132. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9133. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9134. msm_routing_put_audio_mixer),
  9135. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9136. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9137. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9138. msm_routing_put_audio_mixer),
  9139. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9140. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9141. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9142. msm_routing_put_audio_mixer),
  9143. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9144. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9145. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9146. msm_routing_put_audio_mixer),
  9147. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9148. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9149. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9150. msm_routing_put_audio_mixer),
  9151. };
  9152. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  9153. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9154. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9155. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9156. msm_routing_put_audio_mixer),
  9157. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9158. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9159. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9160. msm_routing_put_audio_mixer),
  9161. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9162. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9163. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9164. msm_routing_put_audio_mixer),
  9165. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9166. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9167. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9168. msm_routing_put_audio_mixer),
  9169. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9170. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9171. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9172. msm_routing_put_audio_mixer),
  9173. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9174. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9175. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9176. msm_routing_put_audio_mixer),
  9177. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9178. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9179. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9180. msm_routing_put_audio_mixer),
  9181. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9182. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9183. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9184. msm_routing_put_audio_mixer),
  9185. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9186. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9187. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9188. msm_routing_put_audio_mixer),
  9189. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9190. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9191. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9192. msm_routing_put_audio_mixer),
  9193. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9194. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9195. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9196. msm_routing_put_audio_mixer),
  9197. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9198. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9199. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9200. msm_routing_put_audio_mixer),
  9201. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9202. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9203. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9204. msm_routing_put_audio_mixer),
  9205. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9206. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9207. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9208. msm_routing_put_audio_mixer),
  9209. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9210. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9211. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9212. msm_routing_put_audio_mixer),
  9213. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9214. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9215. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9216. msm_routing_put_audio_mixer),
  9217. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9218. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9219. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9220. msm_routing_put_audio_mixer),
  9221. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9222. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9223. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9224. msm_routing_put_audio_mixer),
  9225. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9226. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9227. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9228. msm_routing_put_audio_mixer),
  9229. };
  9230. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  9231. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9232. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9233. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9234. msm_routing_put_audio_mixer),
  9235. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9236. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9237. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9238. msm_routing_put_audio_mixer),
  9239. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9240. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9241. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9242. msm_routing_put_audio_mixer),
  9243. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9244. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9245. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9246. msm_routing_put_audio_mixer),
  9247. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9248. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9249. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9250. msm_routing_put_audio_mixer),
  9251. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9252. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9253. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9254. msm_routing_put_audio_mixer),
  9255. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9256. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9257. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9258. msm_routing_put_audio_mixer),
  9259. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9260. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9261. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9262. msm_routing_put_audio_mixer),
  9263. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9264. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9265. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9266. msm_routing_put_audio_mixer),
  9267. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9268. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9269. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9270. msm_routing_put_audio_mixer),
  9271. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9272. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9273. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9274. msm_routing_put_audio_mixer),
  9275. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9276. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9277. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9278. msm_routing_put_audio_mixer),
  9279. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9280. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9281. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9282. msm_routing_put_audio_mixer),
  9283. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9284. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9285. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9286. msm_routing_put_audio_mixer),
  9287. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9288. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9289. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9290. msm_routing_put_audio_mixer),
  9291. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9292. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9293. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9294. msm_routing_put_audio_mixer),
  9295. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9296. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9297. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9298. msm_routing_put_audio_mixer),
  9299. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9300. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9301. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9302. msm_routing_put_audio_mixer),
  9303. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9304. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9305. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9306. msm_routing_put_audio_mixer),
  9307. };
  9308. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9309. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9314. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9315. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9316. msm_routing_put_audio_mixer),
  9317. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9318. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9319. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9320. msm_routing_put_audio_mixer),
  9321. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9322. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9323. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9324. msm_routing_put_audio_mixer),
  9325. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9326. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9327. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9328. msm_routing_put_audio_mixer),
  9329. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9330. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9331. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9332. msm_routing_put_audio_mixer),
  9333. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9334. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9335. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9336. msm_routing_put_audio_mixer),
  9337. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9338. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9339. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9340. msm_routing_put_audio_mixer),
  9341. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9342. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9343. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9344. msm_routing_put_audio_mixer),
  9345. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9346. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9347. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9348. msm_routing_put_audio_mixer),
  9349. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9350. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9351. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9352. msm_routing_put_audio_mixer),
  9353. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9354. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9355. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9356. msm_routing_put_audio_mixer),
  9357. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9358. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9359. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9360. msm_routing_put_audio_mixer),
  9361. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9362. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9363. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9364. msm_routing_put_audio_mixer),
  9365. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9366. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9367. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9368. msm_routing_put_audio_mixer),
  9369. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9370. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9371. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9372. msm_routing_put_audio_mixer),
  9373. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9374. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9375. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9376. msm_routing_put_audio_mixer),
  9377. };
  9378. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9379. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9384. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9385. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9386. msm_routing_put_audio_mixer),
  9387. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9388. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9389. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9390. msm_routing_put_audio_mixer),
  9391. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9392. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9393. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9394. msm_routing_put_audio_mixer),
  9395. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9396. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9397. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9398. msm_routing_put_audio_mixer),
  9399. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9400. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9401. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9402. msm_routing_put_audio_mixer),
  9403. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9404. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9405. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9406. msm_routing_put_audio_mixer),
  9407. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9408. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9409. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9410. msm_routing_put_audio_mixer),
  9411. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9412. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9413. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9414. msm_routing_put_audio_mixer),
  9415. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9416. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9417. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9418. msm_routing_put_audio_mixer),
  9419. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9420. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9421. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9422. msm_routing_put_audio_mixer),
  9423. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9424. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9425. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9426. msm_routing_put_audio_mixer),
  9427. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9428. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9429. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9430. msm_routing_put_audio_mixer),
  9431. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9432. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9433. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9434. msm_routing_put_audio_mixer),
  9435. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9436. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9437. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9438. msm_routing_put_audio_mixer),
  9439. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9440. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9441. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9442. msm_routing_put_audio_mixer),
  9443. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9444. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9445. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9446. msm_routing_put_audio_mixer),
  9447. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9448. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9449. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9450. msm_routing_put_audio_mixer),
  9451. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9452. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9453. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9454. msm_routing_put_audio_mixer),
  9455. };
  9456. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9457. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9458. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9459. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9460. msm_routing_put_audio_mixer),
  9461. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9462. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9463. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9464. msm_routing_put_audio_mixer),
  9465. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9466. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9467. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9468. msm_routing_put_audio_mixer),
  9469. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9470. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9471. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9472. msm_routing_put_audio_mixer),
  9473. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9474. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9475. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9476. msm_routing_put_audio_mixer),
  9477. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9478. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9479. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9480. msm_routing_put_audio_mixer),
  9481. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9482. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9483. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9484. msm_routing_put_audio_mixer),
  9485. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9486. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9487. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9488. msm_routing_put_audio_mixer),
  9489. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9490. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9491. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9492. msm_routing_put_audio_mixer),
  9493. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9494. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9495. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9496. msm_routing_put_audio_mixer),
  9497. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9498. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9499. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9500. msm_routing_put_audio_mixer),
  9501. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9502. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9503. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9504. msm_routing_put_audio_mixer),
  9505. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9506. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9507. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9508. msm_routing_put_audio_mixer),
  9509. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9510. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9511. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9512. msm_routing_put_audio_mixer),
  9513. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9514. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9515. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9516. msm_routing_put_audio_mixer),
  9517. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9518. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9519. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9520. msm_routing_put_audio_mixer),
  9521. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9522. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9523. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9524. msm_routing_put_audio_mixer),
  9525. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9526. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9527. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9528. msm_routing_put_audio_mixer),
  9529. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9530. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9531. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9532. msm_routing_put_audio_mixer),
  9533. };
  9534. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9535. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9536. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9537. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9538. msm_routing_put_audio_mixer),
  9539. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9540. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9541. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9542. msm_routing_put_audio_mixer),
  9543. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9544. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9545. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9546. msm_routing_put_audio_mixer),
  9547. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9548. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9549. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9550. msm_routing_put_audio_mixer),
  9551. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9552. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9553. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9554. msm_routing_put_audio_mixer),
  9555. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9556. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9557. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9558. msm_routing_put_audio_mixer),
  9559. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9560. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9561. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9562. msm_routing_put_audio_mixer),
  9563. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9564. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9565. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9566. msm_routing_put_audio_mixer),
  9567. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9568. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9569. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9570. msm_routing_put_audio_mixer),
  9571. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9572. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9573. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9574. msm_routing_put_audio_mixer),
  9575. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9576. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9577. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9578. msm_routing_put_audio_mixer),
  9579. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9580. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9581. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9582. msm_routing_put_audio_mixer),
  9583. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9584. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9585. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9586. msm_routing_put_audio_mixer),
  9587. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9588. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9589. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9590. msm_routing_put_audio_mixer),
  9591. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9592. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9593. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9594. msm_routing_put_audio_mixer),
  9595. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9596. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9597. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9598. msm_routing_put_audio_mixer),
  9599. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9600. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9601. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9602. msm_routing_put_audio_mixer),
  9603. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9604. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9605. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9606. msm_routing_put_audio_mixer),
  9607. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9608. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9609. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9610. msm_routing_put_audio_mixer),
  9611. };
  9612. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  9613. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9615. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9616. msm_routing_put_audio_mixer),
  9617. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9618. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9619. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9620. msm_routing_put_audio_mixer),
  9621. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9622. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9623. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9624. msm_routing_put_audio_mixer),
  9625. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9626. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9627. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9628. msm_routing_put_audio_mixer),
  9629. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9630. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9631. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9632. msm_routing_put_audio_mixer),
  9633. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9634. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9635. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9636. msm_routing_put_audio_mixer),
  9637. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9638. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9639. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9640. msm_routing_put_audio_mixer),
  9641. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9642. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9643. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9644. msm_routing_put_audio_mixer),
  9645. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9646. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9647. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9648. msm_routing_put_audio_mixer),
  9649. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9650. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9651. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9652. msm_routing_put_audio_mixer),
  9653. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9654. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9655. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9656. msm_routing_put_audio_mixer),
  9657. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9658. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9659. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9660. msm_routing_put_audio_mixer),
  9661. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9662. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9663. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9664. msm_routing_put_audio_mixer),
  9665. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9666. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9667. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9668. msm_routing_put_audio_mixer),
  9669. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9670. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9671. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9672. msm_routing_put_audio_mixer),
  9673. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9674. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9675. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9676. msm_routing_put_audio_mixer),
  9677. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9678. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9679. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9680. msm_routing_put_audio_mixer),
  9681. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9682. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9683. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9684. msm_routing_put_audio_mixer),
  9685. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9686. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9687. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9688. msm_routing_put_audio_mixer),
  9689. };
  9690. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  9691. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9692. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9693. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9694. msm_routing_put_audio_mixer),
  9695. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9696. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9697. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9698. msm_routing_put_audio_mixer),
  9699. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9700. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9701. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9702. msm_routing_put_audio_mixer),
  9703. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9704. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9705. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9706. msm_routing_put_audio_mixer),
  9707. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9708. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9709. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9710. msm_routing_put_audio_mixer),
  9711. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9712. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9713. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9714. msm_routing_put_audio_mixer),
  9715. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9716. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9717. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9718. msm_routing_put_audio_mixer),
  9719. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9720. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9721. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9722. msm_routing_put_audio_mixer),
  9723. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9724. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9725. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9726. msm_routing_put_audio_mixer),
  9727. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9728. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9729. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9730. msm_routing_put_audio_mixer),
  9731. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9732. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9733. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9734. msm_routing_put_audio_mixer),
  9735. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9736. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9737. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9738. msm_routing_put_audio_mixer),
  9739. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9740. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9741. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9742. msm_routing_put_audio_mixer),
  9743. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9744. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9745. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9746. msm_routing_put_audio_mixer),
  9747. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9748. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9749. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9750. msm_routing_put_audio_mixer),
  9751. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9752. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9753. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9754. msm_routing_put_audio_mixer),
  9755. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9756. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9757. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9758. msm_routing_put_audio_mixer),
  9759. };
  9760. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  9761. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9762. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9763. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9764. msm_routing_put_audio_mixer),
  9765. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9766. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9767. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9768. msm_routing_put_audio_mixer),
  9769. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9770. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9771. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9772. msm_routing_put_audio_mixer),
  9773. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9774. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9775. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9776. msm_routing_put_audio_mixer),
  9777. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9778. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9779. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9780. msm_routing_put_audio_mixer),
  9781. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9782. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9783. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9784. msm_routing_put_audio_mixer),
  9785. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9786. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9787. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9788. msm_routing_put_audio_mixer),
  9789. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9790. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9791. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9792. msm_routing_put_audio_mixer),
  9793. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9794. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9795. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9796. msm_routing_put_audio_mixer),
  9797. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9798. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9799. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9800. msm_routing_put_audio_mixer),
  9801. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9802. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9803. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9804. msm_routing_put_audio_mixer),
  9805. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9806. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9807. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9808. msm_routing_put_audio_mixer),
  9809. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9810. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9811. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9812. msm_routing_put_audio_mixer),
  9813. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9814. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9815. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9816. msm_routing_put_audio_mixer),
  9817. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9818. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9819. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9820. msm_routing_put_audio_mixer),
  9821. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9822. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9823. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9824. msm_routing_put_audio_mixer),
  9825. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9826. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9827. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9828. msm_routing_put_audio_mixer),
  9829. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9830. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9831. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9832. msm_routing_put_audio_mixer),
  9833. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9834. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9835. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9836. msm_routing_put_audio_mixer),
  9837. };
  9838. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  9839. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9841. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9842. msm_routing_put_audio_mixer),
  9843. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9844. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9845. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9846. msm_routing_put_audio_mixer),
  9847. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9848. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9849. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9850. msm_routing_put_audio_mixer),
  9851. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9852. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9853. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9854. msm_routing_put_audio_mixer),
  9855. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9856. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9857. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9858. msm_routing_put_audio_mixer),
  9859. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9860. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9861. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9862. msm_routing_put_audio_mixer),
  9863. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9864. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9865. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9866. msm_routing_put_audio_mixer),
  9867. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9868. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9869. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9870. msm_routing_put_audio_mixer),
  9871. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9872. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9873. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9874. msm_routing_put_audio_mixer),
  9875. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9876. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9877. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9878. msm_routing_put_audio_mixer),
  9879. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9880. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9881. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9882. msm_routing_put_audio_mixer),
  9883. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9884. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9885. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9886. msm_routing_put_audio_mixer),
  9887. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9888. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9889. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9890. msm_routing_put_audio_mixer),
  9891. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9892. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9893. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9894. msm_routing_put_audio_mixer),
  9895. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9896. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9897. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9898. msm_routing_put_audio_mixer),
  9899. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9900. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9901. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9902. msm_routing_put_audio_mixer),
  9903. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9904. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9905. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9906. msm_routing_put_audio_mixer),
  9907. };
  9908. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  9909. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9910. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9911. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9912. msm_routing_put_audio_mixer),
  9913. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9914. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9915. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9916. msm_routing_put_audio_mixer),
  9917. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9918. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9919. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9920. msm_routing_put_audio_mixer),
  9921. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9922. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9923. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9924. msm_routing_put_audio_mixer),
  9925. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9926. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9927. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9928. msm_routing_put_audio_mixer),
  9929. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9930. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9931. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9932. msm_routing_put_audio_mixer),
  9933. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9934. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9935. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9936. msm_routing_put_audio_mixer),
  9937. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9938. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9939. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9940. msm_routing_put_audio_mixer),
  9941. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9942. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9943. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9944. msm_routing_put_audio_mixer),
  9945. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9946. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9947. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9948. msm_routing_put_audio_mixer),
  9949. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9950. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9951. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9952. msm_routing_put_audio_mixer),
  9953. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9954. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9955. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9956. msm_routing_put_audio_mixer),
  9957. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9958. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9959. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9960. msm_routing_put_audio_mixer),
  9961. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9962. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9963. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9964. msm_routing_put_audio_mixer),
  9965. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9966. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9967. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9968. msm_routing_put_audio_mixer),
  9969. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9970. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9971. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9972. msm_routing_put_audio_mixer),
  9973. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9974. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9975. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9976. msm_routing_put_audio_mixer),
  9977. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9978. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9979. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9980. msm_routing_put_audio_mixer),
  9981. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9982. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9983. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9984. msm_routing_put_audio_mixer),
  9985. };
  9986. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  9987. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9988. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9989. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9990. msm_routing_put_audio_mixer),
  9991. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9992. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9993. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9994. msm_routing_put_audio_mixer),
  9995. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9996. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9997. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9998. msm_routing_put_audio_mixer),
  9999. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10000. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10001. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10002. msm_routing_put_audio_mixer),
  10003. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10004. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10005. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10006. msm_routing_put_audio_mixer),
  10007. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10008. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10009. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10010. msm_routing_put_audio_mixer),
  10011. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10012. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10013. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10014. msm_routing_put_audio_mixer),
  10015. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10016. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10017. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10018. msm_routing_put_audio_mixer),
  10019. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10020. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10021. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10022. msm_routing_put_audio_mixer),
  10023. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10024. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10025. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10026. msm_routing_put_audio_mixer),
  10027. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10028. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10029. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10030. msm_routing_put_audio_mixer),
  10031. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10032. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10033. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10034. msm_routing_put_audio_mixer),
  10035. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10036. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10037. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10038. msm_routing_put_audio_mixer),
  10039. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10040. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10041. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10042. msm_routing_put_audio_mixer),
  10043. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10044. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10045. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10046. msm_routing_put_audio_mixer),
  10047. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10048. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10049. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10050. msm_routing_put_audio_mixer),
  10051. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10052. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10053. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10054. msm_routing_put_audio_mixer),
  10055. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10056. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10057. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10058. msm_routing_put_audio_mixer),
  10059. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10060. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10061. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10062. msm_routing_put_audio_mixer),
  10063. };
  10064. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  10065. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10066. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10067. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10068. msm_routing_put_audio_mixer),
  10069. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10070. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10071. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10072. msm_routing_put_audio_mixer),
  10073. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10074. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10075. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10076. msm_routing_put_audio_mixer),
  10077. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10078. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10079. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10080. msm_routing_put_audio_mixer),
  10081. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10082. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10083. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10084. msm_routing_put_audio_mixer),
  10085. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10086. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10087. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10088. msm_routing_put_audio_mixer),
  10089. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10090. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10091. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10092. msm_routing_put_audio_mixer),
  10093. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10094. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10095. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10096. msm_routing_put_audio_mixer),
  10097. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10098. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10099. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10100. msm_routing_put_audio_mixer),
  10101. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10102. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10103. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10104. msm_routing_put_audio_mixer),
  10105. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10106. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10107. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10108. msm_routing_put_audio_mixer),
  10109. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10110. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10111. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10112. msm_routing_put_audio_mixer),
  10113. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10114. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10115. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10116. msm_routing_put_audio_mixer),
  10117. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10118. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10119. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10120. msm_routing_put_audio_mixer),
  10121. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10123. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10124. msm_routing_put_audio_mixer),
  10125. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10127. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10128. msm_routing_put_audio_mixer),
  10129. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10131. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10132. msm_routing_put_audio_mixer),
  10133. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10135. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10136. msm_routing_put_audio_mixer),
  10137. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10139. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10140. msm_routing_put_audio_mixer),
  10141. };
  10142. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  10143. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10144. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10145. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10146. msm_routing_put_audio_mixer),
  10147. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10148. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10149. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10150. msm_routing_put_audio_mixer),
  10151. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10152. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10153. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10154. msm_routing_put_audio_mixer),
  10155. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10156. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10157. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10158. msm_routing_put_audio_mixer),
  10159. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10160. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10161. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10162. msm_routing_put_audio_mixer),
  10163. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10164. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10165. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10166. msm_routing_put_audio_mixer),
  10167. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10168. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10169. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10170. msm_routing_put_audio_mixer),
  10171. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10172. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10173. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10174. msm_routing_put_audio_mixer),
  10175. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10176. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10177. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10178. msm_routing_put_audio_mixer),
  10179. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10180. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10181. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10182. msm_routing_put_audio_mixer),
  10183. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10184. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10185. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10186. msm_routing_put_audio_mixer),
  10187. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10188. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10189. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10190. msm_routing_put_audio_mixer),
  10191. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10192. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10193. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10194. msm_routing_put_audio_mixer),
  10195. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10196. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10197. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10198. msm_routing_put_audio_mixer),
  10199. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10200. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10201. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10202. msm_routing_put_audio_mixer),
  10203. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10205. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10206. msm_routing_put_audio_mixer),
  10207. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10208. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10209. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10210. msm_routing_put_audio_mixer),
  10211. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10212. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10213. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10214. msm_routing_put_audio_mixer),
  10215. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10216. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10217. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10218. msm_routing_put_audio_mixer),
  10219. };
  10220. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  10221. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10222. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10223. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10224. msm_routing_put_audio_mixer),
  10225. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10226. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10227. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10228. msm_routing_put_audio_mixer),
  10229. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10230. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10231. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10232. msm_routing_put_audio_mixer),
  10233. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10234. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10235. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10236. msm_routing_put_audio_mixer),
  10237. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10238. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10239. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10240. msm_routing_put_audio_mixer),
  10241. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10242. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10243. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10244. msm_routing_put_audio_mixer),
  10245. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10246. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10247. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10248. msm_routing_put_audio_mixer),
  10249. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10250. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10251. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10252. msm_routing_put_audio_mixer),
  10253. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10254. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10255. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10256. msm_routing_put_audio_mixer),
  10257. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10258. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10259. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10260. msm_routing_put_audio_mixer),
  10261. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10262. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10263. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10264. msm_routing_put_audio_mixer),
  10265. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10267. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10268. msm_routing_put_audio_mixer),
  10269. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10271. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10272. msm_routing_put_audio_mixer),
  10273. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10275. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10276. msm_routing_put_audio_mixer),
  10277. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10278. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10279. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10280. msm_routing_put_audio_mixer),
  10281. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10282. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10283. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10284. msm_routing_put_audio_mixer),
  10285. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10286. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10287. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10288. msm_routing_put_audio_mixer),
  10289. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10290. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10291. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10292. msm_routing_put_audio_mixer),
  10293. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10294. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10295. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10296. msm_routing_put_audio_mixer),
  10297. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10298. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10299. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10300. msm_routing_put_audio_mixer),
  10301. };
  10302. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  10303. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10304. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10305. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10306. msm_routing_put_audio_mixer),
  10307. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10308. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10309. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10310. msm_routing_put_audio_mixer),
  10311. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10312. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10313. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10314. msm_routing_put_audio_mixer),
  10315. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10316. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10317. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10318. msm_routing_put_audio_mixer),
  10319. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10320. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10321. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10322. msm_routing_put_audio_mixer),
  10323. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10324. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10325. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10326. msm_routing_put_audio_mixer),
  10327. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10328. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10329. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10330. msm_routing_put_audio_mixer),
  10331. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10332. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10333. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10334. msm_routing_put_audio_mixer),
  10335. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10336. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10337. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10338. msm_routing_put_audio_mixer),
  10339. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10340. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10341. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10342. msm_routing_put_audio_mixer),
  10343. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10345. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10346. msm_routing_put_audio_mixer),
  10347. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10349. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10350. msm_routing_put_audio_mixer),
  10351. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10357. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10361. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10362. msm_routing_put_audio_mixer),
  10363. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10365. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10366. msm_routing_put_audio_mixer),
  10367. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10368. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10369. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10370. msm_routing_put_audio_mixer),
  10371. };
  10372. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  10373. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10374. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10375. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10376. msm_routing_put_audio_mixer),
  10377. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10378. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10379. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10380. msm_routing_put_audio_mixer),
  10381. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10382. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10383. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10384. msm_routing_put_audio_mixer),
  10385. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10386. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10387. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10388. msm_routing_put_audio_mixer),
  10389. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10390. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10391. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10392. msm_routing_put_audio_mixer),
  10393. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10394. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10395. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10396. msm_routing_put_audio_mixer),
  10397. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10398. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10399. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10400. msm_routing_put_audio_mixer),
  10401. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10402. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10403. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10404. msm_routing_put_audio_mixer),
  10405. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10406. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10407. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10408. msm_routing_put_audio_mixer),
  10409. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10410. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10411. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10412. msm_routing_put_audio_mixer),
  10413. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10414. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10415. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10416. msm_routing_put_audio_mixer),
  10417. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10418. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10419. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10420. msm_routing_put_audio_mixer),
  10421. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10423. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10424. msm_routing_put_audio_mixer),
  10425. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10427. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10428. msm_routing_put_audio_mixer),
  10429. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10430. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10431. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10432. msm_routing_put_audio_mixer),
  10433. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10435. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10436. msm_routing_put_audio_mixer),
  10437. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10438. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10439. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10440. msm_routing_put_audio_mixer),
  10441. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10443. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10444. msm_routing_put_audio_mixer),
  10445. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10446. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10447. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10448. msm_routing_put_audio_mixer),
  10449. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10451. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10452. msm_routing_put_audio_mixer),
  10453. };
  10454. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  10455. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10456. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10457. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10458. msm_routing_put_audio_mixer),
  10459. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10460. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10461. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10462. msm_routing_put_audio_mixer),
  10463. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10464. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10465. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10466. msm_routing_put_audio_mixer),
  10467. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10468. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10469. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10470. msm_routing_put_audio_mixer),
  10471. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10472. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10473. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10474. msm_routing_put_audio_mixer),
  10475. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10476. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10477. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10478. msm_routing_put_audio_mixer),
  10479. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10480. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10481. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10482. msm_routing_put_audio_mixer),
  10483. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10484. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10485. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10486. msm_routing_put_audio_mixer),
  10487. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10488. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10489. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10490. msm_routing_put_audio_mixer),
  10491. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10492. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10493. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10494. msm_routing_put_audio_mixer),
  10495. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10496. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10497. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10498. msm_routing_put_audio_mixer),
  10499. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10501. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10502. msm_routing_put_audio_mixer),
  10503. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10505. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10506. msm_routing_put_audio_mixer),
  10507. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10509. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10510. msm_routing_put_audio_mixer),
  10511. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10512. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10513. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10514. msm_routing_put_audio_mixer),
  10515. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10517. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10518. msm_routing_put_audio_mixer),
  10519. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10520. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10521. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10522. msm_routing_put_audio_mixer),
  10523. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10524. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10525. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10526. msm_routing_put_audio_mixer),
  10527. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10529. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10530. msm_routing_put_audio_mixer),
  10531. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10532. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10533. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10534. msm_routing_put_audio_mixer),
  10535. };
  10536. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  10537. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10538. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10539. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10540. msm_routing_put_audio_mixer),
  10541. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10542. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10543. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10544. msm_routing_put_audio_mixer),
  10545. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10546. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10547. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10548. msm_routing_put_audio_mixer),
  10549. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10550. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10551. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10552. msm_routing_put_audio_mixer),
  10553. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10554. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10555. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10556. msm_routing_put_audio_mixer),
  10557. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10558. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10559. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10560. msm_routing_put_audio_mixer),
  10561. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10562. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10563. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10564. msm_routing_put_audio_mixer),
  10565. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10566. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10567. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10568. msm_routing_put_audio_mixer),
  10569. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10570. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10571. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10572. msm_routing_put_audio_mixer),
  10573. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10575. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10576. msm_routing_put_audio_mixer),
  10577. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10579. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10580. msm_routing_put_audio_mixer),
  10581. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10583. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10584. msm_routing_put_audio_mixer),
  10585. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10587. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10588. msm_routing_put_audio_mixer),
  10589. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10591. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10592. msm_routing_put_audio_mixer),
  10593. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10595. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10596. msm_routing_put_audio_mixer),
  10597. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10599. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10600. msm_routing_put_audio_mixer),
  10601. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10603. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10604. msm_routing_put_audio_mixer),
  10605. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10607. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10608. msm_routing_put_audio_mixer),
  10609. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10611. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10612. msm_routing_put_audio_mixer),
  10613. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10614. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10615. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10616. msm_routing_put_audio_mixer),
  10617. };
  10618. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  10619. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10620. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10621. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10622. msm_routing_put_audio_mixer),
  10623. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10624. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10625. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10626. msm_routing_put_audio_mixer),
  10627. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10628. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10629. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10630. msm_routing_put_audio_mixer),
  10631. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10632. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10633. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10634. msm_routing_put_audio_mixer),
  10635. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10636. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10637. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10638. msm_routing_put_audio_mixer),
  10639. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10640. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10641. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10642. msm_routing_put_audio_mixer),
  10643. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10644. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10645. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10646. msm_routing_put_audio_mixer),
  10647. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10648. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10649. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10650. msm_routing_put_audio_mixer),
  10651. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10652. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10653. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10654. msm_routing_put_audio_mixer),
  10655. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10656. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10657. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10658. msm_routing_put_audio_mixer),
  10659. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10660. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10661. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10662. msm_routing_put_audio_mixer),
  10663. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10664. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10665. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10666. msm_routing_put_audio_mixer),
  10667. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10668. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10669. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10670. msm_routing_put_audio_mixer),
  10671. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10672. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10673. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10674. msm_routing_put_audio_mixer),
  10675. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10676. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10677. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10678. msm_routing_put_audio_mixer),
  10679. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10680. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10681. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10682. msm_routing_put_audio_mixer),
  10683. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10685. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10686. msm_routing_put_audio_mixer),
  10687. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10689. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10690. msm_routing_put_audio_mixer),
  10691. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10693. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10694. msm_routing_put_audio_mixer),
  10695. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10697. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10698. msm_routing_put_audio_mixer),
  10699. };
  10700. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  10701. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10702. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10703. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10704. msm_routing_put_audio_mixer),
  10705. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10706. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10707. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10708. msm_routing_put_audio_mixer),
  10709. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10710. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10711. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10712. msm_routing_put_audio_mixer),
  10713. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10714. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10715. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10716. msm_routing_put_audio_mixer),
  10717. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10718. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10719. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10720. msm_routing_put_audio_mixer),
  10721. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10722. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10723. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10724. msm_routing_put_audio_mixer),
  10725. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10726. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10727. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10728. msm_routing_put_audio_mixer),
  10729. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10730. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10731. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10732. msm_routing_put_audio_mixer),
  10733. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10734. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10735. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10736. msm_routing_put_audio_mixer),
  10737. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10738. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10739. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10740. msm_routing_put_audio_mixer),
  10741. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10742. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10743. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10744. msm_routing_put_audio_mixer),
  10745. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10746. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10747. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10748. msm_routing_put_audio_mixer),
  10749. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10750. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10751. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10752. msm_routing_put_audio_mixer),
  10753. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10754. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10755. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10756. msm_routing_put_audio_mixer),
  10757. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10758. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10759. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10760. msm_routing_put_audio_mixer),
  10761. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10762. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10763. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10764. msm_routing_put_audio_mixer),
  10765. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10766. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10767. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10768. msm_routing_put_audio_mixer),
  10769. };
  10770. static const struct snd_kcontrol_new quin_tdm_tx_1_mixer_controls[] = {
  10771. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10772. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10773. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10774. msm_routing_put_audio_mixer),
  10775. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10776. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10777. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10778. msm_routing_put_audio_mixer),
  10779. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10780. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10781. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10782. msm_routing_put_audio_mixer),
  10783. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10784. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10786. msm_routing_put_audio_mixer),
  10787. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10788. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10789. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10790. msm_routing_put_audio_mixer),
  10791. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10792. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10793. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10794. msm_routing_put_audio_mixer),
  10795. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10796. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10797. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10798. msm_routing_put_audio_mixer),
  10799. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10800. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10801. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10802. msm_routing_put_audio_mixer),
  10803. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10804. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10805. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10806. msm_routing_put_audio_mixer),
  10807. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10808. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10809. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10810. msm_routing_put_audio_mixer),
  10811. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10812. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10813. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10814. msm_routing_put_audio_mixer),
  10815. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10816. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10817. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10818. msm_routing_put_audio_mixer),
  10819. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10821. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10822. msm_routing_put_audio_mixer),
  10823. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10825. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10826. msm_routing_put_audio_mixer),
  10827. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10829. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10830. msm_routing_put_audio_mixer),
  10831. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10832. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10833. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10834. msm_routing_put_audio_mixer),
  10835. };
  10836. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  10837. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10838. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10839. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10840. msm_routing_put_audio_mixer),
  10841. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10842. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10843. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10844. msm_routing_put_audio_mixer),
  10845. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10846. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10847. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10848. msm_routing_put_audio_mixer),
  10849. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10850. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10851. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10852. msm_routing_put_audio_mixer),
  10853. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10854. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10855. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10856. msm_routing_put_audio_mixer),
  10857. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10858. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10859. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10860. msm_routing_put_audio_mixer),
  10861. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10862. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10863. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10864. msm_routing_put_audio_mixer),
  10865. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10866. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10867. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10868. msm_routing_put_audio_mixer),
  10869. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10870. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10871. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10872. msm_routing_put_audio_mixer),
  10873. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10874. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10875. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10876. msm_routing_put_audio_mixer),
  10877. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10878. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10879. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10880. msm_routing_put_audio_mixer),
  10881. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10882. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10883. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10884. msm_routing_put_audio_mixer),
  10885. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10886. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10887. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10888. msm_routing_put_audio_mixer),
  10889. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10890. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10891. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10892. msm_routing_put_audio_mixer),
  10893. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10894. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10895. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10896. msm_routing_put_audio_mixer),
  10897. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10898. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10899. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10900. msm_routing_put_audio_mixer),
  10901. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10902. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10903. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10904. msm_routing_put_audio_mixer),
  10905. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10906. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10907. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10908. msm_routing_put_audio_mixer),
  10909. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10910. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10911. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10912. msm_routing_put_audio_mixer),
  10913. };
  10914. static const struct snd_kcontrol_new quin_tdm_tx_2_mixer_controls[] = {
  10915. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10916. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10917. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10918. msm_routing_put_audio_mixer),
  10919. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10920. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10921. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10922. msm_routing_put_audio_mixer),
  10923. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10924. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10925. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10926. msm_routing_put_audio_mixer),
  10927. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10928. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10929. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10930. msm_routing_put_audio_mixer),
  10931. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10932. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10933. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10934. msm_routing_put_audio_mixer),
  10935. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10936. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10937. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10938. msm_routing_put_audio_mixer),
  10939. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10940. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10941. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10942. msm_routing_put_audio_mixer),
  10943. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10944. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10945. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10946. msm_routing_put_audio_mixer),
  10947. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10948. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10949. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10950. msm_routing_put_audio_mixer),
  10951. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10952. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10953. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10954. msm_routing_put_audio_mixer),
  10955. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10956. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10957. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10958. msm_routing_put_audio_mixer),
  10959. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10960. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10961. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10962. msm_routing_put_audio_mixer),
  10963. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10964. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10965. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10966. msm_routing_put_audio_mixer),
  10967. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10968. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10969. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10970. msm_routing_put_audio_mixer),
  10971. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10972. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10973. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10974. msm_routing_put_audio_mixer),
  10975. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10976. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10977. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10978. msm_routing_put_audio_mixer),
  10979. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10980. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10981. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10982. msm_routing_put_audio_mixer),
  10983. };
  10984. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  10985. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10986. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10987. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10988. msm_routing_put_audio_mixer),
  10989. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10990. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10991. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10992. msm_routing_put_audio_mixer),
  10993. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10994. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10995. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10996. msm_routing_put_audio_mixer),
  10997. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10998. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10999. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11000. msm_routing_put_audio_mixer),
  11001. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11002. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11003. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11004. msm_routing_put_audio_mixer),
  11005. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11006. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11007. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11008. msm_routing_put_audio_mixer),
  11009. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11010. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11011. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11012. msm_routing_put_audio_mixer),
  11013. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11014. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11015. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11016. msm_routing_put_audio_mixer),
  11017. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11018. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11019. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11020. msm_routing_put_audio_mixer),
  11021. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11022. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11023. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11024. msm_routing_put_audio_mixer),
  11025. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11026. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11027. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11028. msm_routing_put_audio_mixer),
  11029. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11030. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11031. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11032. msm_routing_put_audio_mixer),
  11033. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11034. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11035. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11036. msm_routing_put_audio_mixer),
  11037. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11038. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11039. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11040. msm_routing_put_audio_mixer),
  11041. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11042. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11043. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11044. msm_routing_put_audio_mixer),
  11045. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11046. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11047. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11048. msm_routing_put_audio_mixer),
  11049. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11050. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11051. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11052. msm_routing_put_audio_mixer),
  11053. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11054. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11055. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11056. msm_routing_put_audio_mixer),
  11057. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11058. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11059. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11060. msm_routing_put_audio_mixer),
  11061. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11062. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11063. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11064. msm_routing_put_audio_mixer),
  11065. };
  11066. static const struct snd_kcontrol_new quin_tdm_tx_3_mixer_controls[] = {
  11067. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11068. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11069. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11070. msm_routing_put_audio_mixer),
  11071. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11072. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11073. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11074. msm_routing_put_audio_mixer),
  11075. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11076. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11077. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11078. msm_routing_put_audio_mixer),
  11079. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11080. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11081. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11082. msm_routing_put_audio_mixer),
  11083. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11085. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11086. msm_routing_put_audio_mixer),
  11087. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11088. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11089. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11090. msm_routing_put_audio_mixer),
  11091. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11092. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11093. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11094. msm_routing_put_audio_mixer),
  11095. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11096. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11097. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11098. msm_routing_put_audio_mixer),
  11099. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11100. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11101. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11102. msm_routing_put_audio_mixer),
  11103. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11104. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11105. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11106. msm_routing_put_audio_mixer),
  11107. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11108. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11109. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11110. msm_routing_put_audio_mixer),
  11111. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11112. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11113. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11114. msm_routing_put_audio_mixer),
  11115. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11116. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11117. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11118. msm_routing_put_audio_mixer),
  11119. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11120. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11121. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11122. msm_routing_put_audio_mixer),
  11123. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11124. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11125. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11126. msm_routing_put_audio_mixer),
  11127. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11128. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11129. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11130. msm_routing_put_audio_mixer),
  11131. };
  11132. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  11133. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11134. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11135. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11136. msm_routing_put_audio_mixer),
  11137. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11138. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11139. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11140. msm_routing_put_audio_mixer),
  11141. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11142. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11143. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11144. msm_routing_put_audio_mixer),
  11145. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11146. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11147. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11148. msm_routing_put_audio_mixer),
  11149. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11150. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11151. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11152. msm_routing_put_audio_mixer),
  11153. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11154. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11155. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11156. msm_routing_put_audio_mixer),
  11157. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11158. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11159. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11160. msm_routing_put_audio_mixer),
  11161. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11162. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11163. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11164. msm_routing_put_audio_mixer),
  11165. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11166. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11167. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11168. msm_routing_put_audio_mixer),
  11169. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11170. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11171. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11172. msm_routing_put_audio_mixer),
  11173. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11174. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11175. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11176. msm_routing_put_audio_mixer),
  11177. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11178. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11179. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11180. msm_routing_put_audio_mixer),
  11181. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11182. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11183. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11184. msm_routing_put_audio_mixer),
  11185. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11186. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11187. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11188. msm_routing_put_audio_mixer),
  11189. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11190. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11191. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11192. msm_routing_put_audio_mixer),
  11193. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11194. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11195. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11196. msm_routing_put_audio_mixer),
  11197. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11198. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11199. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11200. msm_routing_put_audio_mixer),
  11201. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11202. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11203. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11204. msm_routing_put_audio_mixer),
  11205. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11206. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11207. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11208. msm_routing_put_audio_mixer),
  11209. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11210. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11211. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11212. msm_routing_put_audio_mixer),
  11213. };
  11214. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  11215. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11216. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11217. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11218. msm_routing_put_audio_mixer),
  11219. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11220. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11221. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11222. msm_routing_put_audio_mixer),
  11223. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11224. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11225. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11226. msm_routing_put_audio_mixer),
  11227. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11228. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11229. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11230. msm_routing_put_audio_mixer),
  11231. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11232. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11233. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11234. msm_routing_put_audio_mixer),
  11235. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11236. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11237. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11238. msm_routing_put_audio_mixer),
  11239. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11240. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11241. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11242. msm_routing_put_audio_mixer),
  11243. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11244. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11245. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11246. msm_routing_put_audio_mixer),
  11247. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11248. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11249. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11250. msm_routing_put_audio_mixer),
  11251. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11252. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11253. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11254. msm_routing_put_audio_mixer),
  11255. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11256. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11257. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11258. msm_routing_put_audio_mixer),
  11259. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11260. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11261. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11262. msm_routing_put_audio_mixer),
  11263. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11264. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11265. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11266. msm_routing_put_audio_mixer),
  11267. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11268. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11269. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11270. msm_routing_put_audio_mixer),
  11271. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11272. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11273. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11274. msm_routing_put_audio_mixer),
  11275. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11276. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11277. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11278. msm_routing_put_audio_mixer),
  11279. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11280. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11281. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11282. msm_routing_put_audio_mixer),
  11283. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11284. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11285. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11286. msm_routing_put_audio_mixer),
  11287. };
  11288. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  11289. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11290. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11291. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11292. msm_routing_put_audio_mixer),
  11293. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11294. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11295. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11296. msm_routing_put_audio_mixer),
  11297. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11298. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11299. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11300. msm_routing_put_audio_mixer),
  11301. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11302. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11303. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11304. msm_routing_put_audio_mixer),
  11305. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11306. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11307. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11308. msm_routing_put_audio_mixer),
  11309. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11310. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11311. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11312. msm_routing_put_audio_mixer),
  11313. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11314. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11315. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11316. msm_routing_put_audio_mixer),
  11317. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11318. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11319. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11320. msm_routing_put_audio_mixer),
  11321. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11322. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11323. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11324. msm_routing_put_audio_mixer),
  11325. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11326. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11327. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11328. msm_routing_put_audio_mixer),
  11329. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11330. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11331. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11332. msm_routing_put_audio_mixer),
  11333. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11334. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11335. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11336. msm_routing_put_audio_mixer),
  11337. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11338. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11339. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11340. msm_routing_put_audio_mixer),
  11341. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11342. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11343. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11344. msm_routing_put_audio_mixer),
  11345. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11346. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11347. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11348. msm_routing_put_audio_mixer),
  11349. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11350. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11351. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11352. msm_routing_put_audio_mixer),
  11353. };
  11354. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11355. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11356. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11357. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11358. msm_routing_put_audio_mixer),
  11359. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11360. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11361. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11362. msm_routing_put_audio_mixer),
  11363. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11364. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11365. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11366. msm_routing_put_audio_mixer),
  11367. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11368. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11369. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11370. msm_routing_put_audio_mixer),
  11371. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11372. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11373. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11374. msm_routing_put_audio_mixer),
  11375. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11376. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11377. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11378. msm_routing_put_audio_mixer),
  11379. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11380. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11381. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11382. msm_routing_put_audio_mixer),
  11383. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11384. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11385. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11386. msm_routing_put_audio_mixer),
  11387. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11388. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11389. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11390. msm_routing_put_audio_mixer),
  11391. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11392. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11393. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11394. msm_routing_put_audio_mixer),
  11395. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11396. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11397. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11398. msm_routing_put_audio_mixer),
  11399. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11400. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11401. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11402. msm_routing_put_audio_mixer),
  11403. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11404. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11405. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11406. msm_routing_put_audio_mixer),
  11407. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11408. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11409. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11410. msm_routing_put_audio_mixer),
  11411. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11412. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11413. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11414. msm_routing_put_audio_mixer),
  11415. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11416. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11417. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11418. msm_routing_put_audio_mixer),
  11419. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11420. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11421. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11422. msm_routing_put_audio_mixer),
  11423. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11424. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11425. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11426. msm_routing_put_audio_mixer),
  11427. };
  11428. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  11429. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11430. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11431. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11432. msm_routing_put_audio_mixer),
  11433. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11434. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11435. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11436. msm_routing_put_audio_mixer),
  11437. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11438. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11439. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11440. msm_routing_put_audio_mixer),
  11441. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11442. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11443. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11444. msm_routing_put_audio_mixer),
  11445. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11446. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11447. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11448. msm_routing_put_audio_mixer),
  11449. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11450. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11451. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11452. msm_routing_put_audio_mixer),
  11453. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11454. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11455. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11456. msm_routing_put_audio_mixer),
  11457. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11458. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11459. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11460. msm_routing_put_audio_mixer),
  11461. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11462. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11463. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11464. msm_routing_put_audio_mixer),
  11465. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11466. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11467. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11468. msm_routing_put_audio_mixer),
  11469. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11470. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11471. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11472. msm_routing_put_audio_mixer),
  11473. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11474. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11475. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11476. msm_routing_put_audio_mixer),
  11477. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11478. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11479. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11480. msm_routing_put_audio_mixer),
  11481. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11482. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11483. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11484. msm_routing_put_audio_mixer),
  11485. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11486. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11487. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11488. msm_routing_put_audio_mixer),
  11489. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11490. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11491. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11492. msm_routing_put_audio_mixer),
  11493. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11494. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11495. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11496. msm_routing_put_audio_mixer),
  11497. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11498. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11499. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11500. msm_routing_put_audio_mixer),
  11501. };
  11502. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  11503. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11505. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11506. msm_routing_put_audio_mixer),
  11507. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11508. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11509. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11510. msm_routing_put_audio_mixer),
  11511. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11512. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11513. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11514. msm_routing_put_audio_mixer),
  11515. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11516. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11517. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11518. msm_routing_put_audio_mixer),
  11519. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11520. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11522. msm_routing_put_audio_mixer),
  11523. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11524. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11525. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11526. msm_routing_put_audio_mixer),
  11527. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11528. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11529. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11530. msm_routing_put_audio_mixer),
  11531. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11532. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11533. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11534. msm_routing_put_audio_mixer),
  11535. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11536. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11537. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11538. msm_routing_put_audio_mixer),
  11539. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11540. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11541. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11542. msm_routing_put_audio_mixer),
  11543. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11544. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11545. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11546. msm_routing_put_audio_mixer),
  11547. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11548. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11549. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11550. msm_routing_put_audio_mixer),
  11551. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11552. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11553. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11554. msm_routing_put_audio_mixer),
  11555. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11556. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11557. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11558. msm_routing_put_audio_mixer),
  11559. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11560. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11561. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11562. msm_routing_put_audio_mixer),
  11563. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11564. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11565. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11566. msm_routing_put_audio_mixer),
  11567. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11568. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11569. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11570. msm_routing_put_audio_mixer),
  11571. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11572. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11573. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11574. msm_routing_put_audio_mixer),
  11575. };
  11576. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  11577. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  11578. MSM_BACKEND_DAI_PRI_I2S_TX,
  11579. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11580. msm_routing_put_audio_mixer),
  11581. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11582. MSM_BACKEND_DAI_MI2S_TX,
  11583. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11584. msm_routing_put_audio_mixer),
  11585. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11586. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11587. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11588. msm_routing_put_audio_mixer),
  11589. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11590. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11591. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11592. msm_routing_put_audio_mixer),
  11593. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11594. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11595. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11596. msm_routing_put_audio_mixer),
  11597. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11598. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11599. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11600. msm_routing_put_audio_mixer),
  11601. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11602. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11603. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11604. msm_routing_put_audio_mixer),
  11605. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11606. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11607. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11608. msm_routing_put_audio_mixer),
  11609. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11610. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11611. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11612. msm_routing_put_audio_mixer),
  11613. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11614. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11615. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11616. msm_routing_put_audio_mixer),
  11617. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11618. MSM_BACKEND_DAI_AUXPCM_TX,
  11619. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11620. msm_routing_put_audio_mixer),
  11621. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11622. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11623. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11624. msm_routing_put_audio_mixer),
  11625. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11626. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11627. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11628. msm_routing_put_audio_mixer),
  11629. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11630. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11631. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11632. msm_routing_put_audio_mixer),
  11633. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11634. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11635. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11636. msm_routing_put_audio_mixer),
  11637. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11638. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11639. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11640. msm_routing_put_audio_mixer),
  11641. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11642. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11643. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11644. msm_routing_put_audio_mixer),
  11645. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11646. MSM_BACKEND_DAI_INT_FM_TX,
  11647. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11648. msm_routing_put_audio_mixer),
  11649. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11650. MSM_BACKEND_DAI_AFE_PCM_TX,
  11651. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11652. msm_routing_put_audio_mixer),
  11653. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11654. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11655. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11656. msm_routing_put_audio_mixer),
  11657. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11659. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11660. msm_routing_put_audio_mixer),
  11661. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  11662. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11663. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11664. msm_routing_put_audio_mixer),
  11665. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11667. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11668. msm_routing_put_audio_mixer),
  11669. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11670. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11671. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11672. msm_routing_put_audio_mixer),
  11673. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11674. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11675. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11676. msm_routing_put_audio_mixer),
  11677. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11678. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11679. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11680. msm_routing_put_audio_mixer),
  11681. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11682. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11683. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11684. msm_routing_put_audio_mixer),
  11685. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11686. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11687. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11688. msm_routing_put_audio_mixer),
  11689. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11690. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11691. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11692. msm_routing_put_audio_mixer),
  11693. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11694. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11695. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11696. msm_routing_put_audio_mixer),
  11697. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11698. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11699. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11700. msm_routing_put_audio_mixer),
  11701. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11702. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11703. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11704. msm_routing_put_audio_mixer),
  11705. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11706. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11707. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11708. msm_routing_put_audio_mixer),
  11709. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11710. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11711. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11712. msm_routing_put_audio_mixer),
  11713. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11714. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11715. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11716. msm_routing_put_audio_mixer),
  11717. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11718. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11719. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11720. msm_routing_put_audio_mixer),
  11721. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11722. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11723. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11724. msm_routing_put_audio_mixer),
  11725. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11726. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11727. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11728. msm_routing_put_audio_mixer),
  11729. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11730. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11731. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11732. msm_routing_put_audio_mixer),
  11733. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11734. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11735. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11736. msm_routing_put_audio_mixer),
  11737. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11738. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11739. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11740. msm_routing_put_audio_mixer),
  11741. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11742. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11743. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11744. msm_routing_put_audio_mixer),
  11745. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11746. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11747. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11748. msm_routing_put_audio_mixer),
  11749. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11750. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11751. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11752. msm_routing_put_audio_mixer),
  11753. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11754. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11755. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11756. msm_routing_put_audio_mixer),
  11757. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11758. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11759. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11760. msm_routing_put_audio_mixer),
  11761. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11762. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11763. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11764. msm_routing_put_audio_mixer),
  11765. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11766. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11767. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11768. msm_routing_put_audio_mixer),
  11769. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11770. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11771. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11772. msm_routing_put_audio_mixer),
  11773. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11774. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11775. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11776. msm_routing_put_audio_mixer),
  11777. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11778. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11779. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11780. msm_routing_put_audio_mixer),
  11781. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11782. MSM_BACKEND_DAI_USB_TX,
  11783. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11784. msm_routing_put_audio_mixer),
  11785. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11786. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11787. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11788. msm_routing_put_audio_mixer),
  11789. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11790. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11791. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11792. msm_routing_put_audio_mixer),
  11793. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11794. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11795. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11796. msm_routing_put_audio_mixer),
  11797. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11798. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11799. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11800. msm_routing_put_audio_mixer),
  11801. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11802. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11803. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11804. msm_routing_put_audio_mixer),
  11805. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11806. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11807. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11808. msm_routing_put_audio_mixer),
  11809. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11810. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11811. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11812. msm_routing_put_audio_mixer),
  11813. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11814. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11815. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11816. msm_routing_put_audio_mixer),
  11817. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11818. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11819. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11820. msm_routing_put_audio_mixer),
  11821. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11822. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11823. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11824. msm_routing_put_audio_mixer),
  11825. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11826. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11827. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11828. msm_routing_put_audio_mixer),
  11829. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11830. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11831. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11832. msm_routing_put_audio_mixer),
  11833. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11834. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11835. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11836. msm_routing_put_audio_mixer),
  11837. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11838. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11839. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11840. msm_routing_put_audio_mixer),
  11841. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11842. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11843. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11844. msm_routing_put_audio_mixer),
  11845. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11846. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11847. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11848. msm_routing_put_audio_mixer),
  11849. };
  11850. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  11851. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_INT_FM_TX,
  11853. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11854. msm_routing_put_audio_mixer),
  11855. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_MI2S_TX,
  11857. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11858. msm_routing_put_audio_mixer),
  11859. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11860. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11861. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11862. msm_routing_put_audio_mixer),
  11863. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11865. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11866. msm_routing_put_audio_mixer),
  11867. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11868. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11869. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11870. msm_routing_put_audio_mixer),
  11871. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11872. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11873. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11874. msm_routing_put_audio_mixer),
  11875. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11876. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11877. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11878. msm_routing_put_audio_mixer),
  11879. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11880. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11881. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11882. msm_routing_put_audio_mixer),
  11883. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11884. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11885. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11886. msm_routing_put_audio_mixer),
  11887. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11888. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11889. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11890. msm_routing_put_audio_mixer),
  11891. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11892. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11893. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11894. msm_routing_put_audio_mixer),
  11895. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11896. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11897. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11898. msm_routing_put_audio_mixer),
  11899. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11900. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11901. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11902. msm_routing_put_audio_mixer),
  11903. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11904. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11905. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11906. msm_routing_put_audio_mixer),
  11907. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11908. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11909. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11910. msm_routing_put_audio_mixer),
  11911. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11912. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11913. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11914. msm_routing_put_audio_mixer),
  11915. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11916. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11917. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11918. msm_routing_put_audio_mixer),
  11919. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11920. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11921. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11922. msm_routing_put_audio_mixer),
  11923. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11924. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11925. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11926. msm_routing_put_audio_mixer),
  11927. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11928. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11929. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11930. msm_routing_put_audio_mixer),
  11931. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11932. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11933. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11934. msm_routing_put_audio_mixer),
  11935. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11936. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11937. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11938. msm_routing_put_audio_mixer),
  11939. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11940. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11941. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11942. msm_routing_put_audio_mixer),
  11943. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11944. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11945. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11946. msm_routing_put_audio_mixer),
  11947. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11948. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11949. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11950. msm_routing_put_audio_mixer),
  11951. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11952. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11953. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11954. msm_routing_put_audio_mixer),
  11955. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11956. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11957. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11958. msm_routing_put_audio_mixer),
  11959. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11960. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11961. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11962. msm_routing_put_audio_mixer),
  11963. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11964. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11965. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11966. msm_routing_put_audio_mixer),
  11967. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11968. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11969. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11970. msm_routing_put_audio_mixer),
  11971. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11972. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11973. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11974. msm_routing_put_audio_mixer),
  11975. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11976. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11977. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11978. msm_routing_put_audio_mixer),
  11979. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11980. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11981. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11982. msm_routing_put_audio_mixer),
  11983. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11984. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11985. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11986. msm_routing_put_audio_mixer),
  11987. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11988. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11989. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11990. msm_routing_put_audio_mixer),
  11991. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11992. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11993. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11994. msm_routing_put_audio_mixer),
  11995. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11996. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11997. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11998. msm_routing_put_audio_mixer),
  11999. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12000. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12001. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12002. msm_routing_put_audio_mixer),
  12003. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12004. MSM_BACKEND_DAI_USB_TX,
  12005. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12006. msm_routing_put_audio_mixer),
  12007. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12008. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12009. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12010. msm_routing_put_audio_mixer),
  12011. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12012. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12013. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12014. msm_routing_put_audio_mixer),
  12015. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12016. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12017. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12018. msm_routing_put_audio_mixer),
  12019. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12020. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12021. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12022. msm_routing_put_audio_mixer),
  12023. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12024. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12025. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12026. msm_routing_put_audio_mixer),
  12027. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12028. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12029. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12030. msm_routing_put_audio_mixer),
  12031. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12032. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12033. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12034. msm_routing_put_audio_mixer),
  12035. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12036. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12037. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12038. msm_routing_put_audio_mixer),
  12039. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12040. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12041. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12042. msm_routing_put_audio_mixer),
  12043. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12044. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12045. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12046. msm_routing_put_audio_mixer),
  12047. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12048. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12049. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12050. msm_routing_put_audio_mixer),
  12051. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12052. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12053. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12054. msm_routing_put_audio_mixer),
  12055. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12056. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12057. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12058. msm_routing_put_audio_mixer),
  12059. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12060. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12061. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12062. msm_routing_put_audio_mixer),
  12063. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12064. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12065. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12066. msm_routing_put_audio_mixer),
  12067. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12068. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12069. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12070. msm_routing_put_audio_mixer),
  12071. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12072. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12073. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12074. msm_routing_put_audio_mixer),
  12075. };
  12076. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  12077. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12078. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12079. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12080. msm_routing_put_audio_mixer),
  12081. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12082. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12083. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12084. msm_routing_put_audio_mixer),
  12085. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12086. MSM_BACKEND_DAI_INT_FM_TX,
  12087. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12088. msm_routing_put_audio_mixer),
  12089. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12090. MSM_BACKEND_DAI_MI2S_TX,
  12091. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12092. msm_routing_put_audio_mixer),
  12093. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12094. MSM_BACKEND_DAI_AFE_PCM_TX,
  12095. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12096. msm_routing_put_audio_mixer),
  12097. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12098. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12099. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12100. msm_routing_put_audio_mixer),
  12101. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  12102. MSM_BACKEND_DAI_AUXPCM_TX,
  12103. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12104. msm_routing_put_audio_mixer),
  12105. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12106. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12107. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12108. msm_routing_put_audio_mixer),
  12109. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12110. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12111. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12112. msm_routing_put_audio_mixer),
  12113. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12114. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12115. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12116. msm_routing_put_audio_mixer),
  12117. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12118. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12119. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12120. msm_routing_put_audio_mixer),
  12121. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12122. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12123. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12124. msm_routing_put_audio_mixer),
  12125. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12126. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12127. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12128. msm_routing_put_audio_mixer),
  12129. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12130. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12131. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12132. msm_routing_put_audio_mixer),
  12133. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12134. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12135. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12136. msm_routing_put_audio_mixer),
  12137. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12138. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12139. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12140. msm_routing_put_audio_mixer),
  12141. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12142. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12143. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12144. msm_routing_put_audio_mixer),
  12145. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12146. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12147. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12148. msm_routing_put_audio_mixer),
  12149. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12150. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12151. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12152. msm_routing_put_audio_mixer),
  12153. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12154. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12155. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12156. msm_routing_put_audio_mixer),
  12157. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12158. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12159. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12160. msm_routing_put_audio_mixer),
  12161. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12162. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12163. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12164. msm_routing_put_audio_mixer),
  12165. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12166. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12167. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12168. msm_routing_put_audio_mixer),
  12169. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12170. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12171. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12172. msm_routing_put_audio_mixer),
  12173. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12174. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12175. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12176. msm_routing_put_audio_mixer),
  12177. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12178. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12179. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12180. msm_routing_put_audio_mixer),
  12181. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12182. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12183. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12184. msm_routing_put_audio_mixer),
  12185. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12186. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12187. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12188. msm_routing_put_audio_mixer),
  12189. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12190. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12191. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12192. msm_routing_put_audio_mixer),
  12193. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12194. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12195. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12196. msm_routing_put_audio_mixer),
  12197. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12198. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12199. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12200. msm_routing_put_audio_mixer),
  12201. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12202. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12203. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12204. msm_routing_put_audio_mixer),
  12205. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12206. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12207. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12208. msm_routing_put_audio_mixer),
  12209. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12210. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12211. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12212. msm_routing_put_audio_mixer),
  12213. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12214. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12215. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12216. msm_routing_put_audio_mixer),
  12217. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12218. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12219. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12220. msm_routing_put_audio_mixer),
  12221. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12222. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12223. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12224. msm_routing_put_audio_mixer),
  12225. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12226. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12227. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12228. msm_routing_put_audio_mixer),
  12229. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12230. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12231. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12232. msm_routing_put_audio_mixer),
  12233. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12234. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12235. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12236. msm_routing_put_audio_mixer),
  12237. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12238. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12239. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12240. msm_routing_put_audio_mixer),
  12241. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12242. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12243. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12244. msm_routing_put_audio_mixer),
  12245. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12246. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12247. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12248. msm_routing_put_audio_mixer),
  12249. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12250. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12251. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12252. msm_routing_put_audio_mixer),
  12253. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12254. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12255. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12256. msm_routing_put_audio_mixer),
  12257. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12258. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12259. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12260. msm_routing_put_audio_mixer),
  12261. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12262. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12263. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12264. msm_routing_put_audio_mixer),
  12265. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12266. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12267. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12268. msm_routing_put_audio_mixer),
  12269. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12270. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12271. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12272. msm_routing_put_audio_mixer),
  12273. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12274. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12275. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12276. msm_routing_put_audio_mixer),
  12277. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12278. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12279. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12280. msm_routing_put_audio_mixer),
  12281. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12282. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12283. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12284. msm_routing_put_audio_mixer),
  12285. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12286. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12287. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12288. msm_routing_put_audio_mixer),
  12289. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12290. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12291. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12292. msm_routing_put_audio_mixer),
  12293. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12294. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12295. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12296. msm_routing_put_audio_mixer),
  12297. };
  12298. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  12299. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12300. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12301. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12302. msm_routing_put_audio_mixer),
  12303. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12304. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12305. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12306. msm_routing_put_audio_mixer),
  12307. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12308. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12309. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12310. msm_routing_put_audio_mixer),
  12311. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12312. MSM_BACKEND_DAI_INT_FM_TX,
  12313. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12314. msm_routing_put_audio_mixer),
  12315. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12316. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12317. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12318. msm_routing_put_audio_mixer),
  12319. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12320. MSM_BACKEND_DAI_AFE_PCM_TX,
  12321. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12322. msm_routing_put_audio_mixer),
  12323. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12324. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12325. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12326. msm_routing_put_audio_mixer),
  12327. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12328. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12329. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12330. msm_routing_put_audio_mixer),
  12331. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12332. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12333. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12334. msm_routing_put_audio_mixer),
  12335. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12336. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12337. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12338. msm_routing_put_audio_mixer),
  12339. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12340. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12341. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12342. msm_routing_put_audio_mixer),
  12343. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12344. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12345. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12346. msm_routing_put_audio_mixer),
  12347. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12348. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12349. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12350. msm_routing_put_audio_mixer),
  12351. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12352. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12353. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12354. msm_routing_put_audio_mixer),
  12355. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12356. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12357. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12358. msm_routing_put_audio_mixer),
  12359. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12360. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12361. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12362. msm_routing_put_audio_mixer),
  12363. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12364. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12365. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12366. msm_routing_put_audio_mixer),
  12367. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12368. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12369. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12370. msm_routing_put_audio_mixer),
  12371. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12372. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12373. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12374. msm_routing_put_audio_mixer),
  12375. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12376. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12377. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12378. msm_routing_put_audio_mixer),
  12379. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12380. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12381. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12382. msm_routing_put_audio_mixer),
  12383. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12384. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12385. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12386. msm_routing_put_audio_mixer),
  12387. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12388. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12389. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12390. msm_routing_put_audio_mixer),
  12391. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12392. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12393. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12394. msm_routing_put_audio_mixer),
  12395. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12396. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12397. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12398. msm_routing_put_audio_mixer),
  12399. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12400. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12401. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12402. msm_routing_put_audio_mixer),
  12403. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12404. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12405. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12406. msm_routing_put_audio_mixer),
  12407. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12408. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12409. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12410. msm_routing_put_audio_mixer),
  12411. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12412. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12413. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12414. msm_routing_put_audio_mixer),
  12415. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12416. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12417. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12418. msm_routing_put_audio_mixer),
  12419. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12420. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12421. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12422. msm_routing_put_audio_mixer),
  12423. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12424. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12425. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12426. msm_routing_put_audio_mixer),
  12427. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12428. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12429. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12430. msm_routing_put_audio_mixer),
  12431. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12432. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12433. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12434. msm_routing_put_audio_mixer),
  12435. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12436. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12437. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12438. msm_routing_put_audio_mixer),
  12439. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12440. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12441. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12442. msm_routing_put_audio_mixer),
  12443. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12444. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12445. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12446. msm_routing_put_audio_mixer),
  12447. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12448. MSM_BACKEND_DAI_USB_TX,
  12449. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12450. msm_routing_put_audio_mixer),
  12451. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12452. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12453. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12454. msm_routing_put_audio_mixer),
  12455. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12456. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12457. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12458. msm_routing_put_audio_mixer),
  12459. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12460. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12461. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12462. msm_routing_put_audio_mixer),
  12463. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12464. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12465. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12466. msm_routing_put_audio_mixer),
  12467. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12468. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12469. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12470. msm_routing_put_audio_mixer),
  12471. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12472. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12473. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12474. msm_routing_put_audio_mixer),
  12475. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12476. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12477. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12478. msm_routing_put_audio_mixer),
  12479. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12480. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12481. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12482. msm_routing_put_audio_mixer),
  12483. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12484. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12485. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12486. msm_routing_put_audio_mixer),
  12487. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12488. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12489. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12490. msm_routing_put_audio_mixer),
  12491. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12492. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12493. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12494. msm_routing_put_audio_mixer),
  12495. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12496. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12497. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12498. msm_routing_put_audio_mixer),
  12499. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12500. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12501. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12502. msm_routing_put_audio_mixer),
  12503. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12504. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12505. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12506. msm_routing_put_audio_mixer),
  12507. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12508. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12509. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12510. msm_routing_put_audio_mixer),
  12511. };
  12512. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  12513. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12515. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12516. msm_routing_put_audio_mixer),
  12517. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12518. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12519. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12520. msm_routing_put_audio_mixer),
  12521. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12522. MSM_BACKEND_DAI_INT_FM_TX,
  12523. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12524. msm_routing_put_audio_mixer),
  12525. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12526. MSM_BACKEND_DAI_MI2S_TX,
  12527. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12528. msm_routing_put_audio_mixer),
  12529. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12530. MSM_BACKEND_DAI_AFE_PCM_TX,
  12531. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12532. msm_routing_put_audio_mixer),
  12533. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12535. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12536. msm_routing_put_audio_mixer),
  12537. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12538. MSM_BACKEND_DAI_AUXPCM_TX,
  12539. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12540. msm_routing_put_audio_mixer),
  12541. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12542. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12543. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12544. msm_routing_put_audio_mixer),
  12545. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12546. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12547. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12548. msm_routing_put_audio_mixer),
  12549. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12550. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12551. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12552. msm_routing_put_audio_mixer),
  12553. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12554. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12555. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12556. msm_routing_put_audio_mixer),
  12557. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12558. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12559. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12560. msm_routing_put_audio_mixer),
  12561. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12562. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12563. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12564. msm_routing_put_audio_mixer),
  12565. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12566. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12567. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12568. msm_routing_put_audio_mixer),
  12569. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12570. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12571. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12572. msm_routing_put_audio_mixer),
  12573. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12574. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12575. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12576. msm_routing_put_audio_mixer),
  12577. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12578. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12579. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12580. msm_routing_put_audio_mixer),
  12581. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12582. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12583. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12584. msm_routing_put_audio_mixer),
  12585. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12586. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12587. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12588. msm_routing_put_audio_mixer),
  12589. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12590. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12591. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12592. msm_routing_put_audio_mixer),
  12593. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12594. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12595. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12596. msm_routing_put_audio_mixer),
  12597. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12598. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12599. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12600. msm_routing_put_audio_mixer),
  12601. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12602. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12603. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12604. msm_routing_put_audio_mixer),
  12605. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12606. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12607. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12608. msm_routing_put_audio_mixer),
  12609. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12610. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12611. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12612. msm_routing_put_audio_mixer),
  12613. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12614. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12615. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12616. msm_routing_put_audio_mixer),
  12617. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12618. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12619. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12620. msm_routing_put_audio_mixer),
  12621. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12622. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12623. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12624. msm_routing_put_audio_mixer),
  12625. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12626. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12627. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12628. msm_routing_put_audio_mixer),
  12629. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12630. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12631. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12632. msm_routing_put_audio_mixer),
  12633. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12634. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12635. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12636. msm_routing_put_audio_mixer),
  12637. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12638. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12639. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12640. msm_routing_put_audio_mixer),
  12641. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12642. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12643. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12644. msm_routing_put_audio_mixer),
  12645. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12646. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12647. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12648. msm_routing_put_audio_mixer),
  12649. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12650. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12651. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12652. msm_routing_put_audio_mixer),
  12653. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12654. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12655. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12656. msm_routing_put_audio_mixer),
  12657. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12658. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12659. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12660. msm_routing_put_audio_mixer),
  12661. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12662. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12663. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12664. msm_routing_put_audio_mixer),
  12665. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12666. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12667. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12668. msm_routing_put_audio_mixer),
  12669. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12670. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12671. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12672. msm_routing_put_audio_mixer),
  12673. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12674. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12675. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12676. msm_routing_put_audio_mixer),
  12677. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12678. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12679. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12680. msm_routing_put_audio_mixer),
  12681. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12682. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12683. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12684. msm_routing_put_audio_mixer),
  12685. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12686. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12687. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12688. msm_routing_put_audio_mixer),
  12689. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12690. MSM_BACKEND_DAI_USB_TX,
  12691. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12692. msm_routing_put_audio_mixer),
  12693. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12694. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12695. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12696. msm_routing_put_audio_mixer),
  12697. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12698. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12699. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12700. msm_routing_put_audio_mixer),
  12701. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12702. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12703. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12704. msm_routing_put_audio_mixer),
  12705. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12706. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12707. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12708. msm_routing_put_audio_mixer),
  12709. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12710. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12711. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12712. msm_routing_put_audio_mixer),
  12713. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12714. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12715. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12716. msm_routing_put_audio_mixer),
  12717. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12718. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12719. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12720. msm_routing_put_audio_mixer),
  12721. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12722. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12723. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12724. msm_routing_put_audio_mixer),
  12725. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12726. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12727. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12728. msm_routing_put_audio_mixer),
  12729. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12730. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12731. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12732. msm_routing_put_audio_mixer),
  12733. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12734. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12735. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12736. msm_routing_put_audio_mixer),
  12737. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12738. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12739. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12740. msm_routing_put_audio_mixer),
  12741. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12742. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12743. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12744. msm_routing_put_audio_mixer),
  12745. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12746. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12747. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12748. msm_routing_put_audio_mixer),
  12749. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12750. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12751. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12752. msm_routing_put_audio_mixer),
  12753. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12754. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12755. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12756. msm_routing_put_audio_mixer),
  12757. };
  12758. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  12759. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12760. MSM_BACKEND_DAI_INT_FM_TX,
  12761. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12762. msm_routing_put_audio_mixer),
  12763. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12764. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12765. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12766. msm_routing_put_audio_mixer),
  12767. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12768. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12769. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12770. msm_routing_put_audio_mixer),
  12771. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12772. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12773. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12774. msm_routing_put_audio_mixer),
  12775. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12776. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12777. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12778. msm_routing_put_audio_mixer),
  12779. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12780. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12781. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12782. msm_routing_put_audio_mixer),
  12783. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12784. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12785. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12786. msm_routing_put_audio_mixer),
  12787. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12788. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12789. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12790. msm_routing_put_audio_mixer),
  12791. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12792. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12793. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12794. msm_routing_put_audio_mixer),
  12795. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12796. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12797. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12798. msm_routing_put_audio_mixer),
  12799. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12800. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12801. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12802. msm_routing_put_audio_mixer),
  12803. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12804. MSM_BACKEND_DAI_AUXPCM_TX,
  12805. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12806. msm_routing_put_audio_mixer),
  12807. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12808. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12809. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12810. msm_routing_put_audio_mixer),
  12811. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12812. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12813. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12814. msm_routing_put_audio_mixer),
  12815. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12816. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12817. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12818. msm_routing_put_audio_mixer),
  12819. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12820. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12821. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12822. msm_routing_put_audio_mixer),
  12823. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12824. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12825. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12826. msm_routing_put_audio_mixer),
  12827. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12828. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12829. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12830. msm_routing_put_audio_mixer),
  12831. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12832. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12833. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12834. msm_routing_put_audio_mixer),
  12835. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12836. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12837. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12838. msm_routing_put_audio_mixer),
  12839. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12840. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12841. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12842. msm_routing_put_audio_mixer),
  12843. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12844. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12845. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12846. msm_routing_put_audio_mixer),
  12847. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12848. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12849. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12850. msm_routing_put_audio_mixer),
  12851. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12852. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12853. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12854. msm_routing_put_audio_mixer),
  12855. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12856. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12857. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12858. msm_routing_put_audio_mixer),
  12859. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12860. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12861. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12862. msm_routing_put_audio_mixer),
  12863. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12864. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12865. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12866. msm_routing_put_audio_mixer),
  12867. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12868. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12869. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12870. msm_routing_put_audio_mixer),
  12871. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12872. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12873. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12874. msm_routing_put_audio_mixer),
  12875. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12876. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12877. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12878. msm_routing_put_audio_mixer),
  12879. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12880. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12881. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12882. msm_routing_put_audio_mixer),
  12883. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12884. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12885. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12886. msm_routing_put_audio_mixer),
  12887. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12888. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12889. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12890. msm_routing_put_audio_mixer),
  12891. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12892. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12893. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12894. msm_routing_put_audio_mixer),
  12895. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12896. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12897. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12898. msm_routing_put_audio_mixer),
  12899. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12900. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12901. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12902. msm_routing_put_audio_mixer),
  12903. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12904. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12905. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12906. msm_routing_put_audio_mixer),
  12907. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12908. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12909. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12910. msm_routing_put_audio_mixer),
  12911. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12912. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12913. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12914. msm_routing_put_audio_mixer),
  12915. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12916. MSM_BACKEND_DAI_USB_TX,
  12917. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12918. msm_routing_put_audio_mixer),
  12919. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12920. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12921. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12922. msm_routing_put_audio_mixer),
  12923. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12924. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12925. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12926. msm_routing_put_audio_mixer),
  12927. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12928. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12929. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12930. msm_routing_put_audio_mixer),
  12931. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12932. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12933. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12934. msm_routing_put_audio_mixer),
  12935. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12936. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12937. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12938. msm_routing_put_audio_mixer),
  12939. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12940. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12941. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12942. msm_routing_put_audio_mixer),
  12943. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12944. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12945. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12946. msm_routing_put_audio_mixer),
  12947. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12948. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12949. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12950. msm_routing_put_audio_mixer),
  12951. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12952. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12953. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12954. msm_routing_put_audio_mixer),
  12955. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12956. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12957. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12958. msm_routing_put_audio_mixer),
  12959. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12960. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12961. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12962. msm_routing_put_audio_mixer),
  12963. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12964. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12965. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12966. msm_routing_put_audio_mixer),
  12967. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12968. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12969. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12970. msm_routing_put_audio_mixer),
  12971. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12972. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12973. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12974. msm_routing_put_audio_mixer),
  12975. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12976. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12977. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12978. msm_routing_put_audio_mixer),
  12979. };
  12980. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  12981. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12982. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12983. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12984. msm_routing_put_audio_mixer),
  12985. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12986. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12987. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12988. msm_routing_put_audio_mixer),
  12989. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12990. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12991. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12992. msm_routing_put_audio_mixer),
  12993. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12994. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12995. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12996. msm_routing_put_audio_mixer),
  12997. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12998. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12999. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13000. msm_routing_put_audio_mixer),
  13001. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13002. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13003. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13004. msm_routing_put_audio_mixer),
  13005. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13006. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13007. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13008. msm_routing_put_audio_mixer),
  13009. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13010. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13011. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13012. msm_routing_put_audio_mixer),
  13013. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13014. MSM_BACKEND_DAI_INT_FM_TX,
  13015. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13016. msm_routing_put_audio_mixer),
  13017. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13018. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13019. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13020. msm_routing_put_audio_mixer),
  13021. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13022. MSM_BACKEND_DAI_AFE_PCM_TX,
  13023. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13024. msm_routing_put_audio_mixer),
  13025. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13026. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13027. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13028. msm_routing_put_audio_mixer),
  13029. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13030. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13031. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13032. msm_routing_put_audio_mixer),
  13033. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13034. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13035. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13036. msm_routing_put_audio_mixer),
  13037. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13038. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13039. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13040. msm_routing_put_audio_mixer),
  13041. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13042. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13043. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13044. msm_routing_put_audio_mixer),
  13045. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13046. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13047. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13048. msm_routing_put_audio_mixer),
  13049. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13050. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13051. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13052. msm_routing_put_audio_mixer),
  13053. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13054. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13055. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13056. msm_routing_put_audio_mixer),
  13057. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13058. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13059. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13060. msm_routing_put_audio_mixer),
  13061. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13062. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13063. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13064. msm_routing_put_audio_mixer),
  13065. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13066. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13067. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13068. msm_routing_put_audio_mixer),
  13069. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13070. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13071. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13072. msm_routing_put_audio_mixer),
  13073. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13074. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13075. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13076. msm_routing_put_audio_mixer),
  13077. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13078. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13079. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13080. msm_routing_put_audio_mixer),
  13081. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13082. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13083. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13084. msm_routing_put_audio_mixer),
  13085. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13086. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13087. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13088. msm_routing_put_audio_mixer),
  13089. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13090. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13091. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13092. msm_routing_put_audio_mixer),
  13093. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13094. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13095. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13096. msm_routing_put_audio_mixer),
  13097. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13098. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13099. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13100. msm_routing_put_audio_mixer),
  13101. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13102. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13103. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13104. msm_routing_put_audio_mixer),
  13105. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13106. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13107. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13108. msm_routing_put_audio_mixer),
  13109. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13110. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13111. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13112. msm_routing_put_audio_mixer),
  13113. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13114. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13115. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13116. msm_routing_put_audio_mixer),
  13117. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13118. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13119. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13120. msm_routing_put_audio_mixer),
  13121. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13122. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13123. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13124. msm_routing_put_audio_mixer),
  13125. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13126. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13127. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13128. msm_routing_put_audio_mixer),
  13129. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13130. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13131. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13132. msm_routing_put_audio_mixer),
  13133. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13134. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13135. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13136. msm_routing_put_audio_mixer),
  13137. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13138. MSM_BACKEND_DAI_USB_TX,
  13139. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13140. msm_routing_put_audio_mixer),
  13141. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13142. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13143. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13144. msm_routing_put_audio_mixer),
  13145. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13146. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13147. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13148. msm_routing_put_audio_mixer),
  13149. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13150. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13151. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13152. msm_routing_put_audio_mixer),
  13153. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13154. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13155. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13156. msm_routing_put_audio_mixer),
  13157. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13158. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13159. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13160. msm_routing_put_audio_mixer),
  13161. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13162. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13163. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13164. msm_routing_put_audio_mixer),
  13165. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13166. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13167. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13168. msm_routing_put_audio_mixer),
  13169. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13170. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13171. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13172. msm_routing_put_audio_mixer),
  13173. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13174. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13175. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13176. msm_routing_put_audio_mixer),
  13177. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13178. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13179. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13180. msm_routing_put_audio_mixer),
  13181. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13182. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13183. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13184. msm_routing_put_audio_mixer),
  13185. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13186. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13187. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13188. msm_routing_put_audio_mixer),
  13189. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13190. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13191. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13192. msm_routing_put_audio_mixer),
  13193. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13194. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13195. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13196. msm_routing_put_audio_mixer),
  13197. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13198. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13199. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13200. msm_routing_put_audio_mixer),
  13201. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13202. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13203. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13204. msm_routing_put_audio_mixer),
  13205. };
  13206. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  13207. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13208. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13209. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13210. msm_routing_put_audio_mixer),
  13211. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13212. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13213. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13214. msm_routing_put_audio_mixer),
  13215. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13216. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13217. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13218. msm_routing_put_audio_mixer),
  13219. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13220. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13221. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13222. msm_routing_put_audio_mixer),
  13223. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13224. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13225. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13226. msm_routing_put_audio_mixer),
  13227. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13228. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13229. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13230. msm_routing_put_audio_mixer),
  13231. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13232. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13233. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13234. msm_routing_put_audio_mixer),
  13235. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13236. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13237. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13238. msm_routing_put_audio_mixer),
  13239. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13240. MSM_BACKEND_DAI_INT_FM_TX,
  13241. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13242. msm_routing_put_audio_mixer),
  13243. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13244. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13245. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13246. msm_routing_put_audio_mixer),
  13247. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13248. MSM_BACKEND_DAI_AFE_PCM_TX,
  13249. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13250. msm_routing_put_audio_mixer),
  13251. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13252. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13253. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13254. msm_routing_put_audio_mixer),
  13255. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13256. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13257. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13258. msm_routing_put_audio_mixer),
  13259. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13260. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13261. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13262. msm_routing_put_audio_mixer),
  13263. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13264. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13265. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13266. msm_routing_put_audio_mixer),
  13267. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13268. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13269. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13270. msm_routing_put_audio_mixer),
  13271. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13272. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13273. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13274. msm_routing_put_audio_mixer),
  13275. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13276. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13277. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13278. msm_routing_put_audio_mixer),
  13279. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13280. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13281. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13282. msm_routing_put_audio_mixer),
  13283. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13284. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13285. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13286. msm_routing_put_audio_mixer),
  13287. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13288. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13289. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13290. msm_routing_put_audio_mixer),
  13291. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13292. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13293. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13294. msm_routing_put_audio_mixer),
  13295. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13296. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13297. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13298. msm_routing_put_audio_mixer),
  13299. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13300. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13301. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13302. msm_routing_put_audio_mixer),
  13303. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13304. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13305. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13306. msm_routing_put_audio_mixer),
  13307. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13308. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13309. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13310. msm_routing_put_audio_mixer),
  13311. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13312. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13313. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13314. msm_routing_put_audio_mixer),
  13315. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13316. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13317. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13318. msm_routing_put_audio_mixer),
  13319. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13320. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13321. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13322. msm_routing_put_audio_mixer),
  13323. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13324. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13325. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13326. msm_routing_put_audio_mixer),
  13327. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13328. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13329. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13330. msm_routing_put_audio_mixer),
  13331. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13332. MSM_BACKEND_DAI_USB_TX,
  13333. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13334. msm_routing_put_audio_mixer),
  13335. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13336. MSM_BACKEND_DAI_MI2S_TX,
  13337. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13338. msm_routing_put_audio_mixer),
  13339. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13340. MSM_BACKEND_DAI_AUXPCM_TX,
  13341. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13342. msm_routing_put_audio_mixer),
  13343. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13344. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13345. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13346. msm_routing_put_audio_mixer),
  13347. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13348. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13349. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13350. msm_routing_put_audio_mixer),
  13351. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13352. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13353. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13354. msm_routing_put_audio_mixer),
  13355. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13356. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13357. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13358. msm_routing_put_audio_mixer),
  13359. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13360. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13361. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13362. msm_routing_put_audio_mixer),
  13363. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13364. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13365. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13366. msm_routing_put_audio_mixer),
  13367. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13368. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13369. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13370. msm_routing_put_audio_mixer),
  13371. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13372. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13373. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13374. msm_routing_put_audio_mixer),
  13375. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13376. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13377. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13378. msm_routing_get_audio_mixer,
  13379. msm_routing_put_audio_mixer),
  13380. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13381. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13382. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13383. msm_routing_get_audio_mixer,
  13384. msm_routing_put_audio_mixer),
  13385. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13386. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13387. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13388. msm_routing_get_audio_mixer,
  13389. msm_routing_put_audio_mixer),
  13390. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13391. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13392. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13393. msm_routing_get_audio_mixer,
  13394. msm_routing_put_audio_mixer),
  13395. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13396. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13397. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13398. msm_routing_get_audio_mixer,
  13399. msm_routing_put_audio_mixer),
  13400. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13401. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13402. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13403. msm_routing_get_audio_mixer,
  13404. msm_routing_put_audio_mixer),
  13405. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13406. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13407. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13408. msm_routing_put_audio_mixer),
  13409. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13410. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13411. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13412. msm_routing_put_audio_mixer),
  13413. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13414. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13415. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13416. msm_routing_put_audio_mixer),
  13417. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13418. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13419. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13420. msm_routing_put_audio_mixer),
  13421. };
  13422. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  13423. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13424. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13425. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13426. msm_routing_put_audio_mixer),
  13427. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13428. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13429. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13430. msm_routing_put_audio_mixer),
  13431. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13433. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13434. msm_routing_put_audio_mixer),
  13435. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13436. MSM_BACKEND_DAI_INT_FM_TX,
  13437. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13438. msm_routing_put_audio_mixer),
  13439. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13440. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13441. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13442. msm_routing_put_audio_mixer),
  13443. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13444. MSM_BACKEND_DAI_AFE_PCM_TX,
  13445. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13446. msm_routing_put_audio_mixer),
  13447. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13448. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13449. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13450. msm_routing_put_audio_mixer),
  13451. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13452. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13453. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13454. msm_routing_put_audio_mixer),
  13455. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13456. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13457. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13458. msm_routing_put_audio_mixer),
  13459. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13460. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13461. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13462. msm_routing_put_audio_mixer),
  13463. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13464. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13465. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13466. msm_routing_put_audio_mixer),
  13467. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13469. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13470. msm_routing_put_audio_mixer),
  13471. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13473. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13474. msm_routing_put_audio_mixer),
  13475. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13476. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13477. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13478. msm_routing_put_audio_mixer),
  13479. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13480. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13481. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13482. msm_routing_put_audio_mixer),
  13483. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13485. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13486. msm_routing_put_audio_mixer),
  13487. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13488. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13489. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13490. msm_routing_put_audio_mixer),
  13491. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13492. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13493. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13494. msm_routing_put_audio_mixer),
  13495. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13496. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13497. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13498. msm_routing_put_audio_mixer),
  13499. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13500. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13501. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13502. msm_routing_put_audio_mixer),
  13503. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13504. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13505. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13506. msm_routing_put_audio_mixer),
  13507. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13508. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13509. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13510. msm_routing_put_audio_mixer),
  13511. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13512. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13513. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13514. msm_routing_put_audio_mixer),
  13515. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13516. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13517. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13518. msm_routing_put_audio_mixer),
  13519. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13521. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13522. msm_routing_put_audio_mixer),
  13523. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13524. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13525. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13526. msm_routing_put_audio_mixer),
  13527. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13528. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13529. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13530. msm_routing_put_audio_mixer),
  13531. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13532. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13533. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13534. msm_routing_put_audio_mixer),
  13535. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13536. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13537. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13538. msm_routing_put_audio_mixer),
  13539. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13540. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13541. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13542. msm_routing_put_audio_mixer),
  13543. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13544. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13545. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13546. msm_routing_put_audio_mixer),
  13547. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13548. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13549. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13550. msm_routing_put_audio_mixer),
  13551. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13552. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13553. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13554. msm_routing_put_audio_mixer),
  13555. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13556. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13557. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13558. msm_routing_put_audio_mixer),
  13559. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13561. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13562. msm_routing_put_audio_mixer),
  13563. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13564. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13565. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13566. msm_routing_put_audio_mixer),
  13567. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13568. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13569. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13570. msm_routing_put_audio_mixer),
  13571. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13572. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13573. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13574. msm_routing_put_audio_mixer),
  13575. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13576. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13577. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13578. msm_routing_put_audio_mixer),
  13579. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13580. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13581. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13582. msm_routing_put_audio_mixer),
  13583. };
  13584. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  13585. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13586. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13587. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13588. msm_routing_put_audio_mixer),
  13589. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13590. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13591. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13592. msm_routing_put_audio_mixer),
  13593. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13594. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13595. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13596. msm_routing_put_audio_mixer),
  13597. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13598. MSM_BACKEND_DAI_INT_FM_TX,
  13599. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13600. msm_routing_put_audio_mixer),
  13601. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13602. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13603. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13604. msm_routing_put_audio_mixer),
  13605. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13606. MSM_BACKEND_DAI_AFE_PCM_TX,
  13607. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13608. msm_routing_put_audio_mixer),
  13609. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13610. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13611. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13612. msm_routing_put_audio_mixer),
  13613. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13614. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13615. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13616. msm_routing_put_audio_mixer),
  13617. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13618. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13619. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13620. msm_routing_put_audio_mixer),
  13621. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13622. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13623. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13624. msm_routing_put_audio_mixer),
  13625. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13626. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13627. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13628. msm_routing_put_audio_mixer),
  13629. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13630. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13631. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13632. msm_routing_put_audio_mixer),
  13633. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13634. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13635. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13636. msm_routing_put_audio_mixer),
  13637. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13638. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13639. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13640. msm_routing_put_audio_mixer),
  13641. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13642. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13643. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13644. msm_routing_put_audio_mixer),
  13645. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13646. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13647. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13648. msm_routing_put_audio_mixer),
  13649. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13650. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13651. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13652. msm_routing_put_audio_mixer),
  13653. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13654. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13655. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13656. msm_routing_put_audio_mixer),
  13657. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13658. MSM_BACKEND_DAI_USB_TX,
  13659. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13660. msm_routing_put_audio_mixer),
  13661. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13662. MSM_BACKEND_DAI_MI2S_TX,
  13663. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13664. msm_routing_put_audio_mixer),
  13665. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13666. MSM_BACKEND_DAI_AUXPCM_TX,
  13667. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13668. msm_routing_put_audio_mixer),
  13669. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13670. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13671. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13672. msm_routing_put_audio_mixer),
  13673. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  13674. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13675. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13676. msm_routing_put_audio_mixer),
  13677. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13678. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13679. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13680. msm_routing_put_audio_mixer),
  13681. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13682. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13683. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13684. msm_routing_put_audio_mixer),
  13685. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13686. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13687. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13688. msm_routing_put_audio_mixer),
  13689. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13690. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13691. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13692. msm_routing_put_audio_mixer),
  13693. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13694. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13695. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13696. msm_routing_put_audio_mixer),
  13697. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13698. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13699. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13700. msm_routing_put_audio_mixer),
  13701. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13702. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13703. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13704. msm_routing_put_audio_mixer),
  13705. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13706. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13707. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13708. msm_routing_put_audio_mixer),
  13709. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13710. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13711. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13712. msm_routing_put_audio_mixer),
  13713. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13714. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13715. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13716. msm_routing_put_audio_mixer),
  13717. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13718. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13719. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13720. msm_routing_get_audio_mixer,
  13721. msm_routing_put_audio_mixer),
  13722. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13723. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13724. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13725. msm_routing_get_audio_mixer,
  13726. msm_routing_put_audio_mixer),
  13727. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13728. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13729. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13730. msm_routing_get_audio_mixer,
  13731. msm_routing_put_audio_mixer),
  13732. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13733. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13734. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13735. msm_routing_get_audio_mixer,
  13736. msm_routing_put_audio_mixer),
  13737. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13738. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13739. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13740. msm_routing_get_audio_mixer,
  13741. msm_routing_put_audio_mixer),
  13742. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13743. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13744. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13745. msm_routing_get_audio_mixer,
  13746. msm_routing_put_audio_mixer),
  13747. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13748. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13749. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13750. msm_routing_put_audio_mixer),
  13751. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13752. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13753. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13754. msm_routing_put_audio_mixer),
  13755. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13756. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13757. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13758. msm_routing_put_audio_mixer),
  13759. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13760. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13761. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13762. msm_routing_put_audio_mixer),
  13763. };
  13764. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  13765. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13766. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13767. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13768. msm_routing_put_audio_mixer),
  13769. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13770. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13771. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13772. msm_routing_put_audio_mixer),
  13773. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13774. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13775. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13776. msm_routing_put_audio_mixer),
  13777. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13778. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13779. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13780. msm_routing_put_audio_mixer),
  13781. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13782. MSM_BACKEND_DAI_INT_FM_TX,
  13783. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13784. msm_routing_put_audio_mixer),
  13785. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13786. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13787. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13788. msm_routing_put_audio_mixer),
  13789. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13790. MSM_BACKEND_DAI_AFE_PCM_TX,
  13791. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13792. msm_routing_put_audio_mixer),
  13793. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13794. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13795. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13796. msm_routing_put_audio_mixer),
  13797. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13798. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13799. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13800. msm_routing_put_audio_mixer),
  13801. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13802. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13803. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13804. msm_routing_put_audio_mixer),
  13805. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13806. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13807. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13808. msm_routing_put_audio_mixer),
  13809. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13810. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13811. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13812. msm_routing_put_audio_mixer),
  13813. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13814. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13815. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13816. msm_routing_put_audio_mixer),
  13817. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13818. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13819. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13820. msm_routing_put_audio_mixer),
  13821. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13822. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13823. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13824. msm_routing_put_audio_mixer),
  13825. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13826. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13827. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13828. msm_routing_put_audio_mixer),
  13829. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13830. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13831. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13832. msm_routing_put_audio_mixer),
  13833. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13834. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13835. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13836. msm_routing_get_audio_mixer,
  13837. msm_routing_put_audio_mixer),
  13838. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13839. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13840. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13841. msm_routing_get_audio_mixer,
  13842. msm_routing_put_audio_mixer),
  13843. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13844. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13845. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13846. msm_routing_get_audio_mixer,
  13847. msm_routing_put_audio_mixer),
  13848. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13849. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13850. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13851. msm_routing_get_audio_mixer,
  13852. msm_routing_put_audio_mixer),
  13853. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13854. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13855. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13856. msm_routing_get_audio_mixer,
  13857. msm_routing_put_audio_mixer),
  13858. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13859. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13860. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13861. msm_routing_get_audio_mixer,
  13862. msm_routing_put_audio_mixer),
  13863. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13864. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13865. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13866. msm_routing_put_audio_mixer),
  13867. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13868. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13869. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13870. msm_routing_put_audio_mixer),
  13871. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13872. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13873. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13874. msm_routing_put_audio_mixer),
  13875. };
  13876. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  13877. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13878. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13879. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13880. msm_routing_put_audio_mixer),
  13881. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13882. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13883. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13884. msm_routing_put_audio_mixer),
  13885. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13886. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13887. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13888. msm_routing_put_audio_mixer),
  13889. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13890. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13891. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13892. msm_routing_put_audio_mixer),
  13893. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13894. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13895. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13896. msm_routing_put_audio_mixer),
  13897. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13898. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13899. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13900. msm_routing_put_audio_mixer),
  13901. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13902. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13903. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13904. msm_routing_put_audio_mixer),
  13905. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13906. MSM_BACKEND_DAI_INT_FM_TX,
  13907. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13908. msm_routing_put_audio_mixer),
  13909. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13910. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13911. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13912. msm_routing_put_audio_mixer),
  13913. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13914. MSM_BACKEND_DAI_AFE_PCM_TX,
  13915. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13916. msm_routing_put_audio_mixer),
  13917. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13918. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13919. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13920. msm_routing_put_audio_mixer),
  13921. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13922. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13923. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13924. msm_routing_put_audio_mixer),
  13925. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13926. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13927. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13928. msm_routing_put_audio_mixer),
  13929. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13930. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13931. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13932. msm_routing_put_audio_mixer),
  13933. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13934. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13935. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13936. msm_routing_put_audio_mixer),
  13937. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13938. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13939. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13940. msm_routing_put_audio_mixer),
  13941. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13942. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13943. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13944. msm_routing_put_audio_mixer),
  13945. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13946. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13947. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13948. msm_routing_put_audio_mixer),
  13949. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13950. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13951. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13952. msm_routing_get_audio_mixer,
  13953. msm_routing_put_audio_mixer),
  13954. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13955. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13956. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13957. msm_routing_get_audio_mixer,
  13958. msm_routing_put_audio_mixer),
  13959. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13960. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13961. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13962. msm_routing_get_audio_mixer,
  13963. msm_routing_put_audio_mixer),
  13964. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13965. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13966. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13967. msm_routing_get_audio_mixer,
  13968. msm_routing_put_audio_mixer),
  13969. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13970. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13971. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13972. msm_routing_get_audio_mixer,
  13973. msm_routing_put_audio_mixer),
  13974. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13975. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13976. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13977. msm_routing_get_audio_mixer,
  13978. msm_routing_put_audio_mixer),
  13979. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13980. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13981. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13982. msm_routing_put_audio_mixer),
  13983. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13984. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13985. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13986. msm_routing_put_audio_mixer),
  13987. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13988. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13989. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13990. msm_routing_put_audio_mixer),
  13991. };
  13992. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  13993. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13994. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13995. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13996. msm_routing_put_audio_mixer),
  13997. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13998. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13999. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14000. msm_routing_put_audio_mixer),
  14001. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14002. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14003. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14004. msm_routing_put_audio_mixer),
  14005. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14006. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14007. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14008. msm_routing_put_audio_mixer),
  14009. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14010. MSM_BACKEND_DAI_INT_FM_TX,
  14011. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14012. msm_routing_put_audio_mixer),
  14013. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14014. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14015. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14016. msm_routing_put_audio_mixer),
  14017. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14018. MSM_BACKEND_DAI_AFE_PCM_TX,
  14019. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14020. msm_routing_put_audio_mixer),
  14021. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14022. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14023. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14024. msm_routing_put_audio_mixer),
  14025. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14026. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14027. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14028. msm_routing_put_audio_mixer),
  14029. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14030. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14031. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14032. msm_routing_put_audio_mixer),
  14033. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14034. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14035. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14036. msm_routing_put_audio_mixer),
  14037. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14038. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14039. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14040. msm_routing_put_audio_mixer),
  14041. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14042. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14043. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14044. msm_routing_put_audio_mixer),
  14045. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14046. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14047. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14048. msm_routing_put_audio_mixer),
  14049. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14050. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14051. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14052. msm_routing_put_audio_mixer),
  14053. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14054. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14055. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14056. msm_routing_put_audio_mixer),
  14057. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14058. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14059. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14060. msm_routing_put_audio_mixer),
  14061. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14062. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14063. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14064. msm_routing_put_audio_mixer),
  14065. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14066. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14067. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14068. msm_routing_get_audio_mixer,
  14069. msm_routing_put_audio_mixer),
  14070. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14071. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14072. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14073. msm_routing_get_audio_mixer,
  14074. msm_routing_put_audio_mixer),
  14075. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14076. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14077. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14078. msm_routing_get_audio_mixer,
  14079. msm_routing_put_audio_mixer),
  14080. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14081. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14082. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14083. msm_routing_get_audio_mixer,
  14084. msm_routing_put_audio_mixer),
  14085. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14086. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14087. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14088. msm_routing_get_audio_mixer,
  14089. msm_routing_put_audio_mixer),
  14090. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14091. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14092. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14093. msm_routing_get_audio_mixer,
  14094. msm_routing_put_audio_mixer),
  14095. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14096. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14097. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14098. msm_routing_put_audio_mixer),
  14099. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14100. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14101. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14102. msm_routing_put_audio_mixer),
  14103. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14104. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14105. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14106. msm_routing_put_audio_mixer),
  14107. };
  14108. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  14109. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14110. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14111. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14112. msm_routing_put_audio_mixer),
  14113. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14114. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14115. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14116. msm_routing_put_audio_mixer),
  14117. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14118. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14119. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14120. msm_routing_put_audio_mixer),
  14121. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14122. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14123. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14124. msm_routing_put_audio_mixer),
  14125. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14126. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14127. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14128. msm_routing_put_audio_mixer),
  14129. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14130. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14131. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14132. msm_routing_put_audio_mixer),
  14133. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14134. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14135. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14136. msm_routing_put_audio_mixer),
  14137. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14138. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14139. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14140. msm_routing_put_audio_mixer),
  14141. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14142. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14143. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14144. msm_routing_put_audio_mixer),
  14145. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14146. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14147. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14148. msm_routing_put_audio_mixer),
  14149. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14150. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14151. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14152. msm_routing_put_audio_mixer),
  14153. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14154. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14155. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14156. msm_routing_put_audio_mixer),
  14157. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14158. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14159. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14160. msm_routing_put_audio_mixer),
  14161. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14162. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14163. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14164. msm_routing_put_audio_mixer),
  14165. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14166. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14167. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14168. msm_routing_put_audio_mixer),
  14169. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14170. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14171. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14172. msm_routing_put_audio_mixer),
  14173. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14174. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14175. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14176. msm_routing_put_audio_mixer),
  14177. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14178. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14179. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14180. msm_routing_put_audio_mixer),
  14181. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14182. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14183. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14184. msm_routing_put_audio_mixer),
  14185. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14186. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14187. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14188. msm_routing_put_audio_mixer),
  14189. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14190. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14191. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14192. msm_routing_put_audio_mixer),
  14193. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14194. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14195. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14196. msm_routing_put_audio_mixer),
  14197. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14198. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14199. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14200. msm_routing_put_audio_mixer),
  14201. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14202. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14203. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14204. msm_routing_put_audio_mixer),
  14205. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14206. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14207. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14208. msm_routing_put_audio_mixer),
  14209. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14210. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14211. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14212. msm_routing_put_audio_mixer),
  14213. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14214. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14215. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14216. msm_routing_put_audio_mixer),
  14217. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14218. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14219. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14220. msm_routing_put_audio_mixer),
  14221. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14222. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14223. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14224. msm_routing_put_audio_mixer),
  14225. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14226. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14227. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14228. msm_routing_put_audio_mixer),
  14229. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14230. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14231. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14232. msm_routing_put_audio_mixer),
  14233. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14234. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14235. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14236. msm_routing_put_audio_mixer),
  14237. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14238. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14239. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14240. msm_routing_put_audio_mixer),
  14241. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14242. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14243. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14244. msm_routing_put_audio_mixer),
  14245. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14246. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14247. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14248. msm_routing_put_audio_mixer),
  14249. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14250. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14251. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14252. msm_routing_put_audio_mixer),
  14253. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14254. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14255. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14256. msm_routing_put_audio_mixer),
  14257. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14258. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14259. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14260. msm_routing_put_audio_mixer),
  14261. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14262. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14263. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14264. msm_routing_put_audio_mixer),
  14265. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14266. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14267. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14268. msm_routing_put_audio_mixer),
  14269. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14270. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14271. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14272. msm_routing_put_audio_mixer),
  14273. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14274. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14275. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14276. msm_routing_put_audio_mixer),
  14277. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14278. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14279. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14280. msm_routing_put_audio_mixer),
  14281. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14282. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14283. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14284. msm_routing_put_audio_mixer),
  14285. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14286. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14287. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14288. msm_routing_put_audio_mixer),
  14289. };
  14290. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  14291. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14292. MSM_BACKEND_DAI_AUXPCM_TX,
  14293. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14294. msm_routing_put_audio_mixer),
  14295. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14296. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14297. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14298. msm_routing_put_audio_mixer),
  14299. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14300. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14301. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14302. msm_routing_put_audio_mixer),
  14303. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14304. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14305. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14306. msm_routing_put_audio_mixer),
  14307. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14308. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14309. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14310. msm_routing_put_audio_mixer),
  14311. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14312. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14313. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14314. msm_routing_put_audio_mixer),
  14315. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14316. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14317. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14318. msm_routing_put_audio_mixer),
  14319. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14320. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14321. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14322. msm_routing_put_audio_mixer),
  14323. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14324. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14325. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14326. msm_routing_put_audio_mixer),
  14327. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14328. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14329. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14330. msm_routing_put_audio_mixer),
  14331. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14332. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14333. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14334. msm_routing_put_audio_mixer),
  14335. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14336. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14337. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14338. msm_routing_put_audio_mixer),
  14339. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14340. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14341. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14342. msm_routing_put_audio_mixer),
  14343. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14344. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14345. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14346. msm_routing_put_audio_mixer),
  14347. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14348. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14349. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14350. msm_routing_put_audio_mixer),
  14351. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14352. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14353. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14354. msm_routing_put_audio_mixer),
  14355. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14356. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14357. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14358. msm_routing_put_audio_mixer),
  14359. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14360. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14361. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14362. msm_routing_put_audio_mixer),
  14363. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14364. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14365. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14366. msm_routing_put_audio_mixer),
  14367. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14368. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14369. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14370. msm_routing_put_audio_mixer),
  14371. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14372. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14373. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14374. msm_routing_put_audio_mixer),
  14375. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14376. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14377. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14378. msm_routing_put_audio_mixer),
  14379. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14380. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14381. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14382. msm_routing_put_audio_mixer),
  14383. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14384. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14385. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14386. msm_routing_put_audio_mixer),
  14387. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14388. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14389. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14390. msm_routing_put_audio_mixer),
  14391. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14392. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14393. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14394. msm_routing_put_audio_mixer),
  14395. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14396. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14397. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14398. msm_routing_put_audio_mixer),
  14399. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14400. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14401. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14402. msm_routing_put_audio_mixer),
  14403. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14404. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14405. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14406. msm_routing_put_audio_mixer),
  14407. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14408. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14409. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14410. msm_routing_put_audio_mixer),
  14411. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14412. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14413. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14414. msm_routing_put_audio_mixer),
  14415. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14416. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14417. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14418. msm_routing_put_audio_mixer),
  14419. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14420. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14421. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, 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_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14426. msm_routing_put_audio_mixer),
  14427. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14428. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14429. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14430. msm_routing_put_audio_mixer),
  14431. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14432. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14433. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14434. msm_routing_put_audio_mixer),
  14435. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14436. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14437. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14438. msm_routing_put_audio_mixer),
  14439. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14440. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14441. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14442. msm_routing_put_audio_mixer),
  14443. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14444. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14445. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14446. msm_routing_put_audio_mixer),
  14447. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14448. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14449. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14450. msm_routing_put_audio_mixer),
  14451. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14452. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14453. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14454. msm_routing_put_audio_mixer),
  14455. };
  14456. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  14457. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14458. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14459. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14460. msm_routing_put_audio_mixer),
  14461. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14462. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14463. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14464. msm_routing_put_audio_mixer),
  14465. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14466. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14467. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14468. msm_routing_put_audio_mixer),
  14469. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14470. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14471. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14472. msm_routing_put_audio_mixer),
  14473. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14474. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14475. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14476. msm_routing_put_audio_mixer),
  14477. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14478. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14479. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14480. msm_routing_put_audio_mixer),
  14481. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14482. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14483. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14484. msm_routing_put_audio_mixer),
  14485. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14486. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14487. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14488. msm_routing_put_audio_mixer),
  14489. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14490. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14491. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14492. msm_routing_put_audio_mixer),
  14493. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14494. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14495. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14496. msm_routing_put_audio_mixer),
  14497. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14498. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14499. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14500. msm_routing_put_audio_mixer),
  14501. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14502. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14503. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14504. msm_routing_put_audio_mixer),
  14505. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14506. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14507. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14508. msm_routing_put_audio_mixer),
  14509. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14510. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14511. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14512. msm_routing_put_audio_mixer),
  14513. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14514. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14515. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14516. msm_routing_put_audio_mixer),
  14517. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14518. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14519. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14520. msm_routing_put_audio_mixer),
  14521. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14522. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14523. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14524. msm_routing_put_audio_mixer),
  14525. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14526. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14527. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14528. msm_routing_put_audio_mixer),
  14529. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14530. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14531. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14532. msm_routing_put_audio_mixer),
  14533. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14534. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14535. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14536. msm_routing_put_audio_mixer),
  14537. };
  14538. static const struct snd_kcontrol_new mmul23_mixer_controls[] = {
  14539. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14540. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14541. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14542. msm_routing_put_audio_mixer),
  14543. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14544. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14545. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14546. msm_routing_put_audio_mixer),
  14547. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14548. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14549. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14550. msm_routing_put_audio_mixer),
  14551. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14552. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14553. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14554. msm_routing_put_audio_mixer),
  14555. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14556. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14557. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14558. msm_routing_put_audio_mixer),
  14559. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14560. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14561. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14562. msm_routing_put_audio_mixer),
  14563. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14564. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14565. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14566. msm_routing_put_audio_mixer),
  14567. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14568. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14569. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14570. msm_routing_put_audio_mixer),
  14571. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14572. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14573. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14574. msm_routing_put_audio_mixer),
  14575. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14576. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14577. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14578. msm_routing_put_audio_mixer),
  14579. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14580. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14581. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14582. msm_routing_put_audio_mixer),
  14583. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14584. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14585. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14586. msm_routing_put_audio_mixer),
  14587. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14588. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14589. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14590. msm_routing_put_audio_mixer),
  14591. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14592. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14593. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14594. msm_routing_put_audio_mixer),
  14595. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14596. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14597. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14598. msm_routing_put_audio_mixer),
  14599. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14600. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14601. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14602. msm_routing_put_audio_mixer),
  14603. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14604. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14605. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14606. msm_routing_put_audio_mixer),
  14607. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14608. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14609. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14610. msm_routing_put_audio_mixer),
  14611. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14612. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14613. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14614. msm_routing_put_audio_mixer),
  14615. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14616. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14617. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14618. msm_routing_put_audio_mixer),
  14619. };
  14620. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  14621. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14622. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14623. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14624. msm_routing_put_audio_mixer),
  14625. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14626. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14627. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14628. msm_routing_put_audio_mixer),
  14629. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  14630. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  14631. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14632. msm_routing_put_audio_mixer),
  14633. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14634. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14635. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14636. msm_routing_put_audio_mixer),
  14637. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14638. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14639. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14640. msm_routing_put_audio_mixer),
  14641. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14642. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14643. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14644. msm_routing_put_audio_mixer),
  14645. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14646. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14647. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14648. msm_routing_put_audio_mixer),
  14649. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14650. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14651. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14652. msm_routing_put_audio_mixer),
  14653. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14654. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14655. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14656. msm_routing_put_audio_mixer),
  14657. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14658. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14659. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14660. msm_routing_put_audio_mixer),
  14661. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14662. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14663. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14664. msm_routing_put_audio_mixer),
  14665. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14666. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14667. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14668. msm_routing_put_audio_mixer),
  14669. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14670. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14671. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14672. msm_routing_put_audio_mixer),
  14673. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14674. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14675. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14676. msm_routing_put_audio_mixer),
  14677. };
  14678. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  14679. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14680. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14681. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14682. msm_routing_put_audio_mixer),
  14683. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14684. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14685. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14686. msm_routing_put_audio_mixer),
  14687. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14688. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14689. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14690. msm_routing_put_audio_mixer),
  14691. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14692. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14693. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14694. msm_routing_put_audio_mixer),
  14695. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14696. MSM_BACKEND_DAI_INT_FM_TX,
  14697. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14698. msm_routing_put_audio_mixer),
  14699. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14700. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14701. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14702. msm_routing_put_audio_mixer),
  14703. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14704. MSM_BACKEND_DAI_AFE_PCM_TX,
  14705. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14706. msm_routing_put_audio_mixer),
  14707. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14708. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14709. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14710. msm_routing_put_audio_mixer),
  14711. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14712. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14713. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14714. msm_routing_put_audio_mixer),
  14715. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14716. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14717. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14718. msm_routing_put_audio_mixer),
  14719. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14720. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14721. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14722. msm_routing_put_audio_mixer),
  14723. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14724. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14725. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14726. msm_routing_put_audio_mixer),
  14727. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14728. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14729. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14730. msm_routing_put_audio_mixer),
  14731. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14732. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14733. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14734. msm_routing_put_audio_mixer),
  14735. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14736. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14737. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14738. msm_routing_put_audio_mixer),
  14739. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14740. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14741. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14742. msm_routing_put_audio_mixer),
  14743. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14744. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14745. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14746. msm_routing_put_audio_mixer),
  14747. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14748. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14749. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14750. msm_routing_put_audio_mixer),
  14751. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14752. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14753. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14754. msm_routing_get_audio_mixer,
  14755. msm_routing_put_audio_mixer),
  14756. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14757. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14758. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14759. msm_routing_get_audio_mixer,
  14760. msm_routing_put_audio_mixer),
  14761. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14762. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14763. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14764. msm_routing_get_audio_mixer,
  14765. msm_routing_put_audio_mixer),
  14766. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14767. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14768. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14769. msm_routing_get_audio_mixer,
  14770. msm_routing_put_audio_mixer),
  14771. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14772. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14773. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14774. msm_routing_get_audio_mixer,
  14775. msm_routing_put_audio_mixer),
  14776. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14777. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14778. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14779. msm_routing_get_audio_mixer,
  14780. msm_routing_put_audio_mixer),
  14781. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14782. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14783. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14784. msm_routing_put_audio_mixer),
  14785. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14786. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14787. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14788. msm_routing_put_audio_mixer),
  14789. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14790. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14791. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14792. msm_routing_put_audio_mixer),
  14793. };
  14794. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  14795. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14796. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14797. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14798. msm_routing_put_audio_mixer),
  14799. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14800. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14801. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14802. msm_routing_put_audio_mixer),
  14803. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14804. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14805. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14806. msm_routing_put_audio_mixer),
  14807. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14808. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14809. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14810. msm_routing_put_audio_mixer),
  14811. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14812. MSM_BACKEND_DAI_INT_FM_TX,
  14813. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14814. msm_routing_put_audio_mixer),
  14815. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14816. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14817. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14818. msm_routing_put_audio_mixer),
  14819. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14820. MSM_BACKEND_DAI_AFE_PCM_TX,
  14821. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14822. msm_routing_put_audio_mixer),
  14823. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14824. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14825. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14826. msm_routing_put_audio_mixer),
  14827. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14828. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14829. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14830. msm_routing_put_audio_mixer),
  14831. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14832. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14833. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14834. msm_routing_put_audio_mixer),
  14835. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14836. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14837. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14838. msm_routing_put_audio_mixer),
  14839. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14840. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14841. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14842. msm_routing_put_audio_mixer),
  14843. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14844. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14845. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14846. msm_routing_put_audio_mixer),
  14847. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14848. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14849. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14850. msm_routing_put_audio_mixer),
  14851. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14852. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14853. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14854. msm_routing_put_audio_mixer),
  14855. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14856. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14857. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14858. msm_routing_put_audio_mixer),
  14859. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14860. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14861. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14862. msm_routing_put_audio_mixer),
  14863. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14864. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14865. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14866. msm_routing_put_audio_mixer),
  14867. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14868. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14869. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14870. msm_routing_get_audio_mixer,
  14871. msm_routing_put_audio_mixer),
  14872. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14873. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14874. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14875. msm_routing_get_audio_mixer,
  14876. msm_routing_put_audio_mixer),
  14877. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14878. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14879. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14880. msm_routing_get_audio_mixer,
  14881. msm_routing_put_audio_mixer),
  14882. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14883. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14884. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14885. msm_routing_get_audio_mixer,
  14886. msm_routing_put_audio_mixer),
  14887. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14888. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14889. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14890. msm_routing_get_audio_mixer,
  14891. msm_routing_put_audio_mixer),
  14892. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14893. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14894. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14895. msm_routing_get_audio_mixer,
  14896. msm_routing_put_audio_mixer),
  14897. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14898. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14899. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14900. msm_routing_put_audio_mixer),
  14901. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14902. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14903. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14904. msm_routing_put_audio_mixer),
  14905. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14906. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14907. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14908. msm_routing_put_audio_mixer),
  14909. };
  14910. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  14911. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14912. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14913. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14914. msm_routing_put_audio_mixer),
  14915. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14916. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14917. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14918. msm_routing_put_audio_mixer),
  14919. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14920. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14921. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14922. msm_routing_put_audio_mixer),
  14923. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14924. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14925. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14926. msm_routing_put_audio_mixer),
  14927. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14928. MSM_BACKEND_DAI_INT_FM_TX,
  14929. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14930. msm_routing_put_audio_mixer),
  14931. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14932. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14933. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14934. msm_routing_put_audio_mixer),
  14935. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14936. MSM_BACKEND_DAI_AFE_PCM_TX,
  14937. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14938. msm_routing_put_audio_mixer),
  14939. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14940. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14941. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14942. msm_routing_put_audio_mixer),
  14943. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14944. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14945. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14946. msm_routing_put_audio_mixer),
  14947. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14948. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14949. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14950. msm_routing_put_audio_mixer),
  14951. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14952. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14953. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14954. msm_routing_put_audio_mixer),
  14955. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14956. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14957. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14958. msm_routing_put_audio_mixer),
  14959. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14960. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14961. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14962. msm_routing_put_audio_mixer),
  14963. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14964. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14965. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14966. msm_routing_put_audio_mixer),
  14967. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14968. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14969. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14970. msm_routing_put_audio_mixer),
  14971. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14972. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14973. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14974. msm_routing_put_audio_mixer),
  14975. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14976. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14977. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14978. msm_routing_put_audio_mixer),
  14979. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14980. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14981. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14982. msm_routing_get_audio_mixer,
  14983. msm_routing_put_audio_mixer),
  14984. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14985. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14986. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14987. msm_routing_get_audio_mixer,
  14988. msm_routing_put_audio_mixer),
  14989. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14990. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14991. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14992. msm_routing_get_audio_mixer,
  14993. msm_routing_put_audio_mixer),
  14994. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14995. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14996. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14997. msm_routing_get_audio_mixer,
  14998. msm_routing_put_audio_mixer),
  14999. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15001. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15002. msm_routing_get_audio_mixer,
  15003. msm_routing_put_audio_mixer),
  15004. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15005. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15006. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15007. msm_routing_get_audio_mixer,
  15008. msm_routing_put_audio_mixer),
  15009. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15010. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15011. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15012. msm_routing_put_audio_mixer),
  15013. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15014. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15015. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15016. msm_routing_put_audio_mixer),
  15017. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15018. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15019. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15020. msm_routing_put_audio_mixer),
  15021. };
  15022. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  15023. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15024. MSM_BACKEND_DAI_PRI_I2S_RX,
  15025. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15026. msm_routing_put_voice_mixer),
  15027. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15028. MSM_BACKEND_DAI_PRI_I2S_RX,
  15029. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15030. msm_routing_put_voice_mixer),
  15031. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15032. MSM_BACKEND_DAI_PRI_I2S_RX,
  15033. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15034. msm_routing_put_voice_mixer),
  15035. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15036. MSM_BACKEND_DAI_PRI_I2S_RX,
  15037. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15038. msm_routing_put_voice_mixer),
  15039. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15040. MSM_BACKEND_DAI_PRI_I2S_RX,
  15041. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15042. msm_routing_put_voice_mixer),
  15043. };
  15044. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  15045. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15046. MSM_BACKEND_DAI_SEC_I2S_RX,
  15047. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15048. msm_routing_put_voice_mixer),
  15049. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15050. MSM_BACKEND_DAI_SEC_I2S_RX,
  15051. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15052. msm_routing_put_voice_mixer),
  15053. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15054. MSM_BACKEND_DAI_SEC_I2S_RX,
  15055. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15056. msm_routing_put_voice_mixer),
  15057. };
  15058. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  15059. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15060. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15061. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15062. msm_routing_put_voice_mixer),
  15063. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15064. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15065. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15066. msm_routing_put_voice_mixer),
  15067. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15068. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15069. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15070. msm_routing_put_voice_mixer),
  15071. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15072. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15073. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15074. msm_routing_put_voice_mixer),
  15075. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15076. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15077. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15078. msm_routing_put_voice_mixer),
  15079. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15080. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15081. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15082. msm_routing_put_voice_mixer),
  15083. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15084. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15085. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15086. msm_routing_put_voice_mixer),
  15087. };
  15088. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  15089. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15090. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15091. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15092. msm_routing_put_voice_mixer),
  15093. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15094. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15095. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15096. msm_routing_put_voice_mixer),
  15097. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15098. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15099. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15100. msm_routing_put_voice_mixer),
  15101. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15102. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15103. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15104. msm_routing_put_voice_mixer),
  15105. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15106. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15107. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15108. msm_routing_put_voice_mixer),
  15109. };
  15110. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  15111. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15112. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15113. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15114. msm_routing_put_voice_mixer),
  15115. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15116. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15117. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15118. msm_routing_put_voice_mixer),
  15119. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15120. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15121. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15122. msm_routing_put_voice_mixer),
  15123. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15124. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15125. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15126. msm_routing_put_voice_mixer),
  15127. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15128. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15129. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15130. msm_routing_put_voice_mixer),
  15131. };
  15132. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  15133. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15134. MSM_BACKEND_DAI_USB_RX,
  15135. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15136. msm_routing_put_voice_mixer),
  15137. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15138. MSM_BACKEND_DAI_USB_RX,
  15139. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15140. msm_routing_put_voice_mixer),
  15141. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15142. MSM_BACKEND_DAI_USB_RX,
  15143. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15144. msm_routing_put_voice_mixer),
  15145. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15146. MSM_BACKEND_DAI_USB_RX,
  15147. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15148. msm_routing_put_voice_mixer),
  15149. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15150. MSM_BACKEND_DAI_USB_RX,
  15151. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15152. msm_routing_put_voice_mixer),
  15153. };
  15154. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  15155. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15156. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15157. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15158. msm_routing_put_voice_mixer),
  15159. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15160. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15161. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15162. msm_routing_put_voice_mixer),
  15163. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15164. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15165. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15166. msm_routing_put_voice_mixer),
  15167. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15168. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15169. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15170. msm_routing_put_voice_mixer),
  15171. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15172. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15173. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15174. msm_routing_put_voice_mixer),
  15175. };
  15176. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  15177. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15178. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15179. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15180. msm_routing_put_voice_mixer),
  15181. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15182. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15183. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15184. msm_routing_put_voice_mixer),
  15185. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15186. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15187. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15188. msm_routing_put_voice_mixer),
  15189. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15190. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15191. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15192. msm_routing_put_voice_mixer),
  15193. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15194. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15195. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15196. msm_routing_put_voice_mixer),
  15197. };
  15198. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  15199. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15200. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15201. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15202. msm_routing_put_voice_mixer),
  15203. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15204. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15205. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15206. msm_routing_put_voice_mixer),
  15207. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15208. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15209. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15210. msm_routing_put_voice_mixer),
  15211. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15212. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15213. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15214. msm_routing_put_voice_mixer),
  15215. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15216. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15217. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15218. msm_routing_put_voice_mixer),
  15219. };
  15220. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  15221. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15222. MSM_BACKEND_DAI_MI2S_RX,
  15223. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15224. msm_routing_put_voice_mixer),
  15225. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15226. MSM_BACKEND_DAI_MI2S_RX,
  15227. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15228. msm_routing_put_voice_mixer),
  15229. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15230. MSM_BACKEND_DAI_MI2S_RX,
  15231. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15232. msm_routing_put_voice_mixer),
  15233. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15234. MSM_BACKEND_DAI_MI2S_RX,
  15235. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15236. msm_routing_put_voice_mixer),
  15237. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15238. MSM_BACKEND_DAI_MI2S_RX,
  15239. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15240. msm_routing_put_voice_mixer),
  15241. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15242. MSM_BACKEND_DAI_MI2S_RX,
  15243. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15244. msm_routing_put_voice_mixer),
  15245. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15246. MSM_BACKEND_DAI_MI2S_RX,
  15247. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15248. msm_routing_put_voice_mixer),
  15249. };
  15250. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  15251. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15252. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15253. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15254. msm_routing_put_voice_mixer),
  15255. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15256. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15257. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15258. msm_routing_put_voice_mixer),
  15259. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15260. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15261. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15262. msm_routing_put_voice_mixer),
  15263. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15264. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15265. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15266. msm_routing_put_voice_mixer),
  15267. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15268. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15269. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15270. msm_routing_put_voice_mixer),
  15271. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15272. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15273. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15274. msm_routing_put_voice_mixer),
  15275. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15276. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15277. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15278. msm_routing_put_voice_mixer),
  15279. };
  15280. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  15281. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15282. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15283. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15284. msm_routing_put_voice_mixer),
  15285. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15286. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15287. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15288. msm_routing_put_voice_mixer),
  15289. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15290. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15291. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15292. msm_routing_put_voice_mixer),
  15293. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15294. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15295. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15296. msm_routing_put_voice_mixer),
  15297. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15298. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15299. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15300. msm_routing_put_voice_mixer),
  15301. };
  15302. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  15303. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15304. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15305. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15306. msm_routing_put_voice_mixer),
  15307. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15308. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15309. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15310. msm_routing_put_voice_mixer),
  15311. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15312. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15313. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15314. msm_routing_put_voice_mixer),
  15315. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15316. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15317. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15318. msm_routing_put_voice_mixer),
  15319. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15320. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15321. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15322. msm_routing_put_voice_mixer),
  15323. };
  15324. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  15325. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15326. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15327. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15328. msm_routing_put_voice_mixer),
  15329. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15330. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15331. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15332. msm_routing_put_voice_mixer),
  15333. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15334. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15335. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15336. msm_routing_put_voice_mixer),
  15337. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15338. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15339. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15340. msm_routing_put_voice_mixer),
  15341. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15342. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15343. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15344. msm_routing_put_voice_mixer),
  15345. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15346. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15347. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15348. msm_routing_put_voice_mixer),
  15349. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15350. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15351. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15352. msm_routing_put_voice_mixer),
  15353. };
  15354. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  15355. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15356. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15357. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15358. msm_routing_put_voice_mixer),
  15359. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15360. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15361. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15362. msm_routing_put_voice_mixer),
  15363. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15364. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15365. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15366. msm_routing_put_voice_mixer),
  15367. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15368. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15369. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15370. msm_routing_put_voice_mixer),
  15371. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15372. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15373. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15374. msm_routing_put_voice_mixer),
  15375. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15376. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15377. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15378. msm_routing_put_voice_mixer),
  15379. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15380. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15381. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15382. msm_routing_put_voice_mixer),
  15383. };
  15384. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  15385. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15386. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15387. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15388. msm_routing_put_voice_mixer),
  15389. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15390. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15391. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15392. msm_routing_put_voice_stub_mixer),
  15393. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15394. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15395. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15396. msm_routing_put_voice_stub_mixer),
  15397. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15398. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15399. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15400. msm_routing_put_voice_mixer),
  15401. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15402. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15403. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15404. msm_routing_put_voice_mixer),
  15405. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15406. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15407. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15408. msm_routing_put_voice_mixer),
  15409. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15410. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15411. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15412. msm_routing_put_voice_mixer),
  15413. };
  15414. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  15415. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15416. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15417. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15418. msm_routing_put_voice_mixer),
  15419. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15420. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15421. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15422. msm_routing_put_voice_mixer),
  15423. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15424. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15425. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15426. msm_routing_put_voice_mixer),
  15427. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15428. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15429. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15430. msm_routing_put_voice_mixer),
  15431. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15432. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15433. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15434. msm_routing_put_voice_mixer),
  15435. };
  15436. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  15437. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15438. MSM_BACKEND_DAI_AFE_PCM_RX,
  15439. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15440. msm_routing_put_voice_mixer),
  15441. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15442. MSM_BACKEND_DAI_AFE_PCM_RX,
  15443. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15444. msm_routing_put_voice_mixer),
  15445. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15446. MSM_BACKEND_DAI_AFE_PCM_RX,
  15447. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15448. msm_routing_put_voice_mixer),
  15449. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15450. MSM_BACKEND_DAI_AFE_PCM_RX,
  15451. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15452. msm_routing_put_voice_mixer),
  15453. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15454. MSM_BACKEND_DAI_AFE_PCM_RX,
  15455. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15456. msm_routing_put_voice_mixer),
  15457. };
  15458. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  15459. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15460. MSM_BACKEND_DAI_AUXPCM_RX,
  15461. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15462. msm_routing_put_voice_mixer),
  15463. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15464. MSM_BACKEND_DAI_AUXPCM_RX,
  15465. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15466. msm_routing_put_voice_mixer),
  15467. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15468. MSM_BACKEND_DAI_AUXPCM_RX,
  15469. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15470. msm_routing_put_voice_mixer),
  15471. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15472. MSM_BACKEND_DAI_AUXPCM_RX,
  15473. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15474. msm_routing_put_voice_mixer),
  15475. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15476. MSM_BACKEND_DAI_AUXPCM_RX,
  15477. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15478. msm_routing_put_voice_mixer),
  15479. };
  15480. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  15481. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15482. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15483. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15484. msm_routing_put_voice_mixer),
  15485. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15486. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15487. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15488. msm_routing_put_voice_mixer),
  15489. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15490. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15491. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15492. msm_routing_put_voice_mixer),
  15493. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15494. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15495. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15496. msm_routing_put_voice_mixer),
  15497. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15498. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15499. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15500. msm_routing_put_voice_mixer),
  15501. };
  15502. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  15503. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15504. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15505. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15506. msm_routing_put_voice_mixer),
  15507. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15508. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15509. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15510. msm_routing_put_voice_mixer),
  15511. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15512. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15513. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15514. msm_routing_put_voice_mixer),
  15515. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15516. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15517. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15518. msm_routing_put_voice_mixer),
  15519. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15520. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15521. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15522. msm_routing_put_voice_mixer),
  15523. };
  15524. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  15525. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15526. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15527. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15528. msm_routing_put_voice_mixer),
  15529. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15530. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15531. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15532. msm_routing_put_voice_mixer),
  15533. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15534. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15535. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15536. msm_routing_put_voice_mixer),
  15537. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15538. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15539. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15540. msm_routing_put_voice_mixer),
  15541. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15542. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15543. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15544. msm_routing_put_voice_mixer),
  15545. };
  15546. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  15547. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15548. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15549. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15550. msm_routing_put_voice_mixer),
  15551. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15552. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15553. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15554. msm_routing_put_voice_mixer),
  15555. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15556. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15557. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15558. msm_routing_put_voice_mixer),
  15559. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15560. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15561. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15562. msm_routing_put_voice_mixer),
  15563. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15564. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15565. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15566. msm_routing_put_voice_mixer),
  15567. };
  15568. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  15569. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15570. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15571. msm_routing_put_voice_mixer),
  15572. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15573. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15574. msm_routing_put_voice_mixer),
  15575. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15576. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15577. msm_routing_put_voice_mixer),
  15578. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15579. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15580. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15581. msm_routing_put_voice_mixer),
  15582. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15583. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15584. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15585. msm_routing_put_voice_mixer),
  15586. };
  15587. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  15588. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15589. MSM_BACKEND_DAI_HDMI_RX,
  15590. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15591. msm_routing_put_voice_mixer),
  15592. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15593. MSM_BACKEND_DAI_HDMI_RX,
  15594. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15595. msm_routing_put_voice_mixer),
  15596. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15597. MSM_BACKEND_DAI_HDMI_RX,
  15598. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15599. msm_routing_put_voice_mixer),
  15600. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15601. MSM_BACKEND_DAI_HDMI_RX,
  15602. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15603. msm_routing_put_voice_mixer),
  15604. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15605. MSM_BACKEND_DAI_HDMI_RX,
  15606. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15607. msm_routing_put_voice_mixer),
  15608. };
  15609. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  15610. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15611. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15612. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15613. msm_routing_put_voice_mixer),
  15614. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15615. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15616. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15617. msm_routing_put_voice_mixer),
  15618. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15619. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15620. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15621. msm_routing_put_voice_mixer),
  15622. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15623. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15624. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15625. msm_routing_put_voice_mixer),
  15626. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15627. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15628. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15629. msm_routing_put_voice_mixer),
  15630. };
  15631. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  15632. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15633. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15634. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15635. msm_routing_put_voice_mixer),
  15636. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15637. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15638. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15639. msm_routing_put_voice_mixer),
  15640. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15641. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15642. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15643. msm_routing_put_voice_mixer),
  15644. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15645. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15646. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15647. msm_routing_put_voice_mixer),
  15648. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15649. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15650. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15651. msm_routing_put_voice_mixer),
  15652. };
  15653. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  15654. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15655. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15656. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15657. msm_routing_put_voice_mixer),
  15658. };
  15659. static const struct snd_kcontrol_new quin_tdm_rx_2_voice_mixer_controls[] = {
  15660. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15661. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15662. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15663. msm_routing_put_voice_mixer),
  15664. };
  15665. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  15666. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15667. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15668. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15669. msm_routing_put_voice_mixer),
  15670. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15671. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15672. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15673. msm_routing_put_voice_mixer),
  15674. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15675. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15676. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15677. msm_routing_put_voice_mixer),
  15678. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15679. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15680. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15681. msm_routing_put_voice_mixer),
  15682. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15683. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15684. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15685. msm_routing_put_voice_mixer),
  15686. };
  15687. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  15688. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15689. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15690. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15691. msm_routing_put_voice_mixer),
  15692. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15693. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15694. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15695. msm_routing_put_voice_mixer),
  15696. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15697. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15698. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15699. msm_routing_put_voice_mixer),
  15700. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15701. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15702. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15703. msm_routing_put_voice_mixer),
  15704. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15705. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15706. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15707. msm_routing_put_voice_mixer),
  15708. };
  15709. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  15710. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15711. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15712. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15713. msm_routing_put_voice_mixer),
  15714. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15715. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15716. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15717. msm_routing_put_voice_mixer),
  15718. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15719. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15720. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15721. msm_routing_put_voice_mixer),
  15722. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15723. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15724. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15725. msm_routing_put_voice_mixer),
  15726. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15727. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15728. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15729. msm_routing_put_voice_mixer),
  15730. };
  15731. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  15732. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15733. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15734. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15735. msm_routing_put_voice_mixer),
  15736. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15737. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15738. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15739. msm_routing_put_voice_mixer),
  15740. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15741. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15742. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15743. msm_routing_put_voice_mixer),
  15744. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15745. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15746. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15747. msm_routing_put_voice_mixer),
  15748. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15749. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15750. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15751. msm_routing_put_voice_mixer),
  15752. };
  15753. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  15754. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15755. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15756. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15757. msm_routing_put_voice_mixer),
  15758. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15759. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15760. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15761. msm_routing_put_voice_mixer),
  15762. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15763. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15764. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15765. msm_routing_put_voice_mixer),
  15766. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15767. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15768. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15769. msm_routing_put_voice_mixer),
  15770. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15771. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15772. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15773. msm_routing_put_voice_mixer),
  15774. };
  15775. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  15776. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15777. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15778. MSM_FRONTEND_DAI_VOIP, 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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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 rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  15798. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15799. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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 rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  15820. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15821. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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 rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  15842. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15843. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15844. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15845. msm_routing_put_voice_mixer),
  15846. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15847. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15848. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15849. msm_routing_put_voice_mixer),
  15850. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15851. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15852. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15853. msm_routing_put_voice_mixer),
  15854. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15855. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15856. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15857. msm_routing_put_voice_mixer),
  15858. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15859. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15860. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15861. msm_routing_put_voice_mixer),
  15862. };
  15863. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  15864. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15865. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15866. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15867. msm_routing_put_voice_mixer),
  15868. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15869. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15870. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15871. msm_routing_put_voice_mixer),
  15872. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15873. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15874. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15875. msm_routing_put_voice_mixer),
  15876. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15877. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15878. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15879. msm_routing_put_voice_mixer),
  15880. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15881. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15882. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15883. msm_routing_put_voice_mixer),
  15884. };
  15885. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  15886. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15887. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15888. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15889. msm_routing_put_voice_mixer),
  15890. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15891. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15892. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15893. msm_routing_put_voice_stub_mixer),
  15894. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15895. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15896. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15897. msm_routing_put_voice_stub_mixer),
  15898. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15899. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15900. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15901. msm_routing_put_voice_mixer),
  15902. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15903. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15904. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15905. msm_routing_put_voice_mixer),
  15906. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15907. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15908. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15909. msm_routing_put_voice_mixer),
  15910. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15911. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15912. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15913. msm_routing_put_voice_mixer),
  15914. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15915. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15916. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15917. msm_routing_put_voice_mixer),
  15918. };
  15919. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  15920. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15921. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15922. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15923. msm_routing_put_voice_mixer),
  15924. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15925. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15926. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15927. msm_routing_put_voice_stub_mixer),
  15928. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15929. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15930. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15931. msm_routing_put_voice_stub_mixer),
  15932. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15933. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15934. MSM_FRONTEND_DAI_VOLTE_STUB, 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_PRI_TDM_RX_1,
  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_PRI_TDM_RX_1,
  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_PRI_TDM_RX_1,
  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_PRI_TDM_RX_1,
  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 pri_tdm_rx_2_voice_mixer_controls[] = {
  15954. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15955. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15956. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15957. msm_routing_put_voice_mixer),
  15958. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15959. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15960. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15961. msm_routing_put_voice_stub_mixer),
  15962. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15963. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15964. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15965. msm_routing_put_voice_stub_mixer),
  15966. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15967. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15968. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15969. msm_routing_put_voice_mixer),
  15970. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15971. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15972. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15973. msm_routing_put_voice_mixer),
  15974. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15975. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15976. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15977. msm_routing_put_voice_mixer),
  15978. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15979. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15980. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15981. msm_routing_put_voice_mixer),
  15982. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15983. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15984. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15985. msm_routing_put_voice_mixer),
  15986. };
  15987. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  15988. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15989. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15990. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15991. msm_routing_put_voice_mixer),
  15992. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15993. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15994. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15995. msm_routing_put_voice_stub_mixer),
  15996. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15997. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15998. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15999. msm_routing_put_voice_stub_mixer),
  16000. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16001. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16002. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16003. msm_routing_put_voice_mixer),
  16004. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16005. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16006. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16007. msm_routing_put_voice_mixer),
  16008. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16009. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16010. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16011. msm_routing_put_voice_mixer),
  16012. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16013. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16014. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16015. msm_routing_put_voice_mixer),
  16016. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16017. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16018. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16019. msm_routing_put_voice_mixer),
  16020. };
  16021. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  16022. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16023. MSM_BACKEND_DAI_EXTPROC_RX,
  16024. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16025. msm_routing_put_voice_mixer),
  16026. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16027. MSM_BACKEND_DAI_EXTPROC_RX,
  16028. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16029. msm_routing_put_voice_mixer),
  16030. };
  16031. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  16032. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16033. MSM_BACKEND_DAI_SLIMBUS_1_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_SLIMBUS_1_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 slimbus_3_rx_mixer_controls[] = {
  16042. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16043. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16044. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16045. msm_routing_put_voice_mixer),
  16046. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16047. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16048. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16049. msm_routing_put_voice_mixer),
  16050. };
  16051. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  16052. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  16053. MSM_BACKEND_DAI_PRI_I2S_TX,
  16054. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16055. msm_routing_put_voice_mixer),
  16056. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  16057. MSM_BACKEND_DAI_MI2S_TX,
  16058. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16059. msm_routing_put_voice_mixer),
  16060. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  16061. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16062. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16063. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  16064. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16065. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16066. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  16067. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16068. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16069. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16070. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16071. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16072. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16073. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16074. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16075. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16076. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16077. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16078. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16079. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16080. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16081. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16082. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16083. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16084. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16085. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16086. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16087. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  16088. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16089. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16090. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  16091. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16092. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16093. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16094. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16095. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16096. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  16097. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16098. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16099. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  16100. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16101. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16102. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  16103. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16104. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16105. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  16106. MSM_BACKEND_DAI_USB_TX,
  16107. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16108. msm_routing_put_voice_mixer),
  16109. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  16110. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16111. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16112. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16113. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16114. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16115. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16116. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16117. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16118. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16119. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16120. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16121. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16122. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16123. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16124. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16125. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16126. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16127. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16128. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16129. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16130. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  16131. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16132. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16133. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  16134. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  16135. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16136. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  16137. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  16138. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16139. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16140. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16141. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16142. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  16143. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16144. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16145. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  16146. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16147. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16148. };
  16149. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  16150. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  16151. MSM_BACKEND_DAI_PRI_I2S_TX,
  16152. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16153. msm_routing_put_voice_mixer),
  16154. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  16155. MSM_BACKEND_DAI_MI2S_TX,
  16156. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16157. msm_routing_put_voice_mixer),
  16158. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  16159. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16160. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16161. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  16162. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16163. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16164. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  16165. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16166. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16167. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16168. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16169. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16170. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16171. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16172. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16173. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16174. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16175. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16176. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16177. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16178. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16179. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16180. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16181. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16182. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16183. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16184. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16185. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  16186. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16187. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16188. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  16189. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16190. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16191. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16192. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16193. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16194. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  16195. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16196. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16197. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  16198. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16199. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16200. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  16201. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16202. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16203. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  16204. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16205. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16206. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16207. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16208. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16209. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16210. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16211. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16212. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16213. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16214. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16215. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16216. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16217. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16218. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16219. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16220. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16221. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16222. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16223. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16224. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  16225. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16226. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16227. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  16228. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  16229. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16230. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  16231. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  16232. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16233. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16234. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16235. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16236. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  16237. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16238. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16239. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  16240. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16241. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16242. };
  16243. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  16244. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  16245. MSM_BACKEND_DAI_PRI_I2S_TX,
  16246. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16247. msm_routing_put_voice_mixer),
  16248. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  16249. MSM_BACKEND_DAI_MI2S_TX,
  16250. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16251. msm_routing_put_voice_mixer),
  16252. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  16253. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16254. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16255. msm_routing_put_voice_mixer),
  16256. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  16257. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16258. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16259. msm_routing_put_voice_mixer),
  16260. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  16261. MSM_BACKEND_DAI_AFE_PCM_TX,
  16262. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16263. msm_routing_put_voice_mixer),
  16264. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16265. MSM_BACKEND_DAI_AUXPCM_TX,
  16266. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16267. msm_routing_put_voice_mixer),
  16268. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16269. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16270. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16271. msm_routing_put_voice_mixer),
  16272. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16273. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16274. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16275. msm_routing_put_voice_mixer),
  16276. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16277. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16278. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16279. msm_routing_put_voice_mixer),
  16280. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16281. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16282. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16283. msm_routing_put_voice_mixer),
  16284. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16285. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16286. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16287. msm_routing_put_voice_mixer),
  16288. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  16289. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16290. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16291. msm_routing_put_voice_mixer),
  16292. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  16293. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  16294. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16295. msm_routing_put_voice_mixer),
  16296. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  16297. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16298. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16299. msm_routing_put_voice_mixer),
  16300. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  16301. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16302. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16303. msm_routing_put_voice_mixer),
  16304. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  16305. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16306. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16307. msm_routing_put_voice_mixer),
  16308. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  16309. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16310. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16311. msm_routing_put_voice_mixer),
  16312. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  16313. MSM_BACKEND_DAI_USB_TX,
  16314. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16315. msm_routing_put_voice_mixer),
  16316. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16317. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16318. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16319. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16320. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16321. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16322. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16323. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16324. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16325. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16326. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16327. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16328. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16329. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16330. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16331. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16332. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16333. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16334. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  16335. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  16336. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16337. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  16338. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  16339. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16340. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  16341. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  16342. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16343. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  16344. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16345. msm_routing_put_voice_mixer),
  16346. };
  16347. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  16348. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16349. MSM_BACKEND_DAI_EXTPROC_TX,
  16350. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16351. msm_routing_put_voice_stub_mixer),
  16352. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16353. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16354. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16355. msm_routing_put_voice_stub_mixer),
  16356. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16357. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16358. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16359. msm_routing_put_voice_stub_mixer),
  16360. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16361. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16362. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16363. msm_routing_put_voice_stub_mixer),
  16364. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16365. MSM_BACKEND_DAI_MI2S_TX,
  16366. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16367. msm_routing_put_voice_stub_mixer),
  16368. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16369. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16370. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16371. msm_routing_put_voice_stub_mixer),
  16372. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16373. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16374. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16375. msm_routing_put_voice_stub_mixer),
  16376. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16377. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16378. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16379. msm_routing_put_voice_stub_mixer),
  16380. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16381. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16382. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16383. msm_routing_put_voice_stub_mixer),
  16384. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16385. MSM_BACKEND_DAI_AUXPCM_TX,
  16386. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16387. msm_routing_put_voice_stub_mixer),
  16388. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16389. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16390. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16391. msm_routing_put_voice_stub_mixer),
  16392. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16393. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16394. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16395. msm_routing_put_voice_stub_mixer),
  16396. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16397. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16398. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16399. msm_routing_put_voice_stub_mixer),
  16400. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16401. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16402. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16403. msm_routing_put_voice_stub_mixer),
  16404. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16405. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16406. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16407. msm_routing_put_voice_stub_mixer),
  16408. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16409. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16410. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16411. msm_routing_put_voice_stub_mixer),
  16412. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16413. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16414. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16415. msm_routing_put_voice_stub_mixer),
  16416. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16417. MSM_BACKEND_DAI_AFE_PCM_TX,
  16418. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16419. msm_routing_put_voice_stub_mixer),
  16420. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16421. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16422. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16423. msm_routing_put_voice_stub_mixer),
  16424. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16425. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16426. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16427. msm_routing_put_voice_stub_mixer),
  16428. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16429. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16430. 1, 0, msm_routing_get_voice_stub_mixer,
  16431. msm_routing_put_voice_stub_mixer),
  16432. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16433. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16434. 1, 0, msm_routing_get_voice_stub_mixer,
  16435. msm_routing_put_voice_stub_mixer),
  16436. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16437. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16438. 1, 0, msm_routing_get_voice_stub_mixer,
  16439. msm_routing_put_voice_stub_mixer),
  16440. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16441. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16442. 1, 0, msm_routing_get_voice_stub_mixer,
  16443. msm_routing_put_voice_stub_mixer),
  16444. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16445. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16446. 1, 0, msm_routing_get_voice_stub_mixer,
  16447. msm_routing_put_voice_stub_mixer),
  16448. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16449. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16450. 1, 0, msm_routing_get_voice_stub_mixer,
  16451. msm_routing_put_voice_stub_mixer),
  16452. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16453. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  16454. 1, 0, msm_routing_get_voice_stub_mixer,
  16455. msm_routing_put_voice_stub_mixer),
  16456. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16457. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  16458. 1, 0, msm_routing_get_voice_stub_mixer,
  16459. msm_routing_put_voice_stub_mixer),
  16460. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16461. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  16462. 1, 0, msm_routing_get_voice_stub_mixer,
  16463. msm_routing_put_voice_stub_mixer),
  16464. };
  16465. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  16466. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16467. MSM_BACKEND_DAI_EXTPROC_TX,
  16468. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16469. msm_routing_put_voice_stub_mixer),
  16470. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16471. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16472. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16473. msm_routing_put_voice_stub_mixer),
  16474. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16475. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16476. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16477. msm_routing_put_voice_stub_mixer),
  16478. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16479. MSM_BACKEND_DAI_AUXPCM_TX,
  16480. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16481. msm_routing_put_voice_stub_mixer),
  16482. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16483. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16484. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16485. msm_routing_put_voice_stub_mixer),
  16486. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16487. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16488. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16489. msm_routing_put_voice_stub_mixer),
  16490. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16491. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16492. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16493. msm_routing_put_voice_stub_mixer),
  16494. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16495. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16496. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16497. msm_routing_put_voice_stub_mixer),
  16498. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16499. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16500. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16501. msm_routing_put_voice_stub_mixer),
  16502. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16503. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16504. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16505. msm_routing_put_voice_stub_mixer),
  16506. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16507. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16508. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16509. msm_routing_put_voice_stub_mixer),
  16510. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16511. MSM_BACKEND_DAI_AFE_PCM_TX,
  16512. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16513. msm_routing_put_voice_stub_mixer),
  16514. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16515. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16516. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16517. msm_routing_put_voice_stub_mixer),
  16518. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16519. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16520. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16521. msm_routing_put_voice_stub_mixer),
  16522. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16523. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16524. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16525. msm_routing_put_voice_stub_mixer),
  16526. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16527. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16528. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16529. msm_routing_put_voice_stub_mixer),
  16530. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16531. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16532. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16533. msm_routing_put_voice_stub_mixer),
  16534. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16535. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16536. 1, 0, msm_routing_get_voice_stub_mixer,
  16537. msm_routing_put_voice_stub_mixer),
  16538. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16539. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16540. 1, 0, msm_routing_get_voice_stub_mixer,
  16541. msm_routing_put_voice_stub_mixer),
  16542. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16543. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16544. 1, 0, msm_routing_get_voice_stub_mixer,
  16545. msm_routing_put_voice_stub_mixer),
  16546. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16547. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16548. 1, 0, msm_routing_get_voice_stub_mixer,
  16549. msm_routing_put_voice_stub_mixer),
  16550. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16551. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16552. 1, 0, msm_routing_get_voice_stub_mixer,
  16553. msm_routing_put_voice_stub_mixer),
  16554. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16555. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16556. 1, 0, msm_routing_get_voice_stub_mixer,
  16557. msm_routing_put_voice_stub_mixer),
  16558. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16559. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  16560. 1, 0, msm_routing_get_voice_stub_mixer,
  16561. msm_routing_put_voice_stub_mixer),
  16562. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16563. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  16564. 1, 0, msm_routing_get_voice_stub_mixer,
  16565. msm_routing_put_voice_stub_mixer),
  16566. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16567. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  16568. 1, 0, msm_routing_get_voice_stub_mixer,
  16569. msm_routing_put_voice_stub_mixer),
  16570. };
  16571. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  16572. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16573. MSM_BACKEND_DAI_EXTPROC_TX,
  16574. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16575. msm_routing_put_voice_stub_mixer),
  16576. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16577. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16578. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16579. msm_routing_put_voice_stub_mixer),
  16580. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16581. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16582. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16583. msm_routing_put_voice_stub_mixer),
  16584. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16585. MSM_BACKEND_DAI_AUXPCM_TX,
  16586. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16587. msm_routing_put_voice_stub_mixer),
  16588. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16589. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16590. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16591. msm_routing_put_voice_stub_mixer),
  16592. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16593. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16594. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16595. msm_routing_put_voice_stub_mixer),
  16596. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16597. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16598. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16599. msm_routing_put_voice_stub_mixer),
  16600. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16601. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16602. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16603. msm_routing_put_voice_stub_mixer),
  16604. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16605. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16606. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16607. msm_routing_put_voice_stub_mixer),
  16608. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16609. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16610. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16611. msm_routing_put_voice_stub_mixer),
  16612. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16613. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16614. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16615. msm_routing_put_voice_stub_mixer),
  16616. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16617. MSM_BACKEND_DAI_AFE_PCM_TX,
  16618. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16619. msm_routing_put_voice_stub_mixer),
  16620. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16621. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16622. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16623. msm_routing_put_voice_stub_mixer),
  16624. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16625. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16626. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16627. msm_routing_put_voice_stub_mixer),
  16628. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16629. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16630. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16631. msm_routing_put_voice_stub_mixer),
  16632. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16633. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16634. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16635. msm_routing_put_voice_stub_mixer),
  16636. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16637. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  16638. 1, 0, msm_routing_get_voice_stub_mixer,
  16639. msm_routing_put_voice_stub_mixer),
  16640. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16641. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  16642. 1, 0, msm_routing_get_voice_stub_mixer,
  16643. msm_routing_put_voice_stub_mixer),
  16644. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16645. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  16646. 1, 0, msm_routing_get_voice_stub_mixer,
  16647. msm_routing_put_voice_stub_mixer),
  16648. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16649. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  16650. 1, 0, msm_routing_get_voice_stub_mixer,
  16651. msm_routing_put_voice_stub_mixer),
  16652. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16653. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  16654. 1, 0, msm_routing_get_voice_stub_mixer,
  16655. msm_routing_put_voice_stub_mixer),
  16656. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16657. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  16658. 1, 0, msm_routing_get_voice_stub_mixer,
  16659. msm_routing_put_voice_stub_mixer),
  16660. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16661. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  16662. 1, 0, msm_routing_get_voice_stub_mixer,
  16663. msm_routing_put_voice_stub_mixer),
  16664. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16665. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  16666. 1, 0, msm_routing_get_voice_stub_mixer,
  16667. msm_routing_put_voice_stub_mixer),
  16668. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16669. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  16670. 1, 0, msm_routing_get_voice_stub_mixer,
  16671. msm_routing_put_voice_stub_mixer),
  16672. };
  16673. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  16674. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  16675. MSM_BACKEND_DAI_PRI_I2S_TX,
  16676. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16677. msm_routing_put_voice_mixer),
  16678. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  16679. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16680. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16681. msm_routing_put_voice_mixer),
  16682. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  16683. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16684. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  16685. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16686. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  16687. MSM_BACKEND_DAI_AFE_PCM_TX,
  16688. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16689. msm_routing_put_voice_mixer),
  16690. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16691. MSM_BACKEND_DAI_AUXPCM_TX,
  16692. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16693. msm_routing_put_voice_mixer),
  16694. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16695. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16696. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16697. msm_routing_put_voice_mixer),
  16698. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16699. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16700. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16701. msm_routing_put_voice_mixer),
  16702. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16703. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16704. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16705. msm_routing_put_voice_mixer),
  16706. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16707. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16708. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16709. msm_routing_put_voice_mixer),
  16710. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16711. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16712. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16713. msm_routing_put_voice_mixer),
  16714. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  16715. MSM_BACKEND_DAI_MI2S_TX,
  16716. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16717. msm_routing_put_voice_mixer),
  16718. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16719. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16720. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16721. msm_routing_put_voice_mixer),
  16722. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16723. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16724. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16725. msm_routing_put_voice_mixer),
  16726. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16727. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16728. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16729. msm_routing_put_voice_mixer),
  16730. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  16731. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16732. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16733. msm_routing_put_voice_mixer),
  16734. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  16735. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16736. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16737. msm_routing_put_voice_mixer),
  16738. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  16739. MSM_BACKEND_DAI_USB_TX,
  16740. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16741. msm_routing_put_voice_mixer),
  16742. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  16743. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  16744. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16745. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  16746. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  16747. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16748. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  16749. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  16750. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16751. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  16752. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  16753. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16754. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  16755. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  16756. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16757. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  16758. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  16759. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16760. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  16761. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  16762. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16763. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  16764. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  16765. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16766. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  16767. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  16768. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16769. };
  16770. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  16771. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16772. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16773. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16774. msm_routing_put_port_mixer),
  16775. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16776. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16777. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16778. msm_routing_put_port_mixer),
  16779. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16780. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16781. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16782. msm_routing_put_port_mixer),
  16783. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16784. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16785. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16786. msm_routing_put_port_mixer),
  16787. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16788. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16789. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16790. msm_routing_put_port_mixer),
  16791. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16792. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16793. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16794. msm_routing_put_port_mixer),
  16795. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16796. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16797. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16798. msm_routing_put_port_mixer),
  16799. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16800. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16801. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16802. msm_routing_put_port_mixer),
  16803. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16804. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16805. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16806. msm_routing_put_port_mixer),
  16807. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16808. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16809. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16810. msm_routing_put_port_mixer),
  16811. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16812. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16813. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16814. msm_routing_put_port_mixer),
  16815. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16816. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16817. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16818. msm_routing_put_port_mixer),
  16819. };
  16820. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  16821. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16822. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16823. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16824. msm_routing_put_port_mixer),
  16825. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16826. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16827. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16828. msm_routing_put_port_mixer),
  16829. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16830. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16831. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16832. msm_routing_put_port_mixer),
  16833. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16834. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16835. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16836. msm_routing_put_port_mixer),
  16837. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16838. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16839. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16840. msm_routing_put_port_mixer),
  16841. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16842. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16843. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16844. msm_routing_put_port_mixer),
  16845. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16846. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16847. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16848. msm_routing_put_port_mixer),
  16849. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16850. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16851. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16852. msm_routing_put_port_mixer),
  16853. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16854. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16855. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16856. msm_routing_put_port_mixer),
  16857. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16858. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16859. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16860. msm_routing_put_port_mixer),
  16861. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16862. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16863. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16864. msm_routing_put_port_mixer),
  16865. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16866. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16867. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16868. msm_routing_put_port_mixer),
  16869. };
  16870. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  16871. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16872. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16873. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  16874. msm_routing_put_port_mixer),
  16875. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16876. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16877. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16878. msm_routing_put_port_mixer),
  16879. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16880. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16881. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16882. msm_routing_put_port_mixer),
  16883. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16884. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16885. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16886. msm_routing_put_port_mixer),
  16887. };
  16888. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  16889. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16890. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16891. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16892. msm_routing_put_port_mixer),
  16893. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16894. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16895. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16896. msm_routing_put_port_mixer),
  16897. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16898. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16899. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16900. msm_routing_put_port_mixer),
  16901. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16902. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16903. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16904. msm_routing_put_port_mixer),
  16905. };
  16906. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_port_mixer_controls[] = {
  16907. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16908. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16909. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  16910. msm_routing_put_port_mixer),
  16911. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16912. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16913. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16914. msm_routing_put_port_mixer),
  16915. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16916. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16917. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16918. msm_routing_put_port_mixer),
  16919. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16920. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16921. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16922. msm_routing_put_port_mixer),
  16923. };
  16924. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  16925. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16926. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16927. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16928. msm_routing_put_port_mixer),
  16929. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16930. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16931. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16932. msm_routing_put_port_mixer),
  16933. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16934. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16935. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16936. msm_routing_put_port_mixer),
  16937. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16938. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16939. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16940. msm_routing_put_port_mixer),
  16941. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16942. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16943. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16944. msm_routing_put_port_mixer),
  16945. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16946. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16947. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16948. msm_routing_put_port_mixer),
  16949. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16950. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16951. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16952. msm_routing_put_port_mixer),
  16953. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16954. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16955. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16956. msm_routing_put_port_mixer),
  16957. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16958. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16959. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16960. msm_routing_put_port_mixer),
  16961. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16962. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16963. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16964. msm_routing_put_port_mixer),
  16965. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16966. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16967. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16968. msm_routing_put_port_mixer),
  16969. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16970. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16971. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16972. msm_routing_put_port_mixer),
  16973. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16974. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16975. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16976. msm_routing_put_port_mixer),
  16977. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16978. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16979. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16980. msm_routing_put_port_mixer),
  16981. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16982. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16983. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16984. msm_routing_put_port_mixer),
  16985. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16986. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16987. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16988. msm_routing_put_port_mixer),
  16989. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16990. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16991. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16992. msm_routing_put_port_mixer),
  16993. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16994. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16995. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16996. msm_routing_put_port_mixer),
  16997. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16998. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16999. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17000. msm_routing_put_port_mixer),
  17001. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  17002. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17003. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17004. msm_routing_put_port_mixer),
  17005. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  17006. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17007. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17008. msm_routing_put_port_mixer),
  17009. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  17010. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17011. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17012. msm_routing_put_port_mixer),
  17013. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  17014. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17015. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17016. msm_routing_put_port_mixer),
  17017. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  17018. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17019. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17020. msm_routing_put_port_mixer),
  17021. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  17022. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17023. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17024. msm_routing_put_port_mixer),
  17025. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17026. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17027. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17028. msm_routing_put_port_mixer),
  17029. };
  17030. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  17031. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17032. MSM_BACKEND_DAI_AUXPCM_RX,
  17033. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17034. msm_routing_put_port_mixer),
  17035. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17036. MSM_BACKEND_DAI_AUXPCM_RX,
  17037. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17038. msm_routing_put_port_mixer),
  17039. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17040. MSM_BACKEND_DAI_AUXPCM_RX,
  17041. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17042. msm_routing_put_port_mixer),
  17043. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17044. MSM_BACKEND_DAI_AUXPCM_RX,
  17045. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17046. msm_routing_put_port_mixer),
  17047. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17048. MSM_BACKEND_DAI_AUXPCM_RX,
  17049. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17050. msm_routing_put_port_mixer),
  17051. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17052. MSM_BACKEND_DAI_AUXPCM_RX,
  17053. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17054. msm_routing_put_port_mixer),
  17055. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17056. MSM_BACKEND_DAI_AUXPCM_RX,
  17057. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17058. msm_routing_put_port_mixer),
  17059. };
  17060. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  17061. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17062. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17063. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17064. msm_routing_put_port_mixer),
  17065. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17066. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17067. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17068. msm_routing_put_port_mixer),
  17069. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17070. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17071. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17072. msm_routing_put_port_mixer),
  17073. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17074. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17075. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17076. msm_routing_put_port_mixer),
  17077. };
  17078. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  17079. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17080. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17081. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17082. msm_routing_put_port_mixer),
  17083. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17084. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17085. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17086. msm_routing_put_port_mixer),
  17087. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17088. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17089. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17090. msm_routing_put_port_mixer),
  17091. };
  17092. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  17093. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17094. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17095. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17096. msm_routing_put_port_mixer),
  17097. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17098. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17099. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17100. msm_routing_put_port_mixer),
  17101. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17102. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17103. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17104. msm_routing_put_port_mixer),
  17105. };
  17106. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  17107. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17108. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17109. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17110. msm_routing_put_port_mixer),
  17111. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17112. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17113. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17114. msm_routing_put_port_mixer),
  17115. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17116. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17117. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17118. msm_routing_put_port_mixer),
  17119. };
  17120. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  17121. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17122. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17123. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17124. msm_routing_put_port_mixer),
  17125. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17126. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17127. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17128. msm_routing_put_port_mixer),
  17129. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17130. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17131. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17132. msm_routing_put_port_mixer),
  17133. };
  17134. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  17135. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17136. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17137. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17138. msm_routing_put_port_mixer),
  17139. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17140. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17141. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  17142. msm_routing_put_port_mixer),
  17143. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17144. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17145. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17146. msm_routing_put_port_mixer),
  17147. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17148. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17149. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17150. msm_routing_put_port_mixer),
  17151. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17152. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17153. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17154. msm_routing_put_port_mixer),
  17155. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17156. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17157. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17158. msm_routing_put_port_mixer),
  17159. };
  17160. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  17161. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  17162. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17163. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  17164. msm_routing_put_port_mixer),
  17165. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17166. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17167. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17168. msm_routing_put_port_mixer),
  17169. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  17170. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17171. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  17172. msm_routing_put_port_mixer),
  17173. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  17174. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17175. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  17176. msm_routing_put_port_mixer),
  17177. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  17178. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17179. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  17180. msm_routing_put_port_mixer),
  17181. };
  17182. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  17183. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17184. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17185. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17186. msm_routing_put_port_mixer),
  17187. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17188. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17189. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17190. msm_routing_put_port_mixer),
  17191. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17192. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17193. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17194. msm_routing_put_port_mixer),
  17195. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17196. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17197. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17198. msm_routing_put_port_mixer),
  17199. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17200. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17201. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17202. msm_routing_put_port_mixer),
  17203. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17204. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17205. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17206. msm_routing_put_port_mixer),
  17207. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17208. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17209. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17210. msm_routing_put_port_mixer),
  17211. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17212. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17213. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17214. msm_routing_put_port_mixer),
  17215. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17216. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17217. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17218. msm_routing_put_port_mixer),
  17219. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17220. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17221. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17222. msm_routing_put_port_mixer),
  17223. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17224. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17225. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17226. msm_routing_put_port_mixer),
  17227. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17228. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17229. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17230. msm_routing_put_port_mixer),
  17231. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17232. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17233. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17234. msm_routing_put_port_mixer),
  17235. };
  17236. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  17237. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17238. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17239. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17240. msm_routing_put_port_mixer),
  17241. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17242. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17243. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17244. msm_routing_put_port_mixer),
  17245. };
  17246. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  17247. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17248. MSM_BACKEND_DAI_AFE_PCM_RX,
  17249. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17250. msm_routing_put_port_mixer),
  17251. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17252. MSM_BACKEND_DAI_AFE_PCM_RX,
  17253. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17254. msm_routing_put_port_mixer),
  17255. };
  17256. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  17257. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17258. MSM_BACKEND_DAI_HDMI_RX,
  17259. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17260. msm_routing_put_port_mixer),
  17261. };
  17262. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  17263. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17264. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  17265. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17266. msm_routing_put_port_mixer),
  17267. };
  17268. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  17269. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17270. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  17271. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17272. msm_routing_put_port_mixer),
  17273. };
  17274. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  17275. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17276. MSM_BACKEND_DAI_SEC_I2S_RX,
  17277. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17278. msm_routing_put_port_mixer),
  17279. };
  17280. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  17281. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17282. MSM_BACKEND_DAI_MI2S_RX,
  17283. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17284. msm_routing_put_port_mixer),
  17285. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17286. MSM_BACKEND_DAI_MI2S_RX,
  17287. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17288. msm_routing_put_port_mixer),
  17289. };
  17290. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  17291. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17292. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17293. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17294. msm_routing_put_port_mixer),
  17295. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17296. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17297. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17298. msm_routing_put_port_mixer),
  17299. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17300. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17301. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17302. msm_routing_put_port_mixer),
  17303. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17304. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17305. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17306. msm_routing_put_port_mixer),
  17307. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17308. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17309. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17310. msm_routing_put_port_mixer),
  17311. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17312. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17313. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17314. msm_routing_put_port_mixer),
  17315. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17316. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17317. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17318. msm_routing_put_port_mixer),
  17319. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17320. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17321. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17322. msm_routing_put_port_mixer),
  17323. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17324. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17325. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17326. msm_routing_put_port_mixer),
  17327. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17328. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17329. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17330. msm_routing_put_port_mixer),
  17331. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17332. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17333. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17334. msm_routing_put_port_mixer),
  17335. };
  17336. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  17337. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  17338. MSM_BACKEND_DAI_USB_RX,
  17339. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  17340. msm_routing_put_port_mixer),
  17341. };
  17342. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  17343. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17344. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17345. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17346. msm_routing_put_port_mixer),
  17347. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17348. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17349. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17350. msm_routing_put_port_mixer),
  17351. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17352. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17353. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17354. msm_routing_put_port_mixer),
  17355. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17356. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17357. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17358. msm_routing_put_port_mixer),
  17359. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17360. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17361. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17362. msm_routing_put_port_mixer),
  17363. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17364. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17365. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17366. msm_routing_put_port_mixer),
  17367. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17368. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17369. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17370. msm_routing_put_port_mixer),
  17371. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17372. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17373. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17374. msm_routing_put_port_mixer),
  17375. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17376. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17377. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17378. msm_routing_put_port_mixer),
  17379. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17380. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17381. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17382. msm_routing_put_port_mixer),
  17383. };
  17384. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  17385. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17386. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17387. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17388. msm_routing_put_port_mixer),
  17389. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17390. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17391. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17392. msm_routing_put_port_mixer),
  17393. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17394. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17395. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17396. msm_routing_put_port_mixer),
  17397. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17398. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17399. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17400. msm_routing_put_port_mixer),
  17401. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17402. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17403. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17404. msm_routing_put_port_mixer),
  17405. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17406. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17407. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17408. msm_routing_put_port_mixer),
  17409. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17410. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17411. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17412. msm_routing_put_port_mixer),
  17413. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17414. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17415. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17416. msm_routing_put_port_mixer),
  17417. };
  17418. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  17419. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17420. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17421. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17422. msm_routing_put_port_mixer),
  17423. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17424. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17425. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17426. msm_routing_put_port_mixer),
  17427. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17428. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17429. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17430. msm_routing_put_port_mixer),
  17431. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17432. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17433. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17434. msm_routing_put_port_mixer),
  17435. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17436. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17437. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17438. msm_routing_put_port_mixer),
  17439. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17440. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17441. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17442. msm_routing_put_port_mixer),
  17443. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17444. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17445. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17446. msm_routing_put_port_mixer),
  17447. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17448. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17449. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17450. msm_routing_put_port_mixer),
  17451. };
  17452. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  17453. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17454. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17455. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17456. msm_routing_get_port_mixer,
  17457. msm_routing_put_port_mixer),
  17458. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17459. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17460. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17461. msm_routing_get_port_mixer,
  17462. msm_routing_put_port_mixer),
  17463. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17464. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17465. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17466. msm_routing_get_port_mixer,
  17467. msm_routing_put_port_mixer),
  17468. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17469. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17470. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17471. msm_routing_get_port_mixer,
  17472. msm_routing_put_port_mixer),
  17473. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17474. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17475. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17476. msm_routing_get_port_mixer,
  17477. msm_routing_put_port_mixer),
  17478. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17479. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17480. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17481. msm_routing_get_port_mixer,
  17482. msm_routing_put_port_mixer),
  17483. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17484. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17485. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17486. msm_routing_get_port_mixer,
  17487. msm_routing_put_port_mixer),
  17488. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17489. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17490. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17491. msm_routing_get_port_mixer,
  17492. msm_routing_put_port_mixer),
  17493. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17494. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17495. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17496. msm_routing_get_port_mixer,
  17497. msm_routing_put_port_mixer),
  17498. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17499. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17500. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17501. msm_routing_get_port_mixer,
  17502. msm_routing_put_port_mixer),
  17503. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17504. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17505. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17506. msm_routing_get_port_mixer,
  17507. msm_routing_put_port_mixer),
  17508. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17509. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17510. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17511. msm_routing_get_port_mixer,
  17512. msm_routing_put_port_mixer),
  17513. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17514. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17515. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17516. msm_routing_get_port_mixer,
  17517. msm_routing_put_port_mixer),
  17518. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17519. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17520. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17521. msm_routing_get_port_mixer,
  17522. msm_routing_put_port_mixer),
  17523. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17524. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17525. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17526. msm_routing_get_port_mixer,
  17527. msm_routing_put_port_mixer),
  17528. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17529. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17530. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17531. msm_routing_get_port_mixer,
  17532. msm_routing_put_port_mixer),
  17533. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17534. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17535. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17536. msm_routing_get_port_mixer,
  17537. msm_routing_put_port_mixer),
  17538. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17539. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17540. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17541. msm_routing_get_port_mixer,
  17542. msm_routing_put_port_mixer),
  17543. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17544. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17545. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17546. msm_routing_get_port_mixer,
  17547. msm_routing_put_port_mixer),
  17548. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17549. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17550. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17551. msm_routing_get_port_mixer,
  17552. msm_routing_put_port_mixer),
  17553. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17554. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17555. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17556. msm_routing_get_port_mixer,
  17557. msm_routing_put_port_mixer),
  17558. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17559. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17560. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17561. msm_routing_get_port_mixer,
  17562. msm_routing_put_port_mixer),
  17563. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17564. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17565. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17566. msm_routing_get_port_mixer,
  17567. msm_routing_put_port_mixer),
  17568. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17569. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17570. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17571. msm_routing_get_port_mixer,
  17572. msm_routing_put_port_mixer),
  17573. };
  17574. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  17575. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17576. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17577. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17578. msm_routing_get_port_mixer,
  17579. msm_routing_put_port_mixer),
  17580. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17581. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17582. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17583. msm_routing_get_port_mixer,
  17584. msm_routing_put_port_mixer),
  17585. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17586. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17587. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17588. msm_routing_get_port_mixer,
  17589. msm_routing_put_port_mixer),
  17590. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17591. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17592. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17593. msm_routing_get_port_mixer,
  17594. msm_routing_put_port_mixer),
  17595. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17596. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17597. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17598. msm_routing_get_port_mixer,
  17599. msm_routing_put_port_mixer),
  17600. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17601. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17602. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17603. msm_routing_get_port_mixer,
  17604. msm_routing_put_port_mixer),
  17605. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17606. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17607. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17608. msm_routing_get_port_mixer,
  17609. msm_routing_put_port_mixer),
  17610. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17611. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17612. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17613. msm_routing_get_port_mixer,
  17614. msm_routing_put_port_mixer),
  17615. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17616. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17617. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17618. msm_routing_get_port_mixer,
  17619. msm_routing_put_port_mixer),
  17620. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17621. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17622. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17623. msm_routing_get_port_mixer,
  17624. msm_routing_put_port_mixer),
  17625. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17626. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17627. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17628. msm_routing_get_port_mixer,
  17629. msm_routing_put_port_mixer),
  17630. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17631. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17632. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17633. msm_routing_get_port_mixer,
  17634. msm_routing_put_port_mixer),
  17635. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17636. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17637. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17638. msm_routing_get_port_mixer,
  17639. msm_routing_put_port_mixer),
  17640. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17641. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17642. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17643. msm_routing_get_port_mixer,
  17644. msm_routing_put_port_mixer),
  17645. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17646. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17647. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17648. msm_routing_get_port_mixer,
  17649. msm_routing_put_port_mixer),
  17650. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17651. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17652. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17653. msm_routing_get_port_mixer,
  17654. msm_routing_put_port_mixer),
  17655. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17656. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17657. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17658. msm_routing_get_port_mixer,
  17659. msm_routing_put_port_mixer),
  17660. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17661. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17662. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17663. msm_routing_get_port_mixer,
  17664. msm_routing_put_port_mixer),
  17665. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17666. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17667. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17668. msm_routing_get_port_mixer,
  17669. msm_routing_put_port_mixer),
  17670. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17671. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17672. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17673. msm_routing_get_port_mixer,
  17674. msm_routing_put_port_mixer),
  17675. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17676. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17677. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17678. msm_routing_get_port_mixer,
  17679. msm_routing_put_port_mixer),
  17680. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17681. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17682. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17683. msm_routing_get_port_mixer,
  17684. msm_routing_put_port_mixer),
  17685. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17686. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17687. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17688. msm_routing_get_port_mixer,
  17689. msm_routing_put_port_mixer),
  17690. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17691. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17692. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17693. msm_routing_get_port_mixer,
  17694. msm_routing_put_port_mixer),
  17695. };
  17696. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  17697. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17698. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17699. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17700. msm_routing_get_port_mixer,
  17701. msm_routing_put_port_mixer),
  17702. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17703. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17704. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17705. msm_routing_get_port_mixer,
  17706. msm_routing_put_port_mixer),
  17707. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17708. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17709. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17710. msm_routing_get_port_mixer,
  17711. msm_routing_put_port_mixer),
  17712. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17713. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17714. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17715. msm_routing_get_port_mixer,
  17716. msm_routing_put_port_mixer),
  17717. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17718. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17719. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17720. msm_routing_get_port_mixer,
  17721. msm_routing_put_port_mixer),
  17722. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17723. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17724. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17725. msm_routing_get_port_mixer,
  17726. msm_routing_put_port_mixer),
  17727. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17728. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17729. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17730. msm_routing_get_port_mixer,
  17731. msm_routing_put_port_mixer),
  17732. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17733. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17734. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17735. msm_routing_get_port_mixer,
  17736. msm_routing_put_port_mixer),
  17737. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17738. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17739. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17740. msm_routing_get_port_mixer,
  17741. msm_routing_put_port_mixer),
  17742. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17743. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17744. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17745. msm_routing_get_port_mixer,
  17746. msm_routing_put_port_mixer),
  17747. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17748. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17749. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17750. msm_routing_get_port_mixer,
  17751. msm_routing_put_port_mixer),
  17752. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17753. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17754. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17755. msm_routing_get_port_mixer,
  17756. msm_routing_put_port_mixer),
  17757. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17758. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17759. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17760. msm_routing_get_port_mixer,
  17761. msm_routing_put_port_mixer),
  17762. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17763. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17764. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17765. msm_routing_get_port_mixer,
  17766. msm_routing_put_port_mixer),
  17767. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17768. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17769. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17770. msm_routing_get_port_mixer,
  17771. msm_routing_put_port_mixer),
  17772. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17773. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17774. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17775. msm_routing_get_port_mixer,
  17776. msm_routing_put_port_mixer),
  17777. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17778. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17779. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17780. msm_routing_get_port_mixer,
  17781. msm_routing_put_port_mixer),
  17782. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17783. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17784. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17785. msm_routing_get_port_mixer,
  17786. msm_routing_put_port_mixer),
  17787. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17788. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17789. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17790. msm_routing_get_port_mixer,
  17791. msm_routing_put_port_mixer),
  17792. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17793. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17794. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17795. msm_routing_get_port_mixer,
  17796. msm_routing_put_port_mixer),
  17797. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17798. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17799. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17800. msm_routing_get_port_mixer,
  17801. msm_routing_put_port_mixer),
  17802. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17803. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17804. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17805. msm_routing_get_port_mixer,
  17806. msm_routing_put_port_mixer),
  17807. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17808. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17809. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17810. msm_routing_get_port_mixer,
  17811. msm_routing_put_port_mixer),
  17812. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17813. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17814. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17815. msm_routing_get_port_mixer,
  17816. msm_routing_put_port_mixer),
  17817. };
  17818. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  17819. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17820. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17821. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17822. msm_routing_get_port_mixer,
  17823. msm_routing_put_port_mixer),
  17824. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17825. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17826. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17827. msm_routing_get_port_mixer,
  17828. msm_routing_put_port_mixer),
  17829. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17830. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17831. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17832. msm_routing_get_port_mixer,
  17833. msm_routing_put_port_mixer),
  17834. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17835. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17836. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17837. msm_routing_get_port_mixer,
  17838. msm_routing_put_port_mixer),
  17839. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17840. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17841. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17842. msm_routing_get_port_mixer,
  17843. msm_routing_put_port_mixer),
  17844. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17845. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17846. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17847. msm_routing_get_port_mixer,
  17848. msm_routing_put_port_mixer),
  17849. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17850. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17851. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17852. msm_routing_get_port_mixer,
  17853. msm_routing_put_port_mixer),
  17854. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17855. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17856. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17857. msm_routing_get_port_mixer,
  17858. msm_routing_put_port_mixer),
  17859. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17860. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17861. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17862. msm_routing_get_port_mixer,
  17863. msm_routing_put_port_mixer),
  17864. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17865. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17866. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17867. msm_routing_get_port_mixer,
  17868. msm_routing_put_port_mixer),
  17869. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17870. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17871. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17872. msm_routing_get_port_mixer,
  17873. msm_routing_put_port_mixer),
  17874. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17875. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17876. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17877. msm_routing_get_port_mixer,
  17878. msm_routing_put_port_mixer),
  17879. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17880. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17881. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17882. msm_routing_get_port_mixer,
  17883. msm_routing_put_port_mixer),
  17884. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17885. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17886. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17887. msm_routing_get_port_mixer,
  17888. msm_routing_put_port_mixer),
  17889. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17890. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17891. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17892. msm_routing_get_port_mixer,
  17893. msm_routing_put_port_mixer),
  17894. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17895. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17896. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17897. msm_routing_get_port_mixer,
  17898. msm_routing_put_port_mixer),
  17899. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17900. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17901. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17902. msm_routing_get_port_mixer,
  17903. msm_routing_put_port_mixer),
  17904. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17905. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17906. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17907. msm_routing_get_port_mixer,
  17908. msm_routing_put_port_mixer),
  17909. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17910. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17911. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17912. msm_routing_get_port_mixer,
  17913. msm_routing_put_port_mixer),
  17914. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17915. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17916. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17917. msm_routing_get_port_mixer,
  17918. msm_routing_put_port_mixer),
  17919. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17920. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17921. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17922. msm_routing_get_port_mixer,
  17923. msm_routing_put_port_mixer),
  17924. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17925. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17926. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17927. msm_routing_get_port_mixer,
  17928. msm_routing_put_port_mixer),
  17929. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17930. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17931. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17932. msm_routing_get_port_mixer,
  17933. msm_routing_put_port_mixer),
  17934. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17935. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17936. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17937. msm_routing_get_port_mixer,
  17938. msm_routing_put_port_mixer),
  17939. };
  17940. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  17941. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17942. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17943. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17944. msm_routing_get_port_mixer,
  17945. msm_routing_put_port_mixer),
  17946. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17947. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17948. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17949. msm_routing_get_port_mixer,
  17950. msm_routing_put_port_mixer),
  17951. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17952. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17953. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17954. msm_routing_get_port_mixer,
  17955. msm_routing_put_port_mixer),
  17956. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17957. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17958. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17959. msm_routing_get_port_mixer,
  17960. msm_routing_put_port_mixer),
  17961. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17962. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17963. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17964. msm_routing_get_port_mixer,
  17965. msm_routing_put_port_mixer),
  17966. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17967. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17968. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17969. msm_routing_get_port_mixer,
  17970. msm_routing_put_port_mixer),
  17971. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17972. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17973. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17974. msm_routing_get_port_mixer,
  17975. msm_routing_put_port_mixer),
  17976. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17977. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17978. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17979. msm_routing_get_port_mixer,
  17980. msm_routing_put_port_mixer),
  17981. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17982. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17983. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17984. msm_routing_get_port_mixer,
  17985. msm_routing_put_port_mixer),
  17986. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17987. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17988. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17989. msm_routing_get_port_mixer,
  17990. msm_routing_put_port_mixer),
  17991. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17992. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17993. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17994. msm_routing_get_port_mixer,
  17995. msm_routing_put_port_mixer),
  17996. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17997. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17998. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17999. msm_routing_get_port_mixer,
  18000. msm_routing_put_port_mixer),
  18001. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18002. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18003. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18004. msm_routing_get_port_mixer,
  18005. msm_routing_put_port_mixer),
  18006. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18007. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18008. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18009. msm_routing_get_port_mixer,
  18010. msm_routing_put_port_mixer),
  18011. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18012. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18013. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18014. msm_routing_get_port_mixer,
  18015. msm_routing_put_port_mixer),
  18016. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18017. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18018. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18019. msm_routing_get_port_mixer,
  18020. msm_routing_put_port_mixer),
  18021. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18022. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18023. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18024. msm_routing_get_port_mixer,
  18025. msm_routing_put_port_mixer),
  18026. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18027. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18028. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18029. msm_routing_get_port_mixer,
  18030. msm_routing_put_port_mixer),
  18031. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18032. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18033. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18034. msm_routing_get_port_mixer,
  18035. msm_routing_put_port_mixer),
  18036. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18037. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18038. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18039. msm_routing_get_port_mixer,
  18040. msm_routing_put_port_mixer),
  18041. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18042. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18043. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18044. msm_routing_get_port_mixer,
  18045. msm_routing_put_port_mixer),
  18046. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18047. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18048. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18049. msm_routing_get_port_mixer,
  18050. msm_routing_put_port_mixer),
  18051. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18052. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18053. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18054. msm_routing_get_port_mixer,
  18055. msm_routing_put_port_mixer),
  18056. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18057. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18058. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18059. msm_routing_get_port_mixer,
  18060. msm_routing_put_port_mixer),
  18061. };
  18062. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  18063. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18064. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18065. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18066. msm_routing_get_port_mixer,
  18067. msm_routing_put_port_mixer),
  18068. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18069. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18070. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18071. msm_routing_get_port_mixer,
  18072. msm_routing_put_port_mixer),
  18073. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18074. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18075. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18076. msm_routing_get_port_mixer,
  18077. msm_routing_put_port_mixer),
  18078. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18079. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18080. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18081. msm_routing_get_port_mixer,
  18082. msm_routing_put_port_mixer),
  18083. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18084. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18085. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18086. msm_routing_get_port_mixer,
  18087. msm_routing_put_port_mixer),
  18088. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18089. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18090. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18091. msm_routing_get_port_mixer,
  18092. msm_routing_put_port_mixer),
  18093. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18094. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18095. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18096. msm_routing_get_port_mixer,
  18097. msm_routing_put_port_mixer),
  18098. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18099. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18100. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18101. msm_routing_get_port_mixer,
  18102. msm_routing_put_port_mixer),
  18103. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18104. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18105. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18106. msm_routing_get_port_mixer,
  18107. msm_routing_put_port_mixer),
  18108. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18109. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18110. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18111. msm_routing_get_port_mixer,
  18112. msm_routing_put_port_mixer),
  18113. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18114. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18115. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18116. msm_routing_get_port_mixer,
  18117. msm_routing_put_port_mixer),
  18118. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18119. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18120. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18121. msm_routing_get_port_mixer,
  18122. msm_routing_put_port_mixer),
  18123. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18124. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18125. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18126. msm_routing_get_port_mixer,
  18127. msm_routing_put_port_mixer),
  18128. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18129. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18130. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18131. msm_routing_get_port_mixer,
  18132. msm_routing_put_port_mixer),
  18133. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18134. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18135. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18136. msm_routing_get_port_mixer,
  18137. msm_routing_put_port_mixer),
  18138. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18139. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18140. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18141. msm_routing_get_port_mixer,
  18142. msm_routing_put_port_mixer),
  18143. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18144. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18145. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18146. msm_routing_get_port_mixer,
  18147. msm_routing_put_port_mixer),
  18148. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18149. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18150. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18151. msm_routing_get_port_mixer,
  18152. msm_routing_put_port_mixer),
  18153. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18154. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18155. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18156. msm_routing_get_port_mixer,
  18157. msm_routing_put_port_mixer),
  18158. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18159. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18160. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18161. msm_routing_get_port_mixer,
  18162. msm_routing_put_port_mixer),
  18163. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18164. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18165. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18166. msm_routing_get_port_mixer,
  18167. msm_routing_put_port_mixer),
  18168. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18169. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18170. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18171. msm_routing_get_port_mixer,
  18172. msm_routing_put_port_mixer),
  18173. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18174. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18175. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18176. msm_routing_get_port_mixer,
  18177. msm_routing_put_port_mixer),
  18178. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18179. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18180. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18181. msm_routing_get_port_mixer,
  18182. msm_routing_put_port_mixer),
  18183. };
  18184. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  18185. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18186. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18187. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18188. msm_routing_get_port_mixer,
  18189. msm_routing_put_port_mixer),
  18190. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18191. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18192. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18193. msm_routing_get_port_mixer,
  18194. msm_routing_put_port_mixer),
  18195. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18196. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18197. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18198. msm_routing_get_port_mixer,
  18199. msm_routing_put_port_mixer),
  18200. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18201. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18202. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18203. msm_routing_get_port_mixer,
  18204. msm_routing_put_port_mixer),
  18205. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18206. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18207. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18208. msm_routing_get_port_mixer,
  18209. msm_routing_put_port_mixer),
  18210. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18211. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18212. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18213. msm_routing_get_port_mixer,
  18214. msm_routing_put_port_mixer),
  18215. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18216. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18217. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18218. msm_routing_get_port_mixer,
  18219. msm_routing_put_port_mixer),
  18220. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18221. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18222. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18223. msm_routing_get_port_mixer,
  18224. msm_routing_put_port_mixer),
  18225. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18226. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18227. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18228. msm_routing_get_port_mixer,
  18229. msm_routing_put_port_mixer),
  18230. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18231. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18232. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18233. msm_routing_get_port_mixer,
  18234. msm_routing_put_port_mixer),
  18235. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18236. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18237. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18238. msm_routing_get_port_mixer,
  18239. msm_routing_put_port_mixer),
  18240. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18241. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18242. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18243. msm_routing_get_port_mixer,
  18244. msm_routing_put_port_mixer),
  18245. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18246. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18247. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18248. msm_routing_get_port_mixer,
  18249. msm_routing_put_port_mixer),
  18250. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18251. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18252. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18253. msm_routing_get_port_mixer,
  18254. msm_routing_put_port_mixer),
  18255. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18256. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18257. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18258. msm_routing_get_port_mixer,
  18259. msm_routing_put_port_mixer),
  18260. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18261. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18262. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18263. msm_routing_get_port_mixer,
  18264. msm_routing_put_port_mixer),
  18265. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18266. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18267. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18268. msm_routing_get_port_mixer,
  18269. msm_routing_put_port_mixer),
  18270. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18271. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18272. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18273. msm_routing_get_port_mixer,
  18274. msm_routing_put_port_mixer),
  18275. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18276. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18277. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18278. msm_routing_get_port_mixer,
  18279. msm_routing_put_port_mixer),
  18280. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18281. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18282. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18283. msm_routing_get_port_mixer,
  18284. msm_routing_put_port_mixer),
  18285. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18286. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18287. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18288. msm_routing_get_port_mixer,
  18289. msm_routing_put_port_mixer),
  18290. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18291. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18292. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18293. msm_routing_get_port_mixer,
  18294. msm_routing_put_port_mixer),
  18295. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18296. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18297. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18298. msm_routing_get_port_mixer,
  18299. msm_routing_put_port_mixer),
  18300. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18301. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18302. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18303. msm_routing_get_port_mixer,
  18304. msm_routing_put_port_mixer),
  18305. };
  18306. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  18307. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18308. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18309. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18310. msm_routing_get_port_mixer,
  18311. msm_routing_put_port_mixer),
  18312. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18313. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18314. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18315. msm_routing_get_port_mixer,
  18316. msm_routing_put_port_mixer),
  18317. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18318. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18319. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18320. msm_routing_get_port_mixer,
  18321. msm_routing_put_port_mixer),
  18322. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18323. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18324. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18325. msm_routing_get_port_mixer,
  18326. msm_routing_put_port_mixer),
  18327. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18328. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18329. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18330. msm_routing_get_port_mixer,
  18331. msm_routing_put_port_mixer),
  18332. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18333. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18334. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18335. msm_routing_get_port_mixer,
  18336. msm_routing_put_port_mixer),
  18337. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18338. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18339. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18340. msm_routing_get_port_mixer,
  18341. msm_routing_put_port_mixer),
  18342. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18343. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18344. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18345. msm_routing_get_port_mixer,
  18346. msm_routing_put_port_mixer),
  18347. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18348. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18349. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18350. msm_routing_get_port_mixer,
  18351. msm_routing_put_port_mixer),
  18352. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18353. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18354. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18355. msm_routing_get_port_mixer,
  18356. msm_routing_put_port_mixer),
  18357. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18358. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18359. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18360. msm_routing_get_port_mixer,
  18361. msm_routing_put_port_mixer),
  18362. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18363. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18364. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18365. msm_routing_get_port_mixer,
  18366. msm_routing_put_port_mixer),
  18367. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18368. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18369. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18370. msm_routing_get_port_mixer,
  18371. msm_routing_put_port_mixer),
  18372. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18373. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18374. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18375. msm_routing_get_port_mixer,
  18376. msm_routing_put_port_mixer),
  18377. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18378. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18379. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18380. msm_routing_get_port_mixer,
  18381. msm_routing_put_port_mixer),
  18382. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18383. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18384. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18385. msm_routing_get_port_mixer,
  18386. msm_routing_put_port_mixer),
  18387. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18388. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18389. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18390. msm_routing_get_port_mixer,
  18391. msm_routing_put_port_mixer),
  18392. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18393. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18394. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18395. msm_routing_get_port_mixer,
  18396. msm_routing_put_port_mixer),
  18397. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18398. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18399. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18400. msm_routing_get_port_mixer,
  18401. msm_routing_put_port_mixer),
  18402. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18403. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18404. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18405. msm_routing_get_port_mixer,
  18406. msm_routing_put_port_mixer),
  18407. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18408. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18409. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18410. msm_routing_get_port_mixer,
  18411. msm_routing_put_port_mixer),
  18412. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18413. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18414. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18415. msm_routing_get_port_mixer,
  18416. msm_routing_put_port_mixer),
  18417. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18418. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18419. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18420. msm_routing_get_port_mixer,
  18421. msm_routing_put_port_mixer),
  18422. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18423. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18424. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18425. msm_routing_get_port_mixer,
  18426. msm_routing_put_port_mixer),
  18427. };
  18428. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  18429. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  18430. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  18431. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  18432. msm_routing_get_port_mixer,
  18433. msm_routing_put_port_mixer),
  18434. };
  18435. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  18436. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18437. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18438. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18439. msm_routing_get_port_mixer,
  18440. msm_routing_put_port_mixer),
  18441. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18442. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18443. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18444. msm_routing_get_port_mixer,
  18445. msm_routing_put_port_mixer),
  18446. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18447. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18448. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18449. msm_routing_get_port_mixer,
  18450. msm_routing_put_port_mixer),
  18451. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18452. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18453. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18454. msm_routing_get_port_mixer,
  18455. msm_routing_put_port_mixer),
  18456. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18457. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18458. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18459. msm_routing_get_port_mixer,
  18460. msm_routing_put_port_mixer),
  18461. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18462. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18463. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18464. msm_routing_get_port_mixer,
  18465. msm_routing_put_port_mixer),
  18466. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18467. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18468. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18469. msm_routing_get_port_mixer,
  18470. msm_routing_put_port_mixer),
  18471. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18472. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18473. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18474. msm_routing_get_port_mixer,
  18475. msm_routing_put_port_mixer),
  18476. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18477. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18478. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18479. msm_routing_get_port_mixer,
  18480. msm_routing_put_port_mixer),
  18481. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18482. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18483. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18484. msm_routing_get_port_mixer,
  18485. msm_routing_put_port_mixer),
  18486. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18487. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18488. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18489. msm_routing_get_port_mixer,
  18490. msm_routing_put_port_mixer),
  18491. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18492. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18493. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18494. msm_routing_get_port_mixer,
  18495. msm_routing_put_port_mixer),
  18496. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18497. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18498. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18499. msm_routing_get_port_mixer,
  18500. msm_routing_put_port_mixer),
  18501. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18502. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18503. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18504. msm_routing_get_port_mixer,
  18505. msm_routing_put_port_mixer),
  18506. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18507. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18508. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18509. msm_routing_get_port_mixer,
  18510. msm_routing_put_port_mixer),
  18511. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18512. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18513. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18514. msm_routing_get_port_mixer,
  18515. msm_routing_put_port_mixer),
  18516. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18517. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18518. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18519. msm_routing_get_port_mixer,
  18520. msm_routing_put_port_mixer),
  18521. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18522. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18523. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18524. msm_routing_get_port_mixer,
  18525. msm_routing_put_port_mixer),
  18526. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18527. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18528. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18529. msm_routing_get_port_mixer,
  18530. msm_routing_put_port_mixer),
  18531. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18532. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18533. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18534. msm_routing_get_port_mixer,
  18535. msm_routing_put_port_mixer),
  18536. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18537. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18538. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18539. msm_routing_get_port_mixer,
  18540. msm_routing_put_port_mixer),
  18541. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18542. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18543. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18544. msm_routing_get_port_mixer,
  18545. msm_routing_put_port_mixer),
  18546. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18547. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18548. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18549. msm_routing_get_port_mixer,
  18550. msm_routing_put_port_mixer),
  18551. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18552. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18553. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18554. msm_routing_get_port_mixer,
  18555. msm_routing_put_port_mixer),
  18556. };
  18557. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  18558. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18559. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18560. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18561. msm_routing_get_port_mixer,
  18562. msm_routing_put_port_mixer),
  18563. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18564. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18565. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18566. msm_routing_get_port_mixer,
  18567. msm_routing_put_port_mixer),
  18568. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18569. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18570. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18571. msm_routing_get_port_mixer,
  18572. msm_routing_put_port_mixer),
  18573. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18574. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18575. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18576. msm_routing_get_port_mixer,
  18577. msm_routing_put_port_mixer),
  18578. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18579. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18580. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18581. msm_routing_get_port_mixer,
  18582. msm_routing_put_port_mixer),
  18583. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18584. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18585. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18586. msm_routing_get_port_mixer,
  18587. msm_routing_put_port_mixer),
  18588. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18589. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18590. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18591. msm_routing_get_port_mixer,
  18592. msm_routing_put_port_mixer),
  18593. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18594. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18595. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18596. msm_routing_get_port_mixer,
  18597. msm_routing_put_port_mixer),
  18598. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18599. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18600. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18601. msm_routing_get_port_mixer,
  18602. msm_routing_put_port_mixer),
  18603. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18604. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18605. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18606. msm_routing_get_port_mixer,
  18607. msm_routing_put_port_mixer),
  18608. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18609. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18610. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18611. msm_routing_get_port_mixer,
  18612. msm_routing_put_port_mixer),
  18613. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18614. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18615. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18616. msm_routing_get_port_mixer,
  18617. msm_routing_put_port_mixer),
  18618. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18619. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18620. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18621. msm_routing_get_port_mixer,
  18622. msm_routing_put_port_mixer),
  18623. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18624. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18625. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18626. msm_routing_get_port_mixer,
  18627. msm_routing_put_port_mixer),
  18628. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18629. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18630. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18631. msm_routing_get_port_mixer,
  18632. msm_routing_put_port_mixer),
  18633. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18634. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18635. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18636. msm_routing_get_port_mixer,
  18637. msm_routing_put_port_mixer),
  18638. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18639. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18640. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18641. msm_routing_get_port_mixer,
  18642. msm_routing_put_port_mixer),
  18643. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18644. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18645. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18646. msm_routing_get_port_mixer,
  18647. msm_routing_put_port_mixer),
  18648. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18649. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18650. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18651. msm_routing_get_port_mixer,
  18652. msm_routing_put_port_mixer),
  18653. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18654. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18655. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18656. msm_routing_get_port_mixer,
  18657. msm_routing_put_port_mixer),
  18658. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18659. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18660. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18661. msm_routing_get_port_mixer,
  18662. msm_routing_put_port_mixer),
  18663. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18664. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18665. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18666. msm_routing_get_port_mixer,
  18667. msm_routing_put_port_mixer),
  18668. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18669. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18670. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18671. msm_routing_get_port_mixer,
  18672. msm_routing_put_port_mixer),
  18673. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18674. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18675. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18676. msm_routing_get_port_mixer,
  18677. msm_routing_put_port_mixer),
  18678. };
  18679. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  18680. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18681. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18682. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18683. msm_routing_get_port_mixer,
  18684. msm_routing_put_port_mixer),
  18685. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18686. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18687. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18688. msm_routing_get_port_mixer,
  18689. msm_routing_put_port_mixer),
  18690. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18691. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18692. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18693. msm_routing_get_port_mixer,
  18694. msm_routing_put_port_mixer),
  18695. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18696. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18697. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18698. msm_routing_get_port_mixer,
  18699. msm_routing_put_port_mixer),
  18700. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18701. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18702. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18703. msm_routing_get_port_mixer,
  18704. msm_routing_put_port_mixer),
  18705. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18706. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18707. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18708. msm_routing_get_port_mixer,
  18709. msm_routing_put_port_mixer),
  18710. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18711. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18712. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18713. msm_routing_get_port_mixer,
  18714. msm_routing_put_port_mixer),
  18715. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18716. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18717. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18718. msm_routing_get_port_mixer,
  18719. msm_routing_put_port_mixer),
  18720. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18721. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18722. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18723. msm_routing_get_port_mixer,
  18724. msm_routing_put_port_mixer),
  18725. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18726. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18727. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18728. msm_routing_get_port_mixer,
  18729. msm_routing_put_port_mixer),
  18730. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18731. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18732. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18733. msm_routing_get_port_mixer,
  18734. msm_routing_put_port_mixer),
  18735. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18736. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18737. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18738. msm_routing_get_port_mixer,
  18739. msm_routing_put_port_mixer),
  18740. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18741. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18742. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18743. msm_routing_get_port_mixer,
  18744. msm_routing_put_port_mixer),
  18745. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18746. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18747. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18748. msm_routing_get_port_mixer,
  18749. msm_routing_put_port_mixer),
  18750. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18751. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18752. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18753. msm_routing_get_port_mixer,
  18754. msm_routing_put_port_mixer),
  18755. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18756. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18757. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18758. msm_routing_get_port_mixer,
  18759. msm_routing_put_port_mixer),
  18760. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18761. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18762. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18763. msm_routing_get_port_mixer,
  18764. msm_routing_put_port_mixer),
  18765. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18766. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18767. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18768. msm_routing_get_port_mixer,
  18769. msm_routing_put_port_mixer),
  18770. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18771. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18772. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18773. msm_routing_get_port_mixer,
  18774. msm_routing_put_port_mixer),
  18775. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18776. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18777. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18778. msm_routing_get_port_mixer,
  18779. msm_routing_put_port_mixer),
  18780. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18781. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18782. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18783. msm_routing_get_port_mixer,
  18784. msm_routing_put_port_mixer),
  18785. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18786. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18787. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18788. msm_routing_get_port_mixer,
  18789. msm_routing_put_port_mixer),
  18790. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18791. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18792. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18793. msm_routing_get_port_mixer,
  18794. msm_routing_put_port_mixer),
  18795. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18796. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18797. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18798. msm_routing_get_port_mixer,
  18799. msm_routing_put_port_mixer),
  18800. };
  18801. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  18802. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18803. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18804. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18805. msm_routing_get_port_mixer,
  18806. msm_routing_put_port_mixer),
  18807. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18808. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18809. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18810. msm_routing_get_port_mixer,
  18811. msm_routing_put_port_mixer),
  18812. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18813. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18814. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18815. msm_routing_get_port_mixer,
  18816. msm_routing_put_port_mixer),
  18817. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18818. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18819. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18820. msm_routing_get_port_mixer,
  18821. msm_routing_put_port_mixer),
  18822. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18823. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18824. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18825. msm_routing_get_port_mixer,
  18826. msm_routing_put_port_mixer),
  18827. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18828. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18829. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18830. msm_routing_get_port_mixer,
  18831. msm_routing_put_port_mixer),
  18832. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18833. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18834. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18835. msm_routing_get_port_mixer,
  18836. msm_routing_put_port_mixer),
  18837. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18838. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18839. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18840. msm_routing_get_port_mixer,
  18841. msm_routing_put_port_mixer),
  18842. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18843. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18844. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18845. msm_routing_get_port_mixer,
  18846. msm_routing_put_port_mixer),
  18847. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18848. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18849. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18850. msm_routing_get_port_mixer,
  18851. msm_routing_put_port_mixer),
  18852. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18853. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18854. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18855. msm_routing_get_port_mixer,
  18856. msm_routing_put_port_mixer),
  18857. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18858. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18859. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18860. msm_routing_get_port_mixer,
  18861. msm_routing_put_port_mixer),
  18862. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18863. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18864. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18865. msm_routing_get_port_mixer,
  18866. msm_routing_put_port_mixer),
  18867. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18868. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18869. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18870. msm_routing_get_port_mixer,
  18871. msm_routing_put_port_mixer),
  18872. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18873. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18874. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18875. msm_routing_get_port_mixer,
  18876. msm_routing_put_port_mixer),
  18877. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18878. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18879. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18880. msm_routing_get_port_mixer,
  18881. msm_routing_put_port_mixer),
  18882. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18883. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18884. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18885. msm_routing_get_port_mixer,
  18886. msm_routing_put_port_mixer),
  18887. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18888. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18889. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18890. msm_routing_get_port_mixer,
  18891. msm_routing_put_port_mixer),
  18892. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18893. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18894. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18895. msm_routing_get_port_mixer,
  18896. msm_routing_put_port_mixer),
  18897. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18898. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18899. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18900. msm_routing_get_port_mixer,
  18901. msm_routing_put_port_mixer),
  18902. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18903. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18904. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18905. msm_routing_get_port_mixer,
  18906. msm_routing_put_port_mixer),
  18907. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18908. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18909. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18910. msm_routing_get_port_mixer,
  18911. msm_routing_put_port_mixer),
  18912. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18913. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18914. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18915. msm_routing_get_port_mixer,
  18916. msm_routing_put_port_mixer),
  18917. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18918. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18919. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18920. msm_routing_get_port_mixer,
  18921. msm_routing_put_port_mixer),
  18922. };
  18923. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  18924. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18925. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18926. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18927. msm_routing_get_port_mixer,
  18928. msm_routing_put_port_mixer),
  18929. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18930. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18931. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18932. msm_routing_get_port_mixer,
  18933. msm_routing_put_port_mixer),
  18934. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18935. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18936. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18937. msm_routing_get_port_mixer,
  18938. msm_routing_put_port_mixer),
  18939. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18940. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18941. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18942. msm_routing_get_port_mixer,
  18943. msm_routing_put_port_mixer),
  18944. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18945. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18946. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18947. msm_routing_get_port_mixer,
  18948. msm_routing_put_port_mixer),
  18949. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18950. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18951. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18952. msm_routing_get_port_mixer,
  18953. msm_routing_put_port_mixer),
  18954. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18955. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18956. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18957. msm_routing_get_port_mixer,
  18958. msm_routing_put_port_mixer),
  18959. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18960. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18961. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18962. msm_routing_get_port_mixer,
  18963. msm_routing_put_port_mixer),
  18964. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18965. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18966. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18967. msm_routing_get_port_mixer,
  18968. msm_routing_put_port_mixer),
  18969. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18970. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18971. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18972. msm_routing_get_port_mixer,
  18973. msm_routing_put_port_mixer),
  18974. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18975. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18976. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18977. msm_routing_get_port_mixer,
  18978. msm_routing_put_port_mixer),
  18979. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18980. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18981. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18982. msm_routing_get_port_mixer,
  18983. msm_routing_put_port_mixer),
  18984. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18985. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18986. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18987. msm_routing_get_port_mixer,
  18988. msm_routing_put_port_mixer),
  18989. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18990. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18991. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18992. msm_routing_get_port_mixer,
  18993. msm_routing_put_port_mixer),
  18994. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18995. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18996. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18997. msm_routing_get_port_mixer,
  18998. msm_routing_put_port_mixer),
  18999. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19000. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19001. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19002. msm_routing_get_port_mixer,
  19003. msm_routing_put_port_mixer),
  19004. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19005. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19006. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19007. msm_routing_get_port_mixer,
  19008. msm_routing_put_port_mixer),
  19009. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19010. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19011. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19012. msm_routing_get_port_mixer,
  19013. msm_routing_put_port_mixer),
  19014. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19015. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19016. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19017. msm_routing_get_port_mixer,
  19018. msm_routing_put_port_mixer),
  19019. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19020. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19021. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19022. msm_routing_get_port_mixer,
  19023. msm_routing_put_port_mixer),
  19024. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19025. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19026. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19027. msm_routing_get_port_mixer,
  19028. msm_routing_put_port_mixer),
  19029. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19030. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19031. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19032. msm_routing_get_port_mixer,
  19033. msm_routing_put_port_mixer),
  19034. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19035. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19036. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19037. msm_routing_get_port_mixer,
  19038. msm_routing_put_port_mixer),
  19039. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19040. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19041. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19042. msm_routing_get_port_mixer,
  19043. msm_routing_put_port_mixer),
  19044. };
  19045. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  19046. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19047. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19048. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19049. msm_routing_get_port_mixer,
  19050. msm_routing_put_port_mixer),
  19051. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19052. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19053. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19054. msm_routing_get_port_mixer,
  19055. msm_routing_put_port_mixer),
  19056. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19057. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19058. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19059. msm_routing_get_port_mixer,
  19060. msm_routing_put_port_mixer),
  19061. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19062. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19063. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19064. msm_routing_get_port_mixer,
  19065. msm_routing_put_port_mixer),
  19066. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19067. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19068. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19069. msm_routing_get_port_mixer,
  19070. msm_routing_put_port_mixer),
  19071. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19072. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19073. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19074. msm_routing_get_port_mixer,
  19075. msm_routing_put_port_mixer),
  19076. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19077. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19078. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19079. msm_routing_get_port_mixer,
  19080. msm_routing_put_port_mixer),
  19081. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19082. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19083. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19084. msm_routing_get_port_mixer,
  19085. msm_routing_put_port_mixer),
  19086. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19087. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19088. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19089. msm_routing_get_port_mixer,
  19090. msm_routing_put_port_mixer),
  19091. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19092. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19093. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19094. msm_routing_get_port_mixer,
  19095. msm_routing_put_port_mixer),
  19096. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19097. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19098. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19099. msm_routing_get_port_mixer,
  19100. msm_routing_put_port_mixer),
  19101. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19102. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19103. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19104. msm_routing_get_port_mixer,
  19105. msm_routing_put_port_mixer),
  19106. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19107. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19108. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19109. msm_routing_get_port_mixer,
  19110. msm_routing_put_port_mixer),
  19111. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19112. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19113. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19114. msm_routing_get_port_mixer,
  19115. msm_routing_put_port_mixer),
  19116. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19117. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19118. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19119. msm_routing_get_port_mixer,
  19120. msm_routing_put_port_mixer),
  19121. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19122. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19123. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19124. msm_routing_get_port_mixer,
  19125. msm_routing_put_port_mixer),
  19126. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19127. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19128. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19129. msm_routing_get_port_mixer,
  19130. msm_routing_put_port_mixer),
  19131. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19132. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19133. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19134. msm_routing_get_port_mixer,
  19135. msm_routing_put_port_mixer),
  19136. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19137. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19138. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19139. msm_routing_get_port_mixer,
  19140. msm_routing_put_port_mixer),
  19141. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19142. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19143. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19144. msm_routing_get_port_mixer,
  19145. msm_routing_put_port_mixer),
  19146. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19147. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19148. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19149. msm_routing_get_port_mixer,
  19150. msm_routing_put_port_mixer),
  19151. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19152. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19153. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19154. msm_routing_get_port_mixer,
  19155. msm_routing_put_port_mixer),
  19156. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19157. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19158. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19159. msm_routing_get_port_mixer,
  19160. msm_routing_put_port_mixer),
  19161. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19162. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19163. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19164. msm_routing_get_port_mixer,
  19165. msm_routing_put_port_mixer),
  19166. };
  19167. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  19168. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19169. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19170. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19171. msm_routing_get_port_mixer,
  19172. msm_routing_put_port_mixer),
  19173. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19174. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19175. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19176. msm_routing_get_port_mixer,
  19177. msm_routing_put_port_mixer),
  19178. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19179. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19180. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19181. msm_routing_get_port_mixer,
  19182. msm_routing_put_port_mixer),
  19183. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19184. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19185. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19186. msm_routing_get_port_mixer,
  19187. msm_routing_put_port_mixer),
  19188. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19189. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19190. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19191. msm_routing_get_port_mixer,
  19192. msm_routing_put_port_mixer),
  19193. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19194. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19195. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19196. msm_routing_get_port_mixer,
  19197. msm_routing_put_port_mixer),
  19198. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19199. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19200. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19201. msm_routing_get_port_mixer,
  19202. msm_routing_put_port_mixer),
  19203. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19204. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19205. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19206. msm_routing_get_port_mixer,
  19207. msm_routing_put_port_mixer),
  19208. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19209. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19210. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19211. msm_routing_get_port_mixer,
  19212. msm_routing_put_port_mixer),
  19213. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19214. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19215. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19216. msm_routing_get_port_mixer,
  19217. msm_routing_put_port_mixer),
  19218. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19219. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19220. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19221. msm_routing_get_port_mixer,
  19222. msm_routing_put_port_mixer),
  19223. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19224. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19225. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19226. msm_routing_get_port_mixer,
  19227. msm_routing_put_port_mixer),
  19228. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19229. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19230. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19231. msm_routing_get_port_mixer,
  19232. msm_routing_put_port_mixer),
  19233. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19234. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19235. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19236. msm_routing_get_port_mixer,
  19237. msm_routing_put_port_mixer),
  19238. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19239. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19240. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19241. msm_routing_get_port_mixer,
  19242. msm_routing_put_port_mixer),
  19243. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19244. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19245. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19246. msm_routing_get_port_mixer,
  19247. msm_routing_put_port_mixer),
  19248. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19249. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19250. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19251. msm_routing_get_port_mixer,
  19252. msm_routing_put_port_mixer),
  19253. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19254. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19255. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19256. msm_routing_get_port_mixer,
  19257. msm_routing_put_port_mixer),
  19258. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19259. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19260. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19261. msm_routing_get_port_mixer,
  19262. msm_routing_put_port_mixer),
  19263. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19264. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19265. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19266. msm_routing_get_port_mixer,
  19267. msm_routing_put_port_mixer),
  19268. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19269. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19270. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19271. msm_routing_get_port_mixer,
  19272. msm_routing_put_port_mixer),
  19273. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19274. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19275. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19276. msm_routing_get_port_mixer,
  19277. msm_routing_put_port_mixer),
  19278. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19279. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19280. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19281. msm_routing_get_port_mixer,
  19282. msm_routing_put_port_mixer),
  19283. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19284. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19285. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19286. msm_routing_get_port_mixer,
  19287. msm_routing_put_port_mixer),
  19288. };
  19289. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  19290. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19291. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19292. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19293. msm_routing_get_port_mixer,
  19294. msm_routing_put_port_mixer),
  19295. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19296. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19297. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19298. msm_routing_get_port_mixer,
  19299. msm_routing_put_port_mixer),
  19300. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19301. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19302. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19303. msm_routing_get_port_mixer,
  19304. msm_routing_put_port_mixer),
  19305. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19306. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19307. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19308. msm_routing_get_port_mixer,
  19309. msm_routing_put_port_mixer),
  19310. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19311. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19312. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19313. msm_routing_get_port_mixer,
  19314. msm_routing_put_port_mixer),
  19315. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19316. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19317. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19318. msm_routing_get_port_mixer,
  19319. msm_routing_put_port_mixer),
  19320. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19321. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19322. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19323. msm_routing_get_port_mixer,
  19324. msm_routing_put_port_mixer),
  19325. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19326. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19327. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19328. msm_routing_get_port_mixer,
  19329. msm_routing_put_port_mixer),
  19330. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19331. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19332. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19333. msm_routing_get_port_mixer,
  19334. msm_routing_put_port_mixer),
  19335. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19336. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19337. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19338. msm_routing_get_port_mixer,
  19339. msm_routing_put_port_mixer),
  19340. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19341. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19342. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19343. msm_routing_get_port_mixer,
  19344. msm_routing_put_port_mixer),
  19345. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19346. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19347. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19348. msm_routing_get_port_mixer,
  19349. msm_routing_put_port_mixer),
  19350. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19351. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19352. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19353. msm_routing_get_port_mixer,
  19354. msm_routing_put_port_mixer),
  19355. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19356. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19357. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19358. msm_routing_get_port_mixer,
  19359. msm_routing_put_port_mixer),
  19360. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19361. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19362. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19363. msm_routing_get_port_mixer,
  19364. msm_routing_put_port_mixer),
  19365. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19366. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19367. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19368. msm_routing_get_port_mixer,
  19369. msm_routing_put_port_mixer),
  19370. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19371. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19372. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19373. msm_routing_get_port_mixer,
  19374. msm_routing_put_port_mixer),
  19375. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19376. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19377. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19378. msm_routing_get_port_mixer,
  19379. msm_routing_put_port_mixer),
  19380. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19381. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19382. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19383. msm_routing_get_port_mixer,
  19384. msm_routing_put_port_mixer),
  19385. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19386. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19387. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19388. msm_routing_get_port_mixer,
  19389. msm_routing_put_port_mixer),
  19390. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19391. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19392. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19393. msm_routing_get_port_mixer,
  19394. msm_routing_put_port_mixer),
  19395. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19396. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19397. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19398. msm_routing_get_port_mixer,
  19399. msm_routing_put_port_mixer),
  19400. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19401. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19402. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19403. msm_routing_get_port_mixer,
  19404. msm_routing_put_port_mixer),
  19405. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19406. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19407. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19408. msm_routing_get_port_mixer,
  19409. msm_routing_put_port_mixer),
  19410. };
  19411. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  19412. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  19413. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19414. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  19415. msm_routing_get_port_mixer,
  19416. msm_routing_put_port_mixer),
  19417. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  19418. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19419. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  19420. msm_routing_get_port_mixer,
  19421. msm_routing_put_port_mixer),
  19422. };
  19423. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  19424. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19425. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19426. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19427. msm_routing_get_port_mixer,
  19428. msm_routing_put_port_mixer),
  19429. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19430. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19431. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19432. msm_routing_get_port_mixer,
  19433. msm_routing_put_port_mixer),
  19434. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19435. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19436. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19437. msm_routing_get_port_mixer,
  19438. msm_routing_put_port_mixer),
  19439. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19440. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19441. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19442. msm_routing_get_port_mixer,
  19443. msm_routing_put_port_mixer),
  19444. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19445. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19446. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19447. msm_routing_get_port_mixer,
  19448. msm_routing_put_port_mixer),
  19449. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19450. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19451. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19452. msm_routing_get_port_mixer,
  19453. msm_routing_put_port_mixer),
  19454. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19455. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19456. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19457. msm_routing_get_port_mixer,
  19458. msm_routing_put_port_mixer),
  19459. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19460. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19461. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19462. msm_routing_get_port_mixer,
  19463. msm_routing_put_port_mixer),
  19464. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19465. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19466. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19467. msm_routing_get_port_mixer,
  19468. msm_routing_put_port_mixer),
  19469. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19470. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19471. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19472. msm_routing_get_port_mixer,
  19473. msm_routing_put_port_mixer),
  19474. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19475. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19476. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19477. msm_routing_get_port_mixer,
  19478. msm_routing_put_port_mixer),
  19479. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19480. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19481. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19482. msm_routing_get_port_mixer,
  19483. msm_routing_put_port_mixer),
  19484. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19485. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19486. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19487. msm_routing_get_port_mixer,
  19488. msm_routing_put_port_mixer),
  19489. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19490. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19491. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19492. msm_routing_get_port_mixer,
  19493. msm_routing_put_port_mixer),
  19494. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19495. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19496. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19497. msm_routing_get_port_mixer,
  19498. msm_routing_put_port_mixer),
  19499. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19500. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19501. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19502. msm_routing_get_port_mixer,
  19503. msm_routing_put_port_mixer),
  19504. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19505. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19506. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19507. msm_routing_get_port_mixer,
  19508. msm_routing_put_port_mixer),
  19509. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19510. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19511. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19512. msm_routing_get_port_mixer,
  19513. msm_routing_put_port_mixer),
  19514. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19515. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19516. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19517. msm_routing_get_port_mixer,
  19518. msm_routing_put_port_mixer),
  19519. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19520. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19521. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19522. msm_routing_get_port_mixer,
  19523. msm_routing_put_port_mixer),
  19524. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19525. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19526. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19527. msm_routing_get_port_mixer,
  19528. msm_routing_put_port_mixer),
  19529. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19530. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19531. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19532. msm_routing_get_port_mixer,
  19533. msm_routing_put_port_mixer),
  19534. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19535. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19536. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19537. msm_routing_get_port_mixer,
  19538. msm_routing_put_port_mixer),
  19539. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19540. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19541. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19542. msm_routing_get_port_mixer,
  19543. msm_routing_put_port_mixer),
  19544. };
  19545. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  19546. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19547. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19548. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19549. msm_routing_get_port_mixer,
  19550. msm_routing_put_port_mixer),
  19551. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19552. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19553. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19554. msm_routing_get_port_mixer,
  19555. msm_routing_put_port_mixer),
  19556. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19557. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19558. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19559. msm_routing_get_port_mixer,
  19560. msm_routing_put_port_mixer),
  19561. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19562. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19563. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19564. msm_routing_get_port_mixer,
  19565. msm_routing_put_port_mixer),
  19566. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19567. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19568. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19569. msm_routing_get_port_mixer,
  19570. msm_routing_put_port_mixer),
  19571. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19572. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19573. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19574. msm_routing_get_port_mixer,
  19575. msm_routing_put_port_mixer),
  19576. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19577. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19578. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19579. msm_routing_get_port_mixer,
  19580. msm_routing_put_port_mixer),
  19581. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19582. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19583. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19584. msm_routing_get_port_mixer,
  19585. msm_routing_put_port_mixer),
  19586. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19587. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19588. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19589. msm_routing_get_port_mixer,
  19590. msm_routing_put_port_mixer),
  19591. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19592. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19593. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19594. msm_routing_get_port_mixer,
  19595. msm_routing_put_port_mixer),
  19596. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19597. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19598. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19599. msm_routing_get_port_mixer,
  19600. msm_routing_put_port_mixer),
  19601. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19602. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19603. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19604. msm_routing_get_port_mixer,
  19605. msm_routing_put_port_mixer),
  19606. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19607. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19608. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19609. msm_routing_get_port_mixer,
  19610. msm_routing_put_port_mixer),
  19611. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19612. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19613. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19614. msm_routing_get_port_mixer,
  19615. msm_routing_put_port_mixer),
  19616. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19617. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19618. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19619. msm_routing_get_port_mixer,
  19620. msm_routing_put_port_mixer),
  19621. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19622. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19623. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19624. msm_routing_get_port_mixer,
  19625. msm_routing_put_port_mixer),
  19626. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19627. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19628. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19629. msm_routing_get_port_mixer,
  19630. msm_routing_put_port_mixer),
  19631. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19632. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19633. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19634. msm_routing_get_port_mixer,
  19635. msm_routing_put_port_mixer),
  19636. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19637. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19638. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19639. msm_routing_get_port_mixer,
  19640. msm_routing_put_port_mixer),
  19641. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19642. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19643. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19644. msm_routing_get_port_mixer,
  19645. msm_routing_put_port_mixer),
  19646. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19647. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19648. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19649. msm_routing_get_port_mixer,
  19650. msm_routing_put_port_mixer),
  19651. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19652. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19653. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19654. msm_routing_get_port_mixer,
  19655. msm_routing_put_port_mixer),
  19656. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19657. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19658. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19659. msm_routing_get_port_mixer,
  19660. msm_routing_put_port_mixer),
  19661. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19662. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19663. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19664. msm_routing_get_port_mixer,
  19665. msm_routing_put_port_mixer),
  19666. };
  19667. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  19668. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19669. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19670. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19671. msm_routing_get_port_mixer,
  19672. msm_routing_put_port_mixer),
  19673. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19674. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19675. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19676. msm_routing_get_port_mixer,
  19677. msm_routing_put_port_mixer),
  19678. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19679. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19680. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19681. msm_routing_get_port_mixer,
  19682. msm_routing_put_port_mixer),
  19683. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19684. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19685. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19686. msm_routing_get_port_mixer,
  19687. msm_routing_put_port_mixer),
  19688. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19689. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19690. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19691. msm_routing_get_port_mixer,
  19692. msm_routing_put_port_mixer),
  19693. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19694. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19695. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19696. msm_routing_get_port_mixer,
  19697. msm_routing_put_port_mixer),
  19698. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19699. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19700. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19701. msm_routing_get_port_mixer,
  19702. msm_routing_put_port_mixer),
  19703. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19704. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19705. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19706. msm_routing_get_port_mixer,
  19707. msm_routing_put_port_mixer),
  19708. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19709. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19710. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19711. msm_routing_get_port_mixer,
  19712. msm_routing_put_port_mixer),
  19713. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19714. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19715. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19716. msm_routing_get_port_mixer,
  19717. msm_routing_put_port_mixer),
  19718. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19719. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19720. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19721. msm_routing_get_port_mixer,
  19722. msm_routing_put_port_mixer),
  19723. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19724. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19725. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19726. msm_routing_get_port_mixer,
  19727. msm_routing_put_port_mixer),
  19728. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19729. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19730. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19731. msm_routing_get_port_mixer,
  19732. msm_routing_put_port_mixer),
  19733. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19734. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19735. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19736. msm_routing_get_port_mixer,
  19737. msm_routing_put_port_mixer),
  19738. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19739. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19740. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19741. msm_routing_get_port_mixer,
  19742. msm_routing_put_port_mixer),
  19743. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19744. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19745. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19746. msm_routing_get_port_mixer,
  19747. msm_routing_put_port_mixer),
  19748. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19749. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19750. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19751. msm_routing_get_port_mixer,
  19752. msm_routing_put_port_mixer),
  19753. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19754. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19755. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19756. msm_routing_get_port_mixer,
  19757. msm_routing_put_port_mixer),
  19758. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19759. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19760. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19761. msm_routing_get_port_mixer,
  19762. msm_routing_put_port_mixer),
  19763. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19764. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19765. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19766. msm_routing_get_port_mixer,
  19767. msm_routing_put_port_mixer),
  19768. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19769. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19770. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19771. msm_routing_get_port_mixer,
  19772. msm_routing_put_port_mixer),
  19773. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19774. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19775. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19776. msm_routing_get_port_mixer,
  19777. msm_routing_put_port_mixer),
  19778. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19779. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19780. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19781. msm_routing_get_port_mixer,
  19782. msm_routing_put_port_mixer),
  19783. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19784. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19785. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19786. msm_routing_get_port_mixer,
  19787. msm_routing_put_port_mixer),
  19788. };
  19789. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  19790. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19791. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19792. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19793. msm_routing_get_port_mixer,
  19794. msm_routing_put_port_mixer),
  19795. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19796. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19797. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19798. msm_routing_get_port_mixer,
  19799. msm_routing_put_port_mixer),
  19800. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19801. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19802. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19803. msm_routing_get_port_mixer,
  19804. msm_routing_put_port_mixer),
  19805. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19806. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19807. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19808. msm_routing_get_port_mixer,
  19809. msm_routing_put_port_mixer),
  19810. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19811. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19812. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19813. msm_routing_get_port_mixer,
  19814. msm_routing_put_port_mixer),
  19815. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19816. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19817. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19818. msm_routing_get_port_mixer,
  19819. msm_routing_put_port_mixer),
  19820. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19821. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19822. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19823. msm_routing_get_port_mixer,
  19824. msm_routing_put_port_mixer),
  19825. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19826. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19827. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19828. msm_routing_get_port_mixer,
  19829. msm_routing_put_port_mixer),
  19830. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19831. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19832. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19833. msm_routing_get_port_mixer,
  19834. msm_routing_put_port_mixer),
  19835. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19836. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19837. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19838. msm_routing_get_port_mixer,
  19839. msm_routing_put_port_mixer),
  19840. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19841. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19842. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19843. msm_routing_get_port_mixer,
  19844. msm_routing_put_port_mixer),
  19845. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19846. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19847. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19848. msm_routing_get_port_mixer,
  19849. msm_routing_put_port_mixer),
  19850. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19851. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19852. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19853. msm_routing_get_port_mixer,
  19854. msm_routing_put_port_mixer),
  19855. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19856. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19857. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19858. msm_routing_get_port_mixer,
  19859. msm_routing_put_port_mixer),
  19860. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19861. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19862. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19863. msm_routing_get_port_mixer,
  19864. msm_routing_put_port_mixer),
  19865. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19866. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19867. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19868. msm_routing_get_port_mixer,
  19869. msm_routing_put_port_mixer),
  19870. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19871. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19872. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19873. msm_routing_get_port_mixer,
  19874. msm_routing_put_port_mixer),
  19875. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19876. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19877. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19878. msm_routing_get_port_mixer,
  19879. msm_routing_put_port_mixer),
  19880. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19881. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19882. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19883. msm_routing_get_port_mixer,
  19884. msm_routing_put_port_mixer),
  19885. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19886. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19887. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19888. msm_routing_get_port_mixer,
  19889. msm_routing_put_port_mixer),
  19890. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19891. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19892. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19893. msm_routing_get_port_mixer,
  19894. msm_routing_put_port_mixer),
  19895. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19896. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19897. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19898. msm_routing_get_port_mixer,
  19899. msm_routing_put_port_mixer),
  19900. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19901. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19902. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19903. msm_routing_get_port_mixer,
  19904. msm_routing_put_port_mixer),
  19905. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19906. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19907. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19908. msm_routing_get_port_mixer,
  19909. msm_routing_put_port_mixer),
  19910. };
  19911. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  19912. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19913. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19914. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19915. msm_routing_get_port_mixer,
  19916. msm_routing_put_port_mixer),
  19917. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19918. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19919. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19920. msm_routing_get_port_mixer,
  19921. msm_routing_put_port_mixer),
  19922. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19923. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19924. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19925. msm_routing_get_port_mixer,
  19926. msm_routing_put_port_mixer),
  19927. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19928. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19929. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19930. msm_routing_get_port_mixer,
  19931. msm_routing_put_port_mixer),
  19932. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19933. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19934. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19935. msm_routing_get_port_mixer,
  19936. msm_routing_put_port_mixer),
  19937. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19938. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19939. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19940. msm_routing_get_port_mixer,
  19941. msm_routing_put_port_mixer),
  19942. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19943. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19944. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19945. msm_routing_get_port_mixer,
  19946. msm_routing_put_port_mixer),
  19947. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19948. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19949. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19950. msm_routing_get_port_mixer,
  19951. msm_routing_put_port_mixer),
  19952. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19953. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19954. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19955. msm_routing_get_port_mixer,
  19956. msm_routing_put_port_mixer),
  19957. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19958. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19959. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19960. msm_routing_get_port_mixer,
  19961. msm_routing_put_port_mixer),
  19962. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19963. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19964. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19965. msm_routing_get_port_mixer,
  19966. msm_routing_put_port_mixer),
  19967. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19968. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19969. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19970. msm_routing_get_port_mixer,
  19971. msm_routing_put_port_mixer),
  19972. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19973. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19974. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19975. msm_routing_get_port_mixer,
  19976. msm_routing_put_port_mixer),
  19977. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19978. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19979. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19980. msm_routing_get_port_mixer,
  19981. msm_routing_put_port_mixer),
  19982. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19983. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19984. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19985. msm_routing_get_port_mixer,
  19986. msm_routing_put_port_mixer),
  19987. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19988. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19989. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19990. msm_routing_get_port_mixer,
  19991. msm_routing_put_port_mixer),
  19992. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19993. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19994. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19995. msm_routing_get_port_mixer,
  19996. msm_routing_put_port_mixer),
  19997. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19998. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19999. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20000. msm_routing_get_port_mixer,
  20001. msm_routing_put_port_mixer),
  20002. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20003. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20004. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20005. msm_routing_get_port_mixer,
  20006. msm_routing_put_port_mixer),
  20007. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20008. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20009. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20010. msm_routing_get_port_mixer,
  20011. msm_routing_put_port_mixer),
  20012. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20013. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20014. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20015. msm_routing_get_port_mixer,
  20016. msm_routing_put_port_mixer),
  20017. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20018. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20019. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20020. msm_routing_get_port_mixer,
  20021. msm_routing_put_port_mixer),
  20022. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20023. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20024. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20025. msm_routing_get_port_mixer,
  20026. msm_routing_put_port_mixer),
  20027. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20028. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20029. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20030. msm_routing_get_port_mixer,
  20031. msm_routing_put_port_mixer),
  20032. };
  20033. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  20034. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20035. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20036. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20037. msm_routing_get_port_mixer,
  20038. msm_routing_put_port_mixer),
  20039. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20040. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20041. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20042. msm_routing_get_port_mixer,
  20043. msm_routing_put_port_mixer),
  20044. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20045. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20046. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20047. msm_routing_get_port_mixer,
  20048. msm_routing_put_port_mixer),
  20049. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20050. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20051. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20052. msm_routing_get_port_mixer,
  20053. msm_routing_put_port_mixer),
  20054. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20055. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20056. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20057. msm_routing_get_port_mixer,
  20058. msm_routing_put_port_mixer),
  20059. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20060. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20061. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20062. msm_routing_get_port_mixer,
  20063. msm_routing_put_port_mixer),
  20064. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20065. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20066. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20067. msm_routing_get_port_mixer,
  20068. msm_routing_put_port_mixer),
  20069. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20070. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20071. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20072. msm_routing_get_port_mixer,
  20073. msm_routing_put_port_mixer),
  20074. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20075. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20076. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20077. msm_routing_get_port_mixer,
  20078. msm_routing_put_port_mixer),
  20079. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20080. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20081. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20082. msm_routing_get_port_mixer,
  20083. msm_routing_put_port_mixer),
  20084. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20085. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20086. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20087. msm_routing_get_port_mixer,
  20088. msm_routing_put_port_mixer),
  20089. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20090. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20091. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20092. msm_routing_get_port_mixer,
  20093. msm_routing_put_port_mixer),
  20094. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20095. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20096. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20097. msm_routing_get_port_mixer,
  20098. msm_routing_put_port_mixer),
  20099. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20100. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20101. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20102. msm_routing_get_port_mixer,
  20103. msm_routing_put_port_mixer),
  20104. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20105. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20106. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20107. msm_routing_get_port_mixer,
  20108. msm_routing_put_port_mixer),
  20109. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20110. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20111. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20112. msm_routing_get_port_mixer,
  20113. msm_routing_put_port_mixer),
  20114. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20115. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20116. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20117. msm_routing_get_port_mixer,
  20118. msm_routing_put_port_mixer),
  20119. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20120. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20121. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20122. msm_routing_get_port_mixer,
  20123. msm_routing_put_port_mixer),
  20124. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20125. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20126. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20127. msm_routing_get_port_mixer,
  20128. msm_routing_put_port_mixer),
  20129. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20130. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20131. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20132. msm_routing_get_port_mixer,
  20133. msm_routing_put_port_mixer),
  20134. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20135. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20136. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20137. msm_routing_get_port_mixer,
  20138. msm_routing_put_port_mixer),
  20139. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20140. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20141. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20142. msm_routing_get_port_mixer,
  20143. msm_routing_put_port_mixer),
  20144. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20145. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20146. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20147. msm_routing_get_port_mixer,
  20148. msm_routing_put_port_mixer),
  20149. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20150. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20151. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20152. msm_routing_get_port_mixer,
  20153. msm_routing_put_port_mixer),
  20154. };
  20155. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  20156. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20157. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20158. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20159. msm_routing_get_port_mixer,
  20160. msm_routing_put_port_mixer),
  20161. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20162. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20163. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20164. msm_routing_get_port_mixer,
  20165. msm_routing_put_port_mixer),
  20166. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20167. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20168. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20169. msm_routing_get_port_mixer,
  20170. msm_routing_put_port_mixer),
  20171. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20172. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20173. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20174. msm_routing_get_port_mixer,
  20175. msm_routing_put_port_mixer),
  20176. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20177. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20178. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20179. msm_routing_get_port_mixer,
  20180. msm_routing_put_port_mixer),
  20181. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20182. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20183. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20184. msm_routing_get_port_mixer,
  20185. msm_routing_put_port_mixer),
  20186. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20187. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20188. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20189. msm_routing_get_port_mixer,
  20190. msm_routing_put_port_mixer),
  20191. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20192. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20193. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20194. msm_routing_get_port_mixer,
  20195. msm_routing_put_port_mixer),
  20196. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20197. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20198. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20199. msm_routing_get_port_mixer,
  20200. msm_routing_put_port_mixer),
  20201. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20202. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20203. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20204. msm_routing_get_port_mixer,
  20205. msm_routing_put_port_mixer),
  20206. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20207. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20208. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20209. msm_routing_get_port_mixer,
  20210. msm_routing_put_port_mixer),
  20211. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20212. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20213. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20214. msm_routing_get_port_mixer,
  20215. msm_routing_put_port_mixer),
  20216. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20217. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20218. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20219. msm_routing_get_port_mixer,
  20220. msm_routing_put_port_mixer),
  20221. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20222. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20223. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20224. msm_routing_get_port_mixer,
  20225. msm_routing_put_port_mixer),
  20226. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20227. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20228. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20229. msm_routing_get_port_mixer,
  20230. msm_routing_put_port_mixer),
  20231. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20232. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20233. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20234. msm_routing_get_port_mixer,
  20235. msm_routing_put_port_mixer),
  20236. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20237. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20238. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20239. msm_routing_get_port_mixer,
  20240. msm_routing_put_port_mixer),
  20241. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20242. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20243. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20244. msm_routing_get_port_mixer,
  20245. msm_routing_put_port_mixer),
  20246. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20247. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20248. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20249. msm_routing_get_port_mixer,
  20250. msm_routing_put_port_mixer),
  20251. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20252. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20253. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20254. msm_routing_get_port_mixer,
  20255. msm_routing_put_port_mixer),
  20256. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20257. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20258. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20259. msm_routing_get_port_mixer,
  20260. msm_routing_put_port_mixer),
  20261. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20262. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20263. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20264. msm_routing_get_port_mixer,
  20265. msm_routing_put_port_mixer),
  20266. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20267. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20268. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20269. msm_routing_get_port_mixer,
  20270. msm_routing_put_port_mixer),
  20271. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20272. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20273. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20274. msm_routing_get_port_mixer,
  20275. msm_routing_put_port_mixer),
  20276. };
  20277. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  20278. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20279. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20280. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20281. msm_routing_get_port_mixer,
  20282. msm_routing_put_port_mixer),
  20283. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20284. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20285. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20286. msm_routing_get_port_mixer,
  20287. msm_routing_put_port_mixer),
  20288. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20289. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20290. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20291. msm_routing_get_port_mixer,
  20292. msm_routing_put_port_mixer),
  20293. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20294. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20295. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20296. msm_routing_get_port_mixer,
  20297. msm_routing_put_port_mixer),
  20298. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20299. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20300. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20301. msm_routing_get_port_mixer,
  20302. msm_routing_put_port_mixer),
  20303. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20304. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20305. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20306. msm_routing_get_port_mixer,
  20307. msm_routing_put_port_mixer),
  20308. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20309. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20310. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20311. msm_routing_get_port_mixer,
  20312. msm_routing_put_port_mixer),
  20313. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20314. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20315. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20316. msm_routing_get_port_mixer,
  20317. msm_routing_put_port_mixer),
  20318. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20319. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20320. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20321. msm_routing_get_port_mixer,
  20322. msm_routing_put_port_mixer),
  20323. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20324. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20325. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20326. msm_routing_get_port_mixer,
  20327. msm_routing_put_port_mixer),
  20328. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20329. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20330. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20331. msm_routing_get_port_mixer,
  20332. msm_routing_put_port_mixer),
  20333. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20334. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20335. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20336. msm_routing_get_port_mixer,
  20337. msm_routing_put_port_mixer),
  20338. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20339. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20340. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20341. msm_routing_get_port_mixer,
  20342. msm_routing_put_port_mixer),
  20343. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20344. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20345. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20346. msm_routing_get_port_mixer,
  20347. msm_routing_put_port_mixer),
  20348. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20349. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20350. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20351. msm_routing_get_port_mixer,
  20352. msm_routing_put_port_mixer),
  20353. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20354. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20355. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20356. msm_routing_get_port_mixer,
  20357. msm_routing_put_port_mixer),
  20358. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20359. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20360. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20361. msm_routing_get_port_mixer,
  20362. msm_routing_put_port_mixer),
  20363. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20364. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20365. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20366. msm_routing_get_port_mixer,
  20367. msm_routing_put_port_mixer),
  20368. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20369. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20370. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20371. msm_routing_get_port_mixer,
  20372. msm_routing_put_port_mixer),
  20373. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20374. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20375. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20376. msm_routing_get_port_mixer,
  20377. msm_routing_put_port_mixer),
  20378. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20379. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20380. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20381. msm_routing_get_port_mixer,
  20382. msm_routing_put_port_mixer),
  20383. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20384. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20385. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20386. msm_routing_get_port_mixer,
  20387. msm_routing_put_port_mixer),
  20388. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20389. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20390. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20391. msm_routing_get_port_mixer,
  20392. msm_routing_put_port_mixer),
  20393. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20394. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20395. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20396. msm_routing_get_port_mixer,
  20397. msm_routing_put_port_mixer),
  20398. };
  20399. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  20400. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  20401. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20402. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  20403. msm_routing_get_port_mixer,
  20404. msm_routing_put_port_mixer),
  20405. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  20406. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20407. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  20408. msm_routing_get_port_mixer,
  20409. msm_routing_put_port_mixer),
  20410. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  20411. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20412. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  20413. msm_routing_get_port_mixer,
  20414. msm_routing_put_port_mixer),
  20415. };
  20416. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  20417. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20418. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20419. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20420. msm_routing_put_port_mixer),
  20421. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20422. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20423. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20424. msm_routing_put_port_mixer),
  20425. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20426. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20427. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20428. msm_routing_put_port_mixer),
  20429. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20430. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20431. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20432. msm_routing_put_port_mixer),
  20433. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20434. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20435. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20436. msm_routing_put_port_mixer),
  20437. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20438. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20439. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20440. msm_routing_put_port_mixer),
  20441. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20442. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20443. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20444. msm_routing_put_port_mixer),
  20445. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20446. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20447. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20448. msm_routing_put_port_mixer),
  20449. };
  20450. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  20451. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20452. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20453. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20454. msm_routing_put_port_mixer),
  20455. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20456. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20457. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20458. msm_routing_put_port_mixer),
  20459. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20460. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20461. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20462. msm_routing_put_port_mixer),
  20463. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20464. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20465. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20466. msm_routing_put_port_mixer),
  20467. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20468. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20469. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20470. msm_routing_put_port_mixer),
  20471. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20472. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20473. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20474. msm_routing_put_port_mixer),
  20475. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20476. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20477. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20478. msm_routing_put_port_mixer),
  20479. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20480. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20481. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  20482. msm_routing_put_port_mixer),
  20483. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20484. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20485. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20486. msm_routing_put_port_mixer),
  20487. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20488. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20489. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  20490. msm_routing_put_port_mixer),
  20491. };
  20492. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  20493. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20494. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20495. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20496. msm_routing_put_listen_mixer),
  20497. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20498. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20499. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20500. msm_routing_put_listen_mixer),
  20501. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20502. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20503. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20504. msm_routing_put_listen_mixer),
  20505. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20506. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20507. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20508. msm_routing_put_listen_mixer),
  20509. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20510. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20511. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20512. msm_routing_put_listen_mixer),
  20513. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20514. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20515. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20516. msm_routing_put_listen_mixer),
  20517. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20518. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20519. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20520. msm_routing_put_listen_mixer),
  20521. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20522. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20523. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20524. msm_routing_put_listen_mixer),
  20525. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20526. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20527. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20528. msm_routing_put_listen_mixer),
  20529. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20530. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20531. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20532. msm_routing_put_listen_mixer),
  20533. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20534. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20535. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20536. msm_routing_put_listen_mixer),
  20537. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20538. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20539. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20540. msm_routing_put_listen_mixer),
  20541. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20542. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20543. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20544. msm_routing_put_listen_mixer),
  20545. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20546. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20547. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20548. msm_routing_put_listen_mixer),
  20549. };
  20550. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  20551. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20552. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20553. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20554. msm_routing_put_listen_mixer),
  20555. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  20556. SND_SOC_NOPM,
  20557. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20558. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20559. msm_routing_put_listen_mixer),
  20560. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20561. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20562. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20563. msm_routing_put_listen_mixer),
  20564. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20565. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20566. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20567. msm_routing_put_listen_mixer),
  20568. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20569. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20570. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20571. msm_routing_put_listen_mixer),
  20572. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20573. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20574. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20575. msm_routing_put_listen_mixer),
  20576. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20577. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20578. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20579. msm_routing_put_listen_mixer),
  20580. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20581. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20582. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20583. msm_routing_put_listen_mixer),
  20584. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20585. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20586. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20587. msm_routing_put_listen_mixer),
  20588. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20589. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20590. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20591. msm_routing_put_listen_mixer),
  20592. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20593. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20594. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20595. msm_routing_put_listen_mixer),
  20596. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20597. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20598. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20599. msm_routing_put_listen_mixer),
  20600. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20601. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20602. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20603. msm_routing_put_listen_mixer),
  20604. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20605. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20606. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20607. msm_routing_put_listen_mixer),
  20608. };
  20609. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  20610. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20611. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20612. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20613. msm_routing_put_listen_mixer),
  20614. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20615. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20616. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20617. msm_routing_put_listen_mixer),
  20618. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20619. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20620. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20621. msm_routing_put_listen_mixer),
  20622. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20623. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20624. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20625. msm_routing_put_listen_mixer),
  20626. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20627. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20628. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20629. msm_routing_put_listen_mixer),
  20630. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20631. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20632. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20633. msm_routing_put_listen_mixer),
  20634. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20635. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20636. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20637. msm_routing_put_listen_mixer),
  20638. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20639. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20640. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20641. msm_routing_put_listen_mixer),
  20642. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20643. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20644. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20645. msm_routing_put_listen_mixer),
  20646. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20647. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20648. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20649. msm_routing_put_listen_mixer),
  20650. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20651. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20652. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20653. msm_routing_put_listen_mixer),
  20654. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20655. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20656. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20657. msm_routing_put_listen_mixer),
  20658. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20659. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20660. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20661. msm_routing_put_listen_mixer),
  20662. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20663. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20664. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20665. msm_routing_put_listen_mixer),
  20666. };
  20667. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  20668. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20669. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20670. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20671. msm_routing_put_listen_mixer),
  20672. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20673. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20674. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20675. msm_routing_put_listen_mixer),
  20676. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20677. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20678. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20679. msm_routing_put_listen_mixer),
  20680. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20681. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20682. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20683. msm_routing_put_listen_mixer),
  20684. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20685. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20686. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20687. msm_routing_put_listen_mixer),
  20688. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20689. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20690. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20691. msm_routing_put_listen_mixer),
  20692. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20693. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20694. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20695. msm_routing_put_listen_mixer),
  20696. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20697. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20698. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20699. msm_routing_put_listen_mixer),
  20700. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20701. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20702. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20703. msm_routing_put_listen_mixer),
  20704. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20705. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20706. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20707. msm_routing_put_listen_mixer),
  20708. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20709. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20710. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20711. msm_routing_put_listen_mixer),
  20712. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20713. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20714. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20715. msm_routing_put_listen_mixer),
  20716. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20717. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20718. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20719. msm_routing_put_listen_mixer),
  20720. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20721. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20722. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20723. msm_routing_put_listen_mixer),
  20724. };
  20725. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  20726. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20727. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20728. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20729. msm_routing_put_listen_mixer),
  20730. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20731. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20732. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20733. msm_routing_put_listen_mixer),
  20734. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20735. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20736. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20737. msm_routing_put_listen_mixer),
  20738. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20739. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20740. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20741. msm_routing_put_listen_mixer),
  20742. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20743. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20744. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20745. msm_routing_put_listen_mixer),
  20746. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20747. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20748. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20749. msm_routing_put_listen_mixer),
  20750. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20751. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20752. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20753. msm_routing_put_listen_mixer),
  20754. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20755. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20756. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20757. msm_routing_put_listen_mixer),
  20758. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20759. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20760. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20761. msm_routing_put_listen_mixer),
  20762. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20763. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20764. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20765. msm_routing_put_listen_mixer),
  20766. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20767. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20768. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20769. msm_routing_put_listen_mixer),
  20770. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20771. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20772. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20773. msm_routing_put_listen_mixer),
  20774. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20775. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20776. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20777. msm_routing_put_listen_mixer),
  20778. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20779. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20780. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20781. msm_routing_put_listen_mixer),
  20782. };
  20783. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  20784. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20785. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20786. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20787. msm_routing_put_listen_mixer),
  20788. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20789. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20790. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20791. msm_routing_put_listen_mixer),
  20792. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20793. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20794. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20795. msm_routing_put_listen_mixer),
  20796. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20797. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20798. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20799. msm_routing_put_listen_mixer),
  20800. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20801. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20802. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20803. msm_routing_put_listen_mixer),
  20804. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20805. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20806. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20807. msm_routing_put_listen_mixer),
  20808. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20809. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20810. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20811. msm_routing_put_listen_mixer),
  20812. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20813. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20814. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20815. msm_routing_put_listen_mixer),
  20816. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20817. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20818. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20819. msm_routing_put_listen_mixer),
  20820. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20821. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20822. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20823. msm_routing_put_listen_mixer),
  20824. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20825. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20826. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20827. msm_routing_put_listen_mixer),
  20828. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20829. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20830. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20831. msm_routing_put_listen_mixer),
  20832. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20833. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20834. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20835. msm_routing_put_listen_mixer),
  20836. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20837. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20838. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20839. msm_routing_put_listen_mixer),
  20840. };
  20841. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  20842. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20843. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20844. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20845. msm_routing_put_listen_mixer),
  20846. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20847. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20848. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20849. msm_routing_put_listen_mixer),
  20850. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20851. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20852. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20853. msm_routing_put_listen_mixer),
  20854. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20855. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20856. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20857. msm_routing_put_listen_mixer),
  20858. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20859. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20860. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20861. msm_routing_put_listen_mixer),
  20862. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20863. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20864. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20865. msm_routing_put_listen_mixer),
  20866. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20867. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20868. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20869. msm_routing_put_listen_mixer),
  20870. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20871. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20872. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20873. msm_routing_put_listen_mixer),
  20874. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20875. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20876. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20877. msm_routing_put_listen_mixer),
  20878. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20879. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20880. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20881. msm_routing_put_listen_mixer),
  20882. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20883. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20884. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20885. msm_routing_put_listen_mixer),
  20886. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20887. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20888. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20889. msm_routing_put_listen_mixer),
  20890. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20891. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20892. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20893. msm_routing_put_listen_mixer),
  20894. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20895. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20896. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20897. msm_routing_put_listen_mixer),
  20898. };
  20899. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  20900. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20901. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20902. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20903. msm_routing_put_listen_mixer),
  20904. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20905. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20906. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20907. msm_routing_put_listen_mixer),
  20908. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20909. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20910. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20911. msm_routing_put_listen_mixer),
  20912. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20913. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20914. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20915. msm_routing_put_listen_mixer),
  20916. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20917. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20918. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20919. msm_routing_put_listen_mixer),
  20920. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20921. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20922. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20923. msm_routing_put_listen_mixer),
  20924. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20925. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20926. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20927. msm_routing_put_listen_mixer),
  20928. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20929. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20930. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20931. msm_routing_put_listen_mixer),
  20932. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20933. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20934. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20935. msm_routing_put_listen_mixer),
  20936. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20937. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20938. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20939. msm_routing_put_listen_mixer),
  20940. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20941. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20942. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20943. msm_routing_put_listen_mixer),
  20944. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20945. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20946. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20947. msm_routing_put_listen_mixer),
  20948. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20949. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20950. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20951. msm_routing_put_listen_mixer),
  20952. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20953. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20954. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20955. msm_routing_put_listen_mixer),
  20956. };
  20957. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  20958. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20959. 0, 1, 0, msm_routing_get_switch_mixer,
  20960. msm_routing_put_switch_mixer);
  20961. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  20962. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20963. 0, 1, 0, msm_routing_get_switch_mixer,
  20964. msm_routing_put_switch_mixer);
  20965. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  20966. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20967. 0, 1, 0, msm_routing_get_switch_mixer,
  20968. msm_routing_put_switch_mixer);
  20969. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  20970. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20971. 0, 1, 0, msm_routing_get_switch_mixer,
  20972. msm_routing_put_switch_mixer);
  20973. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  20974. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20975. 0, 1, 0, msm_routing_get_switch_mixer,
  20976. msm_routing_put_switch_mixer);
  20977. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  20978. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20979. 0, 1, 0, msm_routing_get_switch_mixer,
  20980. msm_routing_put_switch_mixer);
  20981. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  20982. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20983. 0, 1, 0, msm_routing_get_switch_mixer,
  20984. msm_routing_put_switch_mixer);
  20985. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  20986. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20987. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  20988. msm_routing_put_fm_pcmrx_switch_mixer);
  20989. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  20990. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20991. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  20992. msm_routing_put_int0_mi2s_switch_mixer);
  20993. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  20994. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20995. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  20996. msm_routing_put_int4_mi2s_switch_mixer);
  20997. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  20998. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20999. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  21000. msm_routing_put_pri_mi2s_switch_mixer);
  21001. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  21002. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21003. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  21004. msm_routing_put_sec_mi2s_switch_mixer);
  21005. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  21006. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21007. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  21008. msm_routing_put_tert_mi2s_switch_mixer);
  21009. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  21010. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21011. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  21012. msm_routing_put_quat_mi2s_switch_mixer);
  21013. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  21014. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21015. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  21016. msm_routing_put_quin_mi2s_switch_mixer);
  21017. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  21018. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21019. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  21020. msm_routing_put_sen_mi2s_switch_mixer);
  21021. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  21022. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21023. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21024. msm_routing_put_hfp_switch_mixer);
  21025. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  21026. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21027. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21028. msm_routing_put_hfp_switch_mixer);
  21029. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  21030. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21031. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21032. msm_routing_put_hfp_switch_mixer);
  21033. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  21034. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21035. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21036. msm_routing_put_hfp_switch_mixer);
  21037. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  21038. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21039. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  21040. msm_routing_put_usb_switch_mixer);
  21041. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  21042. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21043. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  21044. msm_routing_a2dp_switch_mixer_put);
  21045. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  21046. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21047. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  21048. msm_routing_sco_switch_mixer_put);
  21049. static const struct soc_enum lsm_port_enum =
  21050. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  21051. static const char * const lsm_func_text[] = {
  21052. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  21053. };
  21054. static const struct soc_enum lsm_func_enum =
  21055. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  21056. static const struct snd_kcontrol_new lsm_controls[] = {
  21057. /* kcontrol of lsm_function */
  21058. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21059. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21060. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21061. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21062. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21063. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21064. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21065. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21066. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21067. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21068. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21069. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21070. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21071. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21072. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21073. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21074. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21075. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21076. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21077. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21078. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21079. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21080. SOC_ENUM_EXT(TERT_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21081. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21082. /* kcontrol of lsm_port */
  21083. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  21084. msm_routing_lsm_port_get,
  21085. msm_routing_lsm_port_put),
  21086. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  21087. msm_routing_lsm_port_get,
  21088. msm_routing_lsm_port_put),
  21089. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  21090. msm_routing_lsm_port_get,
  21091. msm_routing_lsm_port_put),
  21092. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  21093. msm_routing_lsm_port_get,
  21094. msm_routing_lsm_port_put),
  21095. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  21096. msm_routing_lsm_port_get,
  21097. msm_routing_lsm_port_put),
  21098. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  21099. msm_routing_lsm_port_get,
  21100. msm_routing_lsm_port_put),
  21101. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  21102. msm_routing_lsm_port_get,
  21103. msm_routing_lsm_port_put),
  21104. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  21105. msm_routing_lsm_port_get,
  21106. msm_routing_lsm_port_put),
  21107. };
  21108. static const char * const aanc_slim_0_rx_text[] = {
  21109. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  21110. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  21111. };
  21112. static const struct soc_enum aanc_slim_0_rx_enum =
  21113. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  21114. aanc_slim_0_rx_text);
  21115. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  21116. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  21117. msm_routing_slim_0_rx_aanc_mux_get,
  21118. msm_routing_slim_0_rx_aanc_mux_put)
  21119. };
  21120. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  21121. struct snd_ctl_elem_value *ucontrol)
  21122. {
  21123. ucontrol->value.integer.value[0] = aanc_level;
  21124. return 0;
  21125. }
  21126. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  21127. struct snd_ctl_elem_value *ucontrol)
  21128. {
  21129. int ret = 0;
  21130. mutex_lock(&routing_lock);
  21131. aanc_level = ucontrol->value.integer.value[0];
  21132. pr_debug("%s: value: %ld\n",
  21133. __func__, ucontrol->value.integer.value[0]);
  21134. ret = afe_set_aanc_noise_level(aanc_level);
  21135. mutex_unlock(&routing_lock);
  21136. return ret;
  21137. }
  21138. static const struct snd_kcontrol_new aanc_noise_level[] = {
  21139. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  21140. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  21141. };
  21142. static int msm_routing_get_stereo_to_custom_stereo_control(
  21143. struct snd_kcontrol *kcontrol,
  21144. struct snd_ctl_elem_value *ucontrol)
  21145. {
  21146. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  21147. return 0;
  21148. }
  21149. static int msm_routing_put_stereo_to_custom_stereo_control(
  21150. struct snd_kcontrol *kcontrol,
  21151. struct snd_ctl_elem_value *ucontrol)
  21152. {
  21153. int flag = 0, i = 0, rc = 0, idx = 0;
  21154. int be_index = 0, port_id, topo_id;
  21155. unsigned int session_id = 0;
  21156. uint16_t op_FL_ip_FL_weight = 0;
  21157. uint16_t op_FL_ip_FR_weight = 0;
  21158. uint16_t op_FR_ip_FL_weight = 0;
  21159. uint16_t op_FR_ip_FR_weight = 0;
  21160. flag = ucontrol->value.integer.value[0];
  21161. pr_debug("%s E flag %d\n", __func__, flag);
  21162. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  21163. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  21164. __func__, is_custom_stereo_on, flag);
  21165. return 0;
  21166. }
  21167. is_custom_stereo_on = flag ? true : false;
  21168. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  21169. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  21170. port_id = msm_bedais[be_index].port_id;
  21171. if (!msm_bedais[be_index].active)
  21172. continue;
  21173. if ((port_id != SLIMBUS_0_RX) &&
  21174. (port_id != RT_PROXY_PORT_001_RX) &&
  21175. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  21176. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  21177. continue;
  21178. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  21179. MSM_FRONTEND_DAI_MM_SIZE) {
  21180. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  21181. LEGACY_PCM_MODE)
  21182. goto skip_send_custom_stereo;
  21183. session_id =
  21184. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  21185. if (is_custom_stereo_on) {
  21186. op_FL_ip_FL_weight =
  21187. Q14_GAIN_ZERO_POINT_FIVE;
  21188. op_FL_ip_FR_weight =
  21189. Q14_GAIN_ZERO_POINT_FIVE;
  21190. op_FR_ip_FL_weight =
  21191. Q14_GAIN_ZERO_POINT_FIVE;
  21192. op_FR_ip_FR_weight =
  21193. Q14_GAIN_ZERO_POINT_FIVE;
  21194. } else {
  21195. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  21196. op_FL_ip_FR_weight = 0;
  21197. op_FR_ip_FL_weight = 0;
  21198. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  21199. }
  21200. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21201. unsigned long copp =
  21202. session_copp_map[i]
  21203. [SESSION_TYPE_RX][be_index];
  21204. if (!test_bit(idx, &copp))
  21205. goto skip_send_custom_stereo;
  21206. topo_id = adm_get_topology_for_port_copp_idx(
  21207. msm_bedais[be_index].port_id, idx);
  21208. if (topo_id < 0)
  21209. pr_debug("%s:Err:custom stereo topo %d",
  21210. __func__, topo_id);
  21211. pr_debug("idx %d\n", idx);
  21212. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  21213. rc = msm_ds2_dap_set_custom_stereo_onoff
  21214. (msm_bedais[be_index].port_id,
  21215. idx, is_custom_stereo_on);
  21216. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  21217. rc = dolby_dap_set_custom_stereo_onoff(
  21218. msm_bedais[be_index].port_id,
  21219. idx, is_custom_stereo_on);
  21220. else
  21221. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  21222. (msm_bedais[be_index].port_id,
  21223. idx, session_id,
  21224. op_FL_ip_FL_weight,
  21225. op_FL_ip_FR_weight,
  21226. op_FR_ip_FL_weight,
  21227. op_FR_ip_FR_weight);
  21228. if (rc < 0)
  21229. skip_send_custom_stereo:
  21230. pr_err("%s: err setting custom stereo\n",
  21231. __func__);
  21232. }
  21233. }
  21234. }
  21235. return 0;
  21236. }
  21237. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  21238. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  21239. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  21240. msm_routing_put_stereo_to_custom_stereo_control),
  21241. };
  21242. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21243. struct snd_ctl_elem_value *ucontrol)
  21244. {
  21245. return 0;
  21246. }
  21247. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21248. struct snd_ctl_elem_value *ucontrol)
  21249. {
  21250. int i = 0, j;
  21251. int num_app_types = ucontrol->value.integer.value[i++];
  21252. pr_debug("%s\n", __func__);
  21253. memset(app_type_cfg, 0, MAX_APP_TYPES*
  21254. sizeof(struct msm_pcm_routing_app_type_data));
  21255. if (num_app_types > MAX_APP_TYPES) {
  21256. pr_err("%s: number of app types exceed the max supported\n",
  21257. __func__);
  21258. return -EINVAL;
  21259. }
  21260. for (j = 0; j < num_app_types; j++) {
  21261. app_type_cfg[j].app_type =
  21262. ucontrol->value.integer.value[i++];
  21263. app_type_cfg[j].sample_rate =
  21264. ucontrol->value.integer.value[i++];
  21265. app_type_cfg[j].bit_width =
  21266. ucontrol->value.integer.value[i++];
  21267. }
  21268. return 0;
  21269. }
  21270. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  21271. struct snd_ctl_elem_value *ucontrol)
  21272. {
  21273. int j, fe_id, be_id, port_type;
  21274. int ret = 0;
  21275. unsigned long copp;
  21276. struct msm_pcm_routing_bdai_data *bedai;
  21277. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21278. SESSION_TYPE_RX;
  21279. int app_type = ucontrol->value.integer.value[1];
  21280. int gain = (ucontrol->value.integer.value[2] +
  21281. ucontrol->value.integer.value[3])/2;
  21282. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21283. MSM_AFE_PORT_TYPE_TX;
  21284. mutex_lock(&routing_lock);
  21285. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21286. if (is_be_dai_extproc(be_id))
  21287. continue;
  21288. bedai = &msm_bedais[be_id];
  21289. if (afe_get_port_type(bedai->port_id) != port_type)
  21290. continue;
  21291. if (!bedai->active)
  21292. continue;
  21293. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21294. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21295. continue;
  21296. if (app_type !=
  21297. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21298. continue;
  21299. copp = session_copp_map[fe_id][dir][be_id];
  21300. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  21301. if (!test_bit(j, &copp))
  21302. continue;
  21303. ret |= adm_set_volume(bedai->port_id, j, gain);
  21304. }
  21305. }
  21306. }
  21307. mutex_unlock(&routing_lock);
  21308. return ret ? -EINVAL : 0;
  21309. }
  21310. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  21311. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  21312. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  21313. msm_routing_put_app_type_cfg_control),
  21314. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  21315. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  21316. };
  21317. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  21318. struct snd_ctl_elem_value *ucontrol)
  21319. {
  21320. int copp_idx, fe_id, be_id, port_type;
  21321. int ret = 0;
  21322. unsigned long copp;
  21323. struct msm_pcm_routing_bdai_data *bedai;
  21324. u8 *packed_params = NULL;
  21325. struct param_hdr_v3 param_hdr;
  21326. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  21327. sizeof(uint32_t));
  21328. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21329. SESSION_TYPE_RX;
  21330. int app_type = ucontrol->value.integer.value[1];
  21331. int module_id = ucontrol->value.integer.value[2];
  21332. int instance_id = ucontrol->value.integer.value[3];
  21333. int param_id = ucontrol->value.integer.value[4];
  21334. int param_value = ucontrol->value.integer.value[5];
  21335. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21336. MSM_AFE_PORT_TYPE_TX;
  21337. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  21338. __func__, app_type, module_id,
  21339. instance_id, param_id, param_value);
  21340. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  21341. if (!packed_params)
  21342. return -ENOMEM;
  21343. memset(&param_hdr, 0, sizeof(param_hdr));
  21344. param_hdr.module_id = module_id;
  21345. param_hdr.instance_id = instance_id;
  21346. param_hdr.param_id = param_id;
  21347. param_hdr.param_size = sizeof(uint32_t);
  21348. packed_param_size = 0;
  21349. mutex_lock(&routing_lock);
  21350. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21351. if (is_be_dai_extproc(be_id))
  21352. continue;
  21353. bedai = &msm_bedais[be_id];
  21354. if (afe_get_port_type(bedai->port_id) != port_type)
  21355. continue;
  21356. if (!bedai->active)
  21357. continue;
  21358. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21359. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21360. continue;
  21361. if (app_type !=
  21362. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21363. continue;
  21364. copp = session_copp_map[fe_id][dir][be_id];
  21365. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  21366. copp_idx++) {
  21367. if (!test_bit(copp_idx, &copp))
  21368. continue;
  21369. ret = q6common_pack_pp_params(packed_params,
  21370. &param_hdr,
  21371. (u8 *) &param_value,
  21372. &packed_param_size);
  21373. if (ret) {
  21374. pr_err("%s: Failed to pack params, error %d\n",
  21375. __func__, ret);
  21376. goto done;
  21377. }
  21378. ret = adm_set_pp_params(bedai->port_id,
  21379. copp_idx, NULL,
  21380. packed_params,
  21381. packed_param_size);
  21382. if (ret) {
  21383. pr_err("%s: Setting param failed with err=%d\n",
  21384. __func__, ret);
  21385. ret = -EINVAL;
  21386. goto done;
  21387. }
  21388. }
  21389. }
  21390. }
  21391. done:
  21392. mutex_unlock(&routing_lock);
  21393. kfree(packed_params);
  21394. return ret;
  21395. }
  21396. static const struct snd_kcontrol_new module_cfg_controls[] = {
  21397. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  21398. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  21399. };
  21400. static int msm_routing_get_lsm_app_type_cfg_control(
  21401. struct snd_kcontrol *kcontrol,
  21402. struct snd_ctl_elem_value *ucontrol)
  21403. {
  21404. int shift = ((struct soc_multi_mixer_control *)
  21405. kcontrol->private_value)->shift;
  21406. int i = 0, j = 0;
  21407. ucontrol->value.integer.value[i] = num_app_cfg_types;
  21408. for (j = 0; j < num_app_cfg_types; ++j) {
  21409. ucontrol->value.integer.value[++i] =
  21410. lsm_app_type_cfg[j].app_type;
  21411. ucontrol->value.integer.value[++i] =
  21412. lsm_app_type_cfg[j].sample_rate;
  21413. ucontrol->value.integer.value[++i] =
  21414. lsm_app_type_cfg[j].bit_width;
  21415. if (shift == 1)
  21416. ucontrol->value.integer.value[++i] =
  21417. lsm_app_type_cfg[j].num_out_channels;
  21418. }
  21419. return 0;
  21420. }
  21421. static int msm_routing_put_lsm_app_type_cfg_control(
  21422. struct snd_kcontrol *kcontrol,
  21423. struct snd_ctl_elem_value *ucontrol)
  21424. {
  21425. int shift = ((struct soc_multi_mixer_control *)
  21426. kcontrol->private_value)->shift;
  21427. int i = 0, j;
  21428. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  21429. pr_err("%s: number of app types exceed the max supported\n",
  21430. __func__);
  21431. return -EINVAL;
  21432. }
  21433. num_app_cfg_types = ucontrol->value.integer.value[i++];
  21434. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  21435. sizeof(struct msm_pcm_routing_app_type_data));
  21436. for (j = 0; j < num_app_cfg_types; j++) {
  21437. lsm_app_type_cfg[j].app_type =
  21438. ucontrol->value.integer.value[i++];
  21439. lsm_app_type_cfg[j].sample_rate =
  21440. ucontrol->value.integer.value[i++];
  21441. lsm_app_type_cfg[j].bit_width =
  21442. ucontrol->value.integer.value[i++];
  21443. /* Shift of 1 indicates this is V2 mixer control */
  21444. if (shift == 1)
  21445. lsm_app_type_cfg[j].num_out_channels =
  21446. ucontrol->value.integer.value[i++];
  21447. }
  21448. return 0;
  21449. }
  21450. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  21451. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  21452. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21453. msm_routing_put_lsm_app_type_cfg_control),
  21454. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  21455. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21456. msm_routing_put_lsm_app_type_cfg_control),
  21457. };
  21458. static int msm_routing_get_use_ds1_or_ds2_control(
  21459. struct snd_kcontrol *kcontrol,
  21460. struct snd_ctl_elem_value *ucontrol)
  21461. {
  21462. ucontrol->value.integer.value[0] = is_ds2_on;
  21463. return 0;
  21464. }
  21465. static int msm_routing_put_use_ds1_or_ds2_control(
  21466. struct snd_kcontrol *kcontrol,
  21467. struct snd_ctl_elem_value *ucontrol)
  21468. {
  21469. is_ds2_on = ucontrol->value.integer.value[0];
  21470. return 0;
  21471. }
  21472. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  21473. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  21474. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  21475. msm_routing_put_use_ds1_or_ds2_control),
  21476. };
  21477. static int msm_routing_get_hifi_filter_control(
  21478. struct snd_kcontrol *kcontrol,
  21479. struct snd_ctl_elem_value *ucontrol)
  21480. {
  21481. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  21482. return 0;
  21483. }
  21484. static int msm_routing_put_hifi_filter_control(
  21485. struct snd_kcontrol *kcontrol,
  21486. struct snd_ctl_elem_value *ucontrol)
  21487. {
  21488. hifi_filter_enabled = ucontrol->value.integer.value[0];
  21489. return 0;
  21490. }
  21491. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  21492. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  21493. 1, 0, msm_routing_get_hifi_filter_control,
  21494. msm_routing_put_hifi_filter_control),
  21495. };
  21496. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  21497. struct snd_ctl_elem_value *ucontrol) {
  21498. int rc = 0;
  21499. int be_idx = 0;
  21500. char *param_value;
  21501. int *update_param_value;
  21502. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  21503. struct param_hdr_v3 param_hdr;
  21504. param_value = kzalloc(param_size, GFP_KERNEL);
  21505. if (!param_value)
  21506. return -ENOMEM;
  21507. memset(&param_hdr, 0, sizeof(param_hdr));
  21508. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  21509. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  21510. break;
  21511. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  21512. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  21513. param_hdr.instance_id = INSTANCE_ID_0;
  21514. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  21515. param_hdr.param_size = param_size;
  21516. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  21517. NULL, &param_hdr, (u8 *) param_value);
  21518. if (rc) {
  21519. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  21520. kfree(param_value);
  21521. return -EINVAL;
  21522. }
  21523. update_param_value = (int *)param_value;
  21524. ucontrol->value.integer.value[0] = update_param_value[0];
  21525. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  21526. __func__, update_param_value[0]);
  21527. }
  21528. kfree(param_value);
  21529. return 0;
  21530. }
  21531. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  21532. struct snd_ctl_elem_value *ucontrol)
  21533. {
  21534. voc_session_id = ucontrol->value.integer.value[0];
  21535. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  21536. return 0;
  21537. }
  21538. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  21539. struct snd_ctl_elem_value *ucontrol)
  21540. {
  21541. ucontrol->value.integer.value[0] = voc_session_id;
  21542. return 0;
  21543. }
  21544. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  21545. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  21546. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  21547. msm_voc_session_id_put),
  21548. };
  21549. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  21550. struct snd_ctl_elem_info *uinfo)
  21551. {
  21552. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21553. uinfo->count = sizeof(struct sound_focus_param);
  21554. return 0;
  21555. }
  21556. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  21557. struct snd_ctl_elem_value *ucontrol)
  21558. {
  21559. int ret = 0;
  21560. struct sound_focus_param soundFocusData;
  21561. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21562. sizeof(struct sound_focus_param));
  21563. ret = voc_set_sound_focus(soundFocusData);
  21564. if (ret) {
  21565. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21566. __func__, ret);
  21567. ret = -EINVAL;
  21568. }
  21569. return ret;
  21570. }
  21571. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  21572. struct snd_ctl_elem_value *ucontrol)
  21573. {
  21574. int ret = 0;
  21575. struct sound_focus_param soundFocusData;
  21576. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  21577. ret = voc_get_sound_focus(&soundFocusData);
  21578. if (ret) {
  21579. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  21580. __func__, ret);
  21581. ret = -EINVAL;
  21582. goto done;
  21583. }
  21584. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21585. sizeof(struct sound_focus_param));
  21586. done:
  21587. return ret;
  21588. }
  21589. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  21590. struct snd_ctl_elem_info *uinfo)
  21591. {
  21592. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21593. uinfo->count = sizeof(struct source_tracking_param);
  21594. return 0;
  21595. }
  21596. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  21597. struct snd_ctl_elem_value *ucontrol)
  21598. {
  21599. int ret = 0;
  21600. struct source_tracking_param sourceTrackingData;
  21601. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  21602. ret = voc_get_source_tracking(&sourceTrackingData);
  21603. if (ret) {
  21604. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  21605. __func__, ret);
  21606. ret = -EINVAL;
  21607. goto done;
  21608. }
  21609. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  21610. sizeof(struct source_tracking_param));
  21611. done:
  21612. return ret;
  21613. }
  21614. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  21615. int *copp_idx)
  21616. {
  21617. int i, idx, be_idx;
  21618. int ret = 0;
  21619. unsigned long copp;
  21620. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  21621. ret = q6audio_validate_port(port_id);
  21622. if (ret < 0) {
  21623. pr_err("%s: port validation failed id 0x%x ret %d\n",
  21624. __func__, port_id, ret);
  21625. ret = -EINVAL;
  21626. goto done;
  21627. }
  21628. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  21629. if (msm_bedais[be_idx].port_id == port_id)
  21630. break;
  21631. }
  21632. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  21633. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  21634. ret = -EINVAL;
  21635. goto done;
  21636. }
  21637. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  21638. MSM_FRONTEND_DAI_MAX) {
  21639. if (!(is_mm_lsm_fe_id(i) &&
  21640. route_check_fe_id_adm_support(i)))
  21641. continue;
  21642. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21643. copp = session_copp_map[i]
  21644. [session_type][be_idx];
  21645. if (test_bit(idx, &copp))
  21646. break;
  21647. }
  21648. if (idx >= MAX_COPPS_PER_PORT)
  21649. continue;
  21650. else
  21651. break;
  21652. }
  21653. if (i >= MSM_FRONTEND_DAI_MAX) {
  21654. pr_debug("%s: Invalid FE, exiting\n", __func__);
  21655. ret = -EINVAL;
  21656. goto done;
  21657. }
  21658. *copp_idx = idx;
  21659. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  21660. done:
  21661. return ret;
  21662. }
  21663. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  21664. const char *prefix, int *port_id)
  21665. {
  21666. int ret = 0;
  21667. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  21668. /*
  21669. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  21670. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  21671. * and compare the string with the backend name to derive the port id.
  21672. */
  21673. if (!strcmp(kcontrol->id.name + strlen(prefix),
  21674. "SLIMBUS_0")) {
  21675. *port_id = SLIMBUS_0_TX;
  21676. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21677. "TERT_MI2S")) {
  21678. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  21679. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21680. "INT3_MI2S")) {
  21681. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  21682. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21683. "VA_CDC_DMA_TX_0")) {
  21684. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  21685. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21686. "TX_CDC_DMA_TX_3")) {
  21687. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  21688. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21689. "QUIN_TDM_TX_0")) {
  21690. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  21691. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21692. "PRIMARY_TDM")) {
  21693. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  21694. } else {
  21695. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  21696. __func__, kcontrol->id.name);
  21697. ret = -EINVAL;
  21698. goto done;
  21699. }
  21700. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  21701. __func__, kcontrol->id.name, *port_id);
  21702. done:
  21703. return ret;
  21704. }
  21705. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  21706. struct snd_ctl_elem_value *ucontrol)
  21707. {
  21708. int ret = 0;
  21709. struct sound_focus_param soundFocusData;
  21710. int port_id, copp_idx;
  21711. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21712. "Sound Focus Audio Tx ", &port_id);
  21713. if (ret != 0) {
  21714. pr_err("%s: Error in deriving port id, err=%d\n",
  21715. __func__, ret);
  21716. ret = -EINVAL;
  21717. goto done;
  21718. }
  21719. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21720. &copp_idx);
  21721. if (ret) {
  21722. pr_err("%s: Could not get copp idx for port_id=%d\n",
  21723. __func__, port_id);
  21724. ret = -EINVAL;
  21725. goto done;
  21726. }
  21727. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21728. sizeof(struct sound_focus_param));
  21729. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  21730. if (ret) {
  21731. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21732. __func__, ret);
  21733. ret = -EINVAL;
  21734. goto done;
  21735. }
  21736. done:
  21737. return ret;
  21738. }
  21739. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  21740. struct snd_ctl_elem_value *ucontrol)
  21741. {
  21742. int ret = 0;
  21743. struct sound_focus_param soundFocusData;
  21744. int port_id, copp_idx;
  21745. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21746. "Sound Focus Audio Tx ", &port_id);
  21747. if (ret) {
  21748. pr_err("%s: Error in deriving port id, err=%d\n",
  21749. __func__, ret);
  21750. ret = -EINVAL;
  21751. goto done;
  21752. }
  21753. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21754. &copp_idx);
  21755. if (ret) {
  21756. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  21757. __func__, port_id);
  21758. ret = -EINVAL;
  21759. goto done;
  21760. }
  21761. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  21762. if (ret) {
  21763. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  21764. __func__, ret);
  21765. ret = -EINVAL;
  21766. goto done;
  21767. }
  21768. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21769. sizeof(struct sound_focus_param));
  21770. done:
  21771. return ret;
  21772. }
  21773. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  21774. struct snd_ctl_elem_value *ucontrol)
  21775. {
  21776. int ret = 0;
  21777. struct source_tracking_param sourceTrackingData;
  21778. int port_id, copp_idx;
  21779. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21780. "Source Tracking Audio Tx ", &port_id);
  21781. if (ret) {
  21782. pr_err("%s: Error in deriving port id, err=%d\n",
  21783. __func__, ret);
  21784. ret = -EINVAL;
  21785. goto done;
  21786. }
  21787. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21788. &copp_idx);
  21789. if (ret) {
  21790. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  21791. __func__, port_id);
  21792. ret = -EINVAL;
  21793. goto done;
  21794. }
  21795. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  21796. if (ret) {
  21797. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  21798. __func__, ret);
  21799. ret = -EINVAL;
  21800. goto done;
  21801. }
  21802. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  21803. sizeof(struct source_tracking_param));
  21804. done:
  21805. return ret;
  21806. }
  21807. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  21808. struct snd_ctl_elem_info *uinfo)
  21809. {
  21810. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21811. uinfo->count = sizeof(struct doa_tracking_mon_param);
  21812. return 0;
  21813. }
  21814. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  21815. struct snd_ctl_elem_value *ucontrol)
  21816. {
  21817. int ret = 0;
  21818. struct doa_tracking_mon_param doa_tracking_data;
  21819. int port_id, copp_idx;
  21820. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  21821. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21822. "Doa Tracking Monitor Listen ", &port_id);
  21823. if (ret) {
  21824. pr_err("%s: Error in deriving port id, err=%d\n",
  21825. __func__, ret);
  21826. ret = -EINVAL;
  21827. goto done;
  21828. }
  21829. /*
  21830. * If copp id exists for given port id, query adm to get doa data.
  21831. * Else query afe for doa tracking params.
  21832. * This is to support in cases where LSM directly connects to
  21833. * AFE for FFNS.
  21834. */
  21835. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21836. &copp_idx);
  21837. if (!ret)
  21838. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  21839. &doa_tracking_data);
  21840. else
  21841. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  21842. if (ret) {
  21843. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  21844. __func__, ret);
  21845. ret = -EINVAL;
  21846. goto done;
  21847. }
  21848. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  21849. sizeof(struct doa_tracking_mon_param));
  21850. done:
  21851. return ret;
  21852. }
  21853. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  21854. {
  21855. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21856. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21857. .name = "Sound Focus Voice Tx SLIMBUS_0",
  21858. .info = msm_sound_focus_info,
  21859. .get = msm_voice_sound_focus_get,
  21860. .put = msm_voice_sound_focus_put,
  21861. },
  21862. {
  21863. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21864. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21865. .name = "Source Tracking Voice Tx SLIMBUS_0",
  21866. .info = msm_source_tracking_info,
  21867. .get = msm_voice_source_tracking_get,
  21868. },
  21869. {
  21870. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21871. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21872. .name = "Sound Focus Audio Tx SLIMBUS_0",
  21873. .info = msm_sound_focus_info,
  21874. .get = msm_audio_sound_focus_get,
  21875. .put = msm_audio_sound_focus_put,
  21876. },
  21877. {
  21878. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21879. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21880. .name = "Source Tracking Audio Tx SLIMBUS_0",
  21881. .info = msm_source_tracking_info,
  21882. .get = msm_audio_source_tracking_get,
  21883. },
  21884. {
  21885. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21886. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21887. .name = "Sound Focus Voice Tx TERT_MI2S",
  21888. .info = msm_sound_focus_info,
  21889. .get = msm_voice_sound_focus_get,
  21890. .put = msm_voice_sound_focus_put,
  21891. },
  21892. {
  21893. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21894. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21895. .name = "Source Tracking Voice Tx TERT_MI2S",
  21896. .info = msm_source_tracking_info,
  21897. .get = msm_voice_source_tracking_get,
  21898. },
  21899. {
  21900. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21901. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21902. .name = "Sound Focus Audio Tx TERT_MI2S",
  21903. .info = msm_sound_focus_info,
  21904. .get = msm_audio_sound_focus_get,
  21905. .put = msm_audio_sound_focus_put,
  21906. },
  21907. {
  21908. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21909. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21910. .name = "Source Tracking Audio Tx TERT_MI2S",
  21911. .info = msm_source_tracking_info,
  21912. .get = msm_audio_source_tracking_get,
  21913. },
  21914. {
  21915. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21916. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21917. .name = "Sound Focus Voice Tx INT3_MI2S",
  21918. .info = msm_sound_focus_info,
  21919. .get = msm_voice_sound_focus_get,
  21920. .put = msm_voice_sound_focus_put,
  21921. },
  21922. {
  21923. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21924. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21925. .name = "Source Tracking Voice Tx INT3_MI2S",
  21926. .info = msm_source_tracking_info,
  21927. .get = msm_voice_source_tracking_get,
  21928. },
  21929. {
  21930. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21931. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21932. .name = "Sound Focus Audio Tx INT3_MI2S",
  21933. .info = msm_sound_focus_info,
  21934. .get = msm_audio_sound_focus_get,
  21935. .put = msm_audio_sound_focus_put,
  21936. },
  21937. {
  21938. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21939. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21940. .name = "Source Tracking Audio Tx INT3_MI2S",
  21941. .info = msm_source_tracking_info,
  21942. .get = msm_audio_source_tracking_get,
  21943. },
  21944. {
  21945. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21946. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21947. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  21948. .info = msm_sound_focus_info,
  21949. .get = msm_voice_sound_focus_get,
  21950. .put = msm_voice_sound_focus_put,
  21951. },
  21952. {
  21953. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21954. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21955. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  21956. .info = msm_source_tracking_info,
  21957. .get = msm_voice_source_tracking_get,
  21958. },
  21959. {
  21960. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21961. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21962. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  21963. .info = msm_sound_focus_info,
  21964. .get = msm_audio_sound_focus_get,
  21965. .put = msm_audio_sound_focus_put,
  21966. },
  21967. {
  21968. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21969. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21970. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  21971. .info = msm_source_tracking_info,
  21972. .get = msm_audio_source_tracking_get,
  21973. },
  21974. {
  21975. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21976. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21977. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  21978. .info = msm_sound_focus_info,
  21979. .get = msm_voice_sound_focus_get,
  21980. .put = msm_voice_sound_focus_put,
  21981. },
  21982. {
  21983. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21984. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21985. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  21986. .info = msm_source_tracking_info,
  21987. .get = msm_voice_source_tracking_get,
  21988. },
  21989. {
  21990. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21991. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21992. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  21993. .info = msm_sound_focus_info,
  21994. .get = msm_audio_sound_focus_get,
  21995. .put = msm_audio_sound_focus_put,
  21996. },
  21997. {
  21998. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21999. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22000. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  22001. .info = msm_source_tracking_info,
  22002. .get = msm_audio_source_tracking_get,
  22003. },
  22004. {
  22005. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22006. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22007. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  22008. .info = msm_sound_focus_info,
  22009. .get = msm_voice_sound_focus_get,
  22010. .put = msm_voice_sound_focus_put,
  22011. },
  22012. {
  22013. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22014. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22015. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  22016. .info = msm_source_tracking_info,
  22017. .get = msm_voice_source_tracking_get,
  22018. },
  22019. {
  22020. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22021. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22022. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  22023. .info = msm_sound_focus_info,
  22024. .get = msm_audio_sound_focus_get,
  22025. .put = msm_audio_sound_focus_put,
  22026. },
  22027. {
  22028. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22029. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22030. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  22031. .info = msm_source_tracking_info,
  22032. .get = msm_audio_source_tracking_get,
  22033. },
  22034. {
  22035. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22036. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22037. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  22038. .info = msm_sound_focus_info,
  22039. .get = msm_audio_sound_focus_get,
  22040. .put = msm_audio_sound_focus_put,
  22041. },
  22042. {
  22043. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22044. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22045. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  22046. .info = msm_source_tracking_info,
  22047. .get = msm_audio_source_tracking_get,
  22048. },
  22049. {
  22050. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22051. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22052. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  22053. .info = msm_doa_tracking_mon_info,
  22054. .get = msm_doa_tracking_mon_get,
  22055. },
  22056. };
  22057. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  22058. struct snd_ctl_elem_value *ucontrol)
  22059. {
  22060. int ret = 0;
  22061. int item;
  22062. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22063. pr_debug("%s item is %d\n", __func__,
  22064. ucontrol->value.enumerated.item[0]);
  22065. mutex_lock(&routing_lock);
  22066. item = ucontrol->value.enumerated.item[0];
  22067. if (item < e->items) {
  22068. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22069. __func__, e->shift_l, e->values[item]);
  22070. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22071. e->values[item] < MSM_BACKEND_DAI_MAX)
  22072. /* Enable feedback TX path */
  22073. ret = afe_spk_prot_feed_back_cfg(
  22074. msm_bedais[e->values[item]].port_id,
  22075. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  22076. else {
  22077. pr_debug("%s values are out of range item %d\n",
  22078. __func__, e->values[item]);
  22079. /* Disable feedback TX path */
  22080. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22081. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  22082. else
  22083. ret = -EINVAL;
  22084. }
  22085. } else {
  22086. pr_err("%s item value is out of range item\n", __func__);
  22087. ret = -EINVAL;
  22088. }
  22089. mutex_unlock(&routing_lock);
  22090. return ret;
  22091. }
  22092. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  22093. struct snd_ctl_elem_value *ucontrol)
  22094. {
  22095. int ret = 0;
  22096. int item;
  22097. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22098. pr_debug("%s item is %d\n", __func__,
  22099. ucontrol->value.enumerated.item[0]);
  22100. mutex_lock(&routing_lock);
  22101. item = ucontrol->value.enumerated.item[0];
  22102. if (item < e->items) {
  22103. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22104. __func__, e->shift_l, e->values[item]);
  22105. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22106. e->values[item] < MSM_BACKEND_DAI_MAX)
  22107. /* Enable feedback TX path */
  22108. ret = afe_spk_prot_feed_back_cfg(
  22109. msm_bedais[e->values[item]].port_id,
  22110. msm_bedais[e->shift_l].port_id,
  22111. 1, 1, 1);
  22112. else {
  22113. pr_debug("%s values are out of range item %d\n",
  22114. __func__, e->values[item]);
  22115. /* Disable feedback TX path */
  22116. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22117. ret = afe_spk_prot_feed_back_cfg(0,
  22118. 0, 0, 0, 0);
  22119. else
  22120. ret = -EINVAL;
  22121. }
  22122. } else {
  22123. pr_err("%s item value is out of range item\n", __func__);
  22124. ret = -EINVAL;
  22125. }
  22126. mutex_unlock(&routing_lock);
  22127. return ret;
  22128. }
  22129. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  22130. struct snd_ctl_elem_value *ucontrol)
  22131. {
  22132. pr_debug("%s\n", __func__);
  22133. return 0;
  22134. }
  22135. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  22136. struct snd_ctl_elem_value *ucontrol)
  22137. {
  22138. pr_debug("%s\n", __func__);
  22139. ucontrol->value.enumerated.item[0] = 0;
  22140. return 0;
  22141. }
  22142. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  22143. "ZERO", "SLIM4_TX"
  22144. };
  22145. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  22146. "ZERO", "SLIM4_TX"
  22147. };
  22148. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  22149. "ZERO", "WSA_CDC_DMA_TX_0"
  22150. };
  22151. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  22152. "ZERO", "WSA_CDC_DMA_TX_0"
  22153. };
  22154. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  22155. "ZERO", "SENARY_TX"
  22156. };
  22157. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  22158. "ZERO", "INT5_MI2S_TX"
  22159. };
  22160. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  22161. "ZERO", "INT5_MI2S_TX"
  22162. };
  22163. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  22164. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  22165. };
  22166. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  22167. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  22168. };
  22169. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  22170. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  22171. };
  22172. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  22173. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  22174. };
  22175. static const int mi2s_rx_vi_fb_tx_value[] = {
  22176. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  22177. };
  22178. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  22179. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  22180. };
  22181. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  22182. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  22183. };
  22184. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  22185. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  22186. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  22187. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  22188. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  22189. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  22190. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  22191. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  22192. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  22193. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  22194. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  22195. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  22196. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  22197. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  22198. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  22199. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  22200. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  22201. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  22202. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  22203. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  22204. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  22205. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  22206. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  22207. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  22208. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  22209. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  22210. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  22211. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  22212. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  22213. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  22214. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  22215. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  22216. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22217. spkr_prot_put_vi_lch_port);
  22218. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  22219. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  22220. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22221. spkr_prot_put_vi_rch_port);
  22222. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  22223. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  22224. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22225. spkr_prot_put_vi_lch_port);
  22226. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  22227. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  22228. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22229. spkr_prot_put_vi_rch_port);
  22230. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  22231. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  22232. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  22233. spkr_prot_put_vi_lch_port);
  22234. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  22235. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  22236. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  22237. spkr_prot_put_vi_lch_port);
  22238. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  22239. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  22240. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  22241. spkr_prot_put_vi_rch_port);
  22242. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  22243. /* Frontend AIF */
  22244. /* Widget name equals to Front-End DAI name<Need confirmation>,
  22245. * Stream name must contains substring of front-end dai name
  22246. */
  22247. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  22248. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  22249. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  22250. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  22251. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  22252. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  22253. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  22254. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  22255. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  22256. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  22257. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  22258. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  22259. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  22260. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  22261. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  22262. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  22263. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  22264. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  22265. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  22266. SND_SOC_DAPM_AIF_IN("MM_DL23", "MultiMedia23 Playback", 0, 0, 0, 0),
  22267. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  22268. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  22269. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  22270. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  22271. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  22272. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  22273. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  22274. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  22275. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  22276. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  22277. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  22278. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  22279. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  22280. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  22281. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  22282. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  22283. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  22284. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  22285. SND_SOC_DAPM_AIF_OUT("MM_UL23", "MultiMedia23 Capture", 0, 0, 0, 0),
  22286. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  22287. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  22288. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  22289. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  22290. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  22291. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  22292. "VoiceMMode1 Playback", 0, 0, 0, 0),
  22293. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  22294. "VoiceMMode1 Capture", 0, 0, 0, 0),
  22295. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  22296. "VoiceMMode2 Playback", 0, 0, 0, 0),
  22297. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  22298. "VoiceMMode2 Capture", 0, 0, 0, 0),
  22299. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  22300. 0, 0, 0, 0),
  22301. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  22302. 0, 0, 0, 0),
  22303. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  22304. 0, 0, 0, 0),
  22305. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  22306. 0, 0, 0, 0),
  22307. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  22308. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  22309. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  22310. 0, 0, 0, 0),
  22311. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  22312. 0, 0, 0, 0),
  22313. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  22314. 0, 0, 0, 0),
  22315. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  22316. 0, 0, 0, 0),
  22317. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  22318. 0, 0, 0, 0),
  22319. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  22320. 0, 0, 0, 0),
  22321. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  22322. 0, 0, 0, 0),
  22323. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  22324. 0, 0, 0, 0),
  22325. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  22326. 0, 0, 0, 0),
  22327. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  22328. 0, 0, 0, 0),
  22329. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  22330. 0, 0, 0, 0),
  22331. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  22332. 0, 0, 0, 0),
  22333. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  22334. 0, 0, 0, 0),
  22335. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  22336. 0, 0, 0, 0),
  22337. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  22338. 0, 0, 0, 0),
  22339. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  22340. 0, 0, 0, 0),
  22341. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  22342. 0, 0, 0, 0),
  22343. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  22344. 0, 0, 0, 0),
  22345. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  22346. 0, 0, 0, 0),
  22347. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  22348. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  22349. 0, 0, 0, 0),
  22350. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  22351. "INT0 MI2S_RX Hostless Playback",
  22352. 0, 0, 0, 0),
  22353. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  22354. "INT4 MI2S_RX Hostless Playback",
  22355. 0, 0, 0, 0),
  22356. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  22357. "Primary MI2S_RX Hostless Playback",
  22358. 0, 0, 0, 0),
  22359. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  22360. "Secondary MI2S_RX Hostless Playback",
  22361. 0, 0, 0, 0),
  22362. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  22363. "Tertiary MI2S_RX Hostless Playback",
  22364. 0, 0, 0, 0),
  22365. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  22366. "Quaternary MI2S_RX Hostless Playback",
  22367. 0, 0, 0, 0),
  22368. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  22369. "Quinary MI2S_RX Hostless Playback",
  22370. 0, 0, 0, 0),
  22371. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  22372. "Senary MI2S_RX Hostless Playback",
  22373. 0, 0, 0, 0),
  22374. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  22375. 0, 0, 0, 0),
  22376. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  22377. 0, 0, 0, 0),
  22378. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  22379. 0, 0, 0, 0),
  22380. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  22381. 0, 0, 0, 0),
  22382. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  22383. 0, 0, 0, 0),
  22384. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  22385. "INT3 MI2S_TX Hostless Capture",
  22386. 0, 0, 0, 0),
  22387. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  22388. "Tertiary MI2S_TX Hostless Capture",
  22389. 0, 0, 0, 0),
  22390. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  22391. "Secondary MI2S_TX Hostless Capture",
  22392. 0, 0, 0, 0),
  22393. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  22394. "Primary MI2S_TX Hostless Capture",
  22395. 0, 0, 0, 0),
  22396. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  22397. 0, 0, 0, 0),
  22398. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  22399. 0, 0, 0, 0),
  22400. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  22401. "Quaternary MI2S_TX Hostless Capture",
  22402. 0, 0, 0, 0),
  22403. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  22404. "Quinary MI2S_TX Hostless Capture",
  22405. 0, 0, 0, 0),
  22406. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  22407. "Senary MI2S_TX Hostless Capture",
  22408. 0, 0, 0, 0),
  22409. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  22410. "Primary TDM0 Hostless Playback",
  22411. 0, 0, 0, 0),
  22412. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  22413. "Primary TDM0 Hostless Capture",
  22414. 0, 0, 0, 0),
  22415. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  22416. "Primary TDM1 Hostless Playback",
  22417. 0, 0, 0, 0),
  22418. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  22419. "Primary TDM1 Hostless Capture",
  22420. 0, 0, 0, 0),
  22421. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  22422. "Primary TDM2 Hostless Playback",
  22423. 0, 0, 0, 0),
  22424. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  22425. "Primary TDM2 Hostless Capture",
  22426. 0, 0, 0, 0),
  22427. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  22428. "Primary TDM3 Hostless Playback",
  22429. 0, 0, 0, 0),
  22430. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  22431. "Primary TDM3 Hostless Capture",
  22432. 0, 0, 0, 0),
  22433. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  22434. "Primary TDM4 Hostless Playback",
  22435. 0, 0, 0, 0),
  22436. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  22437. "Primary TDM4 Hostless Capture",
  22438. 0, 0, 0, 0),
  22439. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  22440. "Primary TDM5 Hostless Playback",
  22441. 0, 0, 0, 0),
  22442. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  22443. "Primary TDM5 Hostless Capture",
  22444. 0, 0, 0, 0),
  22445. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  22446. "Primary TDM6 Hostless Playback",
  22447. 0, 0, 0, 0),
  22448. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  22449. "Primary TDM6 Hostless Capture",
  22450. 0, 0, 0, 0),
  22451. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  22452. "Primary TDM7 Hostless Playback",
  22453. 0, 0, 0, 0),
  22454. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  22455. "Primary TDM7 Hostless Capture",
  22456. 0, 0, 0, 0),
  22457. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  22458. "Secondary TDM0 Hostless Playback",
  22459. 0, 0, 0, 0),
  22460. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  22461. "Secondary TDM0 Hostless Capture",
  22462. 0, 0, 0, 0),
  22463. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  22464. "Secondary TDM1 Hostless Playback",
  22465. 0, 0, 0, 0),
  22466. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  22467. "Secondary TDM1 Hostless Capture",
  22468. 0, 0, 0, 0),
  22469. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  22470. "Secondary TDM2 Hostless Playback",
  22471. 0, 0, 0, 0),
  22472. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  22473. "Secondary TDM2 Hostless Capture",
  22474. 0, 0, 0, 0),
  22475. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  22476. "Secondary TDM3 Hostless Playback",
  22477. 0, 0, 0, 0),
  22478. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  22479. "Secondary TDM3 Hostless Capture",
  22480. 0, 0, 0, 0),
  22481. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  22482. "Secondary TDM4 Hostless Playback",
  22483. 0, 0, 0, 0),
  22484. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  22485. "Secondary TDM4 Hostless Capture",
  22486. 0, 0, 0, 0),
  22487. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  22488. "Secondary TDM5 Hostless Playback",
  22489. 0, 0, 0, 0),
  22490. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  22491. "Secondary TDM5 Hostless Capture",
  22492. 0, 0, 0, 0),
  22493. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  22494. "Secondary TDM6 Hostless Playback",
  22495. 0, 0, 0, 0),
  22496. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  22497. "Secondary TDM6 Hostless Capture",
  22498. 0, 0, 0, 0),
  22499. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  22500. "Secondary TDM7 Hostless Playback",
  22501. 0, 0, 0, 0),
  22502. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  22503. "Secondary TDM7 Hostless Capture",
  22504. 0, 0, 0, 0),
  22505. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  22506. "Tertiary TDM0 Hostless Playback",
  22507. 0, 0, 0, 0),
  22508. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  22509. "Tertiary TDM0 Hostless Capture",
  22510. 0, 0, 0, 0),
  22511. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  22512. "Tertiary TDM1 Hostless Playback",
  22513. 0, 0, 0, 0),
  22514. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  22515. "Tertiary TDM1 Hostless Capture",
  22516. 0, 0, 0, 0),
  22517. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  22518. "Tertiary TDM2 Hostless Playback",
  22519. 0, 0, 0, 0),
  22520. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  22521. "Tertiary TDM2 Hostless Capture",
  22522. 0, 0, 0, 0),
  22523. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  22524. "Tertiary TDM3 Hostless Playback",
  22525. 0, 0, 0, 0),
  22526. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  22527. "Tertiary TDM3 Hostless Capture",
  22528. 0, 0, 0, 0),
  22529. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  22530. "Tertiary TDM4 Hostless Playback",
  22531. 0, 0, 0, 0),
  22532. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  22533. "Tertiary TDM4 Hostless Capture",
  22534. 0, 0, 0, 0),
  22535. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  22536. "Tertiary TDM5 Hostless Playback",
  22537. 0, 0, 0, 0),
  22538. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  22539. "Tertiary TDM5 Hostless Capture",
  22540. 0, 0, 0, 0),
  22541. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  22542. "Tertiary TDM6 Hostless Playback",
  22543. 0, 0, 0, 0),
  22544. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  22545. "Tertiary TDM6 Hostless Capture",
  22546. 0, 0, 0, 0),
  22547. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  22548. "Tertiary TDM7 Hostless Playback",
  22549. 0, 0, 0, 0),
  22550. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  22551. "Tertiary TDM7 Hostless Capture",
  22552. 0, 0, 0, 0),
  22553. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  22554. "Quaternary TDM0 Hostless Playback",
  22555. 0, 0, 0, 0),
  22556. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  22557. "Quaternary TDM0 Hostless Capture",
  22558. 0, 0, 0, 0),
  22559. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  22560. "Quaternary TDM1 Hostless Playback",
  22561. 0, 0, 0, 0),
  22562. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  22563. "Quaternary TDM1 Hostless Capture",
  22564. 0, 0, 0, 0),
  22565. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  22566. "Quaternary TDM2 Hostless Playback",
  22567. 0, 0, 0, 0),
  22568. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  22569. "Quaternary TDM2 Hostless Capture",
  22570. 0, 0, 0, 0),
  22571. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  22572. "Quaternary TDM3 Hostless Playback",
  22573. 0, 0, 0, 0),
  22574. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  22575. "Quaternary TDM3 Hostless Capture",
  22576. 0, 0, 0, 0),
  22577. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  22578. "Quaternary TDM4 Hostless Playback",
  22579. 0, 0, 0, 0),
  22580. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  22581. "Quaternary TDM4 Hostless Capture",
  22582. 0, 0, 0, 0),
  22583. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  22584. "Quaternary TDM5 Hostless Playback",
  22585. 0, 0, 0, 0),
  22586. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  22587. "Quaternary TDM5 Hostless Capture",
  22588. 0, 0, 0, 0),
  22589. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  22590. "Quaternary TDM6 Hostless Playback",
  22591. 0, 0, 0, 0),
  22592. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  22593. "Quaternary TDM6 Hostless Capture",
  22594. 0, 0, 0, 0),
  22595. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  22596. "Quaternary TDM7 Hostless Playback",
  22597. 0, 0, 0, 0),
  22598. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  22599. "Quaternary TDM7 Hostless Capture",
  22600. 0, 0, 0, 0),
  22601. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  22602. "Quinary TDM0 Hostless Playback",
  22603. 0, 0, 0, 0),
  22604. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  22605. "Quinary TDM0 Hostless Capture",
  22606. 0, 0, 0, 0),
  22607. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  22608. "Quinary TDM1 Hostless Playback",
  22609. 0, 0, 0, 0),
  22610. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  22611. "Quinary TDM1 Hostless Capture",
  22612. 0, 0, 0, 0),
  22613. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  22614. "Quinary TDM2 Hostless Playback",
  22615. 0, 0, 0, 0),
  22616. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  22617. "Quinary TDM2 Hostless Capture",
  22618. 0, 0, 0, 0),
  22619. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  22620. "Quinary TDM3 Hostless Playback",
  22621. 0, 0, 0, 0),
  22622. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  22623. "Quinary TDM3 Hostless Capture",
  22624. 0, 0, 0, 0),
  22625. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  22626. "Quinary TDM4 Hostless Playback",
  22627. 0, 0, 0, 0),
  22628. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  22629. "Quinary TDM4 Hostless Capture",
  22630. 0, 0, 0, 0),
  22631. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  22632. "Quinary TDM5 Hostless Playback",
  22633. 0, 0, 0, 0),
  22634. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  22635. "Quinary TDM5 Hostless Capture",
  22636. 0, 0, 0, 0),
  22637. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  22638. "Quinary TDM6 Hostless Playback",
  22639. 0, 0, 0, 0),
  22640. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  22641. "Quinary TDM6 Hostless Capture",
  22642. 0, 0, 0, 0),
  22643. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  22644. "Quinary TDM7 Hostless Playback",
  22645. 0, 0, 0, 0),
  22646. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  22647. "Quinary TDM7 Hostless Capture",
  22648. 0, 0, 0, 0),
  22649. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  22650. "Senary TDM0 Hostless Playback",
  22651. 0, 0, 0, 0),
  22652. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  22653. "Senary TDM0 Hostless Capture",
  22654. 0, 0, 0, 0),
  22655. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  22656. "Senary TDM1 Hostless Playback",
  22657. 0, 0, 0, 0),
  22658. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  22659. "Senary TDM1 Hostless Capture",
  22660. 0, 0, 0, 0),
  22661. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  22662. "Senary TDM2 Hostless Playback",
  22663. 0, 0, 0, 0),
  22664. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  22665. "Senary TDM2 Hostless Capture",
  22666. 0, 0, 0, 0),
  22667. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  22668. "Senary TDM3 Hostless Playback",
  22669. 0, 0, 0, 0),
  22670. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  22671. "Senary TDM3 Hostless Capture",
  22672. 0, 0, 0, 0),
  22673. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  22674. "Senary TDM4 Hostless Playback",
  22675. 0, 0, 0, 0),
  22676. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  22677. "Senary TDM4 Hostless Capture",
  22678. 0, 0, 0, 0),
  22679. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  22680. "Senary TDM5 Hostless Playback",
  22681. 0, 0, 0, 0),
  22682. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  22683. "Senary TDM5 Hostless Capture",
  22684. 0, 0, 0, 0),
  22685. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  22686. "Senary TDM6 Hostless Playback",
  22687. 0, 0, 0, 0),
  22688. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  22689. "Senary TDM6 Hostless Capture",
  22690. 0, 0, 0, 0),
  22691. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  22692. "Senary TDM7 Hostless Playback",
  22693. 0, 0, 0, 0),
  22694. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  22695. "Senary TDM7 Hostless Capture",
  22696. 0, 0, 0, 0),
  22697. /* LSM */
  22698. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  22699. 0, 0, 0, 0),
  22700. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  22701. 0, 0, 0, 0),
  22702. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  22703. 0, 0, 0, 0),
  22704. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  22705. 0, 0, 0, 0),
  22706. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  22707. 0, 0, 0, 0),
  22708. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  22709. 0, 0, 0, 0),
  22710. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  22711. 0, 0, 0, 0),
  22712. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  22713. 0, 0, 0, 0),
  22714. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  22715. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  22716. /* Backend AIF */
  22717. /* Stream name equals to backend dai link stream name */
  22718. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  22719. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  22720. 0, 0, 0, 0),
  22721. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  22722. 0, 0, 0, 0),
  22723. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  22724. 0, 0, 0, 0),
  22725. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  22726. 0, 0, 0, 0),
  22727. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  22728. 0, 0, 0, 0),
  22729. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  22730. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  22731. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  22732. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  22733. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  22734. 0, 0, 0, 0),
  22735. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  22736. 0, 0, 0, 0),
  22737. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  22738. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  22739. 0, 0, 0, 0),
  22740. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  22741. 0, 0, 0, 0),
  22742. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  22743. 0, 0, 0, 0),
  22744. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  22745. "Secondary MI2S Playback SD1",
  22746. 0, 0, 0, 0),
  22747. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  22748. 0, 0, 0, 0),
  22749. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  22750. 0, 0, 0, 0),
  22751. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  22752. 0, 0, 0, 0),
  22753. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  22754. 0, 0, 0, 0),
  22755. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  22756. 0, 0, 0, 0),
  22757. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  22758. 0, 0, 0, 0),
  22759. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  22760. 0, 0, 0, 0),
  22761. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  22762. 0, 0, 0, 0),
  22763. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  22764. 0, 0, 0, 0),
  22765. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  22766. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  22767. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  22768. 0, 0, 0, 0),
  22769. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  22770. 0, 0, 0, 0),
  22771. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  22772. 0, 0, 0, 0),
  22773. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  22774. 0, 0, 0, 0),
  22775. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  22776. 0, 0, 0, 0),
  22777. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  22778. 0, 0, 0, 0),
  22779. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  22780. 0, 0, 0, 0),
  22781. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  22782. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  22783. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  22784. 0, 0, 0, 0),
  22785. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  22786. 0, 0, 0, 0),
  22787. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  22788. 0, 0, 0, 0),
  22789. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  22790. 0, 0, 0, 0),
  22791. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  22792. 0, 0, 0, 0),
  22793. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  22794. 0, 0, 0, 0),
  22795. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  22796. 0, 0, 0, 0),
  22797. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  22798. 0, 0, 0, 0),
  22799. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  22800. 0, 0, 0, 0),
  22801. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  22802. 0, 0, 0, 0),
  22803. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  22804. 0, 0, 0, 0),
  22805. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  22806. 0, 0, 0, 0),
  22807. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  22808. 0, 0, 0, 0),
  22809. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  22810. 0, 0, 0, 0),
  22811. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  22812. 0, 0, 0, 0),
  22813. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  22814. 0, 0, 0, 0),
  22815. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  22816. 0, 0, 0, 0),
  22817. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  22818. 0, 0, 0, 0),
  22819. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  22820. 0, 0, 0, 0),
  22821. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  22822. 0, 0, 0, 0),
  22823. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  22824. 0, 0, 0, 0),
  22825. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  22826. 0, 0, 0, 0),
  22827. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  22828. 0, 0, 0, 0),
  22829. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  22830. 0, 0, 0, 0),
  22831. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  22832. 0, 0, 0, 0),
  22833. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  22834. 0, 0, 0, 0),
  22835. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  22836. 0, 0, 0, 0),
  22837. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  22838. 0, 0, 0, 0),
  22839. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  22840. 0, 0, 0, 0),
  22841. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  22842. 0, 0, 0, 0),
  22843. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  22844. 0, 0, 0, 0),
  22845. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  22846. 0, 0, 0, 0),
  22847. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  22848. 0, 0, 0, 0),
  22849. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  22850. 0, 0, 0, 0),
  22851. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  22852. 0, 0, 0, 0),
  22853. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  22854. 0, 0, 0, 0),
  22855. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  22856. 0, 0, 0, 0),
  22857. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  22858. 0, 0, 0, 0),
  22859. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  22860. 0, 0, 0, 0),
  22861. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  22862. 0, 0, 0, 0),
  22863. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  22864. 0, 0, 0, 0),
  22865. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  22866. 0, 0, 0, 0),
  22867. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  22868. 0, 0, 0, 0),
  22869. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  22870. 0, 0, 0, 0),
  22871. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  22872. 0, 0, 0, 0),
  22873. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  22874. 0, 0, 0, 0),
  22875. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  22876. 0, 0, 0, 0),
  22877. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  22878. 0, 0, 0, 0),
  22879. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  22880. 0, 0, 0, 0),
  22881. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  22882. 0, 0, 0, 0),
  22883. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  22884. 0, 0, 0, 0),
  22885. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  22886. 0, 0, 0, 0),
  22887. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  22888. 0, 0, 0, 0),
  22889. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  22890. 0, 0, 0, 0),
  22891. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  22892. 0, 0, 0, 0),
  22893. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  22894. 0, 0, 0, 0),
  22895. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  22896. 0, 0, 0, 0),
  22897. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  22898. 0, 0, 0, 0),
  22899. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  22900. 0, 0, 0, 0),
  22901. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  22902. 0, 0, 0, 0),
  22903. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  22904. 0, 0, 0, 0),
  22905. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  22906. 0, 0, 0, 0),
  22907. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  22908. 0, 0, 0, 0),
  22909. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  22910. 0, 0, 0, 0),
  22911. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  22912. 0, 0, 0, 0),
  22913. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  22914. 0, 0, 0, 0),
  22915. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  22916. 0, 0, 0, 0),
  22917. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  22918. 0, 0, 0, 0),
  22919. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  22920. 0, 0, 0, 0),
  22921. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  22922. 0, 0, 0, 0),
  22923. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  22924. 0, 0, 0, 0),
  22925. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  22926. 0, 0, 0, 0),
  22927. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  22928. 0, 0, 0, 0),
  22929. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  22930. 0, 0, 0, 0),
  22931. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  22932. 0, 0, 0, 0),
  22933. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  22934. 0, 0, 0, 0),
  22935. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  22936. 0, 0, 0, 0),
  22937. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  22938. 0, 0, 0, 0),
  22939. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  22940. 0, 0, 0, 0),
  22941. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  22942. 0, 0, 0, 0),
  22943. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  22944. 0, 0, 0, 0),
  22945. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  22946. 0, 0, 0, 0),
  22947. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  22948. 0, 0, 0, 0),
  22949. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  22950. 0, 0, 0, 0),
  22951. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  22952. 0, 0, 0, 0),
  22953. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  22954. 0, 0, 0, 0),
  22955. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  22956. 0, 0, 0, 0),
  22957. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  22958. 0, 0, 0, 0),
  22959. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  22960. 0, 0, 0, 0),
  22961. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  22962. 0, 0, 0, 0),
  22963. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  22964. 0, 0, 0, 0),
  22965. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  22966. 0, 0, 0, 0),
  22967. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  22968. 0, 0, 0, 0),
  22969. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  22970. 0, 0, 0, 0),
  22971. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  22972. 0, 0, 0, 0),
  22973. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  22974. 0, 0, 0, 0),
  22975. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  22976. 0, 0, 0, 0),
  22977. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  22978. 0, 0, 0, 0),
  22979. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  22980. 0, 0, 0, 0),
  22981. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  22982. 0, 0, 0, 0),
  22983. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  22984. 0, 0, 0, 0),
  22985. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  22986. 0, 0, 0, 0),
  22987. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  22988. 0, 0, 0, 0),
  22989. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  22990. 0, 0, 0, 0),
  22991. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  22992. 0, 0, 0, 0),
  22993. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  22994. 0, 0, 0, 0),
  22995. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  22996. 0, 0, 0, 0),
  22997. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  22998. 0, 0, 0, 0),
  22999. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  23000. 0, 0, 0, 0),
  23001. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  23002. 0, 0, 0, 0),
  23003. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  23004. 0, 0, 0, 0),
  23005. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  23006. 0, 0, 0, 0),
  23007. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  23008. 0, 0, 0, 0),
  23009. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  23010. 0, 0, 0, 0),
  23011. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  23012. 0, 0, 0, 0),
  23013. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  23014. 0, 0, 0, 0),
  23015. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  23016. 0, 0, 0, 0),
  23017. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  23018. 0, 0, 0, 0),
  23019. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  23020. 0, 0, 0, 0),
  23021. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  23022. 0, 0, 0, 0),
  23023. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  23024. 0, 0, 0, 0),
  23025. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  23026. 0, 0, 0, 0),
  23027. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  23028. 0, 0, 0, 0),
  23029. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  23030. 0, 0, 0, 0),
  23031. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  23032. 0, 0, 0, 0),
  23033. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  23034. 0, 0, 0, 0),
  23035. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  23036. 0, 0, 0, 0),
  23037. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  23038. 0, 0, 0, 0),
  23039. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  23040. 0, 0, 0, 0),
  23041. /* incall */
  23042. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  23043. 0, 0, 0, 0),
  23044. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  23045. 0, 0, 0, 0),
  23046. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  23047. 0, 0, 0, 0),
  23048. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  23049. 0, 0, 0, 0),
  23050. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  23051. 0, 0, 0, 0),
  23052. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  23053. 0, 0, 0, 0),
  23054. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  23055. 0, 0, 0, 0),
  23056. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  23057. 0, 0, 0, 0),
  23058. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  23059. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  23060. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  23061. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  23062. 0, 0, 0, 0),
  23063. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  23064. 0, 0, 0, 0),
  23065. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  23066. 0, 0, 0, 0),
  23067. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  23068. 0, 0, 0, 0),
  23069. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  23070. 0, 0, 0, 0),
  23071. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  23072. 0, 0, 0, 0),
  23073. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  23074. 0, 0, 0, 0),
  23075. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  23076. 0, 0, 0, 0),
  23077. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  23078. 0, 0, 0, 0),
  23079. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  23080. 0, 0, 0, 0),
  23081. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  23082. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  23083. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  23084. 0, 0, 0, 0),
  23085. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  23086. 0, 0, 0, 0),
  23087. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  23088. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  23089. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  23090. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  23091. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  23092. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  23093. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  23094. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  23095. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  23096. /* In- call recording */
  23097. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  23098. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  23099. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  23100. 0, 0, 0, 0),
  23101. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  23102. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  23103. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  23104. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  23105. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  23106. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  23107. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  23108. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  23109. /* Switch Definitions */
  23110. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  23111. &slim_fm_switch_mixer_controls),
  23112. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  23113. &slim1_fm_switch_mixer_controls),
  23114. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  23115. &slim3_fm_switch_mixer_controls),
  23116. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  23117. &slim4_fm_switch_mixer_controls),
  23118. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  23119. &slim6_fm_switch_mixer_controls),
  23120. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23121. &pcm_rx_switch_mixer_controls),
  23122. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23123. &int0_mi2s_rx_switch_mixer_controls),
  23124. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23125. &int4_mi2s_rx_switch_mixer_controls),
  23126. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23127. &pri_mi2s_rx_switch_mixer_controls),
  23128. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23129. &sec_mi2s_rx_switch_mixer_controls),
  23130. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23131. &tert_mi2s_rx_switch_mixer_controls),
  23132. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23133. &quat_mi2s_rx_switch_mixer_controls),
  23134. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23135. &quin_mi2s_rx_switch_mixer_controls),
  23136. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  23137. &sco_slim7_switch_mixer_controls),
  23138. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23139. &sen_mi2s_rx_switch_mixer_controls),
  23140. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23141. &hfp_pri_aux_switch_mixer_controls),
  23142. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23143. &hfp_aux_switch_mixer_controls),
  23144. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  23145. &hfp_int_switch_mixer_controls),
  23146. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23147. &hfp_slim7_switch_mixer_controls),
  23148. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  23149. &usb_switch_mixer_controls),
  23150. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23151. &a2dp_slim7_switch_mixer_controls),
  23152. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23153. &cdc_dma_wsa_switch_mixer_controls),
  23154. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23155. &cdc_dma_rx_switch_mixer_controls),
  23156. /* Mixer definitions */
  23157. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23158. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  23159. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23160. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  23161. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23162. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  23163. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23164. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  23165. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23166. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  23167. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23168. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  23169. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23170. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  23171. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  23172. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  23173. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  23174. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  23175. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  23176. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  23177. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23178. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  23179. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23180. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  23181. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23182. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  23183. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23184. quaternary_mi2s_rx_mixer_controls,
  23185. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  23186. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23187. tertiary_mi2s_rx_mixer_controls,
  23188. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  23189. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23190. secondary_mi2s_rx_mixer_controls,
  23191. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  23192. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23193. secondary_mi2s_rx2_mixer_controls,
  23194. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  23195. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23196. primary_mi2s_rx_mixer_controls,
  23197. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  23198. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23199. int0_mi2s_rx_mixer_controls,
  23200. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  23201. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23202. int4_mi2s_rx_mixer_controls,
  23203. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  23204. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23205. quinary_mi2s_rx_mixer_controls,
  23206. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  23207. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23208. senary_mi2s_rx_mixer_controls,
  23209. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  23210. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23211. pri_tdm_rx_0_mixer_controls,
  23212. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  23213. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23214. pri_tdm_rx_1_mixer_controls,
  23215. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  23216. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23217. pri_tdm_rx_2_mixer_controls,
  23218. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  23219. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23220. pri_tdm_rx_3_mixer_controls,
  23221. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  23222. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23223. pri_tdm_tx_0_mixer_controls,
  23224. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  23225. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23226. sec_tdm_rx_0_mixer_controls,
  23227. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  23228. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23229. sec_tdm_rx_1_mixer_controls,
  23230. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  23231. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23232. sec_tdm_rx_2_mixer_controls,
  23233. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  23234. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23235. sec_tdm_rx_3_mixer_controls,
  23236. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  23237. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23238. sec_tdm_tx_0_mixer_controls,
  23239. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  23240. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23241. tert_tdm_rx_0_mixer_controls,
  23242. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  23243. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23244. tert_tdm_tx_0_mixer_controls,
  23245. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  23246. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23247. tert_tdm_rx_1_mixer_controls,
  23248. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  23249. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23250. tert_tdm_rx_2_mixer_controls,
  23251. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  23252. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23253. tert_tdm_rx_3_mixer_controls,
  23254. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  23255. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23256. tert_tdm_rx_4_mixer_controls,
  23257. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  23258. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23259. quat_tdm_rx_0_mixer_controls,
  23260. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  23261. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23262. quat_tdm_tx_0_mixer_controls,
  23263. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  23264. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23265. quat_tdm_rx_1_mixer_controls,
  23266. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  23267. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23268. quat_tdm_rx_2_mixer_controls,
  23269. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  23270. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23271. quat_tdm_rx_3_mixer_controls,
  23272. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  23273. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23274. quin_tdm_rx_0_mixer_controls,
  23275. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  23276. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23277. quin_tdm_tx_0_mixer_controls,
  23278. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  23279. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23280. quin_tdm_rx_1_mixer_controls,
  23281. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  23282. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23283. quin_tdm_tx_1_mixer_controls,
  23284. ARRAY_SIZE(quin_tdm_tx_1_mixer_controls)),
  23285. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23286. quin_tdm_rx_2_mixer_controls,
  23287. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  23288. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23289. quin_tdm_tx_2_mixer_controls,
  23290. ARRAY_SIZE(quin_tdm_tx_2_mixer_controls)),
  23291. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23292. quin_tdm_rx_3_mixer_controls,
  23293. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  23294. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23295. quin_tdm_tx_3_mixer_controls,
  23296. ARRAY_SIZE(quin_tdm_tx_3_mixer_controls)),
  23297. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23298. sen_tdm_tx_0_mixer_controls,
  23299. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  23300. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23301. sen_tdm_rx_0_mixer_controls,
  23302. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  23303. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23304. sen_tdm_rx_1_mixer_controls,
  23305. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  23306. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23307. sen_tdm_rx_2_mixer_controls,
  23308. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  23309. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23310. sen_tdm_rx_3_mixer_controls,
  23311. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  23312. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23313. pri_meta_mi2s_rx_mixer_controls,
  23314. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  23315. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23316. sec_meta_mi2s_rx_mixer_controls,
  23317. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  23318. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23319. wsa_cdc_dma_rx_0_mixer_controls,
  23320. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  23321. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23322. wsa_cdc_dma_rx_1_mixer_controls,
  23323. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  23324. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23325. rx_cdc_dma_rx_0_mixer_controls,
  23326. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  23327. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23328. rx_cdc_dma_rx_1_mixer_controls,
  23329. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  23330. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23331. rx_cdc_dma_rx_2_mixer_controls,
  23332. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  23333. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23334. rx_cdc_dma_rx_3_mixer_controls,
  23335. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  23336. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23337. rx_cdc_dma_rx_4_mixer_controls,
  23338. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  23339. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23340. rx_cdc_dma_rx_5_mixer_controls,
  23341. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  23342. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23343. rx_cdc_dma_rx_6_mixer_controls,
  23344. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  23345. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23346. rx_cdc_dma_rx_7_mixer_controls,
  23347. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  23348. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  23349. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  23350. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  23351. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  23352. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  23353. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  23354. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  23355. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  23356. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  23357. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  23358. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  23359. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  23360. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  23361. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  23362. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  23363. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  23364. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  23365. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  23366. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  23367. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  23368. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  23369. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  23370. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  23371. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  23372. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  23373. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  23374. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  23375. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  23376. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  23377. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  23378. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  23379. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  23380. SND_SOC_DAPM_MIXER("MultiMedia23 Mixer", SND_SOC_NOPM, 0, 0,
  23381. mmul23_mixer_controls, ARRAY_SIZE(mmul23_mixer_controls)),
  23382. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  23383. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  23384. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  23385. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  23386. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  23387. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  23388. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  23389. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  23390. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23391. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  23392. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23393. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  23394. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23395. tert_auxpcm_rx_mixer_controls,
  23396. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  23397. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23398. quat_auxpcm_rx_mixer_controls,
  23399. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  23400. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23401. quin_auxpcm_rx_mixer_controls,
  23402. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  23403. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23404. sen_auxpcm_rx_mixer_controls,
  23405. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  23406. /* incall */
  23407. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  23408. incall_music_delivery_mixer_controls,
  23409. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  23410. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23411. incall_music2_delivery_mixer_controls,
  23412. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  23413. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23414. slimbus_4_rx_mixer_controls,
  23415. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  23416. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23417. slimbus_6_rx_mixer_controls,
  23418. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  23419. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23420. usb_audio_rx_mixer_controls,
  23421. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  23422. /* Voice Mixer */
  23423. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  23424. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  23425. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  23426. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  23427. SND_SOC_NOPM, 0, 0,
  23428. sec_i2s_rx_voice_mixer_controls,
  23429. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  23430. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  23431. SND_SOC_NOPM, 0, 0,
  23432. sec_mi2s_rx_voice_mixer_controls,
  23433. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  23434. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  23435. SND_SOC_NOPM, 0, 0,
  23436. slimbus_rx_voice_mixer_controls,
  23437. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  23438. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  23439. SND_SOC_NOPM, 0, 0,
  23440. bt_sco_rx_voice_mixer_controls,
  23441. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  23442. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  23443. SND_SOC_NOPM, 0, 0,
  23444. afe_pcm_rx_voice_mixer_controls,
  23445. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  23446. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  23447. SND_SOC_NOPM, 0, 0,
  23448. aux_pcm_rx_voice_mixer_controls,
  23449. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  23450. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  23451. SND_SOC_NOPM, 0, 0,
  23452. sec_aux_pcm_rx_voice_mixer_controls,
  23453. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  23454. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  23455. SND_SOC_NOPM, 0, 0,
  23456. tert_aux_pcm_rx_voice_mixer_controls,
  23457. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  23458. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  23459. SND_SOC_NOPM, 0, 0,
  23460. quat_aux_pcm_rx_voice_mixer_controls,
  23461. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  23462. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  23463. SND_SOC_NOPM, 0, 0,
  23464. quin_aux_pcm_rx_voice_mixer_controls,
  23465. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  23466. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  23467. SND_SOC_NOPM, 0, 0,
  23468. sen_aux_pcm_rx_voice_mixer_controls,
  23469. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  23470. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  23471. SND_SOC_NOPM, 0, 0,
  23472. hdmi_rx_voice_mixer_controls,
  23473. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  23474. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  23475. SND_SOC_NOPM, 0, 0,
  23476. mi2s_rx_voice_mixer_controls,
  23477. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  23478. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  23479. SND_SOC_NOPM, 0, 0,
  23480. pri_mi2s_rx_voice_mixer_controls,
  23481. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  23482. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  23483. SND_SOC_NOPM, 0, 0,
  23484. int0_mi2s_rx_voice_mixer_controls,
  23485. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  23486. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  23487. SND_SOC_NOPM, 0, 0,
  23488. int4_mi2s_rx_voice_mixer_controls,
  23489. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  23490. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  23491. SND_SOC_NOPM, 0, 0,
  23492. tert_mi2s_rx_voice_mixer_controls,
  23493. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  23494. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  23495. SND_SOC_NOPM, 0, 0,
  23496. quat_mi2s_rx_voice_mixer_controls,
  23497. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  23498. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  23499. SND_SOC_NOPM, 0, 0,
  23500. quin_mi2s_rx_voice_mixer_controls,
  23501. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  23502. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  23503. SND_SOC_NOPM, 0, 0,
  23504. pri_tdm_rx_0_voice_mixer_controls,
  23505. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  23506. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  23507. SND_SOC_NOPM, 0, 0,
  23508. pri_tdm_rx_1_voice_mixer_controls,
  23509. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  23510. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  23511. SND_SOC_NOPM, 0, 0,
  23512. pri_tdm_rx_2_voice_mixer_controls,
  23513. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  23514. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  23515. SND_SOC_NOPM, 0, 0,
  23516. pri_tdm_rx_3_voice_mixer_controls,
  23517. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  23518. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  23519. SND_SOC_NOPM, 0, 0,
  23520. sen_mi2s_rx_voice_mixer_controls,
  23521. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  23522. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  23523. SND_SOC_NOPM, 0, 0,
  23524. quat_tdm_rx_2_voice_mixer_controls,
  23525. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  23526. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2_Voice Mixer",
  23527. SND_SOC_NOPM, 0, 0,
  23528. quin_tdm_rx_2_voice_mixer_controls,
  23529. ARRAY_SIZE(quin_tdm_rx_2_voice_mixer_controls)),
  23530. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  23531. SND_SOC_NOPM, 0, 0,
  23532. wsa_cdc_dma_rx_0_voice_mixer_controls,
  23533. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  23534. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  23535. SND_SOC_NOPM, 0, 0,
  23536. rx_cdc_dma_rx_0_voice_mixer_controls,
  23537. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  23538. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1_Voice Mixer",
  23539. SND_SOC_NOPM, 0, 0,
  23540. rx_cdc_dma_rx_1_voice_mixer_controls,
  23541. ARRAY_SIZE(rx_cdc_dma_rx_1_voice_mixer_controls)),
  23542. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  23543. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  23544. ARRAY_SIZE(tx_voip_mixer_controls)),
  23545. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  23546. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  23547. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  23548. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  23549. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  23550. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  23551. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23552. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  23553. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23554. int_bt_a2dp_rx_mixer_controls,
  23555. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  23556. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23557. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  23558. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23559. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  23560. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23561. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  23562. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23563. tx_voice2_stub_mixer_controls,
  23564. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  23565. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23566. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  23567. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  23568. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  23569. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  23570. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  23571. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23572. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  23573. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  23574. SND_SOC_NOPM, 0, 0,
  23575. slimbus_6_rx_voice_mixer_controls,
  23576. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  23577. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23578. slimbus_7_rx_voice_mixer_controls,
  23579. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  23580. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23581. slimbus_8_rx_voice_mixer_controls,
  23582. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  23583. /* port mixer */
  23584. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  23585. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  23586. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  23587. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  23588. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  23589. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  23590. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  23591. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  23592. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  23593. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  23594. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  23595. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  23596. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  23597. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  23598. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  23599. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  23600. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  23601. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  23602. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  23603. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  23604. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  23605. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23606. sbus_1_rx_port_mixer_controls,
  23607. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  23608. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23609. bt_sco_rx_port_mixer_controls,
  23610. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  23611. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  23612. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  23613. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  23614. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  23615. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  23616. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  23617. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  23618. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  23619. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  23620. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  23621. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  23622. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  23623. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  23624. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  23625. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  23626. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  23627. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  23628. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  23629. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  23630. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  23631. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  23632. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23633. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  23634. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23635. primary_mi2s_rx_port_mixer_controls,
  23636. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  23637. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23638. sec_mi2s_rx_port_mixer_controls,
  23639. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  23640. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23641. tert_mi2s_rx_port_mixer_controls,
  23642. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  23643. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23644. quat_mi2s_rx_port_mixer_controls,
  23645. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  23646. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23647. quin_mi2s_rx_port_mixer_controls,
  23648. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  23649. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23650. sen_mi2s_rx_port_mixer_controls,
  23651. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  23652. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23653. pri_tdm_rx_0_port_mixer_controls,
  23654. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  23655. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23656. pri_tdm_rx_1_port_mixer_controls,
  23657. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  23658. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23659. pri_tdm_rx_2_port_mixer_controls,
  23660. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  23661. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23662. pri_tdm_rx_3_port_mixer_controls,
  23663. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  23664. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23665. sec_tdm_rx_0_port_mixer_controls,
  23666. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  23667. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23668. sec_tdm_rx_1_port_mixer_controls,
  23669. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  23670. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23671. sec_tdm_rx_2_port_mixer_controls,
  23672. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  23673. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23674. sec_tdm_rx_3_port_mixer_controls,
  23675. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  23676. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23677. sec_tdm_rx_7_port_mixer_controls,
  23678. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  23679. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23680. tert_tdm_rx_0_port_mixer_controls,
  23681. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  23682. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23683. tert_tdm_rx_1_port_mixer_controls,
  23684. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  23685. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23686. tert_tdm_rx_2_port_mixer_controls,
  23687. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  23688. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23689. tert_tdm_rx_3_port_mixer_controls,
  23690. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  23691. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23692. quat_tdm_rx_0_port_mixer_controls,
  23693. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  23694. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23695. quat_tdm_rx_1_port_mixer_controls,
  23696. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  23697. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23698. quat_tdm_rx_2_port_mixer_controls,
  23699. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  23700. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23701. quat_tdm_rx_3_port_mixer_controls,
  23702. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  23703. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23704. quat_tdm_rx_7_port_mixer_controls,
  23705. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  23706. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23707. quin_tdm_rx_0_port_mixer_controls,
  23708. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  23709. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23710. quin_tdm_rx_1_port_mixer_controls,
  23711. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  23712. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23713. quin_tdm_rx_2_port_mixer_controls,
  23714. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  23715. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23716. quin_tdm_rx_3_port_mixer_controls,
  23717. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  23718. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23719. quin_tdm_rx_7_port_mixer_controls,
  23720. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  23721. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23722. sen_tdm_rx_0_port_mixer_controls,
  23723. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  23724. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23725. sen_tdm_rx_1_port_mixer_controls,
  23726. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  23727. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23728. sen_tdm_rx_2_port_mixer_controls,
  23729. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  23730. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23731. sen_tdm_rx_3_port_mixer_controls,
  23732. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  23733. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23734. int0_mi2s_rx_port_mixer_controls,
  23735. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  23736. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23737. int4_mi2s_rx_port_mixer_controls,
  23738. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  23739. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23740. wsa_cdc_dma_rx_0_port_mixer_controls,
  23741. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  23742. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23743. rx_cdc_dma_rx_0_port_mixer_controls,
  23744. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  23745. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23746. rx_cdc_dma_rx_1_port_mixer_controls,
  23747. ARRAY_SIZE(rx_cdc_dma_rx_1_port_mixer_controls)),
  23748. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  23749. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  23750. ARRAY_SIZE(tx_qchat_mixer_controls)),
  23751. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  23752. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  23753. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  23754. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  23755. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  23756. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  23757. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  23758. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  23759. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  23760. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  23761. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  23762. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  23763. /* lsm mixer definitions */
  23764. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  23765. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  23766. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  23767. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  23768. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  23769. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  23770. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  23771. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  23772. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  23773. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  23774. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  23775. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  23776. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  23777. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  23778. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  23779. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  23780. /* Virtual Pins to force backends ON atm */
  23781. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  23782. SND_SOC_DAPM_INPUT("BE_IN"),
  23783. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23784. &slim0_rx_vi_fb_lch_mux),
  23785. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23786. &slim0_rx_vi_fb_rch_mux),
  23787. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23788. &wsa_rx_0_vi_fb_lch_mux),
  23789. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23790. &wsa_rx_0_vi_fb_rch_mux),
  23791. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  23792. &mi2s_rx_vi_fb_mux),
  23793. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  23794. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  23795. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  23796. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  23797. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  23798. &voc_ext_ec_mux),
  23799. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  23800. &ext_ec_ref_mux_ul1),
  23801. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  23802. &ext_ec_ref_mux_ul2),
  23803. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  23804. &ext_ec_ref_mux_ul3),
  23805. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  23806. &ext_ec_ref_mux_ul4),
  23807. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  23808. &ext_ec_ref_mux_ul5),
  23809. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  23810. &ext_ec_ref_mux_ul6),
  23811. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  23812. &ext_ec_ref_mux_ul8),
  23813. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  23814. &ext_ec_ref_mux_ul9),
  23815. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  23816. &ext_ec_ref_mux_ul10),
  23817. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  23818. &ext_ec_ref_mux_ul16),
  23819. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  23820. &ext_ec_ref_mux_ul17),
  23821. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  23822. &ext_ec_ref_mux_ul18),
  23823. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  23824. &ext_ec_ref_mux_ul19),
  23825. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  23826. &ext_ec_ref_mux_ul28),
  23827. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  23828. &ext_ec_ref_mux_ul29),
  23829. };
  23830. static const struct snd_soc_dapm_route intercon[] = {
  23831. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23832. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23833. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23834. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23835. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23836. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23837. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23838. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23839. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23840. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23841. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23842. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23843. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23844. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23845. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23846. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23847. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23848. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  23849. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23850. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23851. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23852. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23853. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23854. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23855. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23856. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23857. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23858. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23859. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23860. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23861. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23862. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23863. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23864. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23865. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23866. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  23867. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23868. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23869. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23870. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23871. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23872. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23873. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23874. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23875. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23876. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23877. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23878. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23879. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23880. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23881. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23882. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23883. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23884. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  23885. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23886. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23887. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23888. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23889. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23890. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23891. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23892. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23893. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23894. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23895. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23896. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23897. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23898. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23899. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23900. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23901. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23902. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  23903. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23904. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23905. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23906. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23907. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23908. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23909. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23910. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23911. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23912. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23913. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23914. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23915. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23916. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23917. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23918. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23919. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23920. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  23921. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23922. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23923. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23924. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23925. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23926. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23927. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23928. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23929. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23930. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23931. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23932. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23933. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23934. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23935. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23936. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23937. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23938. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  23939. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23940. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23941. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23942. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23943. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23944. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23945. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23946. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23947. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23948. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23949. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23950. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23951. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23952. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23953. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23954. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23955. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23956. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  23957. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23958. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23959. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23960. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23961. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23962. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23963. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23964. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23965. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23966. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23967. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23968. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23969. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23970. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23971. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23972. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23973. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23974. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  23975. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23976. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23977. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23978. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23979. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23980. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23981. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23982. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23983. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23984. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23985. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23986. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23987. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23988. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23989. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23990. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23991. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23992. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  23993. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23994. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23995. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23996. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23997. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23998. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23999. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24000. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24001. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24002. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24003. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24004. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24005. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24006. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24007. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24008. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24009. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24010. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  24011. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24012. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24013. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24014. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24015. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24016. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24017. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24018. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24019. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24020. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24021. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24022. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24023. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24024. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24025. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24026. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24027. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24028. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  24029. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24030. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24031. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24032. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24033. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24034. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24035. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24036. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24037. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24038. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24039. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24040. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24041. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24042. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24043. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24044. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24045. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24046. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  24047. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24048. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24049. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24050. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24051. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24052. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24053. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24054. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24055. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24056. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24057. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24058. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24059. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24060. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24061. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24062. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24063. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24064. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  24065. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24066. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24067. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24068. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24069. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24070. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24071. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24072. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24073. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24074. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24075. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24076. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24077. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24078. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24079. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24080. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24081. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24082. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  24083. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24084. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24085. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24086. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24087. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24088. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24089. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24090. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24091. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24092. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24093. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24094. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24095. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24096. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24097. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24098. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24099. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24100. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  24101. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  24102. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  24103. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  24104. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  24105. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  24106. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  24107. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  24108. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  24109. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  24110. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  24111. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  24112. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  24113. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  24114. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  24115. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  24116. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  24117. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  24118. {"HDMI", NULL, "HDMI Mixer"},
  24119. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  24120. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  24121. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  24122. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  24123. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  24124. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  24125. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  24126. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  24127. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  24128. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  24129. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  24130. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  24131. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  24132. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  24133. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  24134. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  24135. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  24136. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  24137. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  24138. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  24139. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  24140. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  24141. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  24142. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  24143. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  24144. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  24145. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  24146. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  24147. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  24148. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  24149. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  24150. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  24151. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  24152. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  24153. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  24154. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  24155. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24156. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24157. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24158. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24159. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24160. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24161. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24162. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24163. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24164. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24165. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24166. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24167. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24168. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24169. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24170. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24171. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24172. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  24173. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24174. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24175. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24176. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24177. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24178. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24179. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24180. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24181. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24182. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24183. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24184. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24185. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24186. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24187. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24188. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24189. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24190. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  24191. /* incall */
  24192. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  24193. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  24194. {"Incall_Music Audio Mixer", "MultiMedia4", "MM_DL4"},
  24195. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  24196. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  24197. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  24198. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24199. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24200. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24201. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24202. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  24203. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24204. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24205. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24206. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24207. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  24208. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24209. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24210. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24211. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24212. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24213. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24214. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24215. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24216. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24217. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24218. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24219. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24220. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24221. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24222. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24223. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24224. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24225. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  24226. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24227. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24228. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24229. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24230. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24231. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24232. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24233. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24234. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24235. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24236. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24237. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24238. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24239. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24240. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24241. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24242. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24243. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  24244. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24245. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24246. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24247. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24248. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24249. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24250. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24251. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24252. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24253. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24254. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24255. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24256. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24257. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24258. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24259. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24260. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24261. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  24262. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24263. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24264. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24265. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24266. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24267. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24268. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24269. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24270. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24271. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24272. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24273. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24274. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24275. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24276. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24277. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24278. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24279. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  24280. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24281. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24282. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24283. {"MultiMedia9 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24284. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24285. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24286. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24287. {"MultiMedia9 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24288. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  24289. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24290. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24291. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24292. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24293. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24294. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24295. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24296. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24297. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24298. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24299. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24300. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24301. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24302. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24303. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24304. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24305. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24306. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24307. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24308. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24309. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24310. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24311. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24312. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24313. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24314. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24315. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24316. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24317. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24318. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24319. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24320. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24321. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24322. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24323. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24324. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24325. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24326. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24327. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24328. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24329. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24330. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24331. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24332. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24333. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24334. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24335. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24336. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24337. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24338. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24339. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24340. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24341. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24342. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24343. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24344. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24345. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24346. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24347. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24348. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24349. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24350. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24351. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24352. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24353. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24354. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24355. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24356. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24357. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24358. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24359. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24360. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24361. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24362. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24363. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24364. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24365. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24366. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24367. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24368. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24369. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24370. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24371. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24372. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24373. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24374. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24375. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24376. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24377. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24378. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24379. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  24380. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24381. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24382. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24383. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24384. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24385. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24386. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24387. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24388. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24389. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24390. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24391. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24392. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24393. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24394. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24395. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  24396. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24397. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  24398. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24399. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24400. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24401. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24402. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24403. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24404. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24405. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24406. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24407. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24408. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24409. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24410. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24411. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24412. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24413. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  24414. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24415. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24416. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24417. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24418. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24419. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24420. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24421. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24422. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24423. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24424. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24425. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24426. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24427. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24428. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24429. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  24430. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24431. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  24432. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24433. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24434. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24435. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24436. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24437. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24438. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24439. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24440. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24441. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24442. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24443. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24444. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24445. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24446. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24447. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24448. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24449. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24450. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24451. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  24452. {"PRI_MI2S_RX Audio Mixer", "DTMF", "DTMF_DL_HL"},
  24453. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24454. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24455. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24456. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24457. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24458. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24459. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24460. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24461. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24462. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24463. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24464. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24465. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24466. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24467. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24468. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  24469. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24470. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24471. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24472. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24473. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24474. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24475. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24476. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24477. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24478. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24479. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24480. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24481. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24482. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24483. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24484. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  24485. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24486. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24487. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24488. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24489. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24490. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24491. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24492. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24493. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24494. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24495. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24496. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24497. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24498. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24499. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24500. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24501. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24502. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  24503. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24504. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24505. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24506. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24507. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24508. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24509. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24510. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24511. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24512. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24513. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24514. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24515. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24516. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24517. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24518. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  24519. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24520. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24521. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24522. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24523. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24524. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24525. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24526. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24527. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24528. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24529. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24530. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24531. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24532. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24533. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24534. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24535. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24536. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  24537. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24538. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24539. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24540. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24541. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24542. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24543. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24544. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24545. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24546. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24547. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24548. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24549. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24550. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24551. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24552. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24553. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24554. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  24555. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24556. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24557. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24558. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24559. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24560. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24561. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24562. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24563. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24564. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24565. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24566. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24567. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24568. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24569. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24570. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24571. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24572. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24573. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24574. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  24575. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24576. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24577. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24578. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24579. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24580. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24581. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24582. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24583. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24584. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24585. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24586. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24587. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24588. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24589. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24590. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24591. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24592. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24593. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24594. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  24595. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24596. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24597. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24598. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24599. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24600. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24601. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24602. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24603. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24604. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24605. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24606. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24607. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24608. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24609. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24610. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24611. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24612. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24613. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24614. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  24615. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24616. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24617. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24618. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24619. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24620. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24621. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24622. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24623. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24624. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24625. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24626. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24627. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24628. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24629. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24630. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24631. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24632. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24633. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24634. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  24635. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24636. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24637. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24638. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24639. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24640. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24641. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24642. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24643. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24644. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24645. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24646. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24647. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24648. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24649. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24650. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24651. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24652. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  24653. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24654. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24655. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24656. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24657. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24658. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24659. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24660. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24661. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24662. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24663. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24664. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24665. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24666. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24667. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24668. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24669. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24670. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24671. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24672. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  24673. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24674. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24675. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24676. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24677. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24678. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24679. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24680. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24681. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24682. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24683. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24684. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24685. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24686. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24687. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24688. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24689. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24690. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24691. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24692. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  24693. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24694. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24695. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24696. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24697. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24698. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24699. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24700. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24701. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24702. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24703. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24704. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24705. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24706. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24707. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24708. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24709. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24710. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24711. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24712. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  24713. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24714. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24715. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24716. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24717. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24718. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24719. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24720. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24721. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24722. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24723. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24724. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24725. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24726. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24727. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24728. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24729. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24730. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24731. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24732. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  24733. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24734. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24735. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24736. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24737. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24738. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24739. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24740. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24741. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24742. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24743. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24744. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24745. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24746. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24747. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24748. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24749. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24750. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  24751. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24752. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24753. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24754. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24755. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24756. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24757. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24758. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24759. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24760. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24761. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24762. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24763. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24764. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24765. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24766. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24767. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24768. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24769. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24770. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  24771. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24772. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24773. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24774. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24775. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24776. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24777. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24778. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24779. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24780. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24781. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24782. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24783. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24784. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24785. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24786. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24787. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24788. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  24789. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24790. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24791. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24792. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24793. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24794. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24795. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24796. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24797. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24798. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24799. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24800. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24801. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24802. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24803. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24804. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24805. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24806. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24807. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24808. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  24809. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24810. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24811. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24812. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24813. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24814. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24815. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24816. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24817. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24818. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24819. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24820. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24821. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24822. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24823. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24824. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24825. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24826. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24827. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24828. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  24829. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24830. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24831. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24832. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24833. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24834. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24835. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24836. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24837. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24838. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24839. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24840. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24841. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24842. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24843. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24844. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24845. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24846. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24847. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24848. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  24849. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24850. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24851. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24852. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24853. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24854. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24855. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24856. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24857. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24858. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24859. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24860. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24861. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24862. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24863. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24864. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24865. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24866. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24867. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24868. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  24869. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24870. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24871. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24872. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24873. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24874. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24875. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24876. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24877. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24878. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24879. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24880. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24881. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24882. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24883. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24884. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24885. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24886. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24887. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24888. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24889. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  24890. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24891. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24892. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24893. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24894. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24895. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24896. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24897. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24898. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24899. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24900. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24901. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24902. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24903. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24904. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24905. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24906. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24907. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  24908. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24909. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24910. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24911. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24912. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24913. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24914. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24915. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24916. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24917. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24918. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24919. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24920. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24921. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24922. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24923. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24924. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24925. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24926. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24927. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24928. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  24929. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24930. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24931. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24932. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24933. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24934. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24935. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24936. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24937. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24938. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24939. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24940. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24941. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24942. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24943. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24944. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24945. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24946. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24947. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24948. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24949. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  24950. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24951. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24952. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24953. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24954. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24955. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24956. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24957. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24958. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24959. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24960. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24961. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24962. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24963. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24964. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24965. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24966. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24967. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24968. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24969. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24970. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  24971. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24972. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24973. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24974. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24975. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24976. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24977. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24978. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24979. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24980. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24981. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24982. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24983. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24984. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24985. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24986. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24987. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24988. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24989. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24990. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24991. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  24992. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24993. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24994. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24995. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24996. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24997. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24998. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24999. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25000. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25001. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25002. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25003. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25004. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25005. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25006. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25007. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25008. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25009. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  25010. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25011. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25012. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25013. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25014. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25015. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25016. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25017. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25018. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25019. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25020. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25021. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25022. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25023. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25024. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25025. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25026. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25027. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25028. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25029. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25030. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  25031. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25032. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25033. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25034. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25035. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25036. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25037. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25038. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25039. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25040. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25041. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25042. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25043. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25044. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25045. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25046. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25047. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25048. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25049. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25050. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25051. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  25052. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25053. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25054. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25055. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25056. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25057. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25058. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25059. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25060. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25061. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25062. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25063. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25064. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25065. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25066. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25067. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25068. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25069. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25070. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25071. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25072. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  25073. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25074. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25075. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25076. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25077. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25078. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25079. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25080. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25081. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25082. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25083. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25084. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25085. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25086. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25087. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25088. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25089. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25090. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25091. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  25092. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25093. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25094. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25095. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25096. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25097. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25098. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25099. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25100. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25101. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25102. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25103. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25104. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25105. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25106. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25107. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25108. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  25109. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25110. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25111. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25112. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25113. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25114. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25115. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25116. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25117. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25118. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25119. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25120. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25121. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25122. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25123. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25124. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25125. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25126. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25127. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  25128. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25129. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25130. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25131. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25132. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25133. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25134. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25135. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25136. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25137. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25138. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25139. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25140. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25141. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25142. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25143. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25144. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25145. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25146. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  25147. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25148. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25149. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25150. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25151. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25152. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25153. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25154. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25155. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25156. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25157. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25158. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25159. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25160. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25161. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25162. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25163. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25164. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25165. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  25166. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  25167. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  25168. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  25169. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  25170. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  25171. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  25172. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  25173. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25174. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25175. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25176. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25177. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25178. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25179. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25180. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25181. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25182. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25183. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25184. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25185. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25186. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25187. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25188. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25189. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25190. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25191. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25192. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25193. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25194. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25195. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25196. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25197. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25198. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25199. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  25200. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25201. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25202. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25203. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  25204. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25205. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25206. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25207. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25208. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  25209. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  25210. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  25211. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  25212. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  25213. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  25214. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25215. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25216. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25217. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25218. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25219. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25220. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25221. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25222. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25223. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25224. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25225. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25226. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25227. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25228. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25229. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25230. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25231. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25232. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25233. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25234. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25235. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25236. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25237. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25238. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25239. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25240. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25241. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25242. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25243. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25244. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25245. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25246. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25247. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25248. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25249. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25250. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25251. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25252. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25253. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25254. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25255. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25256. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25257. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25258. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25259. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25260. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25261. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25262. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25263. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25264. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25265. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25266. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25267. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25268. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25269. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25270. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25271. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25272. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25273. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25274. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25275. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25276. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25277. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25278. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25279. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25280. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25281. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25282. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25283. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25284. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25285. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25286. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25287. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25288. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25289. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25290. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25291. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25292. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25293. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25294. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25295. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25296. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25297. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25298. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25299. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25300. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25301. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25302. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25303. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25304. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25305. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25306. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25307. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25308. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25309. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25310. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25311. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25312. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25313. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25314. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25315. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25316. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25317. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25318. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25319. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25320. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25321. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25322. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25323. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25324. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25325. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25326. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25327. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25328. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25329. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25330. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25331. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25332. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25333. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25334. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25335. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25336. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25337. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25338. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25339. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25340. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25341. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25342. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25343. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25344. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25345. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25346. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25347. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25348. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25349. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25350. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25351. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25352. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25353. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25354. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25355. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25356. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25357. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25358. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25359. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25360. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25361. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25362. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25363. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25364. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25365. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25366. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25367. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25368. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25369. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25370. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25371. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25372. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25373. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25374. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25375. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25376. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25377. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25378. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25379. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25380. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25381. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25382. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25383. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25384. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25385. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25386. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25387. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25388. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25389. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25390. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25391. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25392. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25393. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25394. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25395. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25396. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25397. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25398. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25399. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25400. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25401. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25402. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25403. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25404. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25405. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25406. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25407. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25408. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25409. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25410. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25411. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25412. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25413. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25414. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25415. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25416. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25417. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25418. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25419. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25420. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25421. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25422. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25423. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25424. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25425. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25426. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25427. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25428. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25429. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25430. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25431. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25432. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25433. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25434. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25435. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25436. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25437. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25438. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25439. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25440. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25441. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25442. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25443. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25444. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25445. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25446. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25447. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25448. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25449. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25450. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25451. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25452. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25453. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25454. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25455. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25456. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25457. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25458. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25459. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25460. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25461. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25462. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25463. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25464. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25465. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25466. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25467. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25468. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25469. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25470. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25471. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25472. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25473. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25474. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25475. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25476. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25477. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25478. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25479. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25480. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25481. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25482. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25483. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25484. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25485. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25486. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25487. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25488. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25489. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25490. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25491. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25492. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25493. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25494. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25495. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25496. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25497. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25498. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25499. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25500. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25501. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25502. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25503. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25504. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25505. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25506. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25507. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25508. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25509. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25510. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25511. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25512. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25513. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25514. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25515. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25516. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25517. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25518. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25519. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25520. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25521. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25522. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25523. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25524. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25525. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25526. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25527. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25528. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25529. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25530. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25531. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25532. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25533. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25534. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25535. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25536. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25537. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25538. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25539. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25540. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25541. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25542. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25543. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25544. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25545. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25546. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25547. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25548. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25549. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25550. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25551. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25552. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25553. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25554. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25555. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25556. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25557. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25558. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25559. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25560. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25561. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25562. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25563. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25564. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25565. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25566. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25567. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25568. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25569. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25570. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25571. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25572. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25573. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25574. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25575. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25576. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25577. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25578. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25579. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25580. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25581. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25582. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25583. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25584. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25585. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25586. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25587. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25588. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25589. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25590. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25591. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25592. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25593. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25594. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25595. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25596. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25597. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25598. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25599. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25600. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25601. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25602. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25603. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25604. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25605. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25606. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25607. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25608. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25609. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25610. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25611. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25612. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25613. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25614. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25615. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25616. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25617. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25618. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25619. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25620. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25621. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25622. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25623. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25624. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25625. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25626. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25627. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25628. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25629. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25630. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25631. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25632. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25633. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25634. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25635. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25636. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25637. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25638. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25639. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25640. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25641. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25642. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25643. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25644. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25645. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25646. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25647. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25648. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25649. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25650. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25651. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25652. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25653. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25654. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25655. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25656. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25657. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25658. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25659. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25660. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25661. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25662. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25663. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25664. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25665. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25666. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25667. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25668. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25669. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25670. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25671. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25672. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25673. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25674. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25675. {"MultiMedia23 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25676. {"MultiMedia23 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25677. {"MultiMedia23 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25678. {"MultiMedia23 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25679. {"MultiMedia23 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25680. {"MultiMedia23 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25681. {"MultiMedia23 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25682. {"MultiMedia23 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25683. {"MultiMedia23 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25684. {"MultiMedia23 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25685. {"MultiMedia23 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25686. {"MultiMedia23 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25687. {"MultiMedia23 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25688. {"MultiMedia23 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25689. {"MultiMedia23 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25690. {"MultiMedia23 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25691. {"MultiMedia23 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25692. {"MultiMedia23 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25693. {"MultiMedia23 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25694. {"MultiMedia23 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25695. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25696. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25697. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25698. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25699. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25700. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25701. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25702. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25703. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25704. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25705. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25706. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25707. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25708. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25709. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25710. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25711. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25712. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25713. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25714. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25715. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25716. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25717. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25718. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25719. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25720. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25721. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25722. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25723. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25724. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25725. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25726. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25727. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25728. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25729. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25730. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25731. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25732. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25733. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25734. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25735. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25736. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25737. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25738. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25739. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25740. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25741. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25742. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25743. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25744. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25745. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25746. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25747. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25748. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25749. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25750. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25751. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25752. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25753. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25754. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25755. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25756. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25757. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25758. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25759. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25760. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25761. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25762. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25763. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25764. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25765. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25766. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25767. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25768. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25769. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25770. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25771. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25772. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25773. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25774. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25775. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25776. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25777. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25778. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25779. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25780. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25781. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25782. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25783. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25784. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25785. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25786. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25787. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25788. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25789. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25790. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25791. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25792. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25793. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25794. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25795. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25796. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25797. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25798. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25799. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25800. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25801. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25802. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25803. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25804. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25805. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25806. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25807. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25808. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25809. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25810. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25811. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25812. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25813. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25814. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25815. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25816. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25817. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  25818. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25819. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25820. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25821. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25822. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25823. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25824. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25825. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25826. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25827. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25828. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25829. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25830. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25831. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25832. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25833. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25834. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25835. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  25836. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25837. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25838. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25839. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25840. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25841. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25842. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25843. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25844. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25845. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25846. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25847. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25848. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25849. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25850. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25851. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25852. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  25853. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25854. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25855. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25856. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25857. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25858. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25859. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25860. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25861. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25862. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25863. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25864. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25865. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25866. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25867. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25868. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25869. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  25870. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25871. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25872. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25873. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25874. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25875. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25876. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25877. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25878. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25879. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25880. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25881. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25882. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25883. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25884. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25885. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25886. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25887. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25888. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25889. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25890. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25891. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25892. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25893. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25894. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25895. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25896. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25897. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25898. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25899. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25900. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25901. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25902. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25903. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25904. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25905. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25906. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25907. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25908. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  25909. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25910. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  25911. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  25912. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  25913. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  25914. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  25915. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  25916. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  25917. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  25918. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  25919. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  25920. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  25921. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  25922. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  25923. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  25924. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  25925. {"MM_UL23", NULL, "MultiMedia23 Mixer"},
  25926. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  25927. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  25928. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  25929. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  25930. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25931. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25932. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25933. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25934. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25935. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25936. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25937. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25938. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25939. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25940. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25941. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25942. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25943. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25944. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25945. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25946. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25947. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  25948. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25949. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25950. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25951. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25952. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25953. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25954. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25955. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25956. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25957. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25958. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25959. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25960. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25961. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25962. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25963. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25964. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25965. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  25966. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25967. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25968. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25969. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25970. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25971. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25972. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25973. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25974. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25975. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25976. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25977. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25978. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25979. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25980. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25981. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25982. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  25983. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25984. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25985. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25986. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25987. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25988. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25989. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25990. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25991. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25992. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25993. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25994. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25995. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25996. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25997. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25998. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25999. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  26000. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26001. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26002. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26003. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26004. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26005. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26006. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26007. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26008. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26009. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26010. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26011. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26012. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26013. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26014. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26015. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26016. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  26017. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26018. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26019. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26020. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26021. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26022. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26023. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26024. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26025. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26026. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26027. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26028. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26029. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26030. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26031. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26032. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26033. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  26034. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26035. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26036. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26037. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26038. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26039. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  26040. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26041. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26042. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26043. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  26044. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26045. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26046. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26047. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26048. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26049. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26050. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26051. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  26052. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26053. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26054. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26055. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26056. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26057. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  26058. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26059. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26060. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26061. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26062. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26063. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  26064. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26065. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26066. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26067. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26068. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26069. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  26070. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26071. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26072. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26073. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26074. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26075. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  26076. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  26077. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26078. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26079. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26080. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26081. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  26082. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26083. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26084. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26085. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26086. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26087. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  26088. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26089. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26090. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26091. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26092. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26093. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  26094. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26095. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26096. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26097. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26098. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26099. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  26100. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26101. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26102. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26103. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26104. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26105. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  26106. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26107. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26108. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26109. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26110. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26111. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  26112. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26113. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26114. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26115. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26116. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26117. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  26118. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26119. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26120. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26121. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26122. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26123. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  26124. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26125. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26126. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26127. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26128. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26129. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  26130. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26131. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26132. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26133. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26134. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26135. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  26136. {"HDMI", NULL, "HDMI_DL_HL"},
  26137. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26138. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26139. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26140. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26141. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26142. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26143. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26144. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  26145. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26146. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26147. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26148. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26149. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26150. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26151. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26152. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  26153. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26154. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26155. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26156. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26157. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26158. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  26159. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26160. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26161. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26162. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26163. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26164. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  26165. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26166. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26167. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26168. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26169. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26170. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26171. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26172. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  26173. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26174. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26175. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26176. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26177. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26178. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26179. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  26180. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26181. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26182. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26183. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26184. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26185. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26186. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  26187. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26188. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26189. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26190. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26191. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26192. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26193. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26194. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26195. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  26196. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  26197. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26198. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26199. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26200. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26201. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26202. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26203. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26204. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  26205. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  26206. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26207. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26208. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26209. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26210. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26211. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26212. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26213. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  26214. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  26215. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26216. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26217. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26218. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26219. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26220. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26221. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26222. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  26223. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26224. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26225. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26226. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26227. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  26228. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26229. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  26230. {"QUIN_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26231. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_Voice Mixer"},
  26232. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26233. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26234. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26235. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  26236. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26237. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26238. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26239. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  26240. {"RX_CDC_DMA_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  26241. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26242. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26243. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_Voice Mixer"},
  26244. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26245. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26246. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26247. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26248. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26249. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26250. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  26251. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  26252. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  26253. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  26254. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  26255. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26256. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26257. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26258. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26259. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26260. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26261. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  26262. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  26263. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  26264. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26265. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  26266. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26267. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26268. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26269. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26270. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26271. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26272. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26273. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26274. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26275. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26276. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26277. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26278. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26279. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26280. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26281. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26282. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26283. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26284. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26285. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26286. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26287. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26288. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26289. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26290. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26291. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26292. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26293. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26294. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26295. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26296. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26297. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26298. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26299. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26300. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26301. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  26302. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  26303. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  26304. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26305. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  26306. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26307. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26308. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26309. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26310. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26311. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26312. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26313. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26314. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26315. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26316. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26317. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26318. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26319. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26320. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26321. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26322. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26323. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26324. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26325. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26326. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26327. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26328. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26329. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26330. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26331. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26332. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26333. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26334. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26335. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26336. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26337. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26338. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26339. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26340. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  26341. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  26342. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  26343. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  26344. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  26345. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  26346. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  26347. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  26348. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  26349. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  26350. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  26351. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  26352. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  26353. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  26354. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  26355. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  26356. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  26357. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  26358. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  26359. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  26360. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  26361. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  26362. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  26363. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  26364. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  26365. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  26366. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  26367. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  26368. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  26369. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  26370. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  26371. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  26372. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  26373. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  26374. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  26375. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  26376. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  26377. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  26378. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  26379. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  26380. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  26381. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  26382. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  26383. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  26384. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  26385. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  26386. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  26387. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  26388. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  26389. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  26390. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  26391. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  26392. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  26393. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  26394. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  26395. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  26396. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  26397. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  26398. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  26399. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  26400. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  26401. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  26402. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  26403. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  26404. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  26405. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  26406. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  26407. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  26408. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  26409. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  26410. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  26411. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  26412. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  26413. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  26414. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  26415. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  26416. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  26417. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  26418. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  26419. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  26420. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  26421. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  26422. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  26423. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  26424. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  26425. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  26426. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  26427. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  26428. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  26429. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  26430. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  26431. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  26432. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  26433. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  26434. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  26435. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  26436. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  26437. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  26438. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  26439. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  26440. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  26441. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  26442. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  26443. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  26444. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  26445. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  26446. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  26447. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  26448. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  26449. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  26450. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  26451. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  26452. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  26453. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  26454. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  26455. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26456. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  26457. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  26458. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26459. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  26460. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  26461. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  26462. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26463. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26464. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26465. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26466. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26467. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26468. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26469. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26470. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26471. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26472. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26473. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26474. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26475. {"LSM1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26476. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  26477. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26478. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26479. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26480. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26481. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26482. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26483. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26484. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26485. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26486. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26487. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26488. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26489. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26490. {"LSM2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26491. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  26492. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26493. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26494. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26495. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26496. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26497. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26498. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26499. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26500. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26501. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26502. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26503. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26504. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26505. {"LSM3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26506. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  26507. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26508. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26509. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26510. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26511. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26512. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26513. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26514. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26515. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26516. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26517. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26518. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26519. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26520. {"LSM4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26521. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  26522. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26523. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26524. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26525. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26526. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26527. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26528. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26529. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26530. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26531. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26532. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26533. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26534. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26535. {"LSM5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26536. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  26537. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26538. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26539. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26540. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26541. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26542. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26543. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26544. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26545. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26546. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26547. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26548. {"LSM6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26549. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  26550. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26551. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26552. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26553. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26554. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26555. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26556. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26557. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26558. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26559. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26560. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26561. {"LSM7 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26562. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  26563. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26564. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26565. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26566. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26567. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26568. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26569. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26570. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26571. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26572. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26573. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26574. {"LSM8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26575. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  26576. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  26577. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  26578. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  26579. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  26580. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  26581. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  26582. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  26583. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  26584. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  26585. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  26586. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  26587. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  26588. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  26589. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  26590. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  26591. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  26592. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  26593. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  26594. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  26595. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  26596. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  26597. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  26598. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  26599. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  26600. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  26601. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  26602. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  26603. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  26604. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26605. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  26606. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  26607. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  26608. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26609. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  26610. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  26611. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  26612. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  26613. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  26614. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  26615. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  26616. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  26617. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  26618. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  26619. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  26620. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  26621. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  26622. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  26623. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  26624. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  26625. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  26626. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  26627. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  26628. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  26629. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  26630. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  26631. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  26632. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  26633. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  26634. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  26635. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  26636. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  26637. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  26638. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  26639. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  26640. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  26641. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  26642. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  26643. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  26644. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  26645. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  26646. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  26647. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  26648. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  26649. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  26650. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  26651. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  26652. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  26653. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  26654. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  26655. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  26656. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  26657. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  26658. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  26659. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  26660. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  26661. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  26662. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  26663. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  26664. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  26665. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  26666. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  26667. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  26668. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  26669. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  26670. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  26671. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  26672. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  26673. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  26674. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  26675. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  26676. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  26677. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  26678. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  26679. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  26680. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  26681. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  26682. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  26683. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  26684. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  26685. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  26686. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  26687. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  26688. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  26689. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  26690. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  26691. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  26692. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  26693. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  26694. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  26695. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  26696. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  26697. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26698. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26699. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26700. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26701. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26702. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26703. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26704. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26705. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26706. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26707. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26708. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26709. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26710. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26711. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26712. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26713. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26714. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26715. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26716. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26717. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26718. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26719. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26720. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26721. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  26722. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26723. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26724. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26725. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26726. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26727. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26728. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26729. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26730. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26731. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26732. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26733. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26734. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26735. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26736. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26737. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26738. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26739. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26740. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26741. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26742. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26743. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26744. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26745. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26746. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  26747. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26748. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26749. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26750. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26751. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26752. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26753. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26754. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26755. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26756. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26757. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26758. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26759. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26760. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26761. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26762. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26763. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26764. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26765. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26766. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26767. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26768. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26769. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26770. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26771. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  26772. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26773. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26774. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26775. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26776. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26777. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26778. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26779. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26780. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26781. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26782. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26783. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26784. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26785. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26786. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26787. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26788. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26789. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26790. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26791. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26792. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26793. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26794. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26795. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26796. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  26797. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26798. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26799. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26800. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26801. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26802. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26803. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26804. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26805. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26806. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26807. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26808. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26809. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26810. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26811. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26812. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26813. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26814. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26815. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26816. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26817. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26818. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26819. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26820. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26821. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  26822. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26823. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26824. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26825. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26826. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26827. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26828. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26829. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26830. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26831. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26832. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26833. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26834. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26835. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26836. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26837. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26838. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26839. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26840. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26841. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26842. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26843. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26844. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26845. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26846. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  26847. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26848. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26849. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26850. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26851. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26852. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26853. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26854. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26855. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26856. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26857. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26858. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26859. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26860. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26861. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26862. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26863. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26864. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26865. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26866. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26867. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26868. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26869. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26870. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26871. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  26872. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26873. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26874. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26875. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26876. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26877. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26878. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26879. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26880. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26881. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26882. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26883. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26884. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26885. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26886. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26887. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26888. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26889. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26890. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26891. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26892. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26893. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26894. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26895. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26896. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  26897. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  26898. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  26899. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26900. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26901. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26902. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26903. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26904. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26905. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26906. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26907. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26908. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26909. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26910. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26911. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26912. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26913. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26914. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26915. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26916. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26917. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26918. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26919. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26920. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26921. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26922. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26923. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  26924. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26925. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26926. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26927. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26928. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26929. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26930. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26931. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26932. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26933. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26934. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26935. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26936. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26937. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26938. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26939. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26940. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26941. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26942. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26943. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26944. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26945. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26946. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26947. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26948. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  26949. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26950. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26951. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26952. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26953. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26954. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26955. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26956. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26957. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26958. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26959. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26960. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26961. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26962. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26963. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26964. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26965. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26966. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26967. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26968. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26969. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26970. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26971. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26972. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26973. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  26974. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26975. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26976. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26977. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26978. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26979. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26980. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26981. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26982. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26983. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26984. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26985. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26986. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26987. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26988. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26989. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26990. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26991. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26992. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26993. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26994. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26995. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26996. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26997. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26998. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  26999. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27000. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27001. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27002. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27003. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27004. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27005. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27006. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27007. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27008. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27009. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27010. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27011. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27012. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27013. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27014. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27015. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27016. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27017. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27018. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27019. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27020. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27021. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27022. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27023. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  27024. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27025. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27026. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27027. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27028. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27029. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27030. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27031. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27032. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27033. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27034. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27035. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27036. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27037. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27038. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27039. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27040. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27041. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27042. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27043. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27044. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27045. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27046. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27047. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27048. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  27049. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27050. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27051. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27052. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27053. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27054. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27055. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27056. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27057. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27058. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27059. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27060. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27061. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27062. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27063. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27064. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27065. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27066. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27067. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27068. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27069. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27070. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27071. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27072. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27073. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  27074. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27075. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27076. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27077. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27078. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27079. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27080. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27081. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27082. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27083. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27084. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27085. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27086. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27087. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27088. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27089. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27090. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27091. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27092. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27093. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27094. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27095. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27096. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27097. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27098. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  27099. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  27100. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  27101. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  27102. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27103. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27104. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27105. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27106. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27107. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27108. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27109. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27110. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27111. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27112. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27113. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27114. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27115. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27116. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27117. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27118. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27119. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27120. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27121. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27122. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27123. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27124. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27125. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27126. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  27127. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27128. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27129. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27130. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27131. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27132. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27133. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27134. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27135. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27136. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27137. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27138. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27139. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27140. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27141. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27142. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27143. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27144. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27145. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27146. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27147. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27148. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27149. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27150. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27151. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  27152. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27153. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27154. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27155. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27156. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27157. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27158. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27159. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27160. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27161. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27162. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27163. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27164. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27165. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27166. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27167. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27168. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27169. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27170. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27171. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27172. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27173. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27174. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27175. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27176. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  27177. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27178. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27179. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27180. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27181. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27182. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27183. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27184. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27185. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27186. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27187. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27188. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27189. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27190. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27191. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27192. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27193. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27194. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27195. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27196. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27197. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27198. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27199. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27200. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27201. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  27202. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  27203. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  27204. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  27205. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  27206. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27207. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27208. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27209. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27210. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27211. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27212. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27213. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27214. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27215. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27216. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27217. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27218. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27219. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27220. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27221. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27222. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27223. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27224. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27225. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27226. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  27227. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27228. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27229. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27230. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27231. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27232. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27233. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27234. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27235. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27236. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27237. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27238. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27239. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27240. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27241. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27242. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27243. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27244. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27245. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27246. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27247. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  27248. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27249. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27250. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27251. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27252. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27253. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27254. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27255. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27256. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27257. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27258. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27259. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27260. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27261. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27262. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27263. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27264. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27265. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27266. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27267. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27268. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  27269. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27270. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27271. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27272. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27273. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27274. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27275. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27276. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27277. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27278. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27279. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27280. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27281. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27282. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27283. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27284. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27285. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27286. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27287. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27288. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27289. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  27290. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27291. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27292. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27293. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27294. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27295. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27296. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27297. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27298. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27299. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27300. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27301. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27302. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  27303. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27304. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27305. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27306. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27307. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27308. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27309. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27310. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27311. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27312. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27313. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27314. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27315. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  27316. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27317. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27318. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27319. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27320. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  27321. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27322. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27323. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27324. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  27325. {"RX_CDC_DMA_RX_1 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27326. {"RX_CDC_DMA_RX_1 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27327. {"RX_CDC_DMA_RX_1 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27328. {"RX_CDC_DMA_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27329. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Port Mixer"},
  27330. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27331. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27332. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27333. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27334. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27335. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27336. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27337. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27338. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27339. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27340. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27341. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  27342. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27343. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27344. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27345. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27346. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27347. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27348. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27349. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27350. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  27351. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27352. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27353. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  27354. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  27355. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  27356. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  27357. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  27358. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  27359. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27360. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27361. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27362. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27363. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27364. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27365. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27366. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  27367. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27368. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27369. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27370. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27371. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  27372. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27373. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27374. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27375. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  27376. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27377. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27378. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27379. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  27380. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27381. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27382. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27383. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  27384. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27385. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27386. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27387. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27388. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27389. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27390. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27391. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27392. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27393. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  27394. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  27395. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27396. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27397. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27398. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27399. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27400. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27401. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27402. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27403. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27404. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  27405. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27406. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27407. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27408. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27409. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27410. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27411. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27412. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27413. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27414. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27415. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27416. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  27417. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27418. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27419. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27420. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27421. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27422. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27423. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27424. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27425. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27426. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27427. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27428. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27429. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  27430. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27431. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27432. {"STUB_RX", NULL, "STUB_RX Mixer"},
  27433. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27434. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27435. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  27436. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27437. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27438. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  27439. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27440. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27441. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27442. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27443. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27444. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  27445. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27446. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27447. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27448. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27449. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27450. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  27451. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27452. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27453. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27454. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  27455. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27456. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27457. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  27458. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  27459. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27460. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  27461. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  27462. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  27463. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  27464. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27465. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27466. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27467. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27468. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27469. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27470. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27471. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27472. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27473. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27474. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27475. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27476. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27477. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  27478. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27479. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  27480. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27481. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  27482. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  27483. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  27484. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27485. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  27486. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27487. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27488. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  27489. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27490. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27491. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27492. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27493. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27494. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27495. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27496. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27497. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27498. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27499. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27500. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  27501. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27502. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27503. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27504. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27505. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27506. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27507. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27508. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27509. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27510. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27511. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  27512. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27513. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27514. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27515. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27516. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27517. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27518. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27519. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27520. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  27521. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27522. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27523. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27524. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27525. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27526. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27527. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27528. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27529. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27530. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27531. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  27532. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27533. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27534. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27535. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27536. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27537. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27538. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27539. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27540. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  27541. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27542. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27543. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27544. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27545. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27546. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27547. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27548. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  27549. /* Backend Enablement */
  27550. {"BE_OUT", NULL, "PRI_I2S_RX"},
  27551. {"BE_OUT", NULL, "SEC_I2S_RX"},
  27552. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  27553. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  27554. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  27555. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27556. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  27557. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  27558. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  27559. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  27560. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  27561. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  27562. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  27563. {"BE_OUT", NULL, "HDMI"},
  27564. {"BE_OUT", NULL, "DISPLAY_PORT"},
  27565. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  27566. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  27567. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  27568. {"BE_OUT", NULL, "MI2S_RX"},
  27569. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  27570. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  27571. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  27572. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  27573. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  27574. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  27575. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  27576. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  27577. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  27578. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  27579. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  27580. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  27581. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  27582. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  27583. {"BE_OUT", NULL, "INT_FM_RX"},
  27584. {"BE_OUT", NULL, "PCM_RX"},
  27585. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27586. {"BE_OUT", NULL, "AUX_PCM_RX"},
  27587. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  27588. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  27589. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  27590. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  27591. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  27592. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  27593. {"BE_OUT", NULL, "INT_FM_RX"},
  27594. {"BE_OUT", NULL, "PCM_RX"},
  27595. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27596. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  27597. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  27598. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  27599. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  27600. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  27601. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  27602. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  27603. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  27604. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  27605. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  27606. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  27607. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  27608. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  27609. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  27610. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  27611. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  27612. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  27613. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  27614. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  27615. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  27616. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  27617. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  27618. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  27619. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  27620. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  27621. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  27622. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  27623. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  27624. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  27625. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  27626. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  27627. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  27628. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  27629. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  27630. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  27631. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  27632. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  27633. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  27634. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  27635. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  27636. {"PRI_I2S_TX", NULL, "BE_IN"},
  27637. {"MI2S_TX", NULL, "BE_IN"},
  27638. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  27639. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  27640. {"PRI_MI2S_TX", NULL, "BE_IN"},
  27641. {"TERT_MI2S_TX", NULL, "BE_IN"},
  27642. {"INT0_MI2S_TX", NULL, "BE_IN"},
  27643. {"INT2_MI2S_TX", NULL, "BE_IN"},
  27644. {"INT3_MI2S_TX", NULL, "BE_IN"},
  27645. {"INT4_MI2S_TX", NULL, "BE_IN"},
  27646. {"INT5_MI2S_TX", NULL, "BE_IN"},
  27647. {"SEC_MI2S_TX", NULL, "BE_IN"},
  27648. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  27649. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  27650. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  27651. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  27652. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  27653. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  27654. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  27655. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  27656. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  27657. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  27658. {"USB_AUDIO_TX", NULL, "BE_IN" },
  27659. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  27660. {"INT_FM_TX", NULL, "BE_IN"},
  27661. {"PCM_TX", NULL, "BE_IN"},
  27662. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27663. {"BE_OUT", NULL, "STUB_RX"},
  27664. {"STUB_TX", NULL, "BE_IN"},
  27665. {"STUB_1_TX", NULL, "BE_IN"},
  27666. {"BE_OUT", NULL, "AUX_PCM_RX"},
  27667. {"AUX_PCM_TX", NULL, "BE_IN"},
  27668. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  27669. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  27670. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  27671. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  27672. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  27673. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  27674. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  27675. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  27676. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  27677. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  27678. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  27679. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  27680. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  27681. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  27682. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  27683. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  27684. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  27685. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  27686. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  27687. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  27688. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  27689. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  27690. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  27691. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  27692. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  27693. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  27694. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  27695. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  27696. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  27697. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  27698. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  27699. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  27700. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  27701. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  27702. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  27703. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  27704. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  27705. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  27706. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  27707. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  27708. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  27709. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  27710. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  27711. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  27712. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  27713. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  27714. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  27715. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  27716. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  27717. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  27718. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  27719. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  27720. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  27721. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  27722. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  27723. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  27724. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  27725. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  27726. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  27727. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  27728. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  27729. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  27730. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  27731. };
  27732. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  27733. struct snd_pcm_hw_params *params)
  27734. {
  27735. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27736. unsigned int be_id = rtd->dai_link->id;
  27737. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27738. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27739. return -EINVAL;
  27740. }
  27741. mutex_lock(&routing_lock);
  27742. msm_bedais[be_id].sample_rate = params_rate(params);
  27743. msm_bedais[be_id].channel = params_channels(params);
  27744. msm_bedais[be_id].format = params_format(params);
  27745. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  27746. __func__, msm_bedais[be_id].sample_rate,
  27747. msm_bedais[be_id].format, be_id);
  27748. mutex_unlock(&routing_lock);
  27749. return 0;
  27750. }
  27751. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  27752. {
  27753. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27754. unsigned int be_id = rtd->dai_link->id;
  27755. int i, session_type, path_type, topology;
  27756. struct msm_pcm_routing_bdai_data *bedai;
  27757. struct msm_pcm_routing_fdai_data *fdai;
  27758. pr_debug("%s: substream->pcm->id:%s\n",
  27759. __func__, substream->pcm->id);
  27760. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27761. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27762. return -EINVAL;
  27763. }
  27764. bedai = &msm_bedais[be_id];
  27765. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  27766. 0 : 1);
  27767. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  27768. path_type = ADM_PATH_PLAYBACK;
  27769. else
  27770. path_type = ADM_PATH_LIVE_REC;
  27771. mutex_lock(&routing_lock);
  27772. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27773. if (!is_mm_lsm_fe_id(i))
  27774. continue;
  27775. fdai = &fe_dai_map[i][session_type];
  27776. if (fdai->strm_id != INVALID_SESSION) {
  27777. int idx;
  27778. int port_id;
  27779. unsigned long copp =
  27780. session_copp_map[i][session_type][be_id];
  27781. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  27782. if (test_bit(idx, &copp))
  27783. break;
  27784. if (idx >= MAX_COPPS_PER_PORT) {
  27785. pr_debug("%s: copp idx is invalid, exiting\n",
  27786. __func__);
  27787. continue;
  27788. }
  27789. fdai->be_srate = bedai->sample_rate;
  27790. port_id = get_port_id(bedai->port_id);
  27791. topology = adm_get_topology_for_port_copp_idx(port_id,
  27792. idx);
  27793. msm_routing_unload_topology(topology);
  27794. adm_close(port_id, fdai->perf_mode, idx);
  27795. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  27796. __func__, copp, i, session_type, be_id,
  27797. topology);
  27798. clear_bit(idx,
  27799. &session_copp_map[i][session_type][be_id]);
  27800. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  27801. (fdai->passthr_mode == LEGACY_PCM))
  27802. msm_pcm_routing_deinit_pp(port_id,
  27803. topology);
  27804. }
  27805. }
  27806. bedai->active = 0;
  27807. bedai->sample_rate = 0;
  27808. bedai->channel = 0;
  27809. mutex_unlock(&routing_lock);
  27810. return 0;
  27811. }
  27812. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  27813. {
  27814. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27815. unsigned int be_id = rtd->dai_link->id;
  27816. int i, path_type, topology;
  27817. int session_type = INVALID_SESSION;
  27818. struct msm_pcm_routing_bdai_data *bedai;
  27819. u32 channels, sample_rate;
  27820. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  27821. struct msm_pcm_routing_fdai_data *fdai;
  27822. u32 session_id;
  27823. struct media_format_info voc_be_media_format;
  27824. bool is_lsm;
  27825. pr_debug("%s: substream->pcm->id:%s\n",
  27826. __func__, substream->pcm->id);
  27827. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27828. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27829. return -EINVAL;
  27830. }
  27831. bedai = &msm_bedais[be_id];
  27832. mutex_lock(&routing_lock);
  27833. if (bedai->active == 1)
  27834. goto done; /* Ignore prepare if back-end already active */
  27835. /* AFE port is not active at this point. However, still
  27836. * go ahead setting active flag under the notion that
  27837. * QDSP6 is able to handle ADM starting before AFE port
  27838. * is started.
  27839. */
  27840. bedai->active = 1;
  27841. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27842. if (!(is_mm_lsm_fe_id(i) &&
  27843. route_check_fe_id_adm_support(i)))
  27844. continue;
  27845. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  27846. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27847. fdai = &fe_dai_map[i][session_type];
  27848. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  27849. if (fdai->passthr_mode != LEGACY_PCM)
  27850. path_type = ADM_PATH_COMPRESSED_RX;
  27851. else
  27852. path_type = ADM_PATH_PLAYBACK;
  27853. } else {
  27854. if ((fdai->passthr_mode != LEGACY_PCM) &&
  27855. (fdai->passthr_mode != LISTEN))
  27856. path_type = ADM_PATH_COMPRESSED_TX;
  27857. else
  27858. path_type = ADM_PATH_LIVE_REC;
  27859. }
  27860. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  27861. (i <= MSM_FRONTEND_DAI_LSM8);
  27862. if (fdai->strm_id != INVALID_SESSION) {
  27863. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  27864. int port_id = get_port_id(bedai->port_id);
  27865. if (session_type == SESSION_TYPE_TX &&
  27866. fdai->be_srate &&
  27867. (fdai->be_srate != bedai->sample_rate)) {
  27868. pr_debug("%s: flush strm %d diff BE rates\n",
  27869. __func__,
  27870. fdai->strm_id);
  27871. if (fdai->event_info.event_func)
  27872. fdai->event_info.event_func(
  27873. MSM_PCM_RT_EVT_BUF_RECFG,
  27874. fdai->event_info.priv_data);
  27875. fdai->be_srate = 0; /* might not need it */
  27876. }
  27877. bits_per_sample = msm_routing_get_bit_width(
  27878. bedai->format);
  27879. app_type =
  27880. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  27881. if (app_type && is_lsm) {
  27882. app_type_idx =
  27883. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  27884. sample_rate =
  27885. fe_dai_app_type_cfg[i][session_type][be_id]
  27886. .sample_rate;
  27887. bits_per_sample =
  27888. lsm_app_type_cfg[app_type_idx].bit_width;
  27889. } else if (app_type) {
  27890. app_type_idx =
  27891. msm_pcm_routing_get_app_type_idx(app_type);
  27892. sample_rate =
  27893. fe_dai_app_type_cfg[i][session_type]
  27894. [be_id].sample_rate;
  27895. bits_per_sample =
  27896. app_type_cfg[app_type_idx].bit_width;
  27897. } else
  27898. sample_rate = bedai->sample_rate;
  27899. /*
  27900. * check if ADM needs to be configured with different
  27901. * channel mapping than backend
  27902. */
  27903. if (!bedai->adm_override_ch)
  27904. channels = bedai->channel;
  27905. else
  27906. channels = bedai->adm_override_ch;
  27907. acdb_dev_id =
  27908. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  27909. topology = msm_routing_get_adm_topology(i, session_type,
  27910. be_id);
  27911. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  27912. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  27913. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  27914. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  27915. be_bit_width = msm_routing_get_bit_width(
  27916. bedai->format);
  27917. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  27918. || bedai->sample_rate == 352800) &&
  27919. be_bit_width == 32)
  27920. bits_per_sample = msm_routing_get_bit_width(
  27921. SNDRV_PCM_FORMAT_S32_LE);
  27922. copp_idx = adm_open(port_id, path_type,
  27923. sample_rate, channels, topology,
  27924. fdai->perf_mode, bits_per_sample,
  27925. app_type, acdb_dev_id,
  27926. session_type);
  27927. if ((copp_idx < 0) ||
  27928. (copp_idx >= MAX_COPPS_PER_PORT)) {
  27929. pr_err("%s: adm open failed\n", __func__);
  27930. mutex_unlock(&routing_lock);
  27931. return -EINVAL;
  27932. }
  27933. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  27934. __func__, i, session_type, be_id);
  27935. set_bit(copp_idx,
  27936. &session_copp_map[i][session_type][be_id]);
  27937. if (msm_is_resample_needed(
  27938. sample_rate,
  27939. bedai->sample_rate))
  27940. adm_copp_mfc_cfg(port_id, copp_idx,
  27941. bedai->sample_rate);
  27942. msm_pcm_routing_build_matrix(i, session_type, path_type,
  27943. fdai->perf_mode, fdai->passthr_mode);
  27944. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  27945. (fdai->passthr_mode == LEGACY_PCM))
  27946. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  27947. topology, channels);
  27948. }
  27949. }
  27950. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27951. session_id = msm_pcm_routing_get_voc_sessionid(i);
  27952. if (session_id) {
  27953. pr_debug("%s voice session_id: 0x%x\n", __func__,
  27954. session_id);
  27955. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  27956. voc_path_type = RX_PATH;
  27957. else
  27958. voc_path_type = TX_PATH;
  27959. voc_set_route_flag(session_id, voc_path_type, 1);
  27960. memset(&voc_be_media_format, 0,
  27961. sizeof(struct media_format_info));
  27962. voc_be_media_format.port_id = bedai->port_id;
  27963. voc_be_media_format.num_channels = bedai->channel;
  27964. voc_be_media_format.sample_rate = bedai->sample_rate;
  27965. voc_be_media_format.bits_per_sample = bedai->format;
  27966. /* Defaulting this to 1 for voice call usecases */
  27967. voc_be_media_format.channel_mapping[0] = 1;
  27968. voc_set_device_config(session_id, voc_path_type,
  27969. &voc_be_media_format);
  27970. if (voc_get_route_flag(session_id, RX_PATH) &&
  27971. voc_get_route_flag(session_id, TX_PATH))
  27972. voc_enable_device(session_id);
  27973. }
  27974. }
  27975. /* Check if backend is an external ec ref port and set as needed */
  27976. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  27977. memset(&voc_be_media_format, 0,
  27978. sizeof(struct media_format_info));
  27979. /* Get format info for ec ref port from msm_bedais[] */
  27980. voc_be_media_format.port_id = bedai->port_id;
  27981. voc_be_media_format.num_channels = bedai->channel;
  27982. voc_be_media_format.bits_per_sample = bedai->format;
  27983. voc_be_media_format.sample_rate = bedai->sample_rate;
  27984. /* Defaulting this to 1 for voice call usecases */
  27985. voc_be_media_format.channel_mapping[0] = 1;
  27986. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  27987. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  27988. __func__, voc_be_media_format.port_id,
  27989. voc_be_media_format.num_channels,
  27990. voc_be_media_format.bits_per_sample,
  27991. voc_be_media_format.sample_rate);
  27992. }
  27993. done:
  27994. mutex_unlock(&routing_lock);
  27995. return 0;
  27996. }
  27997. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  27998. int fe_id)
  27999. {
  28000. int index, topo_id, be_idx;
  28001. unsigned long pp_config = 0;
  28002. bool mute_on;
  28003. int latency, session_type;
  28004. bool compr_passthr_mode = true;
  28005. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  28006. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  28007. pr_err("%s: Device pp params on invalid port %d\n",
  28008. __func__, port_id);
  28009. return -EINVAL;
  28010. }
  28011. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  28012. if (port_id == msm_bedais[be_idx].port_id)
  28013. break;
  28014. }
  28015. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28016. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  28017. return -EINVAL;
  28018. }
  28019. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  28020. if (msm_bedais_pp_params[index].port_id == port_id)
  28021. break;
  28022. }
  28023. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  28024. pr_err("%s: Invalid backend pp params index %d\n",
  28025. __func__, index);
  28026. return -EINVAL;
  28027. }
  28028. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  28029. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  28030. pr_err("%s: Invalid passthrough topology 0x%x\n",
  28031. __func__, topo_id);
  28032. return -EINVAL;
  28033. }
  28034. session_type =
  28035. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  28036. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28037. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  28038. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  28039. compr_passthr_mode = false;
  28040. pp_config = msm_bedais_pp_params[index].pp_params_config;
  28041. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  28042. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  28043. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  28044. mute_on = msm_bedais_pp_params[index].mute_on;
  28045. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28046. adm_send_compressed_device_mute(port_id,
  28047. copp_idx,
  28048. mute_on);
  28049. }
  28050. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  28051. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  28052. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  28053. &pp_config);
  28054. latency = msm_bedais_pp_params[index].latency;
  28055. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28056. adm_send_compressed_device_latency(port_id,
  28057. copp_idx,
  28058. latency);
  28059. }
  28060. return 0;
  28061. }
  28062. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  28063. {
  28064. uint32_t topology = NULL_COPP_TOPOLOGY;
  28065. void *cal_info = NULL;
  28066. uint32_t size = 0;
  28067. /* Retrieve cal_info size from cal data*/
  28068. if (data_size < sizeof(struct audio_cal_type_basic) +
  28069. sizeof(struct audio_cal_info_adm_top)) {
  28070. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  28071. goto done;
  28072. }
  28073. size = data_size - sizeof(struct audio_cal_type_basic);
  28074. cal_info = kzalloc(size, GFP_KERNEL);
  28075. if (!cal_info)
  28076. goto done;
  28077. memcpy(cal_info,
  28078. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  28079. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  28080. kfree(cal_info);
  28081. cal_info = NULL;
  28082. done:
  28083. pr_debug("%s: Using topology %d\n", __func__, topology);
  28084. return topology;
  28085. }
  28086. static void msm_routing_load_topology(size_t data_size, void *data)
  28087. {
  28088. uint32_t topology_id;
  28089. int ret = -EINVAL;
  28090. topology_id = msm_routing_get_topology(data_size, data);
  28091. if (topology_id != NULL_COPP_TOPOLOGY)
  28092. ret = q6core_load_unload_topo_modules(topology_id,
  28093. CORE_LOAD_TOPOLOGY);
  28094. if (ret < 0)
  28095. pr_debug("%s %d load topology failed\n",
  28096. __func__, topology_id);
  28097. }
  28098. static void msm_routing_unload_topology(uint32_t topology_id)
  28099. {
  28100. int ret = -EINVAL;
  28101. if (topology_id != NULL_COPP_TOPOLOGY)
  28102. ret = q6core_load_unload_topo_modules(topology_id,
  28103. CORE_UNLOAD_TOPOLOGY);
  28104. if (ret < 0)
  28105. pr_debug("%s %d unload topology failed\n",
  28106. __func__, topology_id);
  28107. }
  28108. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  28109. struct snd_ctl_elem_value *ucontrol)
  28110. {
  28111. int pp_id = ucontrol->value.integer.value[0];
  28112. int port_id = 0;
  28113. int index, be_idx, i, topo_id, idx;
  28114. bool mute;
  28115. int latency, session_type;
  28116. bool compr_passthr_mode = true;
  28117. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  28118. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  28119. port_id = msm_bedais[be_idx].port_id;
  28120. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  28121. break;
  28122. }
  28123. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28124. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  28125. return -EINVAL;
  28126. }
  28127. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  28128. if (msm_bedais_pp_params[index].port_id == port_id)
  28129. break;
  28130. }
  28131. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  28132. pr_err("%s: Invalid pp params backend index %d\n",
  28133. __func__, index);
  28134. return -EINVAL;
  28135. }
  28136. session_type =
  28137. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  28138. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28139. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  28140. MSM_FRONTEND_DAI_MM_SIZE) {
  28141. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  28142. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  28143. compr_passthr_mode = false;
  28144. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  28145. unsigned long copp =
  28146. session_copp_map[i]
  28147. [SESSION_TYPE_RX][be_idx];
  28148. if (!test_bit(idx, &copp))
  28149. continue;
  28150. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  28151. idx);
  28152. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  28153. continue;
  28154. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  28155. __func__, port_id, copp, msm_bedais[be_idx].active,
  28156. fe_dai_map[i][session_type].passthr_mode);
  28157. switch (pp_id) {
  28158. case ADM_PP_PARAM_MUTE_ID:
  28159. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  28160. mute = ucontrol->value.integer.value[1] ? true : false;
  28161. msm_bedais_pp_params[index].mute_on = mute;
  28162. set_bit(ADM_PP_PARAM_MUTE_BIT,
  28163. &msm_bedais_pp_params[index].pp_params_config);
  28164. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28165. adm_send_compressed_device_mute(port_id,
  28166. idx, mute);
  28167. break;
  28168. case ADM_PP_PARAM_LATENCY_ID:
  28169. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  28170. msm_bedais_pp_params[index].latency =
  28171. ucontrol->value.integer.value[1];
  28172. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  28173. &msm_bedais_pp_params[index].pp_params_config);
  28174. latency = msm_bedais_pp_params[index].latency =
  28175. ucontrol->value.integer.value[1];
  28176. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28177. adm_send_compressed_device_latency(port_id,
  28178. idx, latency);
  28179. break;
  28180. default:
  28181. pr_info("%s, device pp param %d not supported\n",
  28182. __func__, pp_id);
  28183. break;
  28184. }
  28185. }
  28186. }
  28187. return 0;
  28188. }
  28189. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  28190. struct snd_ctl_elem_value *ucontrol)
  28191. {
  28192. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  28193. return 0;
  28194. }
  28195. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  28196. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  28197. 0, 3, msm_routing_get_device_pp_params_mixer,
  28198. msm_routing_put_device_pp_params_mixer),
  28199. };
  28200. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  28201. struct snd_ctl_elem_value *ucontrol)
  28202. {
  28203. ucontrol->value.integer.value[0] =
  28204. core_get_license_status(ASM_MEDIA_FMT_APTX);
  28205. pr_debug("%s: status %ld\n", __func__,
  28206. ucontrol->value.integer.value[0]);
  28207. return 0;
  28208. }
  28209. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  28210. struct snd_ctl_elem_value *ucontrol)
  28211. {
  28212. int32_t status = 0;
  28213. status = core_set_license(ucontrol->value.integer.value[0],
  28214. APTX_CLASSIC_DEC_LICENSE_ID);
  28215. pr_debug("%s: status %d\n", __func__, status);
  28216. return status;
  28217. }
  28218. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  28219. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  28220. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  28221. msm_aptx_dec_license_control_put),
  28222. };
  28223. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  28224. struct snd_ctl_elem_value *ucontrol)
  28225. {
  28226. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  28227. uint32_t be_idx = ucontrol->value.integer.value[0];
  28228. int i;
  28229. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28230. pr_err("%s: Invalid Backend index %d\n", __func__, be_idx);
  28231. return -EINVAL;
  28232. }
  28233. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  28234. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  28235. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  28236. pr_err("%s: Invalid channel map %d\n",
  28237. __func__, channel_map[i]);
  28238. return -EINVAL;
  28239. }
  28240. }
  28241. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  28242. return 0;
  28243. }
  28244. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  28245. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  28246. MSM_BACKEND_DAI_MAX, 0,
  28247. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  28248. msm_routing_put_port_chmap_mixer),
  28249. };
  28250. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  28251. struct snd_ctl_elem_info *uinfo)
  28252. {
  28253. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  28254. uinfo->count = sizeof(be_dai_name_table);
  28255. return 0;
  28256. }
  28257. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  28258. unsigned int __user *bytes,
  28259. unsigned int size)
  28260. {
  28261. int i;
  28262. int ret = 0;
  28263. if (size < sizeof(be_dai_name_table)) {
  28264. pr_err("%s: invalid size %d requested, returning\n",
  28265. __func__, size);
  28266. ret = -EINVAL;
  28267. goto done;
  28268. }
  28269. /*
  28270. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  28271. * needed when adding new backends
  28272. */
  28273. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  28274. be_dai_name_table[i].be_id = i;
  28275. strlcpy(be_dai_name_table[i].be_name,
  28276. msm_bedais[i].name,
  28277. LPASS_BE_NAME_MAX_LENGTH);
  28278. }
  28279. ret = copy_to_user(bytes, &be_dai_name_table,
  28280. sizeof(be_dai_name_table));
  28281. if (ret) {
  28282. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  28283. ret = -EFAULT;
  28284. }
  28285. done:
  28286. return ret;
  28287. }
  28288. static const struct snd_kcontrol_new
  28289. msm_routing_be_dai_name_table_mixer_controls[] = {
  28290. {
  28291. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  28292. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  28293. .info = msm_routing_be_dai_name_table_info,
  28294. .name = "Backend DAI Name Table",
  28295. .tlv.c = snd_soc_bytes_tlv_callback,
  28296. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  28297. .max = sizeof(be_dai_name_table),
  28298. .get = msm_routing_be_dai_name_table_tlv_get,
  28299. }
  28300. },
  28301. };
  28302. static int msm_routing_stereo_channel_reverse_control_get(
  28303. struct snd_kcontrol *kcontrol,
  28304. struct snd_ctl_elem_value *ucontrol)
  28305. {
  28306. ucontrol->value.integer.value[0] = swap_ch;
  28307. pr_debug("%s: Swap channel value: %ld\n", __func__,
  28308. ucontrol->value.integer.value[0]);
  28309. return 0;
  28310. }
  28311. static int msm_routing_stereo_channel_reverse_control_put(
  28312. struct snd_kcontrol *kcontrol,
  28313. struct snd_ctl_elem_value *ucontrol)
  28314. {
  28315. int i, idx, be_index, port_id;
  28316. int ret = 0;
  28317. unsigned long copp;
  28318. pr_debug("%s Swap channel value:%ld\n", __func__,
  28319. ucontrol->value.integer.value[0]);
  28320. swap_ch = ucontrol->value.integer.value[0];
  28321. mutex_lock(&routing_lock);
  28322. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  28323. port_id = msm_bedais[be_index].port_id;
  28324. if (!msm_bedais[be_index].active)
  28325. continue;
  28326. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  28327. MSM_FRONTEND_DAI_MM_SIZE) {
  28328. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  28329. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  28330. if (!test_bit(idx, &copp))
  28331. continue;
  28332. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  28333. __func__, port_id, idx);
  28334. ret = adm_swap_speaker_channels(
  28335. port_id, idx,
  28336. msm_bedais[be_index].sample_rate,
  28337. swap_ch);
  28338. if (ret) {
  28339. pr_err("%s:Swap_channel failed, err=%d\n",
  28340. __func__, ret);
  28341. goto done;
  28342. }
  28343. }
  28344. }
  28345. }
  28346. done:
  28347. mutex_unlock(&routing_lock);
  28348. return ret;
  28349. }
  28350. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  28351. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  28352. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  28353. msm_routing_stereo_channel_reverse_control_put),
  28354. };
  28355. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  28356. struct snd_ctl_elem_info *uinfo)
  28357. {
  28358. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  28359. uinfo->count = 1;
  28360. return 0;
  28361. }
  28362. static int msm_routing_instance_id_support_put(
  28363. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  28364. {
  28365. bool supported = ucontrol->value.integer.value[0] ? true : false;
  28366. q6common_update_instance_id_support(supported);
  28367. return 0;
  28368. }
  28369. static int msm_routing_instance_id_support_get(
  28370. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  28371. {
  28372. bool supported = false;
  28373. supported = q6common_is_instance_id_supported();
  28374. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  28375. return 0;
  28376. }
  28377. static const struct snd_kcontrol_new
  28378. msm_routing_feature_support_mixer_controls[] = {
  28379. {
  28380. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  28381. SNDRV_CTL_ELEM_ACCESS_WRITE,
  28382. .info = msm_routing_instance_id_support_info,
  28383. .name = "Instance ID Support",
  28384. .put = msm_routing_instance_id_support_put,
  28385. .get = msm_routing_instance_id_support_get,
  28386. },
  28387. };
  28388. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  28389. .hw_params = msm_pcm_routing_hw_params,
  28390. .close = msm_pcm_routing_close,
  28391. .prepare = msm_pcm_routing_prepare,
  28392. };
  28393. /* Not used but frame seems to require it */
  28394. static int msm_routing_probe(struct snd_soc_component *component)
  28395. {
  28396. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  28397. ARRAY_SIZE(msm_qdsp6_widgets));
  28398. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  28399. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  28400. snd_soc_dapm_add_routes(&component->dapm, intercon,
  28401. ARRAY_SIZE(intercon));
  28402. snd_soc_dapm_new_widgets(component->dapm.card);
  28403. snd_soc_add_component_controls(component, lsm_controls,
  28404. ARRAY_SIZE(lsm_controls));
  28405. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  28406. ARRAY_SIZE(aanc_slim_0_rx_mux));
  28407. snd_soc_add_component_controls(component, aanc_noise_level,
  28408. ARRAY_SIZE(aanc_noise_level));
  28409. snd_soc_add_component_controls(component, msm_voc_session_controls,
  28410. ARRAY_SIZE(msm_voc_session_controls));
  28411. snd_soc_add_component_controls(component, app_type_cfg_controls,
  28412. ARRAY_SIZE(app_type_cfg_controls));
  28413. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  28414. ARRAY_SIZE(lsm_app_type_cfg_controls));
  28415. snd_soc_add_component_controls(component, module_cfg_controls,
  28416. ARRAY_SIZE(module_cfg_controls));
  28417. snd_soc_add_component_controls(component,
  28418. stereo_to_custom_stereo_controls,
  28419. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  28420. snd_soc_add_component_controls(component, ec_ref_param_controls,
  28421. ARRAY_SIZE(ec_ref_param_controls));
  28422. snd_soc_add_component_controls(component, channel_mixer_controls,
  28423. ARRAY_SIZE(channel_mixer_controls));
  28424. msm_qti_pp_add_controls(component);
  28425. msm_dts_srs_tm_add_controls(component);
  28426. msm_dolby_dap_add_controls(component);
  28427. snd_soc_add_component_controls(component,
  28428. use_ds1_or_ds2_controls,
  28429. ARRAY_SIZE(use_ds1_or_ds2_controls));
  28430. snd_soc_add_component_controls(component,
  28431. hifi_filter_controls,
  28432. ARRAY_SIZE(hifi_filter_controls));
  28433. snd_soc_add_component_controls(component,
  28434. device_pp_params_mixer_controls,
  28435. ARRAY_SIZE(device_pp_params_mixer_controls));
  28436. snd_soc_add_component_controls(component,
  28437. msm_routing_be_dai_name_table_mixer_controls,
  28438. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  28439. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  28440. ARRAY_SIZE(msm_source_tracking_controls));
  28441. snd_soc_add_component_controls(component, adm_channel_config_controls,
  28442. ARRAY_SIZE(adm_channel_config_controls));
  28443. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  28444. ARRAY_SIZE(aptx_dec_license_controls));
  28445. snd_soc_add_component_controls(component,
  28446. stereo_channel_reverse_control,
  28447. ARRAY_SIZE(stereo_channel_reverse_control));
  28448. snd_soc_add_component_controls(
  28449. component, msm_routing_feature_support_mixer_controls,
  28450. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  28451. snd_soc_add_component_controls(component,
  28452. port_multi_channel_map_mixer_controls,
  28453. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  28454. return 0;
  28455. }
  28456. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  28457. {
  28458. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  28459. }
  28460. void msm_routing_pcm_free(struct snd_pcm *pcm)
  28461. {
  28462. msm_pcm_routing_hwdep_free(pcm);
  28463. }
  28464. static struct snd_soc_component_driver msm_soc_routing_component = {
  28465. .name = DRV_NAME,
  28466. .ops = &msm_routing_pcm_ops,
  28467. .probe = msm_routing_probe,
  28468. .pcm_new = msm_routing_pcm_new,
  28469. .pcm_free = msm_routing_pcm_free,
  28470. };
  28471. static int msm_routing_pcm_probe(struct platform_device *pdev)
  28472. {
  28473. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  28474. return snd_soc_register_component(&pdev->dev,
  28475. &msm_soc_routing_component,
  28476. NULL, 0);
  28477. }
  28478. static int msm_routing_pcm_remove(struct platform_device *pdev)
  28479. {
  28480. snd_soc_unregister_component(&pdev->dev);
  28481. return 0;
  28482. }
  28483. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  28484. {.compatible = "qcom,msm-pcm-routing"},
  28485. {}
  28486. };
  28487. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  28488. static struct platform_driver msm_routing_pcm_driver = {
  28489. .driver = {
  28490. .name = "msm-pcm-routing",
  28491. .owner = THIS_MODULE,
  28492. .of_match_table = msm_pcm_routing_dt_match,
  28493. .suppress_bind_attrs = true,
  28494. },
  28495. .probe = msm_routing_pcm_probe,
  28496. .remove = msm_routing_pcm_remove,
  28497. };
  28498. int msm_routing_check_backend_enabled(int fedai_id)
  28499. {
  28500. int i;
  28501. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  28502. /* bad ID assigned in machine driver */
  28503. pr_err("%s: bad MM ID\n", __func__);
  28504. return 0;
  28505. }
  28506. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  28507. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  28508. return msm_bedais[i].active;
  28509. }
  28510. return 0;
  28511. }
  28512. static int get_cal_type_index(int32_t cal_type)
  28513. {
  28514. int ret = -EINVAL;
  28515. switch (cal_type) {
  28516. case ADM_TOPOLOGY_CAL_TYPE:
  28517. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  28518. break;
  28519. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  28520. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  28521. break;
  28522. default:
  28523. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  28524. }
  28525. return ret;
  28526. }
  28527. static int msm_routing_set_cal(int32_t cal_type,
  28528. size_t data_size, void *data)
  28529. {
  28530. int ret = 0;
  28531. int cal_index;
  28532. pr_debug("%s\n", __func__);
  28533. cal_index = get_cal_type_index(cal_type);
  28534. if (cal_index < 0) {
  28535. pr_err("%s: Could not get cal index %d\n",
  28536. __func__, cal_index);
  28537. ret = -EINVAL;
  28538. goto done;
  28539. }
  28540. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  28541. if (ret < 0) {
  28542. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  28543. __func__, ret, cal_type);
  28544. ret = -EINVAL;
  28545. goto done;
  28546. }
  28547. /* Pre-load if it is ADM topology */
  28548. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  28549. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  28550. msm_routing_load_topology(data_size, data);
  28551. }
  28552. done:
  28553. return ret;
  28554. }
  28555. static void msm_routing_delete_cal_data(void)
  28556. {
  28557. pr_debug("%s\n", __func__);
  28558. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  28559. }
  28560. static int msm_routing_init_cal_data(void)
  28561. {
  28562. int ret = 0;
  28563. struct cal_type_info cal_type_info[] = {
  28564. {{ADM_TOPOLOGY_CAL_TYPE,
  28565. {NULL, NULL, NULL,
  28566. msm_routing_set_cal, NULL, NULL} },
  28567. {NULL, NULL, cal_utils_match_buf_num} },
  28568. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  28569. {NULL, NULL, NULL,
  28570. msm_routing_set_cal, NULL, NULL} },
  28571. {NULL, NULL, cal_utils_match_buf_num} },
  28572. };
  28573. pr_debug("%s\n", __func__);
  28574. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  28575. &cal_type_info[0]);
  28576. if (ret < 0) {
  28577. pr_err("%s: could not create cal type!\n",
  28578. __func__);
  28579. ret = -EINVAL;
  28580. goto err;
  28581. }
  28582. return ret;
  28583. err:
  28584. msm_routing_delete_cal_data();
  28585. return ret;
  28586. }
  28587. int __init msm_soc_routing_platform_init(void)
  28588. {
  28589. mutex_init(&routing_lock);
  28590. if (msm_routing_init_cal_data())
  28591. pr_err("%s: could not init cal data!\n", __func__);
  28592. afe_set_routing_callback(
  28593. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  28594. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  28595. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  28596. return platform_driver_register(&msm_routing_pcm_driver);
  28597. }
  28598. void msm_soc_routing_platform_exit(void)
  28599. {
  28600. msm_routing_delete_cal_data();
  28601. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  28602. mutex_destroy(&routing_lock);
  28603. platform_driver_unregister(&msm_routing_pcm_driver);
  28604. }
  28605. MODULE_DESCRIPTION("MSM routing platform driver");
  28606. MODULE_LICENSE("GPL v2");