msm-pcm-routing-v2.c 1.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/err.h>
  6. #include <linux/module.h>
  7. #include <linux/moduleparam.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/bitops.h>
  10. #include <linux/mutex.h>
  11. #include <linux/of_device.h>
  12. #include <linux/slab.h>
  13. #include <sound/core.h>
  14. #include <sound/soc.h>
  15. #include <sound/soc-dapm.h>
  16. #include <sound/pcm.h>
  17. #include <sound/initval.h>
  18. #include <sound/control.h>
  19. #include <sound/tlv.h>
  20. #include <sound/pcm_params.h>
  21. #include <sound/hwdep.h>
  22. #include <audio/sound/audio_effects.h>
  23. #include <dsp/msm-dts-srs-tm-config.h>
  24. #include <dsp/q6voice.h>
  25. #include <dsp/q6adm-v2.h>
  26. #include <dsp/q6asm-v2.h>
  27. #include <dsp/q6afe-v2.h>
  28. #include <dsp/q6lsm.h>
  29. #include <dsp/q6core.h>
  30. #include <dsp/q6common.h>
  31. #include <dsp/audio_cal_utils.h>
  32. #include "msm-pcm-routing-v2.h"
  33. #include "msm-pcm-routing-devdep.h"
  34. #include "msm-qti-pp-config.h"
  35. #include "msm-dolby-dap-config.h"
  36. #include "msm-ds2-dap-config.h"
  37. #define DRV_NAME "msm-pcm-routing-v2"
  38. #ifndef CONFIG_DOLBY_DAP
  39. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  40. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  41. #endif
  42. #ifndef CONFIG_DOLBY_DS2
  43. #undef DS2_ADM_COPP_TOPOLOGY_ID
  44. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  45. #endif
  46. static struct mutex routing_lock;
  47. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  48. static int fm_switch_enable;
  49. static int hfp_switch_enable;
  50. static int a2dp_switch_enable;
  51. static int sco_switch_enable;
  52. static int int0_mi2s_switch_enable;
  53. static int int4_mi2s_switch_enable;
  54. static int pri_mi2s_switch_enable;
  55. static int sec_mi2s_switch_enable;
  56. static int tert_mi2s_switch_enable;
  57. static int quat_mi2s_switch_enable;
  58. static int quin_mi2s_switch_enable;
  59. static int sen_mi2s_switch_enable;
  60. static int fm_pcmrx_switch_enable;
  61. static int usb_switch_enable;
  62. static int lsm_port_index[MAX_LSM_SESSIONS];
  63. static int slim0_rx_aanc_fb_port;
  64. static int msm_route_ec_ref_rx;
  65. static int msm_ec_ref_ch = 4;
  66. static int msm_ec_ref_ch_downmixed = 4;
  67. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  68. static int msm_ec_ref_sampling_rate = 48000;
  69. static uint32_t voc_session_id = ALL_SESSION_VSID;
  70. static int msm_route_ext_ec_ref;
  71. static bool is_custom_stereo_on;
  72. static bool is_ds2_on;
  73. static bool ffecns_freeze_event;
  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. {HDMI_RX_MS, 0, 0, 0},
  133. {DISPLAY_PORT_RX, 0, 0, 0},
  134. };
  135. /*
  136. * The be_dai_name_table is passed to HAL so that it can specify the
  137. * BE ID for the BE it wants to enable based on the name. Thus there
  138. * is a matching table and structure in HAL that need to be updated
  139. * if any changes to these are made.
  140. */
  141. struct msm_pcm_route_bdai_name {
  142. unsigned int be_id;
  143. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  144. };
  145. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  146. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  147. int fe_id);
  148. static void msm_routing_load_topology(size_t data_size, void *data);
  149. static void msm_routing_unload_topology(uint32_t topology_id);
  150. static int msm_routing_get_bit_width(unsigned int format)
  151. {
  152. int bit_width;
  153. switch (format) {
  154. case SNDRV_PCM_FORMAT_S32_LE:
  155. bit_width = 32;
  156. break;
  157. case SNDRV_PCM_FORMAT_S24_LE:
  158. case SNDRV_PCM_FORMAT_S24_3LE:
  159. bit_width = 24;
  160. break;
  161. case SNDRV_PCM_FORMAT_S16_LE:
  162. default:
  163. bit_width = 16;
  164. }
  165. return bit_width;
  166. }
  167. static bool msm_is_resample_needed(int input_sr, int output_sr)
  168. {
  169. bool rc = false;
  170. if (input_sr != output_sr)
  171. rc = true;
  172. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  173. (rc ? "oh yes" : "not really"),
  174. input_sr, output_sr);
  175. return rc;
  176. }
  177. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  178. int channels)
  179. {
  180. int rc = 0;
  181. switch (topology) {
  182. case SRS_TRUMEDIA_TOPOLOGY_ID:
  183. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  184. msm_dts_srs_tm_init(port_id, copp_idx);
  185. break;
  186. case DS2_ADM_COPP_TOPOLOGY_ID:
  187. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  188. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  189. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  190. is_custom_stereo_on);
  191. if (rc < 0)
  192. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  193. __func__, topology, port_id,
  194. is_custom_stereo_on, rc);
  195. break;
  196. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  197. if (is_ds2_on) {
  198. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  199. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  200. is_custom_stereo_on);
  201. if (rc < 0)
  202. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  203. __func__, topology, port_id, rc);
  204. } else {
  205. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  206. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  207. is_custom_stereo_on);
  208. if (rc < 0)
  209. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  210. __func__, topology, port_id, rc);
  211. }
  212. break;
  213. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  214. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  215. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  216. if (rc < 0)
  217. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  218. __func__, topology, port_id, copp_idx, rc);
  219. break;
  220. default:
  221. /* custom topology specific feature param handlers */
  222. break;
  223. }
  224. }
  225. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  226. {
  227. switch (topology) {
  228. case SRS_TRUMEDIA_TOPOLOGY_ID:
  229. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  230. msm_dts_srs_tm_deinit(port_id);
  231. break;
  232. case DS2_ADM_COPP_TOPOLOGY_ID:
  233. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  234. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  235. msm_ds2_dap_deinit(port_id);
  236. break;
  237. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  238. if (is_ds2_on) {
  239. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  240. msm_ds2_dap_deinit(port_id);
  241. } else {
  242. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  243. msm_dolby_dap_deinit(port_id);
  244. }
  245. break;
  246. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  247. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  248. msm_qti_pp_asphere_deinit(port_id);
  249. break;
  250. default:
  251. /* custom topology specific feature deinit handlers */
  252. break;
  253. }
  254. }
  255. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  256. int path_type, int perf_mode)
  257. {
  258. int itr = 0, rc = 0;
  259. if ((path_type == ADM_PATH_PLAYBACK) &&
  260. (perf_mode == LEGACY_PCM_MODE) &&
  261. is_custom_stereo_on) {
  262. for (itr = 0; itr < payload.num_copps; itr++) {
  263. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  264. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  265. continue;
  266. }
  267. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  268. payload.port_id[itr],
  269. payload.copp_idx[itr],
  270. payload.session_id,
  271. Q14_GAIN_ZERO_POINT_FIVE,
  272. Q14_GAIN_ZERO_POINT_FIVE,
  273. Q14_GAIN_ZERO_POINT_FIVE,
  274. Q14_GAIN_ZERO_POINT_FIVE);
  275. if (rc < 0)
  276. pr_err("%s: err setting custom stereo\n",
  277. __func__);
  278. }
  279. }
  280. }
  281. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  282. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  283. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  284. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  285. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  286. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  287. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  288. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  289. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  290. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  291. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  292. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  293. LPASS_BE_AFE_PCM_RX},
  294. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  295. LPASS_BE_AFE_PCM_TX},
  296. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  297. LPASS_BE_AUXPCM_RX},
  298. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  299. LPASS_BE_AUXPCM_TX},
  300. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  301. LPASS_BE_VOICE_PLAYBACK_TX},
  302. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  303. LPASS_BE_VOICE2_PLAYBACK_TX},
  304. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  305. LPASS_BE_INCALL_RECORD_RX},
  306. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  307. LPASS_BE_INCALL_RECORD_TX},
  308. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  309. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  310. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  311. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  312. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  313. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  314. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  315. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  316. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  317. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  318. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  319. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  320. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  321. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  322. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  323. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  324. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  325. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  326. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  327. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  328. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  329. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  330. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  331. LPASS_BE_QUAT_MI2S_RX},
  332. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  333. LPASS_BE_QUAT_MI2S_TX},
  334. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  335. LPASS_BE_SEC_MI2S_RX},
  336. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  337. LPASS_BE_SEC_MI2S_TX},
  338. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  339. LPASS_BE_PRI_MI2S_RX},
  340. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  341. LPASS_BE_PRI_MI2S_TX},
  342. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  343. LPASS_BE_TERT_MI2S_RX},
  344. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  345. LPASS_BE_TERT_MI2S_TX},
  346. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  347. LPASS_BE_AUDIO_I2S_RX},
  348. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  349. LPASS_BE_SEC_AUXPCM_RX},
  350. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  351. LPASS_BE_SEC_AUXPCM_TX},
  352. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  353. LPASS_BE_PRI_SPDIF_RX},
  354. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  355. LPASS_BE_SEC_MI2S_RX_SD1},
  356. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  357. LPASS_BE_QUIN_MI2S_RX},
  358. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  359. LPASS_BE_QUIN_MI2S_TX},
  360. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  361. LPASS_BE_SENARY_MI2S_TX},
  362. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  363. LPASS_BE_PRI_TDM_RX_0},
  364. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  365. LPASS_BE_PRI_TDM_TX_0},
  366. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  367. LPASS_BE_PRI_TDM_RX_1},
  368. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  369. LPASS_BE_PRI_TDM_TX_1},
  370. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  371. LPASS_BE_PRI_TDM_RX_2},
  372. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  373. LPASS_BE_PRI_TDM_TX_2},
  374. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  375. LPASS_BE_PRI_TDM_RX_3},
  376. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  377. LPASS_BE_PRI_TDM_TX_3},
  378. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  379. LPASS_BE_PRI_TDM_RX_4},
  380. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  381. LPASS_BE_PRI_TDM_TX_4},
  382. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  383. LPASS_BE_PRI_TDM_RX_5},
  384. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  385. LPASS_BE_PRI_TDM_TX_5},
  386. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  387. LPASS_BE_PRI_TDM_RX_6},
  388. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  389. LPASS_BE_PRI_TDM_TX_6},
  390. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  391. LPASS_BE_PRI_TDM_RX_7},
  392. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  393. LPASS_BE_PRI_TDM_TX_7},
  394. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  395. LPASS_BE_SEC_TDM_RX_0},
  396. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  397. LPASS_BE_SEC_TDM_TX_0},
  398. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  399. LPASS_BE_SEC_TDM_RX_1},
  400. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  401. LPASS_BE_SEC_TDM_TX_1},
  402. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  403. LPASS_BE_SEC_TDM_RX_2},
  404. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  405. LPASS_BE_SEC_TDM_TX_2},
  406. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  407. LPASS_BE_SEC_TDM_RX_3},
  408. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  409. LPASS_BE_SEC_TDM_TX_3},
  410. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  411. LPASS_BE_SEC_TDM_RX_4},
  412. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  413. LPASS_BE_SEC_TDM_TX_4},
  414. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  415. LPASS_BE_SEC_TDM_RX_5},
  416. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  417. LPASS_BE_SEC_TDM_TX_5},
  418. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  419. LPASS_BE_SEC_TDM_RX_6},
  420. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  421. LPASS_BE_SEC_TDM_TX_6},
  422. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  423. LPASS_BE_SEC_TDM_RX_7},
  424. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  425. LPASS_BE_SEC_TDM_TX_7},
  426. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  427. LPASS_BE_TERT_TDM_RX_0},
  428. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  429. LPASS_BE_TERT_TDM_TX_0},
  430. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  431. LPASS_BE_TERT_TDM_RX_1},
  432. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  433. LPASS_BE_TERT_TDM_TX_1},
  434. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  435. LPASS_BE_TERT_TDM_RX_2},
  436. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  437. LPASS_BE_TERT_TDM_TX_2},
  438. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  439. LPASS_BE_TERT_TDM_RX_3},
  440. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  441. LPASS_BE_TERT_TDM_TX_3},
  442. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  443. LPASS_BE_TERT_TDM_RX_4},
  444. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  445. LPASS_BE_TERT_TDM_TX_4},
  446. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  447. LPASS_BE_TERT_TDM_RX_5},
  448. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  449. LPASS_BE_TERT_TDM_TX_5},
  450. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  451. LPASS_BE_TERT_TDM_RX_6},
  452. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  453. LPASS_BE_TERT_TDM_TX_6},
  454. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  455. LPASS_BE_TERT_TDM_RX_7},
  456. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  457. LPASS_BE_TERT_TDM_TX_7},
  458. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  459. LPASS_BE_QUAT_TDM_RX_0},
  460. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  461. LPASS_BE_QUAT_TDM_TX_0},
  462. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  463. LPASS_BE_QUAT_TDM_RX_1},
  464. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  465. LPASS_BE_QUAT_TDM_TX_1},
  466. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  467. LPASS_BE_QUAT_TDM_RX_2},
  468. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  469. LPASS_BE_QUAT_TDM_TX_2},
  470. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  471. LPASS_BE_QUAT_TDM_RX_3},
  472. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  473. LPASS_BE_QUAT_TDM_TX_3},
  474. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  475. LPASS_BE_QUAT_TDM_RX_4},
  476. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  477. LPASS_BE_QUAT_TDM_TX_4},
  478. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  479. LPASS_BE_QUAT_TDM_RX_5},
  480. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  481. LPASS_BE_QUAT_TDM_TX_5},
  482. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  483. LPASS_BE_QUAT_TDM_RX_6},
  484. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  485. LPASS_BE_QUAT_TDM_TX_6},
  486. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  487. LPASS_BE_QUAT_TDM_RX_7},
  488. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  489. LPASS_BE_QUAT_TDM_TX_7},
  490. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  491. LPASS_BE_QUIN_TDM_RX_0},
  492. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  493. LPASS_BE_QUIN_TDM_TX_0},
  494. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  495. LPASS_BE_QUIN_TDM_RX_1},
  496. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  497. LPASS_BE_QUIN_TDM_TX_1},
  498. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  499. LPASS_BE_QUIN_TDM_RX_2},
  500. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  501. LPASS_BE_QUIN_TDM_TX_2},
  502. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  503. LPASS_BE_QUIN_TDM_RX_3},
  504. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  505. LPASS_BE_QUIN_TDM_TX_3},
  506. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  507. LPASS_BE_QUIN_TDM_RX_4},
  508. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  509. LPASS_BE_QUIN_TDM_TX_4},
  510. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  511. LPASS_BE_QUIN_TDM_RX_5},
  512. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  513. LPASS_BE_QUIN_TDM_TX_5},
  514. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  515. LPASS_BE_QUIN_TDM_RX_6},
  516. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  517. LPASS_BE_QUIN_TDM_TX_6},
  518. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  519. LPASS_BE_QUIN_TDM_RX_7},
  520. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  521. LPASS_BE_QUIN_TDM_TX_7},
  522. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  523. LPASS_BE_SEN_TDM_RX_0},
  524. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  525. LPASS_BE_SEN_TDM_TX_0},
  526. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  527. LPASS_BE_SEN_TDM_RX_1},
  528. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  529. LPASS_BE_SEN_TDM_TX_1},
  530. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  531. LPASS_BE_SEN_TDM_RX_2},
  532. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  533. LPASS_BE_SEN_TDM_TX_2},
  534. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  535. LPASS_BE_SEN_TDM_RX_3},
  536. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  537. LPASS_BE_SEN_TDM_TX_3},
  538. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  539. LPASS_BE_SEN_TDM_RX_4},
  540. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  541. LPASS_BE_SEN_TDM_TX_4},
  542. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  543. LPASS_BE_SEN_TDM_RX_5},
  544. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  545. LPASS_BE_SEN_TDM_TX_5},
  546. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  547. LPASS_BE_SEN_TDM_RX_6},
  548. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  549. LPASS_BE_SEN_TDM_TX_6},
  550. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  551. LPASS_BE_SEN_TDM_RX_7},
  552. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  553. LPASS_BE_SEN_TDM_TX_7},
  554. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  555. LPASS_BE_INT_BT_A2DP_RX},
  556. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  557. LPASS_BE_USB_AUDIO_RX},
  558. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  559. LPASS_BE_USB_AUDIO_TX},
  560. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  561. LPASS_BE_DISPLAY_PORT},
  562. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  563. LPASS_BE_DISPLAY_PORT1},
  564. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  565. LPASS_BE_TERT_AUXPCM_RX},
  566. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  567. LPASS_BE_TERT_AUXPCM_TX},
  568. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  569. LPASS_BE_QUAT_AUXPCM_RX},
  570. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  571. LPASS_BE_QUAT_AUXPCM_TX},
  572. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  573. LPASS_BE_QUIN_AUXPCM_RX},
  574. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  575. LPASS_BE_QUIN_AUXPCM_TX},
  576. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  577. LPASS_BE_INT0_MI2S_RX},
  578. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  579. LPASS_BE_INT0_MI2S_TX},
  580. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  581. LPASS_BE_INT1_MI2S_RX},
  582. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  583. LPASS_BE_INT1_MI2S_TX},
  584. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  585. LPASS_BE_INT2_MI2S_RX},
  586. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  587. LPASS_BE_INT2_MI2S_TX},
  588. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  589. LPASS_BE_INT3_MI2S_RX},
  590. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  591. LPASS_BE_INT3_MI2S_TX},
  592. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  593. LPASS_BE_INT4_MI2S_RX},
  594. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  595. LPASS_BE_INT4_MI2S_TX},
  596. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  597. LPASS_BE_INT5_MI2S_RX},
  598. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  599. LPASS_BE_INT5_MI2S_TX},
  600. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  601. LPASS_BE_INT6_MI2S_RX},
  602. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  603. LPASS_BE_INT6_MI2S_TX},
  604. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  605. LPASS_BE_SEN_AUXPCM_RX},
  606. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  607. LPASS_BE_SEN_AUXPCM_TX},
  608. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  609. LPASS_BE_SENARY_MI2S_RX},
  610. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  611. LPASS_BE_WSA_CDC_DMA_RX_0},
  612. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  613. LPASS_BE_WSA_CDC_DMA_TX_0},
  614. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  615. LPASS_BE_WSA_CDC_DMA_RX_1},
  616. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  617. LPASS_BE_WSA_CDC_DMA_TX_1},
  618. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  619. LPASS_BE_WSA_CDC_DMA_TX_2},
  620. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  621. LPASS_BE_VA_CDC_DMA_TX_0},
  622. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  623. LPASS_BE_VA_CDC_DMA_TX_1},
  624. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  625. LPASS_BE_VA_CDC_DMA_TX_2},
  626. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  627. LPASS_BE_RX_CDC_DMA_RX_0},
  628. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  629. LPASS_BE_TX_CDC_DMA_TX_0},
  630. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  631. LPASS_BE_RX_CDC_DMA_RX_1},
  632. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  633. LPASS_BE_TX_CDC_DMA_TX_1},
  634. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  635. LPASS_BE_RX_CDC_DMA_RX_2},
  636. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  637. LPASS_BE_TX_CDC_DMA_TX_2},
  638. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  639. LPASS_BE_RX_CDC_DMA_RX_3},
  640. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  641. LPASS_BE_TX_CDC_DMA_TX_3},
  642. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  643. LPASS_BE_RX_CDC_DMA_RX_4},
  644. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  645. LPASS_BE_TX_CDC_DMA_TX_4},
  646. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  647. LPASS_BE_RX_CDC_DMA_RX_5},
  648. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  649. LPASS_BE_TX_CDC_DMA_TX_5},
  650. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  651. LPASS_BE_RX_CDC_DMA_RX_6},
  652. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  653. LPASS_BE_RX_CDC_DMA_RX_7},
  654. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  655. LPASS_BE_PRI_SPDIF_TX},
  656. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  657. LPASS_BE_SEC_SPDIF_RX},
  658. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  659. LPASS_BE_SEC_SPDIF_TX},
  660. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  661. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  662. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  663. { AFE_PORT_ID_PRIMARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  664. LPASS_BE_PRI_META_MI2S_RX},
  665. { AFE_PORT_ID_SECONDARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  666. LPASS_BE_SEC_META_MI2S_RX},
  667. { RT_PROXY_PORT_002_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PROXY_RX},
  668. { RT_PROXY_PORT_002_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PROXY_TX},
  669. { HDMI_RX_MS, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI_MS},
  670. };
  671. /* Track ASM playback & capture sessions of DAI
  672. * Track LSM listen sessions
  673. */
  674. static struct msm_pcm_routing_fdai_data
  675. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  676. /* MULTIMEDIA1 */
  677. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  678. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  679. /* MULTIMEDIA2 */
  680. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  681. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  682. /* MULTIMEDIA3 */
  683. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  684. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  685. /* MULTIMEDIA4 */
  686. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  687. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  688. /* MULTIMEDIA5 */
  689. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  690. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  691. /* MULTIMEDIA6 */
  692. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  693. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  694. /* MULTIMEDIA7*/
  695. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  696. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  697. /* MULTIMEDIA8 */
  698. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  699. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  700. /* MULTIMEDIA9 */
  701. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  702. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  703. /* MULTIMEDIA10 */
  704. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  705. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  706. /* MULTIMEDIA11 */
  707. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  708. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  709. /* MULTIMEDIA12 */
  710. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  711. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  712. /* MULTIMEDIA13 */
  713. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  714. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  715. /* MULTIMEDIA14 */
  716. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  717. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  718. /* MULTIMEDIA15 */
  719. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  720. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  721. /* MULTIMEDIA16 */
  722. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  723. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  724. /* MULTIMEDIA17 */
  725. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  726. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  727. /* MULTIMEDIA18 */
  728. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  729. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  730. /* MULTIMEDIA19 */
  731. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  732. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  733. /* MULTIMEDIA20 */
  734. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  735. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  736. /* MULTIMEDIA21 */
  737. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  738. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  739. /* MULTIMEDIA22 */
  740. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  741. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  742. /* MULTIMEDIA23 */
  743. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  744. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  745. /* MULTIMEDIA24 */
  746. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  747. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  748. /* MULTIMEDIA25 */
  749. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  750. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  751. /* MULTIMEDIA26 */
  752. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  753. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  754. /* MULTIMEDIA27 */
  755. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  756. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  757. /* MULTIMEDIA28 */
  758. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  759. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  760. /* MULTIMEDIA29 */
  761. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  762. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  763. /* MULTIMEDIA30 */
  764. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  765. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  766. /* VOIP */
  767. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  768. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  769. /* AFE_RX */
  770. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  771. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  772. /* AFE_TX */
  773. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  774. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  775. /* VOICE_STUB */
  776. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  777. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  778. /* DTMF_RX */
  779. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  780. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  781. /* QCHAT */
  782. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  783. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  784. /* VOLTE_STUB */
  785. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  786. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  787. /* LSM1 */
  788. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  789. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  790. /* LSM2 */
  791. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  792. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  793. /* LSM3 */
  794. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  795. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  796. /* LSM4 */
  797. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  798. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  799. /* LSM5 */
  800. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  801. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  802. /* LSM6 */
  803. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  804. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  805. /* LSM7 */
  806. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  807. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  808. /* LSM8 */
  809. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  810. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  811. /* VOICE2_STUB */
  812. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  813. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  814. /* VOICEMMODE1 */
  815. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  816. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  817. /* VOICEMMODE2 */
  818. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  819. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  820. };
  821. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  822. [MSM_BACKEND_DAI_MAX];
  823. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  824. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  825. static struct msm_pcm_stream_app_type_cfg
  826. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  827. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  828. /* The caller of this should acquire routing lock */
  829. void msm_pcm_routing_get_bedai_info(int be_idx,
  830. struct msm_pcm_routing_bdai_data *be_dai)
  831. {
  832. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  833. memcpy(be_dai, &msm_bedais[be_idx],
  834. sizeof(struct msm_pcm_routing_bdai_data));
  835. }
  836. /* The caller of this should acquire routing lock */
  837. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  838. struct msm_pcm_routing_fdai_data *fe_dai)
  839. {
  840. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  841. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  842. sizeof(struct msm_pcm_routing_fdai_data));
  843. }
  844. void msm_pcm_routing_acquire_lock(void)
  845. {
  846. mutex_lock(&routing_lock);
  847. }
  848. void msm_pcm_routing_release_lock(void)
  849. {
  850. mutex_unlock(&routing_lock);
  851. }
  852. static int msm_pcm_routing_get_app_type_idx(int app_type)
  853. {
  854. int idx;
  855. pr_debug("%s: app_type: %d\n", __func__, app_type);
  856. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  857. if (app_type_cfg[idx].app_type == app_type)
  858. return idx;
  859. }
  860. pr_info("%s: App type not available, fallback to default\n", __func__);
  861. return 0;
  862. }
  863. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  864. {
  865. int idx;
  866. pr_debug("%s: app_type: %d\n", __func__, app_type);
  867. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  868. if (lsm_app_type_cfg[idx].app_type == app_type)
  869. return idx;
  870. }
  871. pr_debug("%s: App type not available, fallback to default\n", __func__);
  872. return 0;
  873. }
  874. static int get_port_id(int port_id)
  875. {
  876. int ret = port_id;
  877. if (port_id == AFE_LOOPBACK_TX) {
  878. /*
  879. * Return afe_loopback_tx_port_id if set. Else return
  880. * msm_ec_ref_port_id to maintain backward compatibility.
  881. */
  882. if (afe_loopback_tx_port_id != -1)
  883. ret = afe_loopback_tx_port_id;
  884. else
  885. ret = msm_ec_ref_port_id;
  886. }
  887. return ret;
  888. }
  889. static bool is_mm_lsm_fe_id(int fe_id)
  890. {
  891. bool rc = true;
  892. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  893. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  894. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  895. rc = false;
  896. }
  897. return rc;
  898. }
  899. /*
  900. * msm_pcm_routing_send_chmix_cfg:
  901. * send the channel mixer command to mix the input channels
  902. * into output channels.
  903. *
  904. * @fe_id: front end id
  905. * @ip_channel_cnt: input channel count
  906. * @op_channel_cnt: output channel count
  907. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  908. * @session_type: indicates session is of type TX or RX
  909. * @stream_type: indicates either Audio or Listen stream type
  910. */
  911. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  912. int op_channel_cnt, int *ch_wght_coeff,
  913. int session_type, int stream_type)
  914. {
  915. int rc = 0, idx = 0;
  916. int be_index = 0, port_id;
  917. unsigned int session_id = 0;
  918. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  919. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  920. stream_type);
  921. if (!is_mm_lsm_fe_id(fe_id)) {
  922. /* bad ID assigned in machine driver */
  923. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  924. return -EINVAL;
  925. }
  926. if (ch_wght_coeff == NULL) {
  927. pr_err("%s: Null channel weightage coefficients passed\n",
  928. __func__);
  929. return -EINVAL;
  930. }
  931. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  932. port_id = msm_bedais[be_index].port_id;
  933. if (!msm_bedais[be_index].active ||
  934. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  935. continue;
  936. session_id = fe_dai_map[fe_id][session_type].strm_id;
  937. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  938. unsigned long copp =
  939. session_copp_map[fe_id][session_type][be_index];
  940. if (!test_bit(idx, &copp))
  941. continue;
  942. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  943. session_id, ip_channel_cnt,
  944. op_channel_cnt, ch_wght_coeff,
  945. session_type, stream_type);
  946. if (rc < 0)
  947. pr_err("%s: err setting channel mix config\n",
  948. __func__);
  949. }
  950. }
  951. return 0;
  952. }
  953. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  954. /**
  955. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  956. * setting before use case start.
  957. *
  958. * @fe_id: frontend idx
  959. * @type: stream direction type
  960. * @params: parameters of channel mixer setting
  961. *
  962. * Return 0 for success
  963. */
  964. int msm_pcm_routing_set_channel_mixer_cfg(
  965. int fe_id, int type,
  966. struct msm_pcm_channel_mixer *params)
  967. {
  968. int i, j = 0;
  969. channel_mixer_v2[fe_id][type].enable = params->enable;
  970. channel_mixer_v2[fe_id][type].rule = params->rule;
  971. channel_mixer_v2[fe_id][type].input_channel =
  972. params->input_channel;
  973. channel_mixer_v2[fe_id][type].output_channel =
  974. params->output_channel;
  975. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  976. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  977. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  978. params->in_ch_map[i];
  979. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  980. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  981. params->out_ch_map[i];
  982. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  983. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  984. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  985. params->channel_weight[i][j];
  986. channel_mixer_v2[fe_id][type].override_in_ch_map =
  987. params->override_in_ch_map;
  988. channel_mixer_v2[fe_id][type].override_out_ch_map =
  989. params->override_out_ch_map;
  990. return 0;
  991. }
  992. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  993. int msm_pcm_routing_reg_stream_app_type_cfg(
  994. int fedai_id, int session_type, int be_id,
  995. struct msm_pcm_stream_app_type_cfg *cfg_data)
  996. {
  997. int ret = 0;
  998. if (cfg_data == NULL) {
  999. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  1000. ret = -EINVAL;
  1001. goto done;
  1002. }
  1003. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1004. __func__, fedai_id, session_type, be_id,
  1005. cfg_data->app_type, cfg_data->acdb_dev_id,
  1006. cfg_data->sample_rate);
  1007. if (!is_mm_lsm_fe_id(fedai_id)) {
  1008. pr_err("%s: Invalid machine driver ID %d\n",
  1009. __func__, fedai_id);
  1010. ret = -EINVAL;
  1011. goto done;
  1012. }
  1013. if (session_type != SESSION_TYPE_RX &&
  1014. session_type != SESSION_TYPE_TX) {
  1015. pr_err("%s: Invalid session type %d\n",
  1016. __func__, session_type);
  1017. ret = -EINVAL;
  1018. goto done;
  1019. }
  1020. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1021. pr_err("%s: Received out of bounds be_id %d\n",
  1022. __func__, be_id);
  1023. ret = -EINVAL;
  1024. goto done;
  1025. }
  1026. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1027. /*
  1028. * Store the BE ID of the configuration information set as the latest so
  1029. * the get mixer control knows what to return.
  1030. */
  1031. last_be_id_configured[fedai_id][session_type] = be_id;
  1032. done:
  1033. return ret;
  1034. }
  1035. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1036. /**
  1037. * msm_pcm_routing_get_stream_app_type_cfg
  1038. *
  1039. * Receives fedai_id, session_type, be_id, and populates app_type,
  1040. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1041. * -EINVAL and does not alter passed values.
  1042. *
  1043. * fedai_id - Passed value, front end ID for which app type config is wanted
  1044. * session_type - Passed value, session type for which app type config
  1045. * is wanted
  1046. * be_id - Returned value, back end device id the app type config data is for
  1047. * cfg_data - Returned value, configuration data used by app type config
  1048. */
  1049. int msm_pcm_routing_get_stream_app_type_cfg(
  1050. int fedai_id, int session_type, int *bedai_id,
  1051. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1052. {
  1053. int be_id;
  1054. int ret = 0;
  1055. if (bedai_id == NULL) {
  1056. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1057. ret = -EINVAL;
  1058. goto done;
  1059. } else if (cfg_data == NULL) {
  1060. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1061. ret = -EINVAL;
  1062. goto done;
  1063. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1064. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1065. ret = -EINVAL;
  1066. goto done;
  1067. } else if (session_type != SESSION_TYPE_RX &&
  1068. session_type != SESSION_TYPE_TX) {
  1069. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1070. ret = -EINVAL;
  1071. goto done;
  1072. }
  1073. be_id = last_be_id_configured[fedai_id][session_type];
  1074. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1075. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1076. ret = -EINVAL;
  1077. goto done;
  1078. }
  1079. *bedai_id = be_id;
  1080. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1081. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1082. __func__, fedai_id, session_type, *bedai_id,
  1083. cfg_data->app_type, cfg_data->acdb_dev_id,
  1084. cfg_data->sample_rate);
  1085. done:
  1086. return ret;
  1087. }
  1088. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1089. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1090. int cal_index)
  1091. {
  1092. struct list_head *ptr, *next;
  1093. struct cal_block_data *cal_block = NULL;
  1094. pr_debug("%s\n", __func__);
  1095. list_for_each_safe(ptr, next,
  1096. &cal_data[cal_index]->cal_blocks) {
  1097. cal_block = list_entry(ptr,
  1098. struct cal_block_data, list);
  1099. if (cal_utils_is_cal_stale(cal_block))
  1100. continue;
  1101. if (((struct audio_cal_info_adm_top *)cal_block
  1102. ->cal_info)->path == path) {
  1103. return cal_block;
  1104. }
  1105. }
  1106. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1107. return NULL;
  1108. }
  1109. static struct cal_block_data *msm_routing_find_topology(int path,
  1110. int app_type,
  1111. int acdb_id,
  1112. int cal_index,
  1113. bool exact)
  1114. {
  1115. struct list_head *ptr, *next;
  1116. struct cal_block_data *cal_block = NULL;
  1117. struct audio_cal_info_adm_top *cal_info;
  1118. pr_debug("%s\n", __func__);
  1119. list_for_each_safe(ptr, next,
  1120. &cal_data[cal_index]->cal_blocks) {
  1121. cal_block = list_entry(ptr,
  1122. struct cal_block_data, list);
  1123. if (cal_utils_is_cal_stale(cal_block))
  1124. continue;
  1125. cal_info = (struct audio_cal_info_adm_top *)
  1126. cal_block->cal_info;
  1127. if ((cal_info->path == path) &&
  1128. (cal_info->app_type == app_type) &&
  1129. (cal_info->acdb_id == acdb_id)) {
  1130. return cal_block;
  1131. }
  1132. }
  1133. pr_debug("%s: Can't find topology for path %d, app %d, "
  1134. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1135. exact ? "fail" : "defaulting to search by path");
  1136. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1137. cal_index);
  1138. }
  1139. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1140. int acdb_dev_id, int idx,
  1141. bool exact)
  1142. {
  1143. int topology = -EINVAL;
  1144. struct cal_block_data *cal_block = NULL;
  1145. mutex_lock(&cal_data[idx]->lock);
  1146. cal_block = msm_routing_find_topology(session_type, app_type,
  1147. acdb_dev_id, idx, exact);
  1148. if (cal_block != NULL) {
  1149. topology = ((struct audio_cal_info_adm_top *)
  1150. cal_block->cal_info)->topology;
  1151. }
  1152. mutex_unlock(&cal_data[idx]->lock);
  1153. return topology;
  1154. }
  1155. /*
  1156. * Retrieving cal_block will mark cal_block as stale.
  1157. * Hence it cannot be reused or resent unless the flag
  1158. * is reset.
  1159. */
  1160. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1161. int be_id)
  1162. {
  1163. int topology = NULL_COPP_TOPOLOGY;
  1164. int app_type = 0, acdb_dev_id = 0;
  1165. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1166. __func__, fedai_id, session_type, be_id);
  1167. if (cal_data == NULL)
  1168. goto done;
  1169. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1170. acdb_dev_id =
  1171. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1172. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1173. topology = msm_routing_find_topology_on_index(session_type,
  1174. app_type,
  1175. acdb_dev_id,
  1176. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1177. true /*exact*/);
  1178. if (topology < 0) {
  1179. pr_debug("%s: Check for compatible topology\n", __func__);
  1180. topology = msm_routing_find_topology_on_index(session_type,
  1181. app_type,
  1182. acdb_dev_id,
  1183. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1184. false /*exact*/);
  1185. if (topology < 0)
  1186. topology = NULL_COPP_TOPOLOGY;
  1187. }
  1188. done:
  1189. pr_debug("%s: Using topology %d\n", __func__, topology);
  1190. return topology;
  1191. }
  1192. static uint8_t is_be_dai_extproc(int be_dai)
  1193. {
  1194. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1195. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1196. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1197. return 1;
  1198. else
  1199. return 0;
  1200. }
  1201. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1202. int path_type, int perf_mode,
  1203. uint32_t passthr_mode)
  1204. {
  1205. int i, port_type, j, num_copps = 0;
  1206. struct route_payload payload;
  1207. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1208. path_type == ADM_PATH_COMPRESSED_RX) ?
  1209. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1210. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1211. if (!is_be_dai_extproc(i) &&
  1212. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1213. (msm_bedais[i].active) &&
  1214. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1215. int port_id = get_port_id(msm_bedais[i].port_id);
  1216. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1217. unsigned long copp =
  1218. session_copp_map[fedai_id][sess_type][i];
  1219. if (test_bit(j, &copp)) {
  1220. payload.port_id[num_copps] = port_id;
  1221. payload.copp_idx[num_copps] = j;
  1222. payload.app_type[num_copps] =
  1223. fe_dai_app_type_cfg
  1224. [fedai_id][sess_type][i]
  1225. .app_type;
  1226. payload.acdb_dev_id[num_copps] =
  1227. fe_dai_app_type_cfg
  1228. [fedai_id][sess_type][i]
  1229. .acdb_dev_id;
  1230. payload.sample_rate[num_copps] =
  1231. fe_dai_app_type_cfg
  1232. [fedai_id][sess_type][i]
  1233. .sample_rate;
  1234. num_copps++;
  1235. }
  1236. }
  1237. }
  1238. }
  1239. if (num_copps) {
  1240. payload.num_copps = num_copps;
  1241. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1242. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1243. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1244. }
  1245. }
  1246. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1247. int stream_type)
  1248. {
  1249. int i, session_type, path_type, port_type;
  1250. u32 mode = 0;
  1251. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1252. /* bad ID assigned in machine driver */
  1253. pr_err("%s: bad MM ID\n", __func__);
  1254. return;
  1255. }
  1256. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1257. session_type = SESSION_TYPE_RX;
  1258. path_type = ADM_PATH_PLAYBACK;
  1259. port_type = MSM_AFE_PORT_TYPE_RX;
  1260. } else {
  1261. session_type = SESSION_TYPE_TX;
  1262. path_type = ADM_PATH_LIVE_REC;
  1263. port_type = MSM_AFE_PORT_TYPE_TX;
  1264. }
  1265. mutex_lock(&routing_lock);
  1266. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1267. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1268. if (!is_be_dai_extproc(i) &&
  1269. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1270. (msm_bedais[i].active) &&
  1271. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1272. mode = afe_get_port_type(msm_bedais[i].port_id);
  1273. adm_connect_afe_port(mode, dspst_id,
  1274. msm_bedais[i].port_id);
  1275. break;
  1276. }
  1277. }
  1278. mutex_unlock(&routing_lock);
  1279. }
  1280. static bool route_check_fe_id_adm_support(int fe_id)
  1281. {
  1282. bool rc = true;
  1283. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1284. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1285. /* fe id is listen while port is set to afe */
  1286. if (lsm_port_index[fe_id - MSM_FRONTEND_DAI_LSM1] !=
  1287. ADM_LSM_PORT_INDEX) {
  1288. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1289. __func__, fe_id,
  1290. lsm_port_index[fe_id - MSM_FRONTEND_DAI_LSM1]);
  1291. rc = false;
  1292. }
  1293. }
  1294. return rc;
  1295. }
  1296. /*
  1297. * msm_pcm_routing_get_pp_ch_cnt:
  1298. * Read the processed channel count
  1299. *
  1300. * @fe_id: Front end ID
  1301. * @session_type: Inidicates RX or TX session type
  1302. */
  1303. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1304. {
  1305. struct msm_pcm_stream_app_type_cfg cfg_data;
  1306. int be_id = 0, app_type_idx = 0, app_type = 0;
  1307. int ret = -EINVAL;
  1308. memset(&cfg_data, 0, sizeof(cfg_data));
  1309. if (!is_mm_lsm_fe_id(fe_id)) {
  1310. pr_err("%s: bad MM ID\n", __func__);
  1311. return -EINVAL;
  1312. }
  1313. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1314. &be_id, &cfg_data);
  1315. if (ret) {
  1316. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1317. return ret;
  1318. }
  1319. app_type = cfg_data.app_type;
  1320. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1321. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1322. }
  1323. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1324. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1325. int dspst_id, int stream_type,
  1326. uint32_t passthr_mode)
  1327. {
  1328. int i, j, session_type, path_type, port_type, topology;
  1329. int num_copps = 0;
  1330. struct route_payload payload;
  1331. u32 channels, sample_rate;
  1332. u16 bit_width = 16, be_bit_width;
  1333. bool is_lsm;
  1334. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1335. __func__, fe_id, perf_mode, dspst_id,
  1336. stream_type, passthr_mode);
  1337. if (!is_mm_lsm_fe_id(fe_id)) {
  1338. /* bad ID assigned in machine driver */
  1339. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1340. return -EINVAL;
  1341. }
  1342. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1343. session_type = SESSION_TYPE_RX;
  1344. if (passthr_mode != LEGACY_PCM)
  1345. path_type = ADM_PATH_COMPRESSED_RX;
  1346. else
  1347. path_type = ADM_PATH_PLAYBACK;
  1348. port_type = MSM_AFE_PORT_TYPE_RX;
  1349. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1350. session_type = SESSION_TYPE_TX;
  1351. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1352. path_type = ADM_PATH_COMPRESSED_TX;
  1353. else
  1354. path_type = ADM_PATH_LIVE_REC;
  1355. port_type = MSM_AFE_PORT_TYPE_TX;
  1356. } else {
  1357. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1358. return -EINVAL;
  1359. }
  1360. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1361. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1362. mutex_lock(&routing_lock);
  1363. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1364. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1365. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1366. if (!route_check_fe_id_adm_support(fe_id)) {
  1367. /* ignore adm open if not supported for fe_id */
  1368. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1369. mutex_unlock(&routing_lock);
  1370. return 0;
  1371. }
  1372. payload.num_copps = 0; /* only RX needs to use payload */
  1373. /* re-enable EQ if active */
  1374. msm_qti_pp_send_eq_values(fe_id);
  1375. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1376. if (!is_be_dai_extproc(i) &&
  1377. (afe_get_port_type(msm_bedais[i].port_id) ==
  1378. port_type) &&
  1379. (msm_bedais[i].active) &&
  1380. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1381. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1382. int port_id = get_port_id(msm_bedais[i].port_id);
  1383. /*
  1384. * check if ADM needs to be configured with different
  1385. * channel mapping than backend
  1386. */
  1387. if (!msm_bedais[i].adm_override_ch)
  1388. channels = msm_bedais[i].channel;
  1389. else
  1390. channels = msm_bedais[i].adm_override_ch;
  1391. bit_width = msm_routing_get_bit_width(
  1392. msm_bedais[i].format);
  1393. app_type =
  1394. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1395. if (app_type && is_lsm) {
  1396. app_type_idx =
  1397. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1398. sample_rate =
  1399. fe_dai_app_type_cfg[fe_id][session_type][i]
  1400. .sample_rate;
  1401. bit_width =
  1402. lsm_app_type_cfg[app_type_idx].bit_width;
  1403. } else if (app_type) {
  1404. app_type_idx =
  1405. msm_pcm_routing_get_app_type_idx(
  1406. app_type);
  1407. sample_rate =
  1408. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1409. bit_width =
  1410. app_type_cfg[app_type_idx].bit_width;
  1411. } else {
  1412. sample_rate = msm_bedais[i].sample_rate;
  1413. }
  1414. acdb_dev_id =
  1415. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1416. topology = msm_routing_get_adm_topology(fe_id,
  1417. session_type,
  1418. i);
  1419. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1420. || (passthr_mode ==
  1421. COMPRESSED_PASSTHROUGH_GEN)
  1422. || (passthr_mode ==
  1423. COMPRESSED_PASSTHROUGH_IEC61937))
  1424. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1425. pr_debug("%s: Before adm open topology %d\n", __func__,
  1426. topology);
  1427. be_bit_width = msm_routing_get_bit_width(
  1428. msm_bedais[i].format);
  1429. if (hifi_filter_enabled && (msm_bedais[i].sample_rate
  1430. == 384000 || msm_bedais[i].sample_rate ==
  1431. 352800) && be_bit_width == 32)
  1432. bit_width = msm_routing_get_bit_width(
  1433. SNDRV_PCM_FORMAT_S32_LE);
  1434. copp_idx =
  1435. adm_open(port_id, path_type, sample_rate,
  1436. channels, topology, perf_mode,
  1437. bit_width, app_type, acdb_dev_id,
  1438. session_type);
  1439. if ((copp_idx < 0) ||
  1440. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1441. pr_err("%s:adm open failed coppid:%d\n",
  1442. __func__, copp_idx);
  1443. mutex_unlock(&routing_lock);
  1444. return -EINVAL;
  1445. }
  1446. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1447. __func__, fe_id, session_type, i);
  1448. set_bit(copp_idx,
  1449. &session_copp_map[fe_id][session_type][i]);
  1450. if (msm_is_resample_needed(
  1451. sample_rate,
  1452. msm_bedais[i].sample_rate))
  1453. adm_copp_mfc_cfg(port_id, copp_idx,
  1454. msm_bedais[i].sample_rate);
  1455. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1456. unsigned long copp =
  1457. session_copp_map[fe_id][session_type][i];
  1458. if (test_bit(j, &copp)) {
  1459. payload.port_id[num_copps] = port_id;
  1460. payload.copp_idx[num_copps] = j;
  1461. payload.app_type[num_copps] =
  1462. fe_dai_app_type_cfg
  1463. [fe_id][session_type][i]
  1464. .app_type;
  1465. payload.acdb_dev_id[num_copps] =
  1466. fe_dai_app_type_cfg
  1467. [fe_id][session_type][i]
  1468. .acdb_dev_id;
  1469. payload.sample_rate[num_copps] =
  1470. fe_dai_app_type_cfg
  1471. [fe_id][session_type][i]
  1472. .sample_rate;
  1473. num_copps++;
  1474. }
  1475. }
  1476. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1477. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1478. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1479. msm_routing_send_device_pp_params(port_id,
  1480. copp_idx, fe_id);
  1481. }
  1482. }
  1483. if (num_copps) {
  1484. payload.num_copps = num_copps;
  1485. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1486. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1487. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1488. }
  1489. mutex_unlock(&routing_lock);
  1490. return 0;
  1491. }
  1492. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1493. {
  1494. u32 session_id;
  1495. switch (val) {
  1496. case MSM_FRONTEND_DAI_QCHAT:
  1497. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1498. break;
  1499. case MSM_FRONTEND_DAI_VOIP:
  1500. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1501. break;
  1502. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1503. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1504. break;
  1505. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1506. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1507. break;
  1508. default:
  1509. session_id = 0;
  1510. }
  1511. pr_debug("%s session_id 0x%x", __func__, session_id);
  1512. return session_id;
  1513. }
  1514. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1515. int dspst_id, int stream_type)
  1516. {
  1517. int copp_idx = 0;
  1518. int sess_type = 0;
  1519. int j = 0, be_id = 0;
  1520. int ret = 0;
  1521. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1522. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1523. return 0;
  1524. }
  1525. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1526. sess_type = SESSION_TYPE_RX;
  1527. else
  1528. sess_type = SESSION_TYPE_TX;
  1529. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1530. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1531. __func__, fe_id, sess_type);
  1532. return 0;
  1533. }
  1534. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1535. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1536. channel_mixer_v2[fe_id][sess_type].input_channel;
  1537. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1538. __func__, sess_type, fe_id,
  1539. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1540. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1541. msm_bedais[be_id].active);
  1542. if ((msm_bedais[be_id].active) &&
  1543. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1544. unsigned long copp =
  1545. session_copp_map[fe_id][sess_type][be_id];
  1546. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1547. if (test_bit(j, &copp)) {
  1548. copp_idx = j;
  1549. break;
  1550. }
  1551. }
  1552. ret = adm_programable_channel_mixer(
  1553. msm_bedais[be_id].port_id,
  1554. copp_idx, dspst_id, sess_type,
  1555. &channel_mixer_v2[fe_id][sess_type], 0);
  1556. }
  1557. return ret;
  1558. }
  1559. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1560. int dspst_id, int stream_type)
  1561. {
  1562. int copp_idx = 0;
  1563. int sess_type = 0;
  1564. int i = 0, j = 0, be_id;
  1565. int ret = 0;
  1566. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1567. dspst_id, stream_type);
  1568. if (ret) {
  1569. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1570. fe_id);
  1571. return ret;
  1572. }
  1573. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1574. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1575. return 0;
  1576. }
  1577. if (!(channel_mixer[fe_id].enable)) {
  1578. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1579. __func__, fe_id);
  1580. return 0;
  1581. }
  1582. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1583. sess_type = SESSION_TYPE_RX;
  1584. else
  1585. sess_type = SESSION_TYPE_TX;
  1586. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1587. ++i) {
  1588. be_id = channel_input[fe_id][i] - 1;
  1589. channel_mixer[fe_id].input_channels[i] =
  1590. msm_bedais[be_id].channel;
  1591. if ((msm_bedais[be_id].active) &&
  1592. test_bit(fe_id,
  1593. &msm_bedais[be_id].fe_sessions[0])) {
  1594. unsigned long copp =
  1595. session_copp_map[fe_id][sess_type][be_id];
  1596. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1597. if (test_bit(j, &copp)) {
  1598. copp_idx = j;
  1599. break;
  1600. }
  1601. }
  1602. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1603. __func__,
  1604. fe_id, be_id, msm_bedais[be_id].channel,
  1605. copp_idx);
  1606. ret = adm_programable_channel_mixer(
  1607. get_port_id(msm_bedais[be_id].port_id),
  1608. copp_idx, dspst_id, sess_type,
  1609. channel_mixer + fe_id, i);
  1610. }
  1611. }
  1612. return ret;
  1613. }
  1614. /**
  1615. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1616. * setting during runtime.
  1617. *
  1618. * @be_id: backend index
  1619. * @session_id: session index
  1620. * @session_type: session type
  1621. * @params: parameters for channel mixer
  1622. *
  1623. * Retuen: 0 for success, else error
  1624. */
  1625. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1626. int session_type,
  1627. struct msm_pcm_channel_mixer *params)
  1628. {
  1629. int rc = 0;
  1630. int port_id, copp_idx = 0;
  1631. be_id--;
  1632. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1633. pr_err("%s: invalid backend id %d\n", __func__,
  1634. be_id);
  1635. return -EINVAL;
  1636. }
  1637. port_id = msm_bedais[be_id].port_id;
  1638. copp_idx = adm_get_default_copp_idx(port_id);
  1639. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1640. __func__, port_id, copp_idx, session_id);
  1641. if ((params->input_channel < 0) ||
  1642. (params->input_channel > ADM_MAX_CHANNELS)) {
  1643. pr_err("%s: invalid input channel %d\n", __func__,
  1644. params->input_channel);
  1645. return -EINVAL;
  1646. }
  1647. if ((params->output_channel < 0) ||
  1648. (params->output_channel > ADM_MAX_CHANNELS)) {
  1649. pr_err("%s: invalid output channel %d\n", __func__,
  1650. params->output_channel);
  1651. return -EINVAL;
  1652. }
  1653. params->input_channels[0] = params->input_channel;
  1654. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1655. __func__, session_type,
  1656. params->override_in_ch_map,
  1657. params->override_out_ch_map,
  1658. msm_bedais[be_id].active);
  1659. rc = adm_programable_channel_mixer(port_id,
  1660. copp_idx,
  1661. session_id,
  1662. session_type,
  1663. params,
  1664. 0);
  1665. if (rc) {
  1666. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1667. rc = -EINVAL;
  1668. }
  1669. return rc;
  1670. }
  1671. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1672. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1673. int dspst_id, int stream_type)
  1674. {
  1675. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1676. struct route_payload payload;
  1677. u32 channels, sample_rate;
  1678. uint16_t bits_per_sample = 16, be_bit_width;
  1679. uint32_t passthr_mode = LEGACY_PCM;
  1680. int ret = 0;
  1681. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1682. /* bad ID assigned in machine driver */
  1683. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1684. return -EINVAL;
  1685. }
  1686. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1687. session_type = SESSION_TYPE_RX;
  1688. path_type = ADM_PATH_PLAYBACK;
  1689. port_type = MSM_AFE_PORT_TYPE_RX;
  1690. } else {
  1691. session_type = SESSION_TYPE_TX;
  1692. path_type = ADM_PATH_LIVE_REC;
  1693. port_type = MSM_AFE_PORT_TYPE_TX;
  1694. }
  1695. mutex_lock(&routing_lock);
  1696. payload.num_copps = 0; /* only RX needs to use payload */
  1697. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1698. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1699. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1700. /* re-enable EQ if active */
  1701. msm_qti_pp_send_eq_values(fedai_id);
  1702. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1703. if (!is_be_dai_extproc(i) &&
  1704. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1705. (msm_bedais[i].active) &&
  1706. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1707. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1708. int port_id = get_port_id(msm_bedais[i].port_id);
  1709. /*
  1710. * check if ADM needs to be configured with different
  1711. * channel mapping than backend
  1712. */
  1713. if (!msm_bedais[i].adm_override_ch)
  1714. channels = msm_bedais[i].channel;
  1715. else
  1716. channels = msm_bedais[i].adm_override_ch;
  1717. bits_per_sample = msm_routing_get_bit_width(
  1718. msm_bedais[i].format);
  1719. app_type =
  1720. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1721. if (app_type) {
  1722. app_type_idx =
  1723. msm_pcm_routing_get_app_type_idx(app_type);
  1724. sample_rate =
  1725. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1726. .sample_rate;
  1727. bits_per_sample =
  1728. app_type_cfg[app_type_idx].bit_width;
  1729. } else
  1730. sample_rate = msm_bedais[i].sample_rate;
  1731. acdb_dev_id =
  1732. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1733. .acdb_dev_id;
  1734. topology = msm_routing_get_adm_topology(fedai_id,
  1735. session_type,
  1736. i);
  1737. be_bit_width = msm_routing_get_bit_width(
  1738. msm_bedais[i].format);
  1739. if (hifi_filter_enabled && (msm_bedais[i].sample_rate ==
  1740. 384000 ||msm_bedais[i].sample_rate == 352800)
  1741. && be_bit_width == 32)
  1742. bits_per_sample = msm_routing_get_bit_width(
  1743. SNDRV_PCM_FORMAT_S32_LE);
  1744. copp_idx = adm_open(port_id, path_type,
  1745. sample_rate, channels, topology,
  1746. perf_mode, bits_per_sample,
  1747. app_type, acdb_dev_id,
  1748. session_type);
  1749. if ((copp_idx < 0) ||
  1750. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1751. pr_err("%s: adm open failed copp_idx:%d\n",
  1752. __func__, copp_idx);
  1753. mutex_unlock(&routing_lock);
  1754. return -EINVAL;
  1755. }
  1756. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1757. __func__, fedai_id, session_type, i);
  1758. set_bit(copp_idx,
  1759. &session_copp_map[fedai_id][session_type][i]);
  1760. if (msm_is_resample_needed(
  1761. sample_rate,
  1762. msm_bedais[i].sample_rate))
  1763. adm_copp_mfc_cfg(port_id, copp_idx,
  1764. msm_bedais[i].sample_rate);
  1765. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1766. unsigned long copp =
  1767. session_copp_map[fedai_id][session_type][i];
  1768. if (test_bit(j, &copp)) {
  1769. payload.port_id[num_copps] = port_id;
  1770. payload.copp_idx[num_copps] = j;
  1771. payload.app_type[num_copps] =
  1772. fe_dai_app_type_cfg
  1773. [fedai_id][session_type]
  1774. [i].app_type;
  1775. payload.acdb_dev_id[num_copps] =
  1776. fe_dai_app_type_cfg
  1777. [fedai_id][session_type]
  1778. [i].acdb_dev_id;
  1779. payload.sample_rate[num_copps] =
  1780. fe_dai_app_type_cfg
  1781. [fedai_id][session_type]
  1782. [i].sample_rate;
  1783. num_copps++;
  1784. }
  1785. }
  1786. if (perf_mode == LEGACY_PCM_MODE)
  1787. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1788. topology, channels);
  1789. }
  1790. }
  1791. if (num_copps) {
  1792. payload.num_copps = num_copps;
  1793. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1794. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1795. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1796. }
  1797. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1798. dspst_id, stream_type);
  1799. mutex_unlock(&routing_lock);
  1800. return ret;
  1801. }
  1802. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1803. int dspst_id, int stream_type,
  1804. struct msm_pcm_routing_evt event_info)
  1805. {
  1806. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1807. stream_type)) {
  1808. pr_err("%s: failed to reg phy stream\n", __func__);
  1809. return -EINVAL;
  1810. }
  1811. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1812. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1813. else
  1814. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1815. return 0;
  1816. }
  1817. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1818. {
  1819. int i, port_type, session_type, path_type, topology, port_id;
  1820. struct msm_pcm_routing_fdai_data *fdai;
  1821. if (!is_mm_lsm_fe_id(fedai_id)) {
  1822. /* bad ID assigned in machine driver */
  1823. pr_err("%s: bad MM ID\n", __func__);
  1824. return;
  1825. }
  1826. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1827. port_type = MSM_AFE_PORT_TYPE_RX;
  1828. session_type = SESSION_TYPE_RX;
  1829. path_type = ADM_PATH_PLAYBACK;
  1830. } else {
  1831. port_type = MSM_AFE_PORT_TYPE_TX;
  1832. session_type = SESSION_TYPE_TX;
  1833. path_type = ADM_PATH_LIVE_REC;
  1834. }
  1835. mutex_lock(&routing_lock);
  1836. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1837. if (!is_be_dai_extproc(i) &&
  1838. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1839. (msm_bedais[i].active) &&
  1840. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1841. int idx;
  1842. unsigned long copp =
  1843. session_copp_map[fedai_id][session_type][i];
  1844. fdai = &fe_dai_map[fedai_id][session_type];
  1845. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1846. if (test_bit(idx, &copp))
  1847. break;
  1848. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1849. pr_debug("%s: copp idx is invalid, exiting\n",
  1850. __func__);
  1851. continue;
  1852. }
  1853. port_id = get_port_id(msm_bedais[i].port_id);
  1854. topology = adm_get_topology_for_port_copp_idx(
  1855. port_id, idx);
  1856. msm_routing_unload_topology(topology);
  1857. adm_close(port_id, fdai->perf_mode, idx);
  1858. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1859. __func__, copp, fedai_id, session_type, i);
  1860. clear_bit(idx,
  1861. &session_copp_map[fedai_id][session_type][i]);
  1862. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1863. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1864. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1865. (fdai->passthr_mode == LEGACY_PCM))
  1866. msm_pcm_routing_deinit_pp(port_id, topology);
  1867. }
  1868. }
  1869. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1870. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1871. mutex_unlock(&routing_lock);
  1872. }
  1873. /* Check if FE/BE route is set */
  1874. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1875. {
  1876. bool rc = false;
  1877. if (!is_mm_lsm_fe_id(fe_id)) {
  1878. /* recheck FE ID in the mixer control defined in this file */
  1879. pr_err("%s: bad MM ID\n", __func__);
  1880. return rc;
  1881. }
  1882. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1883. rc = true;
  1884. return rc;
  1885. }
  1886. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1887. {
  1888. int session_type, path_type, topology;
  1889. u32 channels, sample_rate;
  1890. uint16_t bits_per_sample = 16, be_bit_width;
  1891. struct msm_pcm_routing_fdai_data *fdai;
  1892. uint32_t passthr_mode;
  1893. bool is_lsm;
  1894. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1895. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1896. afe_get_port_type(msm_bedais[reg].port_id) ==
  1897. MSM_AFE_PORT_TYPE_RX) {
  1898. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1899. __func__, set, msm_bedais[reg].port_id);
  1900. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1901. } else if (!is_mm_lsm_fe_id(val)) {
  1902. /* recheck FE ID in the mixer control defined in this file */
  1903. pr_err("%s: bad MM ID\n", __func__);
  1904. return;
  1905. }
  1906. if (!route_check_fe_id_adm_support(val)) {
  1907. /* ignore adm open if not supported for fe_id */
  1908. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1909. if (set)
  1910. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1911. else
  1912. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1913. return;
  1914. }
  1915. session_type =
  1916. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1917. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1918. fdai = &fe_dai_map[val][session_type];
  1919. passthr_mode = fdai->passthr_mode;
  1920. if (session_type == SESSION_TYPE_RX) {
  1921. if (passthr_mode != LEGACY_PCM)
  1922. path_type = ADM_PATH_COMPRESSED_RX;
  1923. else
  1924. path_type = ADM_PATH_PLAYBACK;
  1925. } else {
  1926. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1927. path_type = ADM_PATH_COMPRESSED_TX;
  1928. else
  1929. path_type = ADM_PATH_LIVE_REC;
  1930. }
  1931. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1932. (val <= MSM_FRONTEND_DAI_LSM8);
  1933. mutex_lock(&routing_lock);
  1934. if (set) {
  1935. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1936. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1937. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1938. voc_start_playback(set, msm_bedais[reg].port_id);
  1939. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1940. if (msm_bedais[reg].active && fdai->strm_id !=
  1941. INVALID_SESSION) {
  1942. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1943. int port_id = get_port_id(msm_bedais[reg].port_id);
  1944. /*
  1945. * check if ADM needs to be configured with different
  1946. * channel mapping than backend
  1947. */
  1948. if (!msm_bedais[reg].adm_override_ch)
  1949. channels = msm_bedais[reg].channel;
  1950. else
  1951. channels = msm_bedais[reg].adm_override_ch;
  1952. if (session_type == SESSION_TYPE_TX &&
  1953. fdai->be_srate &&
  1954. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1955. pr_debug("%s: flush strm %d diff BE rates\n",
  1956. __func__, fdai->strm_id);
  1957. if (fdai->event_info.event_func)
  1958. fdai->event_info.event_func(
  1959. MSM_PCM_RT_EVT_BUF_RECFG,
  1960. fdai->event_info.priv_data);
  1961. fdai->be_srate = 0; /* might not need it */
  1962. }
  1963. bits_per_sample = msm_routing_get_bit_width(
  1964. msm_bedais[reg].format);
  1965. app_type =
  1966. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1967. if (app_type && is_lsm) {
  1968. app_type_idx =
  1969. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1970. sample_rate =
  1971. fe_dai_app_type_cfg[val][session_type][reg]
  1972. .sample_rate;
  1973. bits_per_sample =
  1974. lsm_app_type_cfg[app_type_idx].bit_width;
  1975. } else if (app_type) {
  1976. app_type_idx =
  1977. msm_pcm_routing_get_app_type_idx(app_type);
  1978. sample_rate =
  1979. fe_dai_app_type_cfg[val][session_type][reg]
  1980. .sample_rate;
  1981. bits_per_sample =
  1982. app_type_cfg[app_type_idx].bit_width;
  1983. } else
  1984. sample_rate = msm_bedais[reg].sample_rate;
  1985. topology = msm_routing_get_adm_topology(val,
  1986. session_type,
  1987. reg);
  1988. acdb_dev_id =
  1989. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1990. be_bit_width = msm_routing_get_bit_width(
  1991. msm_bedais[reg].format);
  1992. if (hifi_filter_enabled && (msm_bedais[reg].sample_rate
  1993. == 384000 ||msm_bedais[reg].sample_rate ==
  1994. 352800) && be_bit_width == 32)
  1995. bits_per_sample = msm_routing_get_bit_width(
  1996. SNDRV_PCM_FORMAT_S32_LE);
  1997. copp_idx = adm_open(port_id, path_type,
  1998. sample_rate, channels, topology,
  1999. fdai->perf_mode, bits_per_sample,
  2000. app_type, acdb_dev_id,
  2001. session_type);
  2002. if ((copp_idx < 0) ||
  2003. (copp_idx >= MAX_COPPS_PER_PORT)) {
  2004. pr_err("%s: adm open failed\n", __func__);
  2005. mutex_unlock(&routing_lock);
  2006. return;
  2007. }
  2008. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  2009. __func__, val, session_type, reg);
  2010. set_bit(copp_idx,
  2011. &session_copp_map[val][session_type][reg]);
  2012. if (msm_is_resample_needed(
  2013. sample_rate,
  2014. msm_bedais[reg].sample_rate))
  2015. adm_copp_mfc_cfg(port_id, copp_idx,
  2016. msm_bedais[reg].sample_rate);
  2017. if (session_type == SESSION_TYPE_RX &&
  2018. fdai->event_info.event_func)
  2019. fdai->event_info.event_func(
  2020. MSM_PCM_RT_EVT_DEVSWITCH,
  2021. fdai->event_info.priv_data);
  2022. msm_pcm_routing_build_matrix(val, session_type,
  2023. path_type,
  2024. fdai->perf_mode,
  2025. passthr_mode);
  2026. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  2027. (passthr_mode == LEGACY_PCM))
  2028. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  2029. topology, channels);
  2030. }
  2031. } else {
  2032. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2033. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2034. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2035. voc_start_playback(set, msm_bedais[reg].port_id);
  2036. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2037. if (msm_bedais[reg].active && fdai->strm_id !=
  2038. INVALID_SESSION) {
  2039. int idx;
  2040. int port_id;
  2041. unsigned long copp =
  2042. session_copp_map[val][session_type][reg];
  2043. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2044. if (test_bit(idx, &copp))
  2045. break;
  2046. if (idx >= MAX_COPPS_PER_PORT) {
  2047. pr_debug("%s: copp idx is invalid, exiting\n",
  2048. __func__);
  2049. mutex_unlock(&routing_lock);
  2050. return;
  2051. }
  2052. port_id = get_port_id(msm_bedais[reg].port_id);
  2053. topology = adm_get_topology_for_port_copp_idx(port_id,
  2054. idx);
  2055. msm_routing_unload_topology(topology);
  2056. adm_close(port_id, fdai->perf_mode, idx);
  2057. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2058. __func__, copp, val, session_type, reg,
  2059. topology);
  2060. clear_bit(idx,
  2061. &session_copp_map[val][session_type][reg]);
  2062. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2063. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2064. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2065. (passthr_mode == LEGACY_PCM))
  2066. msm_pcm_routing_deinit_pp(port_id, topology);
  2067. msm_pcm_routing_build_matrix(val, session_type,
  2068. path_type,
  2069. fdai->perf_mode,
  2070. passthr_mode);
  2071. }
  2072. }
  2073. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2074. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2075. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2076. mutex_unlock(&routing_lock);
  2077. }
  2078. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2079. struct snd_ctl_elem_value *ucontrol)
  2080. {
  2081. struct soc_mixer_control *mc =
  2082. (struct soc_mixer_control *)kcontrol->private_value;
  2083. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2084. ucontrol->value.integer.value[0] = 1;
  2085. else
  2086. ucontrol->value.integer.value[0] = 0;
  2087. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2088. ucontrol->value.integer.value[0]);
  2089. return 0;
  2090. }
  2091. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2092. struct snd_ctl_elem_value *ucontrol)
  2093. {
  2094. struct snd_soc_dapm_widget *widget =
  2095. snd_soc_dapm_kcontrol_widget(kcontrol);
  2096. struct soc_mixer_control *mc =
  2097. (struct soc_mixer_control *)kcontrol->private_value;
  2098. struct snd_soc_dapm_update *update = NULL;
  2099. if (ucontrol->value.integer.value[0] &&
  2100. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2101. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2102. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2103. update);
  2104. } else if (!ucontrol->value.integer.value[0] &&
  2105. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2106. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2107. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2108. update);
  2109. }
  2110. return 1;
  2111. }
  2112. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2113. struct snd_ctl_elem_value *ucontrol)
  2114. {
  2115. struct soc_mixer_control *mc =
  2116. (struct soc_mixer_control *)kcontrol->private_value;
  2117. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2118. ucontrol->value.integer.value[0] = 1;
  2119. else
  2120. ucontrol->value.integer.value[0] = 0;
  2121. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2122. ucontrol->value.integer.value[0]);
  2123. return 0;
  2124. }
  2125. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2126. struct snd_ctl_elem_value *ucontrol)
  2127. {
  2128. struct snd_soc_dapm_widget *widget =
  2129. snd_soc_dapm_kcontrol_widget(kcontrol);
  2130. struct soc_mixer_control *mc =
  2131. (struct soc_mixer_control *)kcontrol->private_value;
  2132. struct snd_soc_dapm_update *update = NULL;
  2133. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2134. ucontrol->value.integer.value[0]);
  2135. if (ucontrol->value.integer.value[0]) {
  2136. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2137. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2138. snd_soc_dapm_mixer_update_power(widget->dapm,
  2139. kcontrol, 1, update);
  2140. } else if (!ucontrol->value.integer.value[0]) {
  2141. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2142. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2143. snd_soc_dapm_mixer_update_power(widget->dapm,
  2144. kcontrol, 0, update);
  2145. }
  2146. return 1;
  2147. }
  2148. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2149. {
  2150. u32 session_id = 0;
  2151. u16 path_type;
  2152. struct media_format_info voc_be_media_format;
  2153. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2154. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2155. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2156. __func__, val, session_id);
  2157. mutex_lock(&routing_lock);
  2158. if (set)
  2159. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2160. else
  2161. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2162. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2163. afe_get_port_type(msm_bedais[reg].port_id) ==
  2164. MSM_AFE_PORT_TYPE_RX) {
  2165. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2166. __func__, set, msm_bedais[reg].port_id);
  2167. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2168. }
  2169. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2170. MSM_AFE_PORT_TYPE_RX)
  2171. path_type = RX_PATH;
  2172. else
  2173. path_type = TX_PATH;
  2174. if (set) {
  2175. if (msm_bedais[reg].active) {
  2176. voc_set_route_flag(session_id, path_type, 1);
  2177. memset(&voc_be_media_format, 0,
  2178. sizeof(struct media_format_info));
  2179. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2180. voc_be_media_format.num_channels =
  2181. msm_bedais[reg].channel;
  2182. voc_be_media_format.sample_rate =
  2183. msm_bedais[reg].sample_rate;
  2184. voc_be_media_format.bits_per_sample =
  2185. msm_bedais[reg].format;
  2186. /* Defaulting this to 1 for voice call usecases */
  2187. voc_be_media_format.channel_mapping[0] = 1;
  2188. voc_set_device_config(session_id, path_type,
  2189. &voc_be_media_format);
  2190. if (voc_get_route_flag(session_id, TX_PATH) &&
  2191. voc_get_route_flag(session_id, RX_PATH))
  2192. voc_enable_device(session_id);
  2193. } else {
  2194. pr_debug("%s BE is not active\n", __func__);
  2195. }
  2196. } else {
  2197. voc_set_route_flag(session_id, path_type, 0);
  2198. voc_disable_device(session_id);
  2199. }
  2200. mutex_unlock(&routing_lock);
  2201. }
  2202. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2203. struct snd_ctl_elem_value *ucontrol)
  2204. {
  2205. struct soc_mixer_control *mc =
  2206. (struct soc_mixer_control *)kcontrol->private_value;
  2207. mutex_lock(&routing_lock);
  2208. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2209. ucontrol->value.integer.value[0] = 1;
  2210. else
  2211. ucontrol->value.integer.value[0] = 0;
  2212. mutex_unlock(&routing_lock);
  2213. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2214. ucontrol->value.integer.value[0]);
  2215. return 0;
  2216. }
  2217. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2218. struct snd_ctl_elem_value *ucontrol)
  2219. {
  2220. struct snd_soc_dapm_widget *widget =
  2221. snd_soc_dapm_kcontrol_widget(kcontrol);
  2222. struct soc_mixer_control *mc =
  2223. (struct soc_mixer_control *)kcontrol->private_value;
  2224. struct snd_soc_dapm_update *update = NULL;
  2225. if (ucontrol->value.integer.value[0]) {
  2226. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2227. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2228. update);
  2229. } else {
  2230. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2231. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2232. update);
  2233. }
  2234. return 1;
  2235. }
  2236. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2237. struct snd_ctl_elem_value *ucontrol)
  2238. {
  2239. struct soc_mixer_control *mc =
  2240. (struct soc_mixer_control *)kcontrol->private_value;
  2241. mutex_lock(&routing_lock);
  2242. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2243. ucontrol->value.integer.value[0] = 1;
  2244. else
  2245. ucontrol->value.integer.value[0] = 0;
  2246. mutex_unlock(&routing_lock);
  2247. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2248. ucontrol->value.integer.value[0]);
  2249. return 0;
  2250. }
  2251. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2252. struct snd_ctl_elem_value *ucontrol)
  2253. {
  2254. struct snd_soc_dapm_widget *widget =
  2255. snd_soc_dapm_kcontrol_widget(kcontrol);
  2256. struct soc_mixer_control *mc =
  2257. (struct soc_mixer_control *)kcontrol->private_value;
  2258. struct snd_soc_dapm_update *update = NULL;
  2259. if (ucontrol->value.integer.value[0]) {
  2260. mutex_lock(&routing_lock);
  2261. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2262. mutex_unlock(&routing_lock);
  2263. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2264. update);
  2265. } else {
  2266. mutex_lock(&routing_lock);
  2267. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2268. mutex_unlock(&routing_lock);
  2269. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2270. update);
  2271. }
  2272. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2273. ucontrol->value.integer.value[0]);
  2274. return 1;
  2275. }
  2276. /*
  2277. * Return the mapping between port ID and backend ID to enable the AFE callback
  2278. * to determine the acdb_dev_id from the port id
  2279. */
  2280. int msm_pcm_get_be_id_from_port_id(int port_id)
  2281. {
  2282. int i;
  2283. int be_id = -EINVAL;
  2284. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2285. if (msm_bedais[i].port_id == port_id) {
  2286. be_id = i;
  2287. break;
  2288. }
  2289. }
  2290. return be_id;
  2291. }
  2292. /*
  2293. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2294. * correct AFE calibration information by comparing the header information.
  2295. */
  2296. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2297. {
  2298. int acdb_id = -EINVAL;
  2299. int i = 0;
  2300. int session;
  2301. int port_type = afe_get_port_type(port_id);
  2302. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2303. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2304. __func__, port_id, be_id, port_type);
  2305. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2306. session = SESSION_TYPE_TX;
  2307. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2308. session = SESSION_TYPE_RX;
  2309. } else {
  2310. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2311. acdb_id = -EINVAL;
  2312. goto exit;
  2313. }
  2314. if (be_id < 0) {
  2315. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2316. goto exit;
  2317. }
  2318. mutex_lock(&routing_lock);
  2319. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2320. MSM_FRONTEND_DAI_MAX);
  2321. if (i < MSM_FRONTEND_DAI_MAX)
  2322. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2323. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2324. __func__, i, session, be_id, acdb_id);
  2325. mutex_unlock(&routing_lock);
  2326. exit:
  2327. return acdb_id;
  2328. }
  2329. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2330. struct snd_ctl_elem_value *ucontrol)
  2331. {
  2332. ucontrol->value.integer.value[0] = fm_switch_enable;
  2333. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2334. ucontrol->value.integer.value[0]);
  2335. return 0;
  2336. }
  2337. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2338. struct snd_ctl_elem_value *ucontrol)
  2339. {
  2340. struct snd_soc_dapm_widget *widget =
  2341. snd_soc_dapm_kcontrol_widget(kcontrol);
  2342. struct snd_soc_dapm_update *update = NULL;
  2343. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2344. ucontrol->value.integer.value[0]);
  2345. if (ucontrol->value.integer.value[0])
  2346. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2347. update);
  2348. else
  2349. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2350. update);
  2351. fm_switch_enable = ucontrol->value.integer.value[0];
  2352. return 1;
  2353. }
  2354. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2355. struct snd_ctl_elem_value *ucontrol)
  2356. {
  2357. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2358. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2359. ucontrol->value.integer.value[0]);
  2360. return 0;
  2361. }
  2362. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2363. struct snd_ctl_elem_value *ucontrol)
  2364. {
  2365. struct snd_soc_dapm_widget *widget =
  2366. snd_soc_dapm_kcontrol_widget(kcontrol);
  2367. struct snd_soc_dapm_update *update = NULL;
  2368. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2369. ucontrol->value.integer.value[0]);
  2370. if (ucontrol->value.integer.value[0])
  2371. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2372. 1, update);
  2373. else
  2374. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2375. 0, update);
  2376. hfp_switch_enable = ucontrol->value.integer.value[0];
  2377. return 1;
  2378. }
  2379. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2380. struct snd_ctl_elem_value *ucontrol)
  2381. {
  2382. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2383. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2384. ucontrol->value.integer.value[0]);
  2385. return 0;
  2386. }
  2387. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2388. struct snd_ctl_elem_value *ucontrol)
  2389. {
  2390. struct snd_soc_dapm_widget *widget =
  2391. snd_soc_dapm_kcontrol_widget(kcontrol);
  2392. struct snd_soc_dapm_update *update = NULL;
  2393. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2394. ucontrol->value.integer.value[0]);
  2395. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2396. if (a2dp_switch_enable)
  2397. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2398. 1, update);
  2399. else
  2400. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2401. 0, update);
  2402. return 1;
  2403. }
  2404. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2405. struct snd_ctl_elem_value *ucontrol)
  2406. {
  2407. ucontrol->value.integer.value[0] = sco_switch_enable;
  2408. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2409. ucontrol->value.integer.value[0]);
  2410. return 0;
  2411. }
  2412. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2413. struct snd_ctl_elem_value *ucontrol)
  2414. {
  2415. struct snd_soc_dapm_widget *widget =
  2416. snd_soc_dapm_kcontrol_widget(kcontrol);
  2417. struct snd_soc_dapm_update *update = NULL;
  2418. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2419. ucontrol->value.integer.value[0]);
  2420. sco_switch_enable = ucontrol->value.integer.value[0];
  2421. if (sco_switch_enable)
  2422. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2423. 1, update);
  2424. else
  2425. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2426. 0, update);
  2427. return 1;
  2428. }
  2429. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2430. struct snd_ctl_elem_value *ucontrol)
  2431. {
  2432. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2433. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2434. ucontrol->value.integer.value[0]);
  2435. return 0;
  2436. }
  2437. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2438. struct snd_ctl_elem_value *ucontrol)
  2439. {
  2440. struct snd_soc_dapm_widget *widget =
  2441. snd_soc_dapm_kcontrol_widget(kcontrol);
  2442. struct snd_soc_dapm_update *update = NULL;
  2443. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2444. ucontrol->value.integer.value[0]);
  2445. if (ucontrol->value.integer.value[0])
  2446. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2447. update);
  2448. else
  2449. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2450. update);
  2451. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2452. return 1;
  2453. }
  2454. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2455. struct snd_ctl_elem_value *ucontrol)
  2456. {
  2457. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2458. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2459. ucontrol->value.integer.value[0]);
  2460. return 0;
  2461. }
  2462. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2463. struct snd_ctl_elem_value *ucontrol)
  2464. {
  2465. struct snd_soc_dapm_widget *widget =
  2466. snd_soc_dapm_kcontrol_widget(kcontrol);
  2467. struct snd_soc_dapm_update *update = NULL;
  2468. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2469. ucontrol->value.integer.value[0]);
  2470. if (ucontrol->value.integer.value[0])
  2471. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2472. update);
  2473. else
  2474. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2475. update);
  2476. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2477. return 1;
  2478. }
  2479. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2480. struct snd_ctl_elem_value *ucontrol)
  2481. {
  2482. ucontrol->value.integer.value[0] = usb_switch_enable;
  2483. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2484. ucontrol->value.integer.value[0]);
  2485. return 0;
  2486. }
  2487. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2488. struct snd_ctl_elem_value *ucontrol)
  2489. {
  2490. struct snd_soc_dapm_widget *widget =
  2491. snd_soc_dapm_kcontrol_widget(kcontrol);
  2492. struct snd_soc_dapm_update *update = NULL;
  2493. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2494. ucontrol->value.integer.value[0]);
  2495. if (ucontrol->value.integer.value[0])
  2496. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2497. 1, update);
  2498. else
  2499. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2500. 0, update);
  2501. usb_switch_enable = ucontrol->value.integer.value[0];
  2502. return 1;
  2503. }
  2504. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2505. struct snd_ctl_elem_value *ucontrol)
  2506. {
  2507. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2508. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2509. ucontrol->value.integer.value[0]);
  2510. return 0;
  2511. }
  2512. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2513. struct snd_ctl_elem_value *ucontrol)
  2514. {
  2515. struct snd_soc_dapm_widget *widget =
  2516. snd_soc_dapm_kcontrol_widget(kcontrol);
  2517. struct snd_soc_dapm_update *update = NULL;
  2518. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2519. ucontrol->value.integer.value[0]);
  2520. if (ucontrol->value.integer.value[0])
  2521. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2522. update);
  2523. else
  2524. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2525. update);
  2526. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2527. return 1;
  2528. }
  2529. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2530. struct snd_ctl_elem_value *ucontrol)
  2531. {
  2532. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2533. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2534. ucontrol->value.integer.value[0]);
  2535. return 0;
  2536. }
  2537. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2538. struct snd_ctl_elem_value *ucontrol)
  2539. {
  2540. struct snd_soc_dapm_widget *widget =
  2541. snd_soc_dapm_kcontrol_widget(kcontrol);
  2542. struct snd_soc_dapm_update *update = NULL;
  2543. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2544. ucontrol->value.integer.value[0]);
  2545. if (ucontrol->value.integer.value[0])
  2546. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2547. update);
  2548. else
  2549. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2550. update);
  2551. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2552. return 1;
  2553. }
  2554. static int msm_routing_get_tert_mi2s_switch_mixer(
  2555. struct snd_kcontrol *kcontrol,
  2556. struct snd_ctl_elem_value *ucontrol)
  2557. {
  2558. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2559. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2560. ucontrol->value.integer.value[0]);
  2561. return 0;
  2562. }
  2563. static int msm_routing_put_tert_mi2s_switch_mixer(
  2564. struct snd_kcontrol *kcontrol,
  2565. struct snd_ctl_elem_value *ucontrol)
  2566. {
  2567. struct snd_soc_dapm_widget *widget =
  2568. snd_soc_dapm_kcontrol_widget(kcontrol);
  2569. struct snd_soc_dapm_update *update = NULL;
  2570. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2571. ucontrol->value.integer.value[0]);
  2572. if (ucontrol->value.integer.value[0])
  2573. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2574. update);
  2575. else
  2576. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2577. update);
  2578. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2579. return 1;
  2580. }
  2581. static int msm_routing_get_quat_mi2s_switch_mixer(
  2582. struct snd_kcontrol *kcontrol,
  2583. struct snd_ctl_elem_value *ucontrol)
  2584. {
  2585. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2586. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2587. ucontrol->value.integer.value[0]);
  2588. return 0;
  2589. }
  2590. static int msm_routing_put_quat_mi2s_switch_mixer(
  2591. struct snd_kcontrol *kcontrol,
  2592. struct snd_ctl_elem_value *ucontrol)
  2593. {
  2594. struct snd_soc_dapm_widget *widget =
  2595. snd_soc_dapm_kcontrol_widget(kcontrol);
  2596. struct snd_soc_dapm_update *update = NULL;
  2597. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2598. ucontrol->value.integer.value[0]);
  2599. if (ucontrol->value.integer.value[0])
  2600. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2601. update);
  2602. else
  2603. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2604. update);
  2605. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2606. return 1;
  2607. }
  2608. static int msm_routing_get_quin_mi2s_switch_mixer(
  2609. struct snd_kcontrol *kcontrol,
  2610. struct snd_ctl_elem_value *ucontrol)
  2611. {
  2612. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2613. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2614. ucontrol->value.integer.value[0]);
  2615. return 0;
  2616. }
  2617. static int msm_routing_put_quin_mi2s_switch_mixer(
  2618. struct snd_kcontrol *kcontrol,
  2619. struct snd_ctl_elem_value *ucontrol)
  2620. {
  2621. struct snd_soc_dapm_widget *widget =
  2622. snd_soc_dapm_kcontrol_widget(kcontrol);
  2623. struct snd_soc_dapm_update *update = NULL;
  2624. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2625. ucontrol->value.integer.value[0]);
  2626. if (ucontrol->value.integer.value[0])
  2627. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2628. update);
  2629. else
  2630. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2631. update);
  2632. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2633. return 1;
  2634. }
  2635. static int msm_routing_get_sen_mi2s_switch_mixer(
  2636. struct snd_kcontrol *kcontrol,
  2637. struct snd_ctl_elem_value *ucontrol)
  2638. {
  2639. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2640. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2641. ucontrol->value.integer.value[0]);
  2642. return 0;
  2643. }
  2644. static int msm_routing_put_sen_mi2s_switch_mixer(
  2645. struct snd_kcontrol *kcontrol,
  2646. struct snd_ctl_elem_value *ucontrol)
  2647. {
  2648. struct snd_soc_dapm_widget *widget =
  2649. snd_soc_dapm_kcontrol_widget(kcontrol);
  2650. struct snd_soc_dapm_update *update = NULL;
  2651. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2652. ucontrol->value.integer.value[0]);
  2653. if (ucontrol->value.integer.value[0])
  2654. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2655. update);
  2656. else
  2657. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2658. update);
  2659. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2660. return 1;
  2661. }
  2662. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2663. struct snd_ctl_elem_value *ucontrol)
  2664. {
  2665. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2666. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2667. ucontrol->value.integer.value[0]);
  2668. return 0;
  2669. }
  2670. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2671. struct snd_ctl_elem_value *ucontrol)
  2672. {
  2673. struct snd_soc_dapm_widget *widget =
  2674. snd_soc_dapm_kcontrol_widget(kcontrol);
  2675. struct snd_soc_dapm_update *update = NULL;
  2676. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2677. ucontrol->value.integer.value[0]);
  2678. if (ucontrol->value.integer.value[0])
  2679. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2680. update);
  2681. else
  2682. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2683. update);
  2684. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2685. return 1;
  2686. }
  2687. static void msm_routing_get_lsm_fe_idx(struct snd_kcontrol *kcontrol,
  2688. u8 *fe_idx)
  2689. {
  2690. int fe_id = MSM_FRONTEND_DAI_LSM1;
  2691. if (strnstr(kcontrol->id.name, "LSM1", sizeof("LSM1"))) {
  2692. fe_id = MSM_FRONTEND_DAI_LSM1;
  2693. } else if (strnstr(kcontrol->id.name, "LSM2", sizeof("LSM2"))) {
  2694. fe_id = MSM_FRONTEND_DAI_LSM2;
  2695. } else if (strnstr(kcontrol->id.name, "LSM3", sizeof("LSM3"))) {
  2696. fe_id = MSM_FRONTEND_DAI_LSM3;
  2697. } else if (strnstr(kcontrol->id.name, "LSM4", sizeof("LSM4"))) {
  2698. fe_id = MSM_FRONTEND_DAI_LSM4;
  2699. } else if (strnstr(kcontrol->id.name, "LSM5", sizeof("LSM5"))) {
  2700. fe_id = MSM_FRONTEND_DAI_LSM5;
  2701. } else if (strnstr(kcontrol->id.name, "LSM6", sizeof("LSM6"))) {
  2702. fe_id = MSM_FRONTEND_DAI_LSM6;
  2703. } else if (strnstr(kcontrol->id.name, "LSM7", sizeof("LSM7"))) {
  2704. fe_id = MSM_FRONTEND_DAI_LSM7;
  2705. } else if (strnstr(kcontrol->id.name, "LSM8", sizeof("LSM8"))) {
  2706. fe_id = MSM_FRONTEND_DAI_LSM8;
  2707. } else {
  2708. pr_err("%s: Invalid kcontrol name:%s\n", __func__,
  2709. kcontrol->id.name);
  2710. return;
  2711. }
  2712. *fe_idx = fe_id - MSM_FRONTEND_DAI_LSM1;
  2713. pr_debug("%s: fe_id: %d, fe_idx:%d\n", __func__, fe_id, *fe_idx);
  2714. }
  2715. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2716. struct snd_ctl_elem_value *ucontrol)
  2717. {
  2718. u8 fe_idx = 0;
  2719. msm_routing_get_lsm_fe_idx(kcontrol, &fe_idx);
  2720. ucontrol->value.integer.value[0] = lsm_port_index[fe_idx];
  2721. return 0;
  2722. }
  2723. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2724. struct snd_ctl_elem_value *ucontrol)
  2725. {
  2726. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2727. int mux = ucontrol->value.enumerated.item[0];
  2728. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2729. u8 fe_idx = 0;
  2730. if (mux >= e->items) {
  2731. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2732. return -EINVAL;
  2733. }
  2734. pr_debug("%s: LSM enable %ld\n", __func__,
  2735. ucontrol->value.integer.value[0]);
  2736. switch (ucontrol->value.integer.value[0]) {
  2737. case 1:
  2738. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2739. break;
  2740. case 2:
  2741. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2742. break;
  2743. case 3:
  2744. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2745. break;
  2746. case 4:
  2747. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2748. break;
  2749. case 5:
  2750. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2751. break;
  2752. case 6:
  2753. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2754. break;
  2755. case 7:
  2756. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2757. break;
  2758. case 8:
  2759. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2760. break;
  2761. case 9:
  2762. lsm_port = ADM_LSM_PORT_ID;
  2763. break;
  2764. case 10:
  2765. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2766. break;
  2767. case 11:
  2768. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2769. break;
  2770. case 12:
  2771. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2772. break;
  2773. case 13:
  2774. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2775. break;
  2776. case 14:
  2777. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2778. break;
  2779. case 15:
  2780. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2781. break;
  2782. case 16:
  2783. lsm_port = AFE_PORT_ID_TERTIARY_TDM_TX;
  2784. break;
  2785. default:
  2786. pr_err("Default lsm port");
  2787. break;
  2788. }
  2789. set_lsm_port(lsm_port);
  2790. msm_routing_get_lsm_fe_idx(kcontrol, &fe_idx);
  2791. lsm_port_index[fe_idx] = ucontrol->value.integer.value[0];
  2792. return 0;
  2793. }
  2794. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2795. struct snd_ctl_elem_value *ucontrol)
  2796. {
  2797. int i;
  2798. u16 port_id;
  2799. enum afe_mad_type mad_type;
  2800. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2801. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2802. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2803. strlen(lsm_port_text[i])))
  2804. break;
  2805. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2806. pr_warn("%s: Invalid id name %s\n", __func__,
  2807. kcontrol->id.name);
  2808. return -EINVAL;
  2809. }
  2810. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2811. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2812. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2813. strlen(lsm_port_text[7])))
  2814. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2815. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2816. strlen(lsm_port_text[8])))
  2817. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2818. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2819. strlen(lsm_port_text[10])))
  2820. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2821. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2822. strlen(lsm_port_text[14])))
  2823. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2824. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2825. strlen(lsm_port_text[15])))
  2826. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2827. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2828. strlen(lsm_port_text[16])))
  2829. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2830. mad_type = afe_port_get_mad_type(port_id);
  2831. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2832. mad_type);
  2833. switch (mad_type) {
  2834. case MAD_HW_NONE:
  2835. ucontrol->value.integer.value[0] = MADNONE;
  2836. break;
  2837. case MAD_HW_AUDIO:
  2838. ucontrol->value.integer.value[0] = MADAUDIO;
  2839. break;
  2840. case MAD_HW_BEACON:
  2841. ucontrol->value.integer.value[0] = MADBEACON;
  2842. break;
  2843. case MAD_HW_ULTRASOUND:
  2844. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2845. break;
  2846. case MAD_SW_AUDIO:
  2847. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2848. break;
  2849. default:
  2850. pr_warn("%s: Unknown\n", __func__);
  2851. return -EINVAL;
  2852. }
  2853. return 0;
  2854. }
  2855. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2856. struct snd_ctl_elem_value *ucontrol)
  2857. {
  2858. int i;
  2859. u16 port_id;
  2860. enum afe_mad_type mad_type;
  2861. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2862. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2863. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2864. strlen(lsm_port_text[i])))
  2865. break;
  2866. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2867. pr_warn("%s: Invalid id name %s\n", __func__,
  2868. kcontrol->id.name);
  2869. return -EINVAL;
  2870. }
  2871. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2872. switch (ucontrol->value.integer.value[0]) {
  2873. case MADNONE:
  2874. mad_type = MAD_HW_NONE;
  2875. break;
  2876. case MADAUDIO:
  2877. mad_type = MAD_HW_AUDIO;
  2878. break;
  2879. case MADBEACON:
  2880. mad_type = MAD_HW_BEACON;
  2881. break;
  2882. case MADULTRASOUND:
  2883. mad_type = MAD_HW_ULTRASOUND;
  2884. break;
  2885. case MADSWAUDIO:
  2886. mad_type = MAD_SW_AUDIO;
  2887. break;
  2888. default:
  2889. pr_warn("%s: Unknown\n", __func__);
  2890. return -EINVAL;
  2891. }
  2892. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2893. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2894. strlen(lsm_port_text[7])))
  2895. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2896. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2897. strlen(lsm_port_text[8])))
  2898. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2899. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2900. strlen(lsm_port_text[10])))
  2901. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2902. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2903. strlen(lsm_port_text[14])))
  2904. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2905. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2906. strlen(lsm_port_text[15])))
  2907. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2908. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2909. strlen(lsm_port_text[16])))
  2910. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2911. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2912. mad_type);
  2913. return afe_port_set_mad_type(port_id, mad_type);
  2914. }
  2915. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2916. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  2917. adm_override_chs_text);
  2918. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2919. {
  2920. int backend_id;
  2921. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2922. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2923. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2924. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2925. } else {
  2926. pr_err("%s: unsupported backend id: %s",
  2927. __func__, kcontrol->id.name);
  2928. return -EINVAL;
  2929. }
  2930. return backend_id;
  2931. }
  2932. static int msm_routing_adm_channel_config_get(
  2933. struct snd_kcontrol *kcontrol,
  2934. struct snd_ctl_elem_value *ucontrol)
  2935. {
  2936. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2937. if (backend_id >= 0) {
  2938. mutex_lock(&routing_lock);
  2939. ucontrol->value.integer.value[0] =
  2940. msm_bedais[backend_id].adm_override_ch;
  2941. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2942. ucontrol->value.integer.value[0], backend_id);
  2943. mutex_unlock(&routing_lock);
  2944. }
  2945. return 0;
  2946. }
  2947. static int msm_routing_adm_channel_config_put(
  2948. struct snd_kcontrol *kcontrol,
  2949. struct snd_ctl_elem_value *ucontrol)
  2950. {
  2951. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2952. if (backend_id >= 0) {
  2953. mutex_lock(&routing_lock);
  2954. msm_bedais[backend_id].adm_override_ch =
  2955. ucontrol->value.integer.value[0];
  2956. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2957. __func__, backend_id,
  2958. msm_bedais[backend_id].adm_override_ch);
  2959. mutex_unlock(&routing_lock);
  2960. }
  2961. return 0;
  2962. }
  2963. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2964. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2965. msm_routing_adm_channel_config_get,
  2966. msm_routing_adm_channel_config_put),
  2967. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2968. msm_routing_adm_channel_config_get,
  2969. msm_routing_adm_channel_config_put),
  2970. };
  2971. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2972. struct snd_ctl_elem_value *ucontrol)
  2973. {
  2974. mutex_lock(&routing_lock);
  2975. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2976. mutex_unlock(&routing_lock);
  2977. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2978. ucontrol->value.integer.value[0]);
  2979. return 0;
  2980. };
  2981. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2982. struct snd_ctl_elem_value *ucontrol)
  2983. {
  2984. struct aanc_data aanc_info;
  2985. mutex_lock(&routing_lock);
  2986. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2987. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2988. ucontrol->value.integer.value[0]);
  2989. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2990. if (ucontrol->value.integer.value[0] == 0) {
  2991. aanc_info.aanc_active = false;
  2992. aanc_info.aanc_tx_port = 0;
  2993. aanc_info.aanc_rx_port = 0;
  2994. } else {
  2995. aanc_info.aanc_active = true;
  2996. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2997. aanc_info.aanc_tx_port =
  2998. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2999. }
  3000. afe_set_aanc_info(&aanc_info);
  3001. mutex_unlock(&routing_lock);
  3002. return 0;
  3003. };
  3004. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  3005. struct snd_ctl_elem_value *ucontrol)
  3006. {
  3007. int idx = 0, shift = 0;
  3008. struct soc_mixer_control *mc =
  3009. (struct soc_mixer_control *)kcontrol->private_value;
  3010. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3011. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3012. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  3013. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  3014. return -EINVAL;
  3015. }
  3016. if (test_bit(shift,
  3017. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  3018. ucontrol->value.integer.value[0] = 1;
  3019. else
  3020. ucontrol->value.integer.value[0] = 0;
  3021. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  3022. ucontrol->value.integer.value[0]);
  3023. return 0;
  3024. }
  3025. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  3026. struct snd_ctl_elem_value *ucontrol)
  3027. {
  3028. int idx = 0, shift = 0;
  3029. struct soc_mixer_control *mc =
  3030. (struct soc_mixer_control *)kcontrol->private_value;
  3031. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3032. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3033. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  3034. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  3035. return -EINVAL;
  3036. }
  3037. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  3038. __func__, mc->shift, mc->rshift,
  3039. ucontrol->value.integer.value[0], idx, shift);
  3040. if (ucontrol->value.integer.value[0]) {
  3041. afe_loopback(1, msm_bedais[mc->shift].port_id,
  3042. msm_bedais[mc->rshift].port_id);
  3043. set_bit(shift,
  3044. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3045. } else {
  3046. afe_loopback(0, msm_bedais[mc->shift].port_id,
  3047. msm_bedais[mc->rshift].port_id);
  3048. clear_bit(shift,
  3049. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3050. }
  3051. return 1;
  3052. }
  3053. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  3054. struct snd_ctl_elem_value *ucontrol)
  3055. {
  3056. u16 fe_id = 0;
  3057. fe_id = ((struct soc_mixer_control *)
  3058. kcontrol->private_value)->shift;
  3059. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3060. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3061. return -EINVAL;
  3062. }
  3063. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  3064. return 0;
  3065. }
  3066. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  3067. struct snd_ctl_elem_value *ucontrol)
  3068. {
  3069. u16 fe_id = 0;
  3070. fe_id = ((struct soc_mixer_control *)
  3071. kcontrol->private_value)->shift;
  3072. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3073. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3074. return -EINVAL;
  3075. }
  3076. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3077. return 1;
  3078. }
  3079. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3080. struct snd_ctl_elem_value *ucontrol)
  3081. {
  3082. u16 fe_id = 0;
  3083. fe_id = ((struct soc_multi_mixer_control *)
  3084. kcontrol->private_value)->shift;
  3085. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3086. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3087. return -EINVAL;
  3088. }
  3089. ucontrol->value.integer.value[0] =
  3090. channel_mixer[fe_id].output_channel;
  3091. return 0;
  3092. }
  3093. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3094. struct snd_ctl_elem_value *ucontrol)
  3095. {
  3096. u16 fe_id = 0;
  3097. fe_id = ((struct soc_multi_mixer_control *)
  3098. kcontrol->private_value)->shift;
  3099. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3100. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3101. return -EINVAL;
  3102. }
  3103. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3104. fe_id,
  3105. (unsigned int)(ucontrol->value.integer.value[0]));
  3106. channel_mixer[fe_id].output_channel =
  3107. (unsigned int)(ucontrol->value.integer.value[0]);
  3108. return 1;
  3109. }
  3110. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3111. /* If new backend is added, need update this array */
  3112. static const char *const be_name[] = {
  3113. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3114. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3115. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3116. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3117. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3118. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3119. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3120. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3121. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3122. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3123. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3124. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3125. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3126. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3127. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3128. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3129. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3130. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3131. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3132. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3133. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3134. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3135. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3136. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3137. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3138. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3139. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3140. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3141. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3142. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3143. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3144. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3145. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3146. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3147. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3148. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3149. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3150. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3151. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3152. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3153. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3154. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3155. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3156. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3157. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3158. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3159. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3160. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3161. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3162. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3163. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3164. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3165. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3166. "SEC_META_MI2S_RX", "PROXY_RX", "PROXY_TX", "HDMI_RX_MS"
  3167. };
  3168. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3169. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3170. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3171. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3172. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3173. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3174. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3175. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3176. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3177. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3178. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3179. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3180. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3181. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3182. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3183. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3184. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3185. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3186. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3187. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3188. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3189. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3190. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3191. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3192. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3193. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3194. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3195. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3196. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3197. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3198. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3199. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3200. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3201. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3202. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3203. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3204. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3205. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3206. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3207. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3208. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3209. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3210. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3211. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3212. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3213. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3214. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3215. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3216. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3217. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3218. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3219. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3220. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3221. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3222. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3223. unsigned int channels,
  3224. unsigned int items, const char *const names[])
  3225. {
  3226. if (uinfo->value.enumerated.item >= items)
  3227. uinfo->value.enumerated.item = items - 1;
  3228. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3229. sizeof(uinfo->value.enumerated.name),
  3230. "ALSA: too long item name '%s'\n",
  3231. names[uinfo->value.enumerated.item]);
  3232. strlcpy(uinfo->value.enumerated.name,
  3233. names[uinfo->value.enumerated.item],
  3234. sizeof(uinfo->value.enumerated.name));
  3235. return 0;
  3236. }
  3237. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3238. struct snd_ctl_elem_info *uinfo)
  3239. {
  3240. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3241. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3242. uinfo->count = 1;
  3243. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3244. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3245. return 0;
  3246. }
  3247. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3248. struct snd_ctl_elem_value *ucontrol)
  3249. {
  3250. u16 fe_id = 0;
  3251. fe_id = ((struct soc_enum *)
  3252. kcontrol->private_value)->shift_l;
  3253. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3254. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3255. return -EINVAL;
  3256. }
  3257. pr_debug("%s: FE %d %s\n", __func__,
  3258. fe_id,
  3259. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3260. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3261. return 0;
  3262. }
  3263. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3264. struct snd_ctl_elem_value *ucontrol)
  3265. {
  3266. u16 fe_id = 0;
  3267. fe_id = ((struct soc_enum *)
  3268. kcontrol->private_value)->shift_l;
  3269. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3270. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3271. return -EINVAL;
  3272. }
  3273. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3274. pr_debug("%s: %s FE %d\n", __func__,
  3275. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3276. fe_id);
  3277. return 0;
  3278. }
  3279. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3280. struct snd_ctl_elem_info *uinfo)
  3281. {
  3282. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3283. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3284. uinfo->count = 1;
  3285. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3286. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3287. return 0;
  3288. }
  3289. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3290. struct snd_ctl_elem_value *ucontrol)
  3291. {
  3292. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3293. u16 fe_id = 0, in_ch = 0;
  3294. fe_id = e->shift_l;
  3295. in_ch = e->shift_r;
  3296. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3297. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3298. return -EINVAL;
  3299. }
  3300. if (in_ch >= ADM_MAX_CHANNELS) {
  3301. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3302. return -EINVAL;
  3303. }
  3304. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3305. return 1;
  3306. }
  3307. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3308. struct snd_ctl_elem_value *ucontrol)
  3309. {
  3310. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3311. u16 fe_id = 0, in_ch = 0;
  3312. fe_id = e->shift_l;
  3313. in_ch = e->shift_r;
  3314. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3315. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3316. return -EINVAL;
  3317. }
  3318. if (in_ch >= ADM_MAX_CHANNELS) {
  3319. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3320. return -EINVAL;
  3321. }
  3322. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3323. return 1;
  3324. }
  3325. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3326. struct snd_ctl_elem_info *uinfo)
  3327. {
  3328. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3329. uinfo->count = ADM_MAX_CHANNELS;
  3330. uinfo->value.integer.min = 0;
  3331. uinfo->value.integer.max = WEIGHT_0_DB;
  3332. return 0;
  3333. }
  3334. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3335. struct snd_ctl_elem_value *ucontrol)
  3336. {
  3337. u16 fe_id = 0, out_ch = 0;
  3338. int i, weight;
  3339. fe_id = ((struct soc_multi_mixer_control *)
  3340. kcontrol->private_value)->shift;
  3341. out_ch = ((struct soc_multi_mixer_control *)
  3342. kcontrol->private_value)->rshift;
  3343. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3344. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3345. return -EINVAL;
  3346. }
  3347. if (out_ch >= ADM_MAX_CHANNELS) {
  3348. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3349. return -EINVAL;
  3350. }
  3351. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3352. __func__, fe_id,
  3353. ucontrol->value.integer.value[0],
  3354. ucontrol->value.integer.value[1],
  3355. ucontrol->value.integer.value[2],
  3356. ucontrol->value.integer.value[3],
  3357. ucontrol->value.integer.value[4],
  3358. ucontrol->value.integer.value[5],
  3359. ucontrol->value.integer.value[6],
  3360. ucontrol->value.integer.value[7]);
  3361. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3362. weight = ucontrol->value.integer.value[i];
  3363. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3364. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3365. __func__, fe_id, out_ch, i,
  3366. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3367. }
  3368. return 0;
  3369. }
  3370. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3371. struct snd_ctl_elem_value *ucontrol)
  3372. {
  3373. u16 fe_id = 0, out_ch = 0;
  3374. int i;
  3375. fe_id = ((struct soc_multi_mixer_control *)
  3376. kcontrol->private_value)->shift;
  3377. out_ch = ((struct soc_multi_mixer_control *)
  3378. kcontrol->private_value)->rshift;
  3379. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3380. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3381. return -EINVAL;
  3382. }
  3383. if (out_ch >= ADM_MAX_CHANNELS) {
  3384. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3385. return -EINVAL;
  3386. }
  3387. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3388. ucontrol->value.integer.value[i] =
  3389. channel_mixer[fe_id].channel_weight[out_ch][i];
  3390. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3391. __func__, fe_id,
  3392. ucontrol->value.integer.value[0],
  3393. ucontrol->value.integer.value[1],
  3394. ucontrol->value.integer.value[2],
  3395. ucontrol->value.integer.value[3],
  3396. ucontrol->value.integer.value[4],
  3397. ucontrol->value.integer.value[5],
  3398. ucontrol->value.integer.value[6],
  3399. ucontrol->value.integer.value[7]);
  3400. return 0;
  3401. }
  3402. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3403. struct snd_ctl_elem_info *uinfo)
  3404. {
  3405. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3406. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3407. /* Valid channel map value ranges from 1 to 64 */
  3408. uinfo->value.integer.min = 0;
  3409. uinfo->value.integer.max = 64;
  3410. return 0;
  3411. }
  3412. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3413. struct snd_ctl_elem_value *ucontrol)
  3414. {
  3415. u16 fe_id = 0;
  3416. int i, ch_map;
  3417. fe_id = ((struct soc_multi_mixer_control *)
  3418. kcontrol->private_value)->shift;
  3419. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3420. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3421. return -EINVAL;
  3422. }
  3423. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3424. ch_map = ucontrol->value.integer.value[i];
  3425. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3426. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3427. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3428. }
  3429. /* Make override_out_ch_map false if ch map is reset */
  3430. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3431. channel_mixer[fe_id].override_out_ch_map = false;
  3432. else
  3433. channel_mixer[fe_id].override_out_ch_map = true;
  3434. return 0;
  3435. }
  3436. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3437. struct snd_ctl_elem_value *ucontrol)
  3438. {
  3439. u16 fe_id = 0;
  3440. int i;
  3441. fe_id = ((struct soc_multi_mixer_control *)
  3442. kcontrol->private_value)->shift;
  3443. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3444. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3445. return -EINVAL;
  3446. }
  3447. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3448. ucontrol->value.integer.value[i] =
  3449. channel_mixer[fe_id].out_ch_map[i];
  3450. return 0;
  3451. }
  3452. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3453. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3454. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3455. msm_pcm_get_channel_rule_index,
  3456. msm_pcm_put_channel_rule_index),
  3457. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3458. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3459. msm_pcm_get_channel_rule_index,
  3460. msm_pcm_put_channel_rule_index),
  3461. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3462. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3463. msm_pcm_get_channel_rule_index,
  3464. msm_pcm_put_channel_rule_index),
  3465. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3466. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3467. msm_pcm_get_channel_rule_index,
  3468. msm_pcm_put_channel_rule_index),
  3469. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3470. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3471. msm_pcm_get_channel_rule_index,
  3472. msm_pcm_put_channel_rule_index),
  3473. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3474. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3475. msm_pcm_get_channel_rule_index,
  3476. msm_pcm_put_channel_rule_index),
  3477. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3478. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3479. msm_pcm_get_channel_rule_index,
  3480. msm_pcm_put_channel_rule_index),
  3481. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3482. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3483. msm_pcm_get_channel_rule_index,
  3484. msm_pcm_put_channel_rule_index),
  3485. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3486. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3487. msm_pcm_get_channel_rule_index,
  3488. msm_pcm_put_channel_rule_index),
  3489. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3490. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3491. msm_pcm_get_channel_rule_index,
  3492. msm_pcm_put_channel_rule_index),
  3493. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3494. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3495. msm_pcm_get_channel_rule_index,
  3496. msm_pcm_put_channel_rule_index),
  3497. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3498. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3499. msm_pcm_get_out_chs,
  3500. msm_pcm_put_out_chs),
  3501. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3502. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3503. msm_pcm_get_out_chs,
  3504. msm_pcm_put_out_chs),
  3505. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3506. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3507. msm_pcm_get_out_chs,
  3508. msm_pcm_put_out_chs),
  3509. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3510. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3511. msm_pcm_get_out_chs,
  3512. msm_pcm_put_out_chs),
  3513. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3514. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3515. msm_pcm_get_out_chs,
  3516. msm_pcm_put_out_chs),
  3517. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3518. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3519. msm_pcm_get_out_chs,
  3520. msm_pcm_put_out_chs),
  3521. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3522. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3523. msm_pcm_get_out_chs,
  3524. msm_pcm_put_out_chs),
  3525. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3526. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3527. msm_pcm_get_out_chs,
  3528. msm_pcm_put_out_chs),
  3529. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3530. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3531. msm_pcm_get_out_chs,
  3532. msm_pcm_put_out_chs),
  3533. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3534. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3535. msm_pcm_get_out_chs,
  3536. msm_pcm_put_out_chs),
  3537. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3538. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3539. msm_pcm_get_out_chs,
  3540. msm_pcm_put_out_chs),
  3541. {
  3542. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3543. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3544. .name = "MultiMedia1 Channel Mixer",
  3545. .info = msm_pcm_channel_mixer_info,
  3546. .get = msm_pcm_channel_mixer_get,
  3547. .put = msm_pcm_channel_mixer_put,
  3548. .private_value = (unsigned long)&(mm1_channel_mux)
  3549. },
  3550. {
  3551. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3552. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3553. .name = "MultiMedia2 Channel Mixer",
  3554. .info = msm_pcm_channel_mixer_info,
  3555. .get = msm_pcm_channel_mixer_get,
  3556. .put = msm_pcm_channel_mixer_put,
  3557. .private_value = (unsigned long)&(mm2_channel_mux)
  3558. },
  3559. {
  3560. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3561. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3562. .name = "MultiMedia3 Channel Mixer",
  3563. .info = msm_pcm_channel_mixer_info,
  3564. .get = msm_pcm_channel_mixer_get,
  3565. .put = msm_pcm_channel_mixer_put,
  3566. .private_value = (unsigned long)&(mm3_channel_mux)
  3567. },
  3568. {
  3569. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3570. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3571. .name = "MultiMedia4 Channel Mixer",
  3572. .info = msm_pcm_channel_mixer_info,
  3573. .get = msm_pcm_channel_mixer_get,
  3574. .put = msm_pcm_channel_mixer_put,
  3575. .private_value = (unsigned long)&(mm4_channel_mux)
  3576. },
  3577. {
  3578. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3579. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3580. .name = "MultiMedia18 Channel Mixer",
  3581. .info = msm_pcm_channel_mixer_info,
  3582. .get = msm_pcm_channel_mixer_get,
  3583. .put = msm_pcm_channel_mixer_put,
  3584. .private_value = (unsigned long)&(mm18_channel_mux)
  3585. },
  3586. {
  3587. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3588. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3589. .name = "MultiMedia19 Channel Mixer",
  3590. .info = msm_pcm_channel_mixer_info,
  3591. .get = msm_pcm_channel_mixer_get,
  3592. .put = msm_pcm_channel_mixer_put,
  3593. .private_value = (unsigned long)&(mm19_channel_mux)
  3594. },
  3595. {
  3596. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3597. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3598. .name = "MultiMedia28 Channel Mixer",
  3599. .info = msm_pcm_channel_mixer_info,
  3600. .get = msm_pcm_channel_mixer_get,
  3601. .put = msm_pcm_channel_mixer_put,
  3602. .private_value = (unsigned long)&(mm28_channel_mux)
  3603. },
  3604. {
  3605. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3606. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3607. .name = "MultiMedia29 Channel Mixer",
  3608. .info = msm_pcm_channel_mixer_info,
  3609. .get = msm_pcm_channel_mixer_get,
  3610. .put = msm_pcm_channel_mixer_put,
  3611. .private_value = (unsigned long)&(mm29_channel_mux)
  3612. },
  3613. {
  3614. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3615. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3616. .name = "MultiMedia30 Channel Mixer",
  3617. .info = msm_pcm_channel_mixer_info,
  3618. .get = msm_pcm_channel_mixer_get,
  3619. .put = msm_pcm_channel_mixer_put,
  3620. .private_value = (unsigned long)&(mm30_channel_mux)
  3621. },
  3622. {
  3623. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3624. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3625. .name = "MultiMedia1 Output Channel1",
  3626. .info = msm_pcm_channel_weight_info,
  3627. .get = msm_pcm_channel_weight_get,
  3628. .put = msm_pcm_channel_weight_put,
  3629. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3630. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3631. },
  3632. {
  3633. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3634. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3635. .name = "MultiMedia1 Output Channel2",
  3636. .info = msm_pcm_channel_weight_info,
  3637. .get = msm_pcm_channel_weight_get,
  3638. .put = msm_pcm_channel_weight_put,
  3639. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3640. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3641. },
  3642. {
  3643. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3644. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3645. .name = "MultiMedia1 Output Channel3",
  3646. .info = msm_pcm_channel_weight_info,
  3647. .get = msm_pcm_channel_weight_get,
  3648. .put = msm_pcm_channel_weight_put,
  3649. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3650. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3651. },
  3652. {
  3653. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3654. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3655. .name = "MultiMedia1 Output Channel4",
  3656. .info = msm_pcm_channel_weight_info,
  3657. .get = msm_pcm_channel_weight_get,
  3658. .put = msm_pcm_channel_weight_put,
  3659. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3660. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3661. },
  3662. {
  3663. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3664. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3665. .name = "MultiMedia1 Output Channel5",
  3666. .info = msm_pcm_channel_weight_info,
  3667. .get = msm_pcm_channel_weight_get,
  3668. .put = msm_pcm_channel_weight_put,
  3669. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3670. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3671. },
  3672. {
  3673. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3674. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3675. .name = "MultiMedia1 Output Channel6",
  3676. .info = msm_pcm_channel_weight_info,
  3677. .get = msm_pcm_channel_weight_get,
  3678. .put = msm_pcm_channel_weight_put,
  3679. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3680. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3681. },
  3682. {
  3683. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3684. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3685. .name = "MultiMedia1 Output Channel7",
  3686. .info = msm_pcm_channel_weight_info,
  3687. .get = msm_pcm_channel_weight_get,
  3688. .put = msm_pcm_channel_weight_put,
  3689. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3690. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3691. },
  3692. {
  3693. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3694. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3695. .name = "MultiMedia1 Output Channel8",
  3696. .info = msm_pcm_channel_weight_info,
  3697. .get = msm_pcm_channel_weight_get,
  3698. .put = msm_pcm_channel_weight_put,
  3699. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3700. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3701. },
  3702. {
  3703. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3704. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3705. .name = "MultiMedia1 Output Channel9",
  3706. .info = msm_pcm_channel_weight_info,
  3707. .get = msm_pcm_channel_weight_get,
  3708. .put = msm_pcm_channel_weight_put,
  3709. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3710. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3711. },
  3712. {
  3713. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3714. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3715. .name = "MultiMedia1 Output Channel10",
  3716. .info = msm_pcm_channel_weight_info,
  3717. .get = msm_pcm_channel_weight_get,
  3718. .put = msm_pcm_channel_weight_put,
  3719. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3720. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3721. },
  3722. {
  3723. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3724. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3725. .name = "MultiMedia1 Output Channel11",
  3726. .info = msm_pcm_channel_weight_info,
  3727. .get = msm_pcm_channel_weight_get,
  3728. .put = msm_pcm_channel_weight_put,
  3729. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3730. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3731. },
  3732. {
  3733. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3734. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3735. .name = "MultiMedia1 Output Channel12",
  3736. .info = msm_pcm_channel_weight_info,
  3737. .get = msm_pcm_channel_weight_get,
  3738. .put = msm_pcm_channel_weight_put,
  3739. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3740. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3741. },
  3742. {
  3743. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3744. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3745. .name = "MultiMedia1 Output Channel13",
  3746. .info = msm_pcm_channel_weight_info,
  3747. .get = msm_pcm_channel_weight_get,
  3748. .put = msm_pcm_channel_weight_put,
  3749. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3750. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3751. },
  3752. {
  3753. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3754. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3755. .name = "MultiMedia1 Output Channel14",
  3756. .info = msm_pcm_channel_weight_info,
  3757. .get = msm_pcm_channel_weight_get,
  3758. .put = msm_pcm_channel_weight_put,
  3759. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3760. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3761. },
  3762. {
  3763. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3764. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3765. .name = "MultiMedia2 Output Channel1",
  3766. .info = msm_pcm_channel_weight_info,
  3767. .get = msm_pcm_channel_weight_get,
  3768. .put = msm_pcm_channel_weight_put,
  3769. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3770. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3771. },
  3772. {
  3773. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3774. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3775. .name = "MultiMedia2 Output Channel2",
  3776. .info = msm_pcm_channel_weight_info,
  3777. .get = msm_pcm_channel_weight_get,
  3778. .put = msm_pcm_channel_weight_put,
  3779. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3780. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3781. },
  3782. {
  3783. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3784. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3785. .name = "MultiMedia2 Output Channel3",
  3786. .info = msm_pcm_channel_weight_info,
  3787. .get = msm_pcm_channel_weight_get,
  3788. .put = msm_pcm_channel_weight_put,
  3789. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3790. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3791. },
  3792. {
  3793. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3794. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3795. .name = "MultiMedia3 Output Channel1",
  3796. .info = msm_pcm_channel_weight_info,
  3797. .get = msm_pcm_channel_weight_get,
  3798. .put = msm_pcm_channel_weight_put,
  3799. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3800. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3801. },
  3802. {
  3803. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3804. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3805. .name = "MultiMedia3 Output Channel2",
  3806. .info = msm_pcm_channel_weight_info,
  3807. .get = msm_pcm_channel_weight_get,
  3808. .put = msm_pcm_channel_weight_put,
  3809. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3810. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3811. },
  3812. {
  3813. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3814. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3815. .name = "MultiMedia18 Output Channel1",
  3816. .info = msm_pcm_channel_weight_info,
  3817. .get = msm_pcm_channel_weight_get,
  3818. .put = msm_pcm_channel_weight_put,
  3819. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3820. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  3821. },
  3822. {
  3823. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3824. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3825. .name = "MultiMedia18 Output Channel2",
  3826. .info = msm_pcm_channel_weight_info,
  3827. .get = msm_pcm_channel_weight_get,
  3828. .put = msm_pcm_channel_weight_put,
  3829. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3830. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  3831. },
  3832. {
  3833. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3834. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3835. .name = "MultiMedia18 Output Channel3",
  3836. .info = msm_pcm_channel_weight_info,
  3837. .get = msm_pcm_channel_weight_get,
  3838. .put = msm_pcm_channel_weight_put,
  3839. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3840. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  3841. },
  3842. {
  3843. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3844. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3845. .name = "MultiMedia18 Output Channel4",
  3846. .info = msm_pcm_channel_weight_info,
  3847. .get = msm_pcm_channel_weight_get,
  3848. .put = msm_pcm_channel_weight_put,
  3849. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3850. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  3851. },
  3852. {
  3853. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3854. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3855. .name = "MultiMedia18 Output Channel5",
  3856. .info = msm_pcm_channel_weight_info,
  3857. .get = msm_pcm_channel_weight_get,
  3858. .put = msm_pcm_channel_weight_put,
  3859. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3860. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  3861. },
  3862. {
  3863. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3864. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3865. .name = "MultiMedia18 Output Channel6",
  3866. .info = msm_pcm_channel_weight_info,
  3867. .get = msm_pcm_channel_weight_get,
  3868. .put = msm_pcm_channel_weight_put,
  3869. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3870. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  3871. },
  3872. {
  3873. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3874. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3875. .name = "MultiMedia18 Output Channel7",
  3876. .info = msm_pcm_channel_weight_info,
  3877. .get = msm_pcm_channel_weight_get,
  3878. .put = msm_pcm_channel_weight_put,
  3879. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3880. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  3881. },
  3882. {
  3883. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3884. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3885. .name = "MultiMedia18 Output Channel8",
  3886. .info = msm_pcm_channel_weight_info,
  3887. .get = msm_pcm_channel_weight_get,
  3888. .put = msm_pcm_channel_weight_put,
  3889. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3890. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  3891. },
  3892. {
  3893. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3894. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3895. .name = "MultiMedia18 Output Channel9",
  3896. .info = msm_pcm_channel_weight_info,
  3897. .get = msm_pcm_channel_weight_get,
  3898. .put = msm_pcm_channel_weight_put,
  3899. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3900. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  3901. },
  3902. {
  3903. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3904. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3905. .name = "MultiMedia18 Output Channel10",
  3906. .info = msm_pcm_channel_weight_info,
  3907. .get = msm_pcm_channel_weight_get,
  3908. .put = msm_pcm_channel_weight_put,
  3909. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3910. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 9,}
  3911. },
  3912. {
  3913. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3914. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3915. .name = "MultiMedia18 Output Channel11",
  3916. .info = msm_pcm_channel_weight_info,
  3917. .get = msm_pcm_channel_weight_get,
  3918. .put = msm_pcm_channel_weight_put,
  3919. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3920. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 10,}
  3921. },
  3922. {
  3923. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3924. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3925. .name = "MultiMedia18 Output Channel12",
  3926. .info = msm_pcm_channel_weight_info,
  3927. .get = msm_pcm_channel_weight_get,
  3928. .put = msm_pcm_channel_weight_put,
  3929. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3930. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 11,}
  3931. },
  3932. {
  3933. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3934. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3935. .name = "MultiMedia18 Output Channel13",
  3936. .info = msm_pcm_channel_weight_info,
  3937. .get = msm_pcm_channel_weight_get,
  3938. .put = msm_pcm_channel_weight_put,
  3939. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3940. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 12,}
  3941. },
  3942. {
  3943. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3944. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3945. .name = "MultiMedia18 Output Channel14",
  3946. .info = msm_pcm_channel_weight_info,
  3947. .get = msm_pcm_channel_weight_get,
  3948. .put = msm_pcm_channel_weight_put,
  3949. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3950. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 13,}
  3951. },
  3952. {
  3953. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3954. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3955. .name = "MultiMedia19 Output Channel1",
  3956. .info = msm_pcm_channel_weight_info,
  3957. .get = msm_pcm_channel_weight_get,
  3958. .put = msm_pcm_channel_weight_put,
  3959. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3960. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 0,}
  3961. },
  3962. {
  3963. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3964. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3965. .name = "MultiMedia19 Output Channel2",
  3966. .info = msm_pcm_channel_weight_info,
  3967. .get = msm_pcm_channel_weight_get,
  3968. .put = msm_pcm_channel_weight_put,
  3969. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3970. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 1, }
  3971. },
  3972. {
  3973. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3974. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3975. .name = "MultiMedia19 Output Channel3",
  3976. .info = msm_pcm_channel_weight_info,
  3977. .get = msm_pcm_channel_weight_get,
  3978. .put = msm_pcm_channel_weight_put,
  3979. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3980. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 2,}
  3981. },
  3982. {
  3983. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3984. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3985. .name = "MultiMedia19 Output Channel4",
  3986. .info = msm_pcm_channel_weight_info,
  3987. .get = msm_pcm_channel_weight_get,
  3988. .put = msm_pcm_channel_weight_put,
  3989. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3990. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  3991. },
  3992. {
  3993. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3994. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3995. .name = "MultiMedia19 Output Channel5",
  3996. .info = msm_pcm_channel_weight_info,
  3997. .get = msm_pcm_channel_weight_get,
  3998. .put = msm_pcm_channel_weight_put,
  3999. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4000. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  4001. },
  4002. {
  4003. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4004. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4005. .name = "MultiMedia19 Output Channel6",
  4006. .info = msm_pcm_channel_weight_info,
  4007. .get = msm_pcm_channel_weight_get,
  4008. .put = msm_pcm_channel_weight_put,
  4009. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4010. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  4011. },
  4012. {
  4013. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4014. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4015. .name = "MultiMedia19 Output Channel7",
  4016. .info = msm_pcm_channel_weight_info,
  4017. .get = msm_pcm_channel_weight_get,
  4018. .put = msm_pcm_channel_weight_put,
  4019. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4020. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  4021. },
  4022. {
  4023. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4024. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4025. .name = "MultiMedia19 Output Channel8",
  4026. .info = msm_pcm_channel_weight_info,
  4027. .get = msm_pcm_channel_weight_get,
  4028. .put = msm_pcm_channel_weight_put,
  4029. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4030. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  4031. },
  4032. {
  4033. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4034. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4035. .name = "MultiMedia19 Output Channel9",
  4036. .info = msm_pcm_channel_weight_info,
  4037. .get = msm_pcm_channel_weight_get,
  4038. .put = msm_pcm_channel_weight_put,
  4039. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4040. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  4041. },
  4042. {
  4043. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4044. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4045. .name = "MultiMedia19 Output Channel10",
  4046. .info = msm_pcm_channel_weight_info,
  4047. .get = msm_pcm_channel_weight_get,
  4048. .put = msm_pcm_channel_weight_put,
  4049. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4050. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 9,}
  4051. },
  4052. {
  4053. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4054. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4055. .name = "MultiMedia19 Output Channel11",
  4056. .info = msm_pcm_channel_weight_info,
  4057. .get = msm_pcm_channel_weight_get,
  4058. .put = msm_pcm_channel_weight_put,
  4059. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4060. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 10,}
  4061. },
  4062. {
  4063. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4064. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4065. .name = "MultiMedia19 Output Channel12",
  4066. .info = msm_pcm_channel_weight_info,
  4067. .get = msm_pcm_channel_weight_get,
  4068. .put = msm_pcm_channel_weight_put,
  4069. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4070. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 11,}
  4071. },
  4072. {
  4073. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4074. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4075. .name = "MultiMedia19 Output Channel13",
  4076. .info = msm_pcm_channel_weight_info,
  4077. .get = msm_pcm_channel_weight_get,
  4078. .put = msm_pcm_channel_weight_put,
  4079. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4080. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 12,}
  4081. },
  4082. {
  4083. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4084. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4085. .name = "MultiMedia19 Output Channel14",
  4086. .info = msm_pcm_channel_weight_info,
  4087. .get = msm_pcm_channel_weight_get,
  4088. .put = msm_pcm_channel_weight_put,
  4089. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4090. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 13,}
  4091. },
  4092. {
  4093. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4094. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4095. .name = "MultiMedia28 Output Channel1",
  4096. .info = msm_pcm_channel_weight_info,
  4097. .get = msm_pcm_channel_weight_get,
  4098. .put = msm_pcm_channel_weight_put,
  4099. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4100. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 0,}
  4101. },
  4102. {
  4103. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4104. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4105. .name = "MultiMedia28 Output Channel2",
  4106. .info = msm_pcm_channel_weight_info,
  4107. .get = msm_pcm_channel_weight_get,
  4108. .put = msm_pcm_channel_weight_put,
  4109. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4110. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 1, }
  4111. },
  4112. {
  4113. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4114. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4115. .name = "MultiMedia28 Output Channel3",
  4116. .info = msm_pcm_channel_weight_info,
  4117. .get = msm_pcm_channel_weight_get,
  4118. .put = msm_pcm_channel_weight_put,
  4119. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4120. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 2,}
  4121. },
  4122. {
  4123. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4124. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4125. .name = "MultiMedia28 Output Channel4",
  4126. .info = msm_pcm_channel_weight_info,
  4127. .get = msm_pcm_channel_weight_get,
  4128. .put = msm_pcm_channel_weight_put,
  4129. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4130. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4131. },
  4132. {
  4133. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4134. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4135. .name = "MultiMedia28 Output Channel5",
  4136. .info = msm_pcm_channel_weight_info,
  4137. .get = msm_pcm_channel_weight_get,
  4138. .put = msm_pcm_channel_weight_put,
  4139. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4140. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4141. },
  4142. {
  4143. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4144. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4145. .name = "MultiMedia28 Output Channel6",
  4146. .info = msm_pcm_channel_weight_info,
  4147. .get = msm_pcm_channel_weight_get,
  4148. .put = msm_pcm_channel_weight_put,
  4149. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4150. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4151. },
  4152. {
  4153. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4154. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4155. .name = "MultiMedia28 Output Channel7",
  4156. .info = msm_pcm_channel_weight_info,
  4157. .get = msm_pcm_channel_weight_get,
  4158. .put = msm_pcm_channel_weight_put,
  4159. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4160. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4161. },
  4162. {
  4163. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4164. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4165. .name = "MultiMedia28 Output Channel8",
  4166. .info = msm_pcm_channel_weight_info,
  4167. .get = msm_pcm_channel_weight_get,
  4168. .put = msm_pcm_channel_weight_put,
  4169. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4170. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4171. },
  4172. {
  4173. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4174. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4175. .name = "MultiMedia28 Output Channel9",
  4176. .info = msm_pcm_channel_weight_info,
  4177. .get = msm_pcm_channel_weight_get,
  4178. .put = msm_pcm_channel_weight_put,
  4179. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4180. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4181. },
  4182. {
  4183. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4184. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4185. .name = "MultiMedia28 Output Channel10",
  4186. .info = msm_pcm_channel_weight_info,
  4187. .get = msm_pcm_channel_weight_get,
  4188. .put = msm_pcm_channel_weight_put,
  4189. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4190. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 9,}
  4191. },
  4192. {
  4193. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4194. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4195. .name = "MultiMedia28 Output Channel11",
  4196. .info = msm_pcm_channel_weight_info,
  4197. .get = msm_pcm_channel_weight_get,
  4198. .put = msm_pcm_channel_weight_put,
  4199. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4200. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 10,}
  4201. },
  4202. {
  4203. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4204. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4205. .name = "MultiMedia28 Output Channel12",
  4206. .info = msm_pcm_channel_weight_info,
  4207. .get = msm_pcm_channel_weight_get,
  4208. .put = msm_pcm_channel_weight_put,
  4209. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4210. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 11,}
  4211. },
  4212. {
  4213. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4214. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4215. .name = "MultiMedia28 Output Channel13",
  4216. .info = msm_pcm_channel_weight_info,
  4217. .get = msm_pcm_channel_weight_get,
  4218. .put = msm_pcm_channel_weight_put,
  4219. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4220. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 12,}
  4221. },
  4222. {
  4223. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4224. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4225. .name = "MultiMedia28 Output Channel14",
  4226. .info = msm_pcm_channel_weight_info,
  4227. .get = msm_pcm_channel_weight_get,
  4228. .put = msm_pcm_channel_weight_put,
  4229. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4230. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 13,}
  4231. },
  4232. {
  4233. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4234. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4235. .name = "MultiMedia29 Output Channel1",
  4236. .info = msm_pcm_channel_weight_info,
  4237. .get = msm_pcm_channel_weight_get,
  4238. .put = msm_pcm_channel_weight_put,
  4239. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4240. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 0,}
  4241. },
  4242. {
  4243. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4244. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4245. .name = "MultiMedia29 Output Channel2",
  4246. .info = msm_pcm_channel_weight_info,
  4247. .get = msm_pcm_channel_weight_get,
  4248. .put = msm_pcm_channel_weight_put,
  4249. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4250. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 1, }
  4251. },
  4252. {
  4253. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4254. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4255. .name = "MultiMedia29 Output Channel3",
  4256. .info = msm_pcm_channel_weight_info,
  4257. .get = msm_pcm_channel_weight_get,
  4258. .put = msm_pcm_channel_weight_put,
  4259. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4260. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 2,}
  4261. },
  4262. {
  4263. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4264. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4265. .name = "MultiMedia29 Output Channel4",
  4266. .info = msm_pcm_channel_weight_info,
  4267. .get = msm_pcm_channel_weight_get,
  4268. .put = msm_pcm_channel_weight_put,
  4269. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4270. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4271. },
  4272. {
  4273. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4274. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4275. .name = "MultiMedia29 Output Channel5",
  4276. .info = msm_pcm_channel_weight_info,
  4277. .get = msm_pcm_channel_weight_get,
  4278. .put = msm_pcm_channel_weight_put,
  4279. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4280. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4281. },
  4282. {
  4283. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4284. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4285. .name = "MultiMedia29 Output Channel6",
  4286. .info = msm_pcm_channel_weight_info,
  4287. .get = msm_pcm_channel_weight_get,
  4288. .put = msm_pcm_channel_weight_put,
  4289. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4290. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4291. },
  4292. {
  4293. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4294. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4295. .name = "MultiMedia29 Output Channel7",
  4296. .info = msm_pcm_channel_weight_info,
  4297. .get = msm_pcm_channel_weight_get,
  4298. .put = msm_pcm_channel_weight_put,
  4299. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4300. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4301. },
  4302. {
  4303. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4304. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4305. .name = "MultiMedia29 Output Channel8",
  4306. .info = msm_pcm_channel_weight_info,
  4307. .get = msm_pcm_channel_weight_get,
  4308. .put = msm_pcm_channel_weight_put,
  4309. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4310. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4311. },
  4312. {
  4313. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4314. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4315. .name = "MultiMedia29 Output Channel9",
  4316. .info = msm_pcm_channel_weight_info,
  4317. .get = msm_pcm_channel_weight_get,
  4318. .put = msm_pcm_channel_weight_put,
  4319. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4320. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4321. },
  4322. {
  4323. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4324. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4325. .name = "MultiMedia29 Output Channel10",
  4326. .info = msm_pcm_channel_weight_info,
  4327. .get = msm_pcm_channel_weight_get,
  4328. .put = msm_pcm_channel_weight_put,
  4329. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4330. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 9,}
  4331. },
  4332. {
  4333. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4334. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4335. .name = "MultiMedia29 Output Channel11",
  4336. .info = msm_pcm_channel_weight_info,
  4337. .get = msm_pcm_channel_weight_get,
  4338. .put = msm_pcm_channel_weight_put,
  4339. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4340. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 10,}
  4341. },
  4342. {
  4343. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4344. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4345. .name = "MultiMedia29 Output Channel12",
  4346. .info = msm_pcm_channel_weight_info,
  4347. .get = msm_pcm_channel_weight_get,
  4348. .put = msm_pcm_channel_weight_put,
  4349. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4350. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 11,}
  4351. },
  4352. {
  4353. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4354. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4355. .name = "MultiMedia29 Output Channel13",
  4356. .info = msm_pcm_channel_weight_info,
  4357. .get = msm_pcm_channel_weight_get,
  4358. .put = msm_pcm_channel_weight_put,
  4359. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4360. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 12,}
  4361. },
  4362. {
  4363. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4364. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4365. .name = "MultiMedia29 Output Channel14",
  4366. .info = msm_pcm_channel_weight_info,
  4367. .get = msm_pcm_channel_weight_get,
  4368. .put = msm_pcm_channel_weight_put,
  4369. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4370. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 13,}
  4371. },
  4372. {
  4373. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4374. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4375. .name = "MultiMedia30 Output Channel1",
  4376. .info = msm_pcm_channel_weight_info,
  4377. .get = msm_pcm_channel_weight_get,
  4378. .put = msm_pcm_channel_weight_put,
  4379. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4380. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 0,}
  4381. },
  4382. {
  4383. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4384. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4385. .name = "MultiMedia30 Output Channel2",
  4386. .info = msm_pcm_channel_weight_info,
  4387. .get = msm_pcm_channel_weight_get,
  4388. .put = msm_pcm_channel_weight_put,
  4389. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4390. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 1, }
  4391. },
  4392. {
  4393. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4394. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4395. .name = "MultiMedia30 Output Channel3",
  4396. .info = msm_pcm_channel_weight_info,
  4397. .get = msm_pcm_channel_weight_get,
  4398. .put = msm_pcm_channel_weight_put,
  4399. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4400. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 2,}
  4401. },
  4402. {
  4403. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4404. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4405. .name = "MultiMedia30 Output Channel4",
  4406. .info = msm_pcm_channel_weight_info,
  4407. .get = msm_pcm_channel_weight_get,
  4408. .put = msm_pcm_channel_weight_put,
  4409. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4410. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 3,}
  4411. },
  4412. {
  4413. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4414. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4415. .name = "MultiMedia30 Output Channel5",
  4416. .info = msm_pcm_channel_weight_info,
  4417. .get = msm_pcm_channel_weight_get,
  4418. .put = msm_pcm_channel_weight_put,
  4419. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4420. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 4,}
  4421. },
  4422. {
  4423. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4424. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4425. .name = "MultiMedia30 Output Channel6",
  4426. .info = msm_pcm_channel_weight_info,
  4427. .get = msm_pcm_channel_weight_get,
  4428. .put = msm_pcm_channel_weight_put,
  4429. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4430. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 5,}
  4431. },
  4432. {
  4433. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4434. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4435. .name = "MultiMedia30 Output Channel7",
  4436. .info = msm_pcm_channel_weight_info,
  4437. .get = msm_pcm_channel_weight_get,
  4438. .put = msm_pcm_channel_weight_put,
  4439. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4440. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 6,}
  4441. },
  4442. {
  4443. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4444. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4445. .name = "MultiMedia30 Output Channel8",
  4446. .info = msm_pcm_channel_weight_info,
  4447. .get = msm_pcm_channel_weight_get,
  4448. .put = msm_pcm_channel_weight_put,
  4449. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4450. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 7,}
  4451. },
  4452. {
  4453. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4454. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4455. .name = "MultiMedia30 Output Channel9",
  4456. .info = msm_pcm_channel_weight_info,
  4457. .get = msm_pcm_channel_weight_get,
  4458. .put = msm_pcm_channel_weight_put,
  4459. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4460. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 8,}
  4461. },
  4462. {
  4463. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4464. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4465. .name = "MultiMedia30 Output Channel10",
  4466. .info = msm_pcm_channel_weight_info,
  4467. .get = msm_pcm_channel_weight_get,
  4468. .put = msm_pcm_channel_weight_put,
  4469. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4470. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 9,}
  4471. },
  4472. {
  4473. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4474. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4475. .name = "MultiMedia30 Output Channel11",
  4476. .info = msm_pcm_channel_weight_info,
  4477. .get = msm_pcm_channel_weight_get,
  4478. .put = msm_pcm_channel_weight_put,
  4479. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4480. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 10,}
  4481. },
  4482. {
  4483. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4484. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4485. .name = "MultiMedia30 Output Channel12",
  4486. .info = msm_pcm_channel_weight_info,
  4487. .get = msm_pcm_channel_weight_get,
  4488. .put = msm_pcm_channel_weight_put,
  4489. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4490. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4491. },
  4492. {
  4493. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4494. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4495. .name = "MultiMedia30 Output Channel13",
  4496. .info = msm_pcm_channel_weight_info,
  4497. .get = msm_pcm_channel_weight_get,
  4498. .put = msm_pcm_channel_weight_put,
  4499. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4500. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4501. },
  4502. {
  4503. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4504. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4505. .name = "MultiMedia30 Output Channel14",
  4506. .info = msm_pcm_channel_weight_info,
  4507. .get = msm_pcm_channel_weight_get,
  4508. .put = msm_pcm_channel_weight_put,
  4509. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4510. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4511. },
  4512. {
  4513. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4514. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4515. .name = "MultiMedia1 Channel1",
  4516. .info = msm_pcm_channel_input_be_info,
  4517. .get = msm_pcm_channel_input_be_get,
  4518. .put = msm_pcm_channel_input_be_put,
  4519. .private_value = (unsigned long)&(mm1_ch1_enum)
  4520. },
  4521. {
  4522. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4523. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4524. .name = "MultiMedia1 Channel2",
  4525. .info = msm_pcm_channel_input_be_info,
  4526. .get = msm_pcm_channel_input_be_get,
  4527. .put = msm_pcm_channel_input_be_put,
  4528. .private_value = (unsigned long)&(mm1_ch2_enum)
  4529. },
  4530. {
  4531. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4532. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4533. .name = "MultiMedia1 Channel3",
  4534. .info = msm_pcm_channel_input_be_info,
  4535. .get = msm_pcm_channel_input_be_get,
  4536. .put = msm_pcm_channel_input_be_put,
  4537. .private_value = (unsigned long)&(mm1_ch3_enum)
  4538. },
  4539. {
  4540. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4541. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4542. .name = "MultiMedia1 Channel4",
  4543. .info = msm_pcm_channel_input_be_info,
  4544. .get = msm_pcm_channel_input_be_get,
  4545. .put = msm_pcm_channel_input_be_put,
  4546. .private_value = (unsigned long)&(mm1_ch4_enum)
  4547. },
  4548. {
  4549. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4550. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4551. .name = "MultiMedia1 Channel5",
  4552. .info = msm_pcm_channel_input_be_info,
  4553. .get = msm_pcm_channel_input_be_get,
  4554. .put = msm_pcm_channel_input_be_put,
  4555. .private_value = (unsigned long)&(mm1_ch5_enum)
  4556. },
  4557. {
  4558. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4559. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4560. .name = "MultiMedia1 Channel6",
  4561. .info = msm_pcm_channel_input_be_info,
  4562. .get = msm_pcm_channel_input_be_get,
  4563. .put = msm_pcm_channel_input_be_put,
  4564. .private_value = (unsigned long)&(mm1_ch6_enum)
  4565. },
  4566. {
  4567. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4568. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4569. .name = "MultiMedia1 Channel7",
  4570. .info = msm_pcm_channel_input_be_info,
  4571. .get = msm_pcm_channel_input_be_get,
  4572. .put = msm_pcm_channel_input_be_put,
  4573. .private_value = (unsigned long)&(mm1_ch7_enum)
  4574. },
  4575. {
  4576. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4577. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4578. .name = "MultiMedia1 Channel8",
  4579. .info = msm_pcm_channel_input_be_info,
  4580. .get = msm_pcm_channel_input_be_get,
  4581. .put = msm_pcm_channel_input_be_put,
  4582. .private_value = (unsigned long)&(mm1_ch8_enum)
  4583. },
  4584. {
  4585. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4586. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4587. .name = "MultiMedia18 Channel1",
  4588. .info = msm_pcm_channel_input_be_info,
  4589. .get = msm_pcm_channel_input_be_get,
  4590. .put = msm_pcm_channel_input_be_put,
  4591. .private_value = (unsigned long)&(mm18_ch1_enum)
  4592. },
  4593. {
  4594. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4595. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4596. .name = "MultiMedia18 Channel2",
  4597. .info = msm_pcm_channel_input_be_info,
  4598. .get = msm_pcm_channel_input_be_get,
  4599. .put = msm_pcm_channel_input_be_put,
  4600. .private_value = (unsigned long)&(mm18_ch2_enum)
  4601. },
  4602. {
  4603. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4604. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4605. .name = "MultiMedia19 Channel1",
  4606. .info = msm_pcm_channel_input_be_info,
  4607. .get = msm_pcm_channel_input_be_get,
  4608. .put = msm_pcm_channel_input_be_put,
  4609. .private_value = (unsigned long)&(mm19_ch1_enum)
  4610. },
  4611. {
  4612. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4613. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4614. .name = "MultiMedia19 Channel2",
  4615. .info = msm_pcm_channel_input_be_info,
  4616. .get = msm_pcm_channel_input_be_get,
  4617. .put = msm_pcm_channel_input_be_put,
  4618. .private_value = (unsigned long)&(mm19_ch2_enum)
  4619. },
  4620. {
  4621. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4622. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4623. .name = "MultiMedia28 Channel1",
  4624. .info = msm_pcm_channel_input_be_info,
  4625. .get = msm_pcm_channel_input_be_get,
  4626. .put = msm_pcm_channel_input_be_put,
  4627. .private_value = (unsigned long)&(mm28_ch1_enum)
  4628. },
  4629. {
  4630. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4631. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4632. .name = "MultiMedia28 Channel2",
  4633. .info = msm_pcm_channel_input_be_info,
  4634. .get = msm_pcm_channel_input_be_get,
  4635. .put = msm_pcm_channel_input_be_put,
  4636. .private_value = (unsigned long)&(mm28_ch2_enum)
  4637. },
  4638. {
  4639. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4640. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4641. .name = "MultiMedia29 Channel1",
  4642. .info = msm_pcm_channel_input_be_info,
  4643. .get = msm_pcm_channel_input_be_get,
  4644. .put = msm_pcm_channel_input_be_put,
  4645. .private_value = (unsigned long)&(mm29_ch1_enum)
  4646. },
  4647. {
  4648. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4649. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4650. .name = "MultiMedia29 Channel2",
  4651. .info = msm_pcm_channel_input_be_info,
  4652. .get = msm_pcm_channel_input_be_get,
  4653. .put = msm_pcm_channel_input_be_put,
  4654. .private_value = (unsigned long)&(mm29_ch2_enum)
  4655. },
  4656. {
  4657. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4658. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4659. .name = "MultiMedia30 Channel1",
  4660. .info = msm_pcm_channel_input_be_info,
  4661. .get = msm_pcm_channel_input_be_get,
  4662. .put = msm_pcm_channel_input_be_put,
  4663. .private_value = (unsigned long)&(mm30_ch1_enum)
  4664. },
  4665. {
  4666. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4667. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4668. .name = "MultiMedia30 Channel2",
  4669. .info = msm_pcm_channel_input_be_info,
  4670. .get = msm_pcm_channel_input_be_get,
  4671. .put = msm_pcm_channel_input_be_put,
  4672. .private_value = (unsigned long)&(mm30_ch2_enum)
  4673. },
  4674. {
  4675. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4676. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4677. .name = "MultiMedia1 Output Channel Map",
  4678. .info = msm_pcm_channel_output_map_info,
  4679. .get = msm_pcm_channel_output_map_get,
  4680. .put = msm_pcm_channel_output_map_put,
  4681. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4682. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4683. },
  4684. {
  4685. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4686. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4687. .name = "MultiMedia2 Output Channel Map",
  4688. .info = msm_pcm_channel_output_map_info,
  4689. .get = msm_pcm_channel_output_map_get,
  4690. .put = msm_pcm_channel_output_map_put,
  4691. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4692. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4693. },
  4694. {
  4695. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4696. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4697. .name = "MultiMedia3 Output Channel Map",
  4698. .info = msm_pcm_channel_output_map_info,
  4699. .get = msm_pcm_channel_output_map_get,
  4700. .put = msm_pcm_channel_output_map_put,
  4701. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4702. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4703. },
  4704. {
  4705. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4706. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4707. .name = "MultiMedia4 Output Channel Map",
  4708. .info = msm_pcm_channel_output_map_info,
  4709. .get = msm_pcm_channel_output_map_get,
  4710. .put = msm_pcm_channel_output_map_put,
  4711. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4712. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4713. },
  4714. {
  4715. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4716. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4717. .name = "MultiMedia5 Output Channel Map",
  4718. .info = msm_pcm_channel_output_map_info,
  4719. .get = msm_pcm_channel_output_map_get,
  4720. .put = msm_pcm_channel_output_map_put,
  4721. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4722. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4723. },
  4724. {
  4725. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4726. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4727. .name = "MultiMedia6 Output Channel Map",
  4728. .info = msm_pcm_channel_output_map_info,
  4729. .get = msm_pcm_channel_output_map_get,
  4730. .put = msm_pcm_channel_output_map_put,
  4731. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4732. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4733. },
  4734. {
  4735. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4736. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4737. .name = "MultiMedia18 Output Channel Map",
  4738. .info = msm_pcm_channel_output_map_info,
  4739. .get = msm_pcm_channel_output_map_get,
  4740. .put = msm_pcm_channel_output_map_put,
  4741. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4742. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4743. },
  4744. {
  4745. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4746. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4747. .name = "MultiMedia19 Output Channel Map",
  4748. .info = msm_pcm_channel_output_map_info,
  4749. .get = msm_pcm_channel_output_map_get,
  4750. .put = msm_pcm_channel_output_map_put,
  4751. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4752. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4753. },
  4754. {
  4755. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4756. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4757. .name = "MultiMedia28 Output Channel Map",
  4758. .info = msm_pcm_channel_output_map_info,
  4759. .get = msm_pcm_channel_output_map_get,
  4760. .put = msm_pcm_channel_output_map_put,
  4761. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4762. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4763. },
  4764. {
  4765. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4766. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4767. .name = "MultiMedia29 Output Channel Map",
  4768. .info = msm_pcm_channel_output_map_info,
  4769. .get = msm_pcm_channel_output_map_get,
  4770. .put = msm_pcm_channel_output_map_put,
  4771. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4772. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4773. },
  4774. {
  4775. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4776. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4777. .name = "MultiMedia30 Output Channel Map",
  4778. .info = msm_pcm_channel_output_map_info,
  4779. .get = msm_pcm_channel_output_map_get,
  4780. .put = msm_pcm_channel_output_map_put,
  4781. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4782. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4783. },
  4784. };
  4785. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4786. struct snd_ctl_elem_value *ucontrol)
  4787. {
  4788. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4789. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4790. ucontrol->value.integer.value[0]);
  4791. return 0;
  4792. }
  4793. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4794. struct snd_ctl_elem_value *ucontrol)
  4795. {
  4796. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4797. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4798. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4799. return 0;
  4800. }
  4801. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4802. struct snd_ctl_elem_value *ucontrol)
  4803. {
  4804. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4805. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4806. ucontrol->value.integer.value[0]);
  4807. return 0;
  4808. }
  4809. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4810. struct snd_ctl_elem_value *ucontrol)
  4811. {
  4812. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4813. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4814. __func__, msm_ec_ref_ch_downmixed);
  4815. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4816. return 0;
  4817. }
  4818. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4819. struct snd_ctl_elem_value *ucontrol)
  4820. {
  4821. int i = 0, ret = 0;
  4822. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4823. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4824. kcontrol->private_value)->shift;
  4825. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4826. weights[i] = ucontrol->value.integer.value[i];
  4827. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  4828. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  4829. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  4830. return ret;
  4831. }
  4832. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  4833. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  4834. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  4835. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  4836. struct snd_ctl_elem_value *ucontrol)
  4837. {
  4838. switch (msm_ec_ref_bit_format) {
  4839. case SNDRV_PCM_FORMAT_S24_LE:
  4840. ucontrol->value.integer.value[0] = 2;
  4841. break;
  4842. case SNDRV_PCM_FORMAT_S16_LE:
  4843. ucontrol->value.integer.value[0] = 1;
  4844. break;
  4845. default:
  4846. ucontrol->value.integer.value[0] = 0;
  4847. break;
  4848. }
  4849. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  4850. __func__, ucontrol->value.integer.value[0]);
  4851. return 0;
  4852. }
  4853. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  4854. struct snd_ctl_elem_value *ucontrol)
  4855. {
  4856. u16 bit_width = 0;
  4857. switch (ucontrol->value.integer.value[0]) {
  4858. case 2:
  4859. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  4860. break;
  4861. case 1:
  4862. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  4863. break;
  4864. default:
  4865. msm_ec_ref_bit_format = 0;
  4866. break;
  4867. }
  4868. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  4869. bit_width = 16;
  4870. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  4871. bit_width = 24;
  4872. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  4873. __func__, msm_ec_ref_bit_format);
  4874. adm_ec_ref_rx_bit_width(bit_width);
  4875. return 0;
  4876. }
  4877. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  4878. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  4879. struct snd_ctl_elem_value *ucontrol)
  4880. {
  4881. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  4882. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  4883. __func__, ucontrol->value.integer.value[0]);
  4884. return 0;
  4885. }
  4886. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  4887. struct snd_ctl_elem_value *ucontrol)
  4888. {
  4889. switch (ucontrol->value.integer.value[0]) {
  4890. case 0:
  4891. msm_ec_ref_sampling_rate = 0;
  4892. break;
  4893. case 1:
  4894. msm_ec_ref_sampling_rate = 8000;
  4895. break;
  4896. case 2:
  4897. msm_ec_ref_sampling_rate = 16000;
  4898. break;
  4899. case 3:
  4900. msm_ec_ref_sampling_rate = 32000;
  4901. break;
  4902. case 4:
  4903. msm_ec_ref_sampling_rate = 44100;
  4904. break;
  4905. case 5:
  4906. msm_ec_ref_sampling_rate = 48000;
  4907. break;
  4908. case 6:
  4909. msm_ec_ref_sampling_rate = 96000;
  4910. break;
  4911. case 7:
  4912. msm_ec_ref_sampling_rate = 192000;
  4913. break;
  4914. case 8:
  4915. msm_ec_ref_sampling_rate = 384000;
  4916. break;
  4917. default:
  4918. msm_ec_ref_sampling_rate = 48000;
  4919. break;
  4920. }
  4921. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  4922. __func__, msm_ec_ref_sampling_rate);
  4923. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  4924. return 0;
  4925. }
  4926. static int get_ec_ref_port_id(int value, int *index)
  4927. {
  4928. int port_id;
  4929. switch (value) {
  4930. case 0:
  4931. *index = 0;
  4932. port_id = AFE_PORT_INVALID;
  4933. break;
  4934. case 1:
  4935. *index = 1;
  4936. port_id = SLIMBUS_0_RX;
  4937. break;
  4938. case 2:
  4939. *index = 2;
  4940. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  4941. break;
  4942. case 3:
  4943. *index = 3;
  4944. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4945. break;
  4946. case 4:
  4947. *index = 4;
  4948. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4949. break;
  4950. case 5:
  4951. *index = 5;
  4952. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4953. break;
  4954. case 6:
  4955. *index = 6;
  4956. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4957. break;
  4958. case 7:
  4959. *index = 7;
  4960. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  4961. break;
  4962. case 9:
  4963. *index = 9;
  4964. port_id = SLIMBUS_5_RX;
  4965. break;
  4966. case 10:
  4967. *index = 10;
  4968. port_id = SLIMBUS_1_TX;
  4969. break;
  4970. case 11:
  4971. *index = 11;
  4972. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  4973. break;
  4974. case 12:
  4975. *index = 12;
  4976. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  4977. break;
  4978. case 13:
  4979. *index = 13;
  4980. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  4981. break;
  4982. case 14:
  4983. *index = 14;
  4984. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  4985. break;
  4986. case 15:
  4987. *index = 15;
  4988. port_id = SLIMBUS_6_RX;
  4989. break;
  4990. case 16:
  4991. *index = 16;
  4992. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  4993. break;
  4994. case 17:
  4995. *index = 17;
  4996. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  4997. break;
  4998. case 18:
  4999. *index = 18;
  5000. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  5001. break;
  5002. case 19:
  5003. *index = 19;
  5004. port_id = AFE_PORT_ID_USB_RX;
  5005. break;
  5006. case 20:
  5007. *index = 20;
  5008. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  5009. break;
  5010. case 21:
  5011. *index = 21;
  5012. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  5013. break;
  5014. case 22:
  5015. *index = 22;
  5016. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  5017. break;
  5018. case 23:
  5019. *index = 23;
  5020. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5021. break;
  5022. case 24:
  5023. *index = 24;
  5024. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  5025. break;
  5026. case 25:
  5027. *index = 25;
  5028. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  5029. break;
  5030. case 26:
  5031. *index = 26;
  5032. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  5033. break;
  5034. case 27:
  5035. *index = 27;
  5036. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  5037. break;
  5038. case 28:
  5039. *index = 28;
  5040. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  5041. break;
  5042. case 29:
  5043. *index = 29;
  5044. port_id = SLIMBUS_7_RX;
  5045. break;
  5046. case 30:
  5047. *index = 30;
  5048. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  5049. break;
  5050. case 31:
  5051. *index = 31;
  5052. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  5053. break;
  5054. case 32:
  5055. *index = 32;
  5056. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  5057. break;
  5058. case 33:
  5059. *index = 33;
  5060. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  5061. break;
  5062. case 34:
  5063. *index = 34;
  5064. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  5065. break;
  5066. case 35:
  5067. *index = 35;
  5068. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  5069. break;
  5070. case 36:
  5071. *index = 36;
  5072. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5073. break;
  5074. case 37:
  5075. *index = 37;
  5076. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5077. break;
  5078. case 38:
  5079. *index = 38;
  5080. port_id = AFE_PORT_ID_SENARY_MI2S_RX;
  5081. break;
  5082. case 39:
  5083. *index = 39;
  5084. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  5085. break;
  5086. case 40:
  5087. *index = 40;
  5088. port_id = AFE_PORT_ID_SENARY_MI2S_TX;
  5089. break;
  5090. default:
  5091. *index = 0; /* NONE */
  5092. pr_err("%s: Invalid value %d\n", __func__, value);
  5093. port_id = AFE_PORT_INVALID;
  5094. break;
  5095. }
  5096. return port_id;
  5097. }
  5098. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5099. struct snd_ctl_elem_value *ucontrol)
  5100. {
  5101. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5102. mutex_lock(&routing_lock);
  5103. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5104. mutex_unlock(&routing_lock);
  5105. return 0;
  5106. }
  5107. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5108. struct snd_ctl_elem_value *ucontrol)
  5109. {
  5110. int value = ucontrol->value.integer.value[0];
  5111. mutex_lock(&routing_lock);
  5112. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5113. &afe_loopback_tx_port_index);
  5114. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5115. __func__, afe_loopback_tx_port_index);
  5116. mutex_unlock(&routing_lock);
  5117. return 0;
  5118. }
  5119. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5120. "32000", "44100", "48000", "96000", "192000", "384000"};
  5121. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5122. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5123. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5124. ec_ref_bit_format_text),
  5125. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5126. };
  5127. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5128. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5129. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5130. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5131. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5132. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5133. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5134. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5135. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5136. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5137. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5138. "DISPLAY_PORT1", "SEN_MI2S_RX", "QUIN_TDM_TX_0", "SENARY_MI2S_TX",
  5139. };
  5140. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5141. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5142. };
  5143. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5144. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5145. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5146. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5147. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5148. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5149. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5150. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5151. msm_route_ec_ref_params_enum[0],
  5152. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5153. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5154. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5155. msm_ec_ref_chmixer_weights_put),
  5156. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5157. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5158. msm_ec_ref_chmixer_weights_put),
  5159. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5160. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5161. msm_ec_ref_chmixer_weights_put),
  5162. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5163. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5164. msm_ec_ref_chmixer_weights_put),
  5165. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5166. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5167. msm_ec_ref_chmixer_weights_put),
  5168. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5169. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5170. msm_ec_ref_chmixer_weights_put),
  5171. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch7", SND_SOC_NOPM,
  5172. 6, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5173. msm_ec_ref_chmixer_weights_put),
  5174. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch8", SND_SOC_NOPM,
  5175. 7, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5176. msm_ec_ref_chmixer_weights_put),
  5177. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5178. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5179. };
  5180. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5181. struct snd_ctl_elem_value *ucontrol)
  5182. {
  5183. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5184. mutex_lock(&routing_lock);
  5185. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5186. mutex_unlock(&routing_lock);
  5187. return 0;
  5188. }
  5189. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5190. struct snd_ctl_elem_value *ucontrol)
  5191. {
  5192. int value = ucontrol->value.integer.value[0];
  5193. struct snd_soc_dapm_widget *widget =
  5194. snd_soc_dapm_kcontrol_widget(kcontrol);
  5195. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5196. struct snd_soc_dapm_update *update = NULL;
  5197. mutex_lock(&routing_lock);
  5198. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5199. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5200. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5201. __func__, msm_route_ec_ref_rx);
  5202. mutex_unlock(&routing_lock);
  5203. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5204. msm_route_ec_ref_rx, e, update);
  5205. return 0;
  5206. }
  5207. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5208. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5209. msm_route_ec_ref_rx_enum[0],
  5210. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5211. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5212. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5213. msm_route_ec_ref_rx_enum[0],
  5214. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5215. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5216. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5217. msm_route_ec_ref_rx_enum[0],
  5218. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5219. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5220. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5221. msm_route_ec_ref_rx_enum[0],
  5222. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5223. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5224. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5225. msm_route_ec_ref_rx_enum[0],
  5226. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5227. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5228. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5229. msm_route_ec_ref_rx_enum[0],
  5230. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5231. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5232. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5233. msm_route_ec_ref_rx_enum[0],
  5234. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5235. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5236. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5237. msm_route_ec_ref_rx_enum[0],
  5238. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5239. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5240. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5241. msm_route_ec_ref_rx_enum[0],
  5242. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5243. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5244. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5245. msm_route_ec_ref_rx_enum[0],
  5246. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5247. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5248. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5249. msm_route_ec_ref_rx_enum[0],
  5250. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5251. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5252. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5253. msm_route_ec_ref_rx_enum[0],
  5254. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5255. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5256. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5257. msm_route_ec_ref_rx_enum[0],
  5258. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5259. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5260. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5261. msm_route_ec_ref_rx_enum[0],
  5262. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5263. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5264. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5265. msm_route_ec_ref_rx_enum[0],
  5266. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5267. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5268. struct snd_ctl_elem_value *ucontrol)
  5269. {
  5270. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5271. mutex_lock(&routing_lock);
  5272. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5273. mutex_unlock(&routing_lock);
  5274. return 0;
  5275. }
  5276. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5277. struct snd_ctl_elem_value *ucontrol)
  5278. {
  5279. struct snd_soc_dapm_widget *widget =
  5280. snd_soc_dapm_kcontrol_widget(kcontrol);
  5281. int mux = ucontrol->value.enumerated.item[0];
  5282. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5283. int ret = 1;
  5284. bool state = true;
  5285. uint16_t ext_ec_ref_port_id;
  5286. struct snd_soc_dapm_update *update = NULL;
  5287. if (mux >= e->items) {
  5288. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5289. return -EINVAL;
  5290. }
  5291. mutex_lock(&routing_lock);
  5292. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5293. switch (msm_route_ext_ec_ref) {
  5294. case EXT_EC_REF_PRI_MI2S_TX:
  5295. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5296. break;
  5297. case EXT_EC_REF_SEC_MI2S_TX:
  5298. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5299. break;
  5300. case EXT_EC_REF_TERT_MI2S_TX:
  5301. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5302. break;
  5303. case EXT_EC_REF_QUAT_MI2S_TX:
  5304. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5305. break;
  5306. case EXT_EC_REF_QUIN_MI2S_TX:
  5307. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5308. break;
  5309. case EXT_EC_REF_SLIM_1_TX:
  5310. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5311. break;
  5312. case EXT_EC_REF_PRI_TDM_TX:
  5313. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5314. break;
  5315. case EXT_EC_REF_SEC_TDM_TX:
  5316. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5317. break;
  5318. case EXT_EC_REF_NONE:
  5319. default:
  5320. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5321. state = false;
  5322. break;
  5323. }
  5324. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5325. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5326. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5327. mutex_unlock(&routing_lock);
  5328. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5329. update);
  5330. } else {
  5331. ret = -EINVAL;
  5332. mutex_unlock(&routing_lock);
  5333. }
  5334. return ret;
  5335. }
  5336. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5337. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5338. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5339. "SLIM_1_TX", "PRI_TDM_TX",
  5340. "SEC_TDM_TX", "SENARY_MI2S_TX"};
  5341. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5342. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5343. };
  5344. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5345. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5346. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5347. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5348. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5349. MSM_BACKEND_DAI_PRI_I2S_RX,
  5350. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5351. msm_routing_put_audio_mixer),
  5352. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5353. MSM_BACKEND_DAI_PRI_I2S_RX,
  5354. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5355. msm_routing_put_audio_mixer),
  5356. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5357. MSM_BACKEND_DAI_PRI_I2S_RX,
  5358. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5359. msm_routing_put_audio_mixer),
  5360. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5361. MSM_BACKEND_DAI_PRI_I2S_RX,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5365. MSM_BACKEND_DAI_PRI_I2S_RX,
  5366. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5367. msm_routing_put_audio_mixer),
  5368. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5369. MSM_BACKEND_DAI_PRI_I2S_RX,
  5370. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5371. msm_routing_put_audio_mixer),
  5372. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5373. MSM_BACKEND_DAI_PRI_I2S_RX,
  5374. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5375. msm_routing_put_audio_mixer),
  5376. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5377. MSM_BACKEND_DAI_PRI_I2S_RX,
  5378. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5379. msm_routing_put_audio_mixer),
  5380. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5381. MSM_BACKEND_DAI_PRI_I2S_RX,
  5382. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5383. msm_routing_put_audio_mixer),
  5384. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5385. MSM_BACKEND_DAI_PRI_I2S_RX,
  5386. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5387. msm_routing_put_audio_mixer),
  5388. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5389. MSM_BACKEND_DAI_PRI_I2S_RX,
  5390. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5391. msm_routing_put_audio_mixer),
  5392. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5393. MSM_BACKEND_DAI_PRI_I2S_RX,
  5394. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5395. msm_routing_put_audio_mixer),
  5396. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5397. MSM_BACKEND_DAI_PRI_I2S_RX,
  5398. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5399. msm_routing_put_audio_mixer),
  5400. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5401. MSM_BACKEND_DAI_PRI_I2S_RX,
  5402. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5403. msm_routing_put_audio_mixer),
  5404. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5405. MSM_BACKEND_DAI_PRI_I2S_RX,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5409. MSM_BACKEND_DAI_PRI_I2S_RX,
  5410. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5411. msm_routing_put_audio_mixer),
  5412. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5413. MSM_BACKEND_DAI_PRI_I2S_RX,
  5414. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5415. msm_routing_put_audio_mixer),
  5416. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5417. MSM_BACKEND_DAI_PRI_I2S_RX,
  5418. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5419. msm_routing_put_audio_mixer),
  5420. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5421. MSM_BACKEND_DAI_PRI_I2S_RX,
  5422. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5423. msm_routing_put_audio_mixer),
  5424. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5425. MSM_BACKEND_DAI_PRI_I2S_RX,
  5426. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5427. msm_routing_put_audio_mixer),
  5428. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5429. MSM_BACKEND_DAI_PRI_I2S_RX,
  5430. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5431. msm_routing_put_audio_mixer),
  5432. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5433. MSM_BACKEND_DAI_PRI_I2S_RX,
  5434. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5435. msm_routing_put_audio_mixer),
  5436. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5437. MSM_BACKEND_DAI_PRI_I2S_RX,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. };
  5441. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5442. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5443. MSM_BACKEND_DAI_SEC_I2S_RX,
  5444. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5445. msm_routing_put_audio_mixer),
  5446. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5447. MSM_BACKEND_DAI_SEC_I2S_RX,
  5448. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5449. msm_routing_put_audio_mixer),
  5450. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5451. MSM_BACKEND_DAI_SEC_I2S_RX,
  5452. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5453. msm_routing_put_audio_mixer),
  5454. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5455. MSM_BACKEND_DAI_SEC_I2S_RX,
  5456. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5457. msm_routing_put_audio_mixer),
  5458. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5459. MSM_BACKEND_DAI_SEC_I2S_RX,
  5460. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5461. msm_routing_put_audio_mixer),
  5462. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5463. MSM_BACKEND_DAI_SEC_I2S_RX,
  5464. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5465. msm_routing_put_audio_mixer),
  5466. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5467. MSM_BACKEND_DAI_SEC_I2S_RX,
  5468. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5469. msm_routing_put_audio_mixer),
  5470. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5471. MSM_BACKEND_DAI_SEC_I2S_RX,
  5472. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5473. msm_routing_put_audio_mixer),
  5474. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5475. MSM_BACKEND_DAI_SEC_I2S_RX,
  5476. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5477. msm_routing_put_audio_mixer),
  5478. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5479. MSM_BACKEND_DAI_SEC_I2S_RX,
  5480. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5481. msm_routing_put_audio_mixer),
  5482. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5483. MSM_BACKEND_DAI_SEC_I2S_RX,
  5484. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5485. msm_routing_put_audio_mixer),
  5486. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5487. MSM_BACKEND_DAI_SEC_I2S_RX,
  5488. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5489. msm_routing_put_audio_mixer),
  5490. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5491. MSM_BACKEND_DAI_SEC_I2S_RX,
  5492. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5493. msm_routing_put_audio_mixer),
  5494. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5495. MSM_BACKEND_DAI_SEC_I2S_RX,
  5496. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5497. msm_routing_put_audio_mixer),
  5498. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5499. MSM_BACKEND_DAI_SEC_I2S_RX,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5503. MSM_BACKEND_DAI_SEC_I2S_RX,
  5504. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5505. msm_routing_put_audio_mixer),
  5506. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5507. MSM_BACKEND_DAI_SEC_I2S_RX,
  5508. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5509. msm_routing_put_audio_mixer),
  5510. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5511. MSM_BACKEND_DAI_SEC_I2S_RX,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5515. MSM_BACKEND_DAI_SEC_I2S_RX,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5519. MSM_BACKEND_DAI_SEC_I2S_RX,
  5520. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5521. msm_routing_put_audio_mixer),
  5522. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5523. MSM_BACKEND_DAI_SEC_I2S_RX,
  5524. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5525. msm_routing_put_audio_mixer),
  5526. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_SEC_I2S_RX,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5531. MSM_BACKEND_DAI_SEC_I2S_RX,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. };
  5535. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5536. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5537. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5538. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5539. msm_routing_put_audio_mixer),
  5540. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5541. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5542. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5543. msm_routing_put_audio_mixer),
  5544. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5545. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5546. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5547. msm_routing_put_audio_mixer),
  5548. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5549. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5553. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5554. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5555. msm_routing_put_audio_mixer),
  5556. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5557. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5558. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5559. msm_routing_put_audio_mixer),
  5560. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5561. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5562. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5563. msm_routing_put_audio_mixer),
  5564. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5565. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5566. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5567. msm_routing_put_audio_mixer),
  5568. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5569. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5570. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5571. msm_routing_put_audio_mixer),
  5572. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5573. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5574. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5575. msm_routing_put_audio_mixer),
  5576. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5577. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5601. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5605. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5609. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5613. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5617. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5621. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5625. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. };
  5629. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5630. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5631. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5632. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5633. msm_routing_put_audio_mixer),
  5634. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5635. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5636. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5637. msm_routing_put_audio_mixer),
  5638. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5639. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5640. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5641. msm_routing_put_audio_mixer),
  5642. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5643. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5647. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5648. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5649. msm_routing_put_audio_mixer),
  5650. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5651. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5671. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5675. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5679. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5680. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5681. msm_routing_put_audio_mixer),
  5682. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5687. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5691. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5695. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5699. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5707. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5708. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5709. msm_routing_put_audio_mixer),
  5710. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5711. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5712. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5713. msm_routing_put_audio_mixer),
  5714. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5715. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5716. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5717. msm_routing_put_audio_mixer),
  5718. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5719. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5720. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5721. msm_routing_put_audio_mixer),
  5722. };
  5723. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5724. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5725. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5729. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5765. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5777. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5781. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5785. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5786. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5787. msm_routing_put_audio_mixer),
  5788. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5789. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5790. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5791. msm_routing_put_audio_mixer),
  5792. };
  5793. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5794. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5795. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5796. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5797. msm_routing_put_audio_mixer),
  5798. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5799. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5800. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5801. msm_routing_put_audio_mixer),
  5802. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5803. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5804. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5805. msm_routing_put_audio_mixer),
  5806. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5807. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5808. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5809. msm_routing_put_audio_mixer),
  5810. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5811. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5815. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5819. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5820. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5821. msm_routing_put_audio_mixer),
  5822. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5823. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5824. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5825. msm_routing_put_audio_mixer),
  5826. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5827. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5828. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5829. msm_routing_put_audio_mixer),
  5830. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5831. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5835. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5836. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5837. msm_routing_put_audio_mixer),
  5838. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5839. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5843. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5855. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5859. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5860. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5861. msm_routing_put_audio_mixer),
  5862. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5863. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5864. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5865. msm_routing_put_audio_mixer),
  5866. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5867. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5868. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5869. msm_routing_put_audio_mixer),
  5870. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5871. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5872. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5873. msm_routing_put_audio_mixer),
  5874. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5875. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5876. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5877. msm_routing_put_audio_mixer),
  5878. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5879. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5880. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5881. msm_routing_put_audio_mixer),
  5882. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5883. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5884. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5885. msm_routing_put_audio_mixer),
  5886. };
  5887. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5888. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5889. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5890. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5891. msm_routing_put_audio_mixer),
  5892. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5893. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5894. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5895. msm_routing_put_audio_mixer),
  5896. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5897. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5898. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5899. msm_routing_put_audio_mixer),
  5900. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5901. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5902. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5903. msm_routing_put_audio_mixer),
  5904. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5905. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5909. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5910. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5911. msm_routing_put_audio_mixer),
  5912. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5913. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5914. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5915. msm_routing_put_audio_mixer),
  5916. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5917. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5921. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5922. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5923. msm_routing_put_audio_mixer),
  5924. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5925. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5926. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5927. msm_routing_put_audio_mixer),
  5928. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5929. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5930. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5931. msm_routing_put_audio_mixer),
  5932. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5933. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5934. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5935. msm_routing_put_audio_mixer),
  5936. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5937. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5941. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5945. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5949. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5953. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5954. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5955. msm_routing_put_audio_mixer),
  5956. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5957. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5958. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5959. msm_routing_put_audio_mixer),
  5960. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5961. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5965. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5966. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5967. msm_routing_put_audio_mixer),
  5968. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5969. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5970. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5971. msm_routing_put_audio_mixer),
  5972. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5973. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5974. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5975. msm_routing_put_audio_mixer),
  5976. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5977. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5978. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5979. msm_routing_put_audio_mixer),
  5980. };
  5981. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  5982. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5983. MSM_BACKEND_DAI_MI2S_RX,
  5984. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5985. msm_routing_put_audio_mixer),
  5986. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5987. MSM_BACKEND_DAI_MI2S_RX,
  5988. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5989. msm_routing_put_audio_mixer),
  5990. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5991. MSM_BACKEND_DAI_MI2S_RX,
  5992. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5993. msm_routing_put_audio_mixer),
  5994. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5995. MSM_BACKEND_DAI_MI2S_RX,
  5996. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5997. msm_routing_put_audio_mixer),
  5998. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5999. MSM_BACKEND_DAI_MI2S_RX,
  6000. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6001. msm_routing_put_audio_mixer),
  6002. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6003. MSM_BACKEND_DAI_MI2S_RX,
  6004. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6005. msm_routing_put_audio_mixer),
  6006. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6007. MSM_BACKEND_DAI_MI2S_RX,
  6008. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6009. msm_routing_put_audio_mixer),
  6010. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6011. MSM_BACKEND_DAI_MI2S_RX,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6015. MSM_BACKEND_DAI_MI2S_RX,
  6016. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6017. msm_routing_put_audio_mixer),
  6018. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6019. MSM_BACKEND_DAI_MI2S_RX,
  6020. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6021. msm_routing_put_audio_mixer),
  6022. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6023. MSM_BACKEND_DAI_MI2S_RX,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6027. MSM_BACKEND_DAI_MI2S_RX,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6031. MSM_BACKEND_DAI_MI2S_RX,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6035. MSM_BACKEND_DAI_MI2S_RX,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_MI2S_RX,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_MI2S_RX,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6047. MSM_BACKEND_DAI_MI2S_RX,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6051. MSM_BACKEND_DAI_MI2S_RX,
  6052. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6053. msm_routing_put_audio_mixer),
  6054. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6055. MSM_BACKEND_DAI_MI2S_RX,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6059. MSM_BACKEND_DAI_MI2S_RX,
  6060. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6061. msm_routing_put_audio_mixer),
  6062. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6063. MSM_BACKEND_DAI_MI2S_RX,
  6064. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6065. msm_routing_put_audio_mixer),
  6066. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6067. MSM_BACKEND_DAI_MI2S_RX,
  6068. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6069. msm_routing_put_audio_mixer),
  6070. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6071. MSM_BACKEND_DAI_MI2S_RX,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. };
  6075. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  6076. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6077. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6078. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6079. msm_routing_put_audio_mixer),
  6080. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6081. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6082. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6083. msm_routing_put_audio_mixer),
  6084. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6085. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6086. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6087. msm_routing_put_audio_mixer),
  6088. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6089. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6090. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6091. msm_routing_put_audio_mixer),
  6092. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6093. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6094. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6095. msm_routing_put_audio_mixer),
  6096. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6097. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6098. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6099. msm_routing_put_audio_mixer),
  6100. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6101. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6102. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6103. msm_routing_put_audio_mixer),
  6104. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6105. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6109. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6110. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6111. msm_routing_put_audio_mixer),
  6112. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6113. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6114. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6115. msm_routing_put_audio_mixer),
  6116. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6117. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6121. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6122. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6123. msm_routing_put_audio_mixer),
  6124. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6125. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6126. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6127. msm_routing_put_audio_mixer),
  6128. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6129. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6130. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6131. msm_routing_put_audio_mixer),
  6132. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6133. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6137. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6141. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6142. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6143. msm_routing_put_audio_mixer),
  6144. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6145. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6149. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6153. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6154. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6155. msm_routing_put_audio_mixer),
  6156. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6157. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6158. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6159. msm_routing_put_audio_mixer),
  6160. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6161. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6162. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6163. msm_routing_put_audio_mixer),
  6164. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6165. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6166. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6167. msm_routing_put_audio_mixer),
  6168. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6169. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6170. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6171. msm_routing_put_audio_mixer),
  6172. };
  6173. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6174. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6175. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6176. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6177. msm_routing_put_audio_mixer),
  6178. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6179. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6180. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6181. msm_routing_put_audio_mixer),
  6182. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6183. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6184. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6185. msm_routing_put_audio_mixer),
  6186. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6187. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6188. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6189. msm_routing_put_audio_mixer),
  6190. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6191. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6192. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6193. msm_routing_put_audio_mixer),
  6194. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6195. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6196. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6197. msm_routing_put_audio_mixer),
  6198. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6199. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6200. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6201. msm_routing_put_audio_mixer),
  6202. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6203. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6204. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6205. msm_routing_put_audio_mixer),
  6206. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6207. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6208. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6209. msm_routing_put_audio_mixer),
  6210. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6215. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6219. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6223. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6231. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6235. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6239. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6243. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6247. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6248. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6249. msm_routing_put_audio_mixer),
  6250. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6251. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6252. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6253. msm_routing_put_audio_mixer),
  6254. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6255. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6259. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6260. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6261. msm_routing_put_audio_mixer),
  6262. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6263. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6264. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6265. msm_routing_put_audio_mixer),
  6266. };
  6267. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6268. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6269. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6270. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6271. msm_routing_put_audio_mixer),
  6272. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6273. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6274. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6275. msm_routing_put_audio_mixer),
  6276. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6277. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6278. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6279. msm_routing_put_audio_mixer),
  6280. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6281. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6282. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6283. msm_routing_put_audio_mixer),
  6284. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6285. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6289. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6293. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6297. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6298. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6299. msm_routing_put_audio_mixer),
  6300. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6301. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6305. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6309. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6310. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6311. msm_routing_put_audio_mixer),
  6312. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6313. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6314. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6315. msm_routing_put_audio_mixer),
  6316. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6317. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6321. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6322. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6323. msm_routing_put_audio_mixer),
  6324. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6325. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. };
  6357. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6358. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6359. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6360. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6361. msm_routing_put_audio_mixer),
  6362. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6363. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6364. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6365. msm_routing_put_audio_mixer),
  6366. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6367. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6368. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6369. msm_routing_put_audio_mixer),
  6370. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6371. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6372. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6373. msm_routing_put_audio_mixer),
  6374. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6375. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6376. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6377. msm_routing_put_audio_mixer),
  6378. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6379. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6380. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6381. msm_routing_put_audio_mixer),
  6382. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6383. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6384. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6385. msm_routing_put_audio_mixer),
  6386. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6387. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6388. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6389. msm_routing_put_audio_mixer),
  6390. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6391. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6392. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6393. msm_routing_put_audio_mixer),
  6394. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6395. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6396. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6397. msm_routing_put_audio_mixer),
  6398. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6399. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6400. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6401. msm_routing_put_audio_mixer),
  6402. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6403. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6407. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6408. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6409. msm_routing_put_audio_mixer),
  6410. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6411. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6412. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6413. msm_routing_put_audio_mixer),
  6414. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6415. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6416. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6417. msm_routing_put_audio_mixer),
  6418. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6419. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6420. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6421. msm_routing_put_audio_mixer),
  6422. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6423. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6424. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6425. msm_routing_put_audio_mixer),
  6426. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6427. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6428. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6429. msm_routing_put_audio_mixer),
  6430. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6431. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6432. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6433. msm_routing_put_audio_mixer),
  6434. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6435. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6436. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6437. msm_routing_put_audio_mixer),
  6438. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6439. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6440. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6441. msm_routing_put_audio_mixer),
  6442. };
  6443. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6444. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6445. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6446. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6447. msm_routing_put_audio_mixer),
  6448. };
  6449. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6450. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6451. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6452. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6453. msm_routing_put_audio_mixer),
  6454. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6455. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6456. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6457. msm_routing_put_audio_mixer),
  6458. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6459. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6460. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6461. msm_routing_put_audio_mixer),
  6462. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6463. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6464. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6465. msm_routing_put_audio_mixer),
  6466. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6467. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6468. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6469. msm_routing_put_audio_mixer),
  6470. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6471. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6472. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6473. msm_routing_put_audio_mixer),
  6474. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6475. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6476. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6477. msm_routing_put_audio_mixer),
  6478. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6479. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6480. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6481. msm_routing_put_audio_mixer),
  6482. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6483. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6484. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6485. msm_routing_put_audio_mixer),
  6486. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6487. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6488. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6489. msm_routing_put_audio_mixer),
  6490. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6491. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6492. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6493. msm_routing_put_audio_mixer),
  6494. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6495. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6496. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6497. msm_routing_put_audio_mixer),
  6498. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6499. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6500. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6501. msm_routing_put_audio_mixer),
  6502. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6503. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6504. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6505. msm_routing_put_audio_mixer),
  6506. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6507. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6508. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6509. msm_routing_put_audio_mixer),
  6510. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6511. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6512. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6513. msm_routing_put_audio_mixer),
  6514. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6515. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6516. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6517. msm_routing_put_audio_mixer),
  6518. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6519. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6520. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6521. msm_routing_put_audio_mixer),
  6522. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6523. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6524. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6525. msm_routing_put_audio_mixer),
  6526. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6527. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6528. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6529. msm_routing_put_audio_mixer),
  6530. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6531. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6535. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6536. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6537. msm_routing_put_audio_mixer),
  6538. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6539. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6540. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6541. msm_routing_put_audio_mixer),
  6542. };
  6543. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6544. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6545. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6546. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6547. msm_routing_put_audio_mixer),
  6548. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6549. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6550. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6551. msm_routing_put_audio_mixer),
  6552. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6553. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6554. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6555. msm_routing_put_audio_mixer),
  6556. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6557. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6558. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6559. msm_routing_put_audio_mixer),
  6560. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6561. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6562. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6563. msm_routing_put_audio_mixer),
  6564. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6565. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6566. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6567. msm_routing_put_audio_mixer),
  6568. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6569. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6570. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6571. msm_routing_put_audio_mixer),
  6572. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6573. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6574. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6575. msm_routing_put_audio_mixer),
  6576. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6577. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6578. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6579. msm_routing_put_audio_mixer),
  6580. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6581. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6582. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6583. msm_routing_put_audio_mixer),
  6584. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6585. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6586. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6587. msm_routing_put_audio_mixer),
  6588. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6589. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6590. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6591. msm_routing_put_audio_mixer),
  6592. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6593. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6594. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6595. msm_routing_put_audio_mixer),
  6596. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6597. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6598. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6599. msm_routing_put_audio_mixer),
  6600. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6601. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6602. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6603. msm_routing_put_audio_mixer),
  6604. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6605. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6606. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6607. msm_routing_put_audio_mixer),
  6608. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6609. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6610. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6611. msm_routing_put_audio_mixer),
  6612. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6613. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6614. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6615. msm_routing_put_audio_mixer),
  6616. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6617. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6618. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6619. msm_routing_put_audio_mixer),
  6620. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6621. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6622. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6623. msm_routing_put_audio_mixer),
  6624. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6625. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6626. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6627. msm_routing_put_audio_mixer),
  6628. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6629. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6630. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6631. msm_routing_put_audio_mixer),
  6632. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6633. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6634. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6635. msm_routing_put_audio_mixer),
  6636. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  6637. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6638. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_audio_mixer,
  6639. msm_routing_put_audio_mixer),
  6640. };
  6641. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6642. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6643. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6644. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6645. msm_routing_put_audio_mixer),
  6646. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6647. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6648. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6649. msm_routing_put_audio_mixer),
  6650. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6651. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6652. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6653. msm_routing_put_audio_mixer),
  6654. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6655. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6656. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6657. msm_routing_put_audio_mixer),
  6658. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6659. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6660. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6661. msm_routing_put_audio_mixer),
  6662. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6663. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6664. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6665. msm_routing_put_audio_mixer),
  6666. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6667. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6668. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6669. msm_routing_put_audio_mixer),
  6670. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6671. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6672. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6673. msm_routing_put_audio_mixer),
  6674. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6675. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6676. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6677. msm_routing_put_audio_mixer),
  6678. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6679. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6680. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6681. msm_routing_put_audio_mixer),
  6682. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6683. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6684. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6685. msm_routing_put_audio_mixer),
  6686. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6687. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6688. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6689. msm_routing_put_audio_mixer),
  6690. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6691. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6692. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6693. msm_routing_put_audio_mixer),
  6694. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6695. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6696. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6697. msm_routing_put_audio_mixer),
  6698. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6699. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6700. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6701. msm_routing_put_audio_mixer),
  6702. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6703. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6704. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6705. msm_routing_put_audio_mixer),
  6706. };
  6707. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6708. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6709. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6710. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6711. msm_routing_put_audio_mixer),
  6712. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6713. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6714. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6715. msm_routing_put_audio_mixer),
  6716. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6717. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6718. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6719. msm_routing_put_audio_mixer),
  6720. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6721. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6722. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6723. msm_routing_put_audio_mixer),
  6724. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6725. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6726. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6727. msm_routing_put_audio_mixer),
  6728. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6729. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6730. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6731. msm_routing_put_audio_mixer),
  6732. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6733. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6737. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6738. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6739. msm_routing_put_audio_mixer),
  6740. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6741. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6742. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6743. msm_routing_put_audio_mixer),
  6744. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6745. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6746. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6747. msm_routing_put_audio_mixer),
  6748. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6749. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6750. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6751. msm_routing_put_audio_mixer),
  6752. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6753. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6754. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6755. msm_routing_put_audio_mixer),
  6756. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6757. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6761. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6762. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6763. msm_routing_put_audio_mixer),
  6764. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6765. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6766. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6767. msm_routing_put_audio_mixer),
  6768. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6769. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. };
  6773. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6774. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6775. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6779. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6780. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6781. msm_routing_put_audio_mixer),
  6782. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6783. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6784. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6785. msm_routing_put_audio_mixer),
  6786. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6787. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6788. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6789. msm_routing_put_audio_mixer),
  6790. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6791. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6792. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6793. msm_routing_put_audio_mixer),
  6794. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6795. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6799. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6800. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6801. msm_routing_put_audio_mixer),
  6802. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6803. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6804. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6805. msm_routing_put_audio_mixer),
  6806. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6807. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6808. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6809. msm_routing_put_audio_mixer),
  6810. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6811. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6812. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6813. msm_routing_put_audio_mixer),
  6814. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6815. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6816. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6817. msm_routing_put_audio_mixer),
  6818. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6819. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6820. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6821. msm_routing_put_audio_mixer),
  6822. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6823. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6824. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6825. msm_routing_put_audio_mixer),
  6826. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6827. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6828. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6829. msm_routing_put_audio_mixer),
  6830. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6831. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6835. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6836. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6837. msm_routing_put_audio_mixer),
  6838. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6839. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6840. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6841. msm_routing_put_audio_mixer),
  6842. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6843. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6847. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6848. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6849. msm_routing_put_audio_mixer),
  6850. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6851. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6852. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6853. msm_routing_put_audio_mixer),
  6854. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6855. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6859. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6860. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6861. msm_routing_put_audio_mixer),
  6862. };
  6863. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  6864. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6865. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6866. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6867. msm_routing_put_audio_mixer),
  6868. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6869. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6870. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6871. msm_routing_put_audio_mixer),
  6872. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6873. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6874. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6875. msm_routing_put_audio_mixer),
  6876. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6877. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6878. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6879. msm_routing_put_audio_mixer),
  6880. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6881. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6882. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6883. msm_routing_put_audio_mixer),
  6884. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6885. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6886. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6887. msm_routing_put_audio_mixer),
  6888. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6889. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6890. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6891. msm_routing_put_audio_mixer),
  6892. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6893. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6894. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6895. msm_routing_put_audio_mixer),
  6896. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6897. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6901. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6902. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6903. msm_routing_put_audio_mixer),
  6904. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6905. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6906. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6907. msm_routing_put_audio_mixer),
  6908. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6909. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6910. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6911. msm_routing_put_audio_mixer),
  6912. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6913. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6914. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6915. msm_routing_put_audio_mixer),
  6916. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6917. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6921. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6922. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6923. msm_routing_put_audio_mixer),
  6924. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6925. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6926. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6927. msm_routing_put_audio_mixer),
  6928. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6929. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6933. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6934. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6935. msm_routing_put_audio_mixer),
  6936. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6937. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6938. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6939. msm_routing_put_audio_mixer),
  6940. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6941. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6942. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6943. msm_routing_put_audio_mixer),
  6944. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6945. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6946. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6947. msm_routing_put_audio_mixer),
  6948. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6949. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6950. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6951. msm_routing_put_audio_mixer),
  6952. };
  6953. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  6954. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6955. MSM_BACKEND_DAI_HDMI_RX,
  6956. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6957. msm_routing_put_audio_mixer),
  6958. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6959. MSM_BACKEND_DAI_HDMI_RX,
  6960. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6961. msm_routing_put_audio_mixer),
  6962. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6963. MSM_BACKEND_DAI_HDMI_RX,
  6964. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6965. msm_routing_put_audio_mixer),
  6966. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6967. MSM_BACKEND_DAI_HDMI_RX,
  6968. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6969. msm_routing_put_audio_mixer),
  6970. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6971. MSM_BACKEND_DAI_HDMI_RX,
  6972. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6973. msm_routing_put_audio_mixer),
  6974. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6975. MSM_BACKEND_DAI_HDMI_RX,
  6976. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6977. msm_routing_put_audio_mixer),
  6978. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6979. MSM_BACKEND_DAI_HDMI_RX,
  6980. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6981. msm_routing_put_audio_mixer),
  6982. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6983. MSM_BACKEND_DAI_HDMI_RX,
  6984. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6985. msm_routing_put_audio_mixer),
  6986. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6987. MSM_BACKEND_DAI_HDMI_RX,
  6988. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6989. msm_routing_put_audio_mixer),
  6990. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6991. MSM_BACKEND_DAI_HDMI_RX,
  6992. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6993. msm_routing_put_audio_mixer),
  6994. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6995. MSM_BACKEND_DAI_HDMI_RX,
  6996. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6997. msm_routing_put_audio_mixer),
  6998. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6999. MSM_BACKEND_DAI_HDMI_RX,
  7000. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7001. msm_routing_put_audio_mixer),
  7002. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7003. MSM_BACKEND_DAI_HDMI_RX,
  7004. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7005. msm_routing_put_audio_mixer),
  7006. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7007. MSM_BACKEND_DAI_HDMI_RX,
  7008. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7009. msm_routing_put_audio_mixer),
  7010. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7011. MSM_BACKEND_DAI_HDMI_RX,
  7012. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7013. msm_routing_put_audio_mixer),
  7014. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7015. MSM_BACKEND_DAI_HDMI_RX,
  7016. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7017. msm_routing_put_audio_mixer),
  7018. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7019. MSM_BACKEND_DAI_HDMI_RX,
  7020. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7021. msm_routing_put_audio_mixer),
  7022. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7023. MSM_BACKEND_DAI_HDMI_RX,
  7024. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7025. msm_routing_put_audio_mixer),
  7026. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7027. MSM_BACKEND_DAI_HDMI_RX,
  7028. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7029. msm_routing_put_audio_mixer),
  7030. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7031. MSM_BACKEND_DAI_HDMI_RX,
  7032. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7033. msm_routing_put_audio_mixer),
  7034. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7035. MSM_BACKEND_DAI_HDMI_RX,
  7036. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7037. msm_routing_put_audio_mixer),
  7038. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7039. MSM_BACKEND_DAI_HDMI_RX,
  7040. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7041. msm_routing_put_audio_mixer),
  7042. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  7043. MSM_BACKEND_DAI_HDMI_RX,
  7044. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  7045. msm_routing_put_audio_mixer),
  7046. };
  7047. static const struct snd_kcontrol_new hdmi_ms_mixer_controls[] = {
  7048. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7049. MSM_BACKEND_DAI_HDMI_RX_MS,
  7050. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7051. msm_routing_put_audio_mixer),
  7052. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7053. MSM_BACKEND_DAI_HDMI_RX_MS,
  7054. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7055. msm_routing_put_audio_mixer),
  7056. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7057. MSM_BACKEND_DAI_HDMI_RX_MS,
  7058. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7059. msm_routing_put_audio_mixer),
  7060. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7061. MSM_BACKEND_DAI_HDMI_RX_MS,
  7062. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7063. msm_routing_put_audio_mixer),
  7064. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7065. MSM_BACKEND_DAI_HDMI_RX_MS,
  7066. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7067. msm_routing_put_audio_mixer),
  7068. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7069. MSM_BACKEND_DAI_HDMI_RX_MS,
  7070. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7071. msm_routing_put_audio_mixer),
  7072. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7073. MSM_BACKEND_DAI_HDMI_RX_MS,
  7074. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7075. msm_routing_put_audio_mixer),
  7076. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7077. MSM_BACKEND_DAI_HDMI_RX_MS,
  7078. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7079. msm_routing_put_audio_mixer),
  7080. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7081. MSM_BACKEND_DAI_HDMI_RX_MS,
  7082. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7083. msm_routing_put_audio_mixer),
  7084. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7085. MSM_BACKEND_DAI_HDMI_RX_MS,
  7086. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7087. msm_routing_put_audio_mixer),
  7088. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7089. MSM_BACKEND_DAI_HDMI_RX_MS,
  7090. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7091. msm_routing_put_audio_mixer),
  7092. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7093. MSM_BACKEND_DAI_HDMI_RX_MS,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7097. MSM_BACKEND_DAI_HDMI_RX_MS,
  7098. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7099. msm_routing_put_audio_mixer),
  7100. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7101. MSM_BACKEND_DAI_HDMI_RX_MS,
  7102. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7103. msm_routing_put_audio_mixer),
  7104. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7105. MSM_BACKEND_DAI_HDMI_RX_MS,
  7106. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7107. msm_routing_put_audio_mixer),
  7108. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7109. MSM_BACKEND_DAI_HDMI_RX_MS,
  7110. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7111. msm_routing_put_audio_mixer),
  7112. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7113. MSM_BACKEND_DAI_HDMI_RX_MS,
  7114. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7115. msm_routing_put_audio_mixer),
  7116. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7117. MSM_BACKEND_DAI_HDMI_RX_MS,
  7118. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7119. msm_routing_put_audio_mixer),
  7120. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7121. MSM_BACKEND_DAI_HDMI_RX_MS,
  7122. MSM_FRONTEND_DAI_MULTIMEDIA19, 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_HDMI_RX_MS,
  7126. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7127. msm_routing_put_audio_mixer),
  7128. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7129. MSM_BACKEND_DAI_HDMI_RX_MS,
  7130. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7131. msm_routing_put_audio_mixer),
  7132. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7133. MSM_BACKEND_DAI_HDMI_RX_MS,
  7134. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7135. msm_routing_put_audio_mixer),
  7136. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  7137. MSM_BACKEND_DAI_HDMI_RX_MS,
  7138. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  7139. msm_routing_put_audio_mixer),
  7140. };
  7141. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  7142. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7143. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7144. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7145. msm_routing_put_audio_mixer),
  7146. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7147. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7148. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7149. msm_routing_put_audio_mixer),
  7150. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7151. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7152. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7153. msm_routing_put_audio_mixer),
  7154. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7155. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7156. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7157. msm_routing_put_audio_mixer),
  7158. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7159. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7160. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7161. msm_routing_put_audio_mixer),
  7162. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7163. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7164. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7165. msm_routing_put_audio_mixer),
  7166. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7167. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7168. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7169. msm_routing_put_audio_mixer),
  7170. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7171. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7172. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7173. msm_routing_put_audio_mixer),
  7174. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7175. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7176. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7177. msm_routing_put_audio_mixer),
  7178. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7179. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7180. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7181. msm_routing_put_audio_mixer),
  7182. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7183. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7184. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7185. msm_routing_put_audio_mixer),
  7186. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7187. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7188. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7189. msm_routing_put_audio_mixer),
  7190. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7191. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7192. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7193. msm_routing_put_audio_mixer),
  7194. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7195. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7196. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7197. msm_routing_put_audio_mixer),
  7198. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7199. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7200. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7201. msm_routing_put_audio_mixer),
  7202. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7203. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7204. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7205. msm_routing_put_audio_mixer),
  7206. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7207. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7208. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7209. msm_routing_put_audio_mixer),
  7210. };
  7211. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7212. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7213. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7214. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7215. msm_routing_put_audio_mixer),
  7216. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7217. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7218. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7219. msm_routing_put_audio_mixer),
  7220. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7221. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7222. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7223. msm_routing_put_audio_mixer),
  7224. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7225. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7226. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7227. msm_routing_put_audio_mixer),
  7228. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7229. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7230. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7231. msm_routing_put_audio_mixer),
  7232. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7233. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7234. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7235. msm_routing_put_audio_mixer),
  7236. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7237. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7238. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7239. msm_routing_put_audio_mixer),
  7240. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7241. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7242. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7243. msm_routing_put_audio_mixer),
  7244. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7245. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7246. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7247. msm_routing_put_audio_mixer),
  7248. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7249. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7250. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7251. msm_routing_put_audio_mixer),
  7252. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7253. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7254. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7255. msm_routing_put_audio_mixer),
  7256. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7257. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7258. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7259. msm_routing_put_audio_mixer),
  7260. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7261. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7262. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7263. msm_routing_put_audio_mixer),
  7264. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7265. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7266. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7267. msm_routing_put_audio_mixer),
  7268. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7269. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7270. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7271. msm_routing_put_audio_mixer),
  7272. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7273. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7274. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7275. msm_routing_put_audio_mixer),
  7276. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7277. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7278. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7279. msm_routing_put_audio_mixer),
  7280. };
  7281. /* incall music delivery mixer */
  7282. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7283. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7288. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7292. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7293. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7294. msm_routing_put_audio_mixer),
  7295. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7296. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7297. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7298. msm_routing_put_audio_mixer),
  7299. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7300. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7301. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7302. msm_routing_put_audio_mixer),
  7303. };
  7304. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7305. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7306. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7307. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7308. msm_routing_put_audio_mixer),
  7309. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7310. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7311. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7312. msm_routing_put_audio_mixer),
  7313. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7314. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7315. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7316. msm_routing_put_audio_mixer),
  7317. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7318. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7319. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7320. msm_routing_put_audio_mixer),
  7321. };
  7322. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7323. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7324. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7325. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7326. msm_routing_put_audio_mixer),
  7327. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7328. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7329. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7330. msm_routing_put_audio_mixer),
  7331. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7332. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7333. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7334. msm_routing_put_audio_mixer),
  7335. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7336. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7337. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7338. msm_routing_put_audio_mixer),
  7339. };
  7340. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7341. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7342. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7350. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7358. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7362. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7363. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7364. msm_routing_put_audio_mixer),
  7365. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7366. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7367. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7368. msm_routing_put_audio_mixer),
  7369. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7370. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7371. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7372. msm_routing_put_audio_mixer),
  7373. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7374. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7378. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7379. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7380. msm_routing_put_audio_mixer),
  7381. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7382. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7386. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7390. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7391. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7392. msm_routing_put_audio_mixer),
  7393. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7394. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7395. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7396. msm_routing_put_audio_mixer),
  7397. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7398. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7399. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7400. msm_routing_put_audio_mixer),
  7401. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7402. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7403. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7404. msm_routing_put_audio_mixer),
  7405. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7406. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7407. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7408. msm_routing_put_audio_mixer),
  7409. };
  7410. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7411. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7412. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7413. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7414. msm_routing_put_audio_mixer),
  7415. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7416. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7420. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7424. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7425. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7426. msm_routing_put_audio_mixer),
  7427. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7428. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7429. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7430. msm_routing_put_audio_mixer),
  7431. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7432. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7433. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7434. msm_routing_put_audio_mixer),
  7435. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7436. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7437. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7438. msm_routing_put_audio_mixer),
  7439. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7440. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7441. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7442. msm_routing_put_audio_mixer),
  7443. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7444. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7445. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7446. msm_routing_put_audio_mixer),
  7447. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7448. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7449. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7450. msm_routing_put_audio_mixer),
  7451. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7452. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7456. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7460. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7461. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7462. msm_routing_put_audio_mixer),
  7463. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7464. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7465. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7466. msm_routing_put_audio_mixer),
  7467. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7468. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7469. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7470. msm_routing_put_audio_mixer),
  7471. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7472. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7473. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7474. msm_routing_put_audio_mixer),
  7475. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7476. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7477. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7478. msm_routing_put_audio_mixer),
  7479. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7480. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7481. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7482. msm_routing_put_audio_mixer),
  7483. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7484. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7485. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7486. msm_routing_put_audio_mixer),
  7487. };
  7488. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7489. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7490. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7494. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7495. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7496. msm_routing_put_audio_mixer),
  7497. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7498. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7499. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7500. msm_routing_put_audio_mixer),
  7501. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7502. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7503. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7504. msm_routing_put_audio_mixer),
  7505. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7506. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7507. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7508. msm_routing_put_audio_mixer),
  7509. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7510. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7511. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7512. msm_routing_put_audio_mixer),
  7513. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7514. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7515. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7516. msm_routing_put_audio_mixer),
  7517. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7518. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7519. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7520. msm_routing_put_audio_mixer),
  7521. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7522. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7526. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7527. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7528. msm_routing_put_audio_mixer),
  7529. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7530. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7531. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7532. msm_routing_put_audio_mixer),
  7533. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7534. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7535. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7536. msm_routing_put_audio_mixer),
  7537. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7538. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7539. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7540. msm_routing_put_audio_mixer),
  7541. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7542. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7543. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7544. msm_routing_put_audio_mixer),
  7545. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7546. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7547. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7548. msm_routing_put_audio_mixer),
  7549. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7550. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7551. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7552. msm_routing_put_audio_mixer),
  7553. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7554. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7555. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7556. msm_routing_put_audio_mixer),
  7557. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7558. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7559. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7560. msm_routing_put_audio_mixer),
  7561. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7562. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7563. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7564. msm_routing_put_audio_mixer),
  7565. };
  7566. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7567. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7568. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7569. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7570. msm_routing_put_audio_mixer),
  7571. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7572. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7573. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7574. msm_routing_put_audio_mixer),
  7575. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7576. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7577. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7578. msm_routing_put_audio_mixer),
  7579. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7580. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7581. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7582. msm_routing_put_audio_mixer),
  7583. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7584. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7585. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7586. msm_routing_put_audio_mixer),
  7587. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7588. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7589. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7590. msm_routing_put_audio_mixer),
  7591. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7592. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7593. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7594. msm_routing_put_audio_mixer),
  7595. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7596. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7597. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7598. msm_routing_put_audio_mixer),
  7599. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7600. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7601. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7602. msm_routing_put_audio_mixer),
  7603. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7604. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7605. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7606. msm_routing_put_audio_mixer),
  7607. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7608. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7609. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7610. msm_routing_put_audio_mixer),
  7611. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7612. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7613. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7614. msm_routing_put_audio_mixer),
  7615. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7616. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7617. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7618. msm_routing_put_audio_mixer),
  7619. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7620. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7621. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7622. msm_routing_put_audio_mixer),
  7623. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7624. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7625. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7626. msm_routing_put_audio_mixer),
  7627. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7628. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7629. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7630. msm_routing_put_audio_mixer),
  7631. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7632. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7633. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7634. msm_routing_put_audio_mixer),
  7635. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7636. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7637. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7638. msm_routing_put_audio_mixer),
  7639. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7640. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7641. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7642. msm_routing_put_audio_mixer),
  7643. };
  7644. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7645. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7646. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7647. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7648. msm_routing_put_audio_mixer),
  7649. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7650. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7651. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7652. msm_routing_put_audio_mixer),
  7653. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7654. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7655. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7656. msm_routing_put_audio_mixer),
  7657. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7658. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7659. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7660. msm_routing_put_audio_mixer),
  7661. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7662. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7663. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7664. msm_routing_put_audio_mixer),
  7665. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7666. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7667. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7668. msm_routing_put_audio_mixer),
  7669. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7670. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7671. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7672. msm_routing_put_audio_mixer),
  7673. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7674. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7675. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7676. msm_routing_put_audio_mixer),
  7677. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7678. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7679. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7680. msm_routing_put_audio_mixer),
  7681. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7682. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7683. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7684. msm_routing_put_audio_mixer),
  7685. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7686. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7687. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7688. msm_routing_put_audio_mixer),
  7689. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7690. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7691. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7692. msm_routing_put_audio_mixer),
  7693. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7694. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7695. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7696. msm_routing_put_audio_mixer),
  7697. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7698. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7699. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7700. msm_routing_put_audio_mixer),
  7701. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7702. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7703. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7704. msm_routing_put_audio_mixer),
  7705. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7706. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7707. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7708. msm_routing_put_audio_mixer),
  7709. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7710. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7711. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7712. msm_routing_put_audio_mixer),
  7713. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7714. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7715. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7716. msm_routing_put_audio_mixer),
  7717. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7718. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7719. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7720. msm_routing_put_audio_mixer),
  7721. };
  7722. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7723. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7724. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7725. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7726. msm_routing_put_audio_mixer),
  7727. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7728. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7729. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7730. msm_routing_put_audio_mixer),
  7731. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7732. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7733. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7734. msm_routing_put_audio_mixer),
  7735. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7736. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7737. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7738. msm_routing_put_audio_mixer),
  7739. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7740. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7741. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7742. msm_routing_put_audio_mixer),
  7743. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7744. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7745. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7746. msm_routing_put_audio_mixer),
  7747. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7748. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7749. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7750. msm_routing_put_audio_mixer),
  7751. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7752. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7753. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7754. msm_routing_put_audio_mixer),
  7755. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7756. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7757. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7758. msm_routing_put_audio_mixer),
  7759. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7760. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7761. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7762. msm_routing_put_audio_mixer),
  7763. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7764. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7765. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7766. msm_routing_put_audio_mixer),
  7767. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7768. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7769. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7770. msm_routing_put_audio_mixer),
  7771. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7772. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7773. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7774. msm_routing_put_audio_mixer),
  7775. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7776. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7777. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7778. msm_routing_put_audio_mixer),
  7779. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7780. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7781. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7782. msm_routing_put_audio_mixer),
  7783. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7784. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7785. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7786. msm_routing_put_audio_mixer),
  7787. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7788. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7789. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7790. msm_routing_put_audio_mixer),
  7791. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7792. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7793. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7794. msm_routing_put_audio_mixer),
  7795. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7796. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7797. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7798. msm_routing_put_audio_mixer),
  7799. };
  7800. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7801. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7802. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7803. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7804. msm_routing_put_audio_mixer),
  7805. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7806. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7807. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7808. msm_routing_put_audio_mixer),
  7809. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7810. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7811. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7812. msm_routing_put_audio_mixer),
  7813. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7814. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7815. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7816. msm_routing_put_audio_mixer),
  7817. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7818. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7819. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7820. msm_routing_put_audio_mixer),
  7821. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7822. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7823. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7824. msm_routing_put_audio_mixer),
  7825. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7826. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7827. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7828. msm_routing_put_audio_mixer),
  7829. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7830. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7831. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7832. msm_routing_put_audio_mixer),
  7833. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7834. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7835. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7836. msm_routing_put_audio_mixer),
  7837. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7838. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7839. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7840. msm_routing_put_audio_mixer),
  7841. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7842. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7843. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7844. msm_routing_put_audio_mixer),
  7845. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7846. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7847. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7848. msm_routing_put_audio_mixer),
  7849. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7850. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7851. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7852. msm_routing_put_audio_mixer),
  7853. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7854. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7855. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7856. msm_routing_put_audio_mixer),
  7857. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7858. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7859. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7860. msm_routing_put_audio_mixer),
  7861. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7862. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7863. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7864. msm_routing_put_audio_mixer),
  7865. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7866. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7867. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7868. msm_routing_put_audio_mixer),
  7869. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7870. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7871. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7872. msm_routing_put_audio_mixer),
  7873. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7874. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7875. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7876. msm_routing_put_audio_mixer),
  7877. };
  7878. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  7879. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7880. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7881. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7882. msm_routing_put_audio_mixer),
  7883. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7884. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7885. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7886. msm_routing_put_audio_mixer),
  7887. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7888. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7889. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7890. msm_routing_put_audio_mixer),
  7891. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7892. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7893. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7894. msm_routing_put_audio_mixer),
  7895. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7896. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7897. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7898. msm_routing_put_audio_mixer),
  7899. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7900. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7901. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7902. msm_routing_put_audio_mixer),
  7903. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7904. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7905. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7906. msm_routing_put_audio_mixer),
  7907. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7908. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7909. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7910. msm_routing_put_audio_mixer),
  7911. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7912. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7913. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7914. msm_routing_put_audio_mixer),
  7915. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7916. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7917. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7918. msm_routing_put_audio_mixer),
  7919. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7920. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7921. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7922. msm_routing_put_audio_mixer),
  7923. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7924. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7925. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7926. msm_routing_put_audio_mixer),
  7927. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7928. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7929. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7930. msm_routing_put_audio_mixer),
  7931. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7932. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7933. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7934. msm_routing_put_audio_mixer),
  7935. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7936. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7937. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7938. msm_routing_put_audio_mixer),
  7939. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7940. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7941. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7942. msm_routing_put_audio_mixer),
  7943. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7944. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7945. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7946. msm_routing_put_audio_mixer),
  7947. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7948. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7949. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7950. msm_routing_put_audio_mixer),
  7951. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7952. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7953. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7954. msm_routing_put_audio_mixer),
  7955. };
  7956. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  7957. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7958. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7959. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7960. msm_routing_put_audio_mixer),
  7961. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7962. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7963. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7964. msm_routing_put_audio_mixer),
  7965. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7966. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7967. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7968. msm_routing_put_audio_mixer),
  7969. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7970. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7971. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7972. msm_routing_put_audio_mixer),
  7973. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7974. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7975. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7976. msm_routing_put_audio_mixer),
  7977. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7978. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7979. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7980. msm_routing_put_audio_mixer),
  7981. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7982. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7983. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7984. msm_routing_put_audio_mixer),
  7985. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7986. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7987. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7988. msm_routing_put_audio_mixer),
  7989. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7990. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7991. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7992. msm_routing_put_audio_mixer),
  7993. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7994. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7995. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7996. msm_routing_put_audio_mixer),
  7997. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7998. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7999. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8000. msm_routing_put_audio_mixer),
  8001. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8002. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8003. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8004. msm_routing_put_audio_mixer),
  8005. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8006. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8007. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8008. msm_routing_put_audio_mixer),
  8009. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8010. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8011. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8012. msm_routing_put_audio_mixer),
  8013. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8014. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8015. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8016. msm_routing_put_audio_mixer),
  8017. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8018. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8019. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8020. msm_routing_put_audio_mixer),
  8021. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8022. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8023. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8024. msm_routing_put_audio_mixer),
  8025. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8026. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8027. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8028. msm_routing_put_audio_mixer),
  8029. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8030. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8031. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8032. msm_routing_put_audio_mixer),
  8033. };
  8034. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  8035. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8036. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8037. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8038. msm_routing_put_audio_mixer),
  8039. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8040. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8041. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8042. msm_routing_put_audio_mixer),
  8043. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8044. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8045. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8046. msm_routing_put_audio_mixer),
  8047. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8048. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8049. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8050. msm_routing_put_audio_mixer),
  8051. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8052. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8053. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8054. msm_routing_put_audio_mixer),
  8055. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8056. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8057. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8058. msm_routing_put_audio_mixer),
  8059. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8060. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8061. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8062. msm_routing_put_audio_mixer),
  8063. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8064. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8065. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8066. msm_routing_put_audio_mixer),
  8067. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8068. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8069. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8070. msm_routing_put_audio_mixer),
  8071. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8072. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8073. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8074. msm_routing_put_audio_mixer),
  8075. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8076. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8077. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8078. msm_routing_put_audio_mixer),
  8079. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8080. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8081. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8082. msm_routing_put_audio_mixer),
  8083. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8084. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8085. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8086. msm_routing_put_audio_mixer),
  8087. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8088. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8089. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8090. msm_routing_put_audio_mixer),
  8091. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8092. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8093. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8094. msm_routing_put_audio_mixer),
  8095. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8096. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8097. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8098. msm_routing_put_audio_mixer),
  8099. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8100. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8101. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8102. msm_routing_put_audio_mixer),
  8103. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8104. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8105. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8106. msm_routing_put_audio_mixer),
  8107. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8108. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8109. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8110. msm_routing_put_audio_mixer),
  8111. };
  8112. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  8113. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8114. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8115. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8116. msm_routing_put_audio_mixer),
  8117. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8118. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8119. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8120. msm_routing_put_audio_mixer),
  8121. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8122. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8123. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8124. msm_routing_put_audio_mixer),
  8125. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8126. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8127. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8128. msm_routing_put_audio_mixer),
  8129. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8130. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8131. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8132. msm_routing_put_audio_mixer),
  8133. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8150. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8151. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8152. msm_routing_put_audio_mixer),
  8153. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8154. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8155. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8156. msm_routing_put_audio_mixer),
  8157. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8158. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8159. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8160. msm_routing_put_audio_mixer),
  8161. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8162. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8163. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8164. msm_routing_put_audio_mixer),
  8165. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8166. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8167. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8168. msm_routing_put_audio_mixer),
  8169. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8170. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8171. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8172. msm_routing_put_audio_mixer),
  8173. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8174. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8175. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8176. msm_routing_put_audio_mixer),
  8177. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8178. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8179. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8180. msm_routing_put_audio_mixer),
  8181. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8182. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8183. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8184. msm_routing_put_audio_mixer),
  8185. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8186. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8187. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8188. msm_routing_put_audio_mixer),
  8189. };
  8190. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  8191. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8192. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8193. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8194. msm_routing_put_audio_mixer),
  8195. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8196. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8197. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8198. msm_routing_put_audio_mixer),
  8199. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8200. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8201. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8202. msm_routing_put_audio_mixer),
  8203. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8204. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8205. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8206. msm_routing_put_audio_mixer),
  8207. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8208. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8209. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8210. msm_routing_put_audio_mixer),
  8211. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8212. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8213. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8214. msm_routing_put_audio_mixer),
  8215. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8216. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8217. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8218. msm_routing_put_audio_mixer),
  8219. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8220. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8221. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8222. msm_routing_put_audio_mixer),
  8223. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8224. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8225. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8226. msm_routing_put_audio_mixer),
  8227. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8228. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8229. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8230. msm_routing_put_audio_mixer),
  8231. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8232. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8233. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8234. msm_routing_put_audio_mixer),
  8235. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8236. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8237. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8238. msm_routing_put_audio_mixer),
  8239. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8240. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8241. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8242. msm_routing_put_audio_mixer),
  8243. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8244. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8245. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8246. msm_routing_put_audio_mixer),
  8247. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8248. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8249. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8250. msm_routing_put_audio_mixer),
  8251. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8252. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8253. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8254. msm_routing_put_audio_mixer),
  8255. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8256. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8257. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8258. msm_routing_put_audio_mixer),
  8259. };
  8260. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  8261. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8262. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8263. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8264. msm_routing_put_audio_mixer),
  8265. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8266. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8267. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8268. msm_routing_put_audio_mixer),
  8269. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8270. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8271. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8272. msm_routing_put_audio_mixer),
  8273. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8274. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8275. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8276. msm_routing_put_audio_mixer),
  8277. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8278. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8279. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8280. msm_routing_put_audio_mixer),
  8281. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8282. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8283. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8284. msm_routing_put_audio_mixer),
  8285. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8286. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8287. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8288. msm_routing_put_audio_mixer),
  8289. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8290. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8291. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8292. msm_routing_put_audio_mixer),
  8293. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8294. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8295. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8296. msm_routing_put_audio_mixer),
  8297. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8298. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8299. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8300. msm_routing_put_audio_mixer),
  8301. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8302. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8303. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8304. msm_routing_put_audio_mixer),
  8305. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8306. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8307. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8308. msm_routing_put_audio_mixer),
  8309. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8310. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8311. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8312. msm_routing_put_audio_mixer),
  8313. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8314. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8315. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8316. msm_routing_put_audio_mixer),
  8317. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8318. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8319. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8320. msm_routing_put_audio_mixer),
  8321. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8322. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8323. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8324. msm_routing_put_audio_mixer),
  8325. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8326. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8327. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8328. msm_routing_put_audio_mixer),
  8329. };
  8330. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8331. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8332. MSM_BACKEND_DAI_USB_RX,
  8333. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8334. msm_routing_put_audio_mixer),
  8335. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8336. MSM_BACKEND_DAI_USB_RX,
  8337. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8338. msm_routing_put_audio_mixer),
  8339. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8340. MSM_BACKEND_DAI_USB_RX,
  8341. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8342. msm_routing_put_audio_mixer),
  8343. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8344. MSM_BACKEND_DAI_USB_RX,
  8345. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8346. msm_routing_put_audio_mixer),
  8347. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8348. MSM_BACKEND_DAI_USB_RX,
  8349. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8350. msm_routing_put_audio_mixer),
  8351. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8352. MSM_BACKEND_DAI_USB_RX,
  8353. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8354. msm_routing_put_audio_mixer),
  8355. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8356. MSM_BACKEND_DAI_USB_RX,
  8357. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8358. msm_routing_put_audio_mixer),
  8359. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8360. MSM_BACKEND_DAI_USB_RX,
  8361. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8362. msm_routing_put_audio_mixer),
  8363. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8364. MSM_BACKEND_DAI_USB_RX,
  8365. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8366. msm_routing_put_audio_mixer),
  8367. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8368. MSM_BACKEND_DAI_USB_RX,
  8369. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8370. msm_routing_put_audio_mixer),
  8371. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8372. MSM_BACKEND_DAI_USB_RX,
  8373. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8374. msm_routing_put_audio_mixer),
  8375. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8376. MSM_BACKEND_DAI_USB_RX,
  8377. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8378. msm_routing_put_audio_mixer),
  8379. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8380. MSM_BACKEND_DAI_USB_RX,
  8381. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8382. msm_routing_put_audio_mixer),
  8383. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8384. MSM_BACKEND_DAI_USB_RX,
  8385. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8386. msm_routing_put_audio_mixer),
  8387. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8388. MSM_BACKEND_DAI_USB_RX,
  8389. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8390. msm_routing_put_audio_mixer),
  8391. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8392. MSM_BACKEND_DAI_USB_RX,
  8393. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8394. msm_routing_put_audio_mixer),
  8395. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8396. MSM_BACKEND_DAI_USB_RX,
  8397. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8398. msm_routing_put_audio_mixer),
  8399. };
  8400. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  8401. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8402. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8403. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8404. msm_routing_put_audio_mixer),
  8405. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8406. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8407. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8408. msm_routing_put_audio_mixer),
  8409. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8410. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8411. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8412. msm_routing_put_audio_mixer),
  8413. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8414. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8415. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8416. msm_routing_put_audio_mixer),
  8417. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8418. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8419. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8420. msm_routing_put_audio_mixer),
  8421. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8422. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8423. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8424. msm_routing_put_audio_mixer),
  8425. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8426. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8427. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8428. msm_routing_put_audio_mixer),
  8429. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8430. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8431. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8432. msm_routing_put_audio_mixer),
  8433. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8434. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8435. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8436. msm_routing_put_audio_mixer),
  8437. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8438. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8439. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8440. msm_routing_put_audio_mixer),
  8441. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8442. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8443. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8444. msm_routing_put_audio_mixer),
  8445. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8446. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8447. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8448. msm_routing_put_audio_mixer),
  8449. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8450. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8451. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8452. msm_routing_put_audio_mixer),
  8453. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8454. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8455. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8456. msm_routing_put_audio_mixer),
  8457. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8458. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8459. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8460. msm_routing_put_audio_mixer),
  8461. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8462. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8463. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8464. msm_routing_put_audio_mixer),
  8465. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8466. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8467. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8468. msm_routing_put_audio_mixer),
  8469. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8470. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8471. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8472. msm_routing_put_audio_mixer),
  8473. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8474. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8475. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8476. msm_routing_put_audio_mixer),
  8477. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8478. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8479. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8480. msm_routing_put_audio_mixer),
  8481. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8482. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8483. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8484. msm_routing_put_audio_mixer),
  8485. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8486. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8487. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8488. msm_routing_put_audio_mixer),
  8489. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8490. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8491. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8492. msm_routing_put_audio_mixer),
  8493. };
  8494. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8495. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8496. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8497. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8498. msm_routing_put_audio_mixer),
  8499. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8500. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8501. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8502. msm_routing_put_audio_mixer),
  8503. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8504. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8505. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8506. msm_routing_put_audio_mixer),
  8507. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8508. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8509. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8510. msm_routing_put_audio_mixer),
  8511. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8512. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8513. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8514. msm_routing_put_audio_mixer),
  8515. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8516. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8517. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8518. msm_routing_put_audio_mixer),
  8519. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8520. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8521. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8522. msm_routing_put_audio_mixer),
  8523. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8524. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8525. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8526. msm_routing_put_audio_mixer),
  8527. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8528. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8529. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8530. msm_routing_put_audio_mixer),
  8531. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8532. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8533. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8534. msm_routing_put_audio_mixer),
  8535. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8536. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8537. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8538. msm_routing_put_audio_mixer),
  8539. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8540. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8541. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8542. msm_routing_put_audio_mixer),
  8543. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8544. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8545. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8546. msm_routing_put_audio_mixer),
  8547. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8548. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8549. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8550. msm_routing_put_audio_mixer),
  8551. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8552. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8553. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8554. msm_routing_put_audio_mixer),
  8555. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8556. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8557. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8558. msm_routing_put_audio_mixer),
  8559. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8560. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8561. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8562. msm_routing_put_audio_mixer),
  8563. };
  8564. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8565. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8566. MSM_BACKEND_DAI_INT_FM_RX,
  8567. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8568. msm_routing_put_audio_mixer),
  8569. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8570. MSM_BACKEND_DAI_INT_FM_RX,
  8571. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8572. msm_routing_put_audio_mixer),
  8573. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8574. MSM_BACKEND_DAI_INT_FM_RX,
  8575. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8576. msm_routing_put_audio_mixer),
  8577. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8578. MSM_BACKEND_DAI_INT_FM_RX,
  8579. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8580. msm_routing_put_audio_mixer),
  8581. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8582. MSM_BACKEND_DAI_INT_FM_RX,
  8583. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8584. msm_routing_put_audio_mixer),
  8585. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8586. MSM_BACKEND_DAI_INT_FM_RX,
  8587. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8588. msm_routing_put_audio_mixer),
  8589. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8590. MSM_BACKEND_DAI_INT_FM_RX,
  8591. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8592. msm_routing_put_audio_mixer),
  8593. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8594. MSM_BACKEND_DAI_INT_FM_RX,
  8595. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8596. msm_routing_put_audio_mixer),
  8597. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8598. MSM_BACKEND_DAI_INT_FM_RX,
  8599. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8600. msm_routing_put_audio_mixer),
  8601. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8602. MSM_BACKEND_DAI_INT_FM_RX,
  8603. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8604. msm_routing_put_audio_mixer),
  8605. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8606. MSM_BACKEND_DAI_INT_FM_RX,
  8607. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8608. msm_routing_put_audio_mixer),
  8609. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8610. MSM_BACKEND_DAI_INT_FM_RX,
  8611. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8612. msm_routing_put_audio_mixer),
  8613. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8614. MSM_BACKEND_DAI_INT_FM_RX,
  8615. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8616. msm_routing_put_audio_mixer),
  8617. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8618. MSM_BACKEND_DAI_INT_FM_RX,
  8619. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8620. msm_routing_put_audio_mixer),
  8621. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8622. MSM_BACKEND_DAI_INT_FM_RX,
  8623. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8624. msm_routing_put_audio_mixer),
  8625. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8626. MSM_BACKEND_DAI_INT_FM_RX,
  8627. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8628. msm_routing_put_audio_mixer),
  8629. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8630. MSM_BACKEND_DAI_INT_FM_RX,
  8631. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8632. msm_routing_put_audio_mixer),
  8633. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8634. MSM_BACKEND_DAI_INT_FM_RX,
  8635. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8636. msm_routing_put_audio_mixer),
  8637. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8638. MSM_BACKEND_DAI_INT_FM_RX,
  8639. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8640. msm_routing_put_audio_mixer),
  8641. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8642. MSM_BACKEND_DAI_INT_FM_RX,
  8643. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8644. msm_routing_put_audio_mixer),
  8645. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8646. MSM_BACKEND_DAI_INT_FM_RX,
  8647. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8648. msm_routing_put_audio_mixer),
  8649. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8650. MSM_BACKEND_DAI_INT_FM_RX,
  8651. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8652. msm_routing_put_audio_mixer),
  8653. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8654. MSM_BACKEND_DAI_INT_FM_RX,
  8655. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8656. msm_routing_put_audio_mixer),
  8657. };
  8658. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8659. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8660. MSM_BACKEND_DAI_AFE_PCM_RX,
  8661. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8662. msm_routing_put_audio_mixer),
  8663. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8664. MSM_BACKEND_DAI_AFE_PCM_RX,
  8665. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8666. msm_routing_put_audio_mixer),
  8667. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8668. MSM_BACKEND_DAI_AFE_PCM_RX,
  8669. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8670. msm_routing_put_audio_mixer),
  8671. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_AFE_PCM_RX,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_AFE_PCM_RX,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8680. MSM_BACKEND_DAI_AFE_PCM_RX,
  8681. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8682. msm_routing_put_audio_mixer),
  8683. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8684. MSM_BACKEND_DAI_AFE_PCM_RX,
  8685. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8686. msm_routing_put_audio_mixer),
  8687. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8688. MSM_BACKEND_DAI_AFE_PCM_RX,
  8689. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8690. msm_routing_put_audio_mixer),
  8691. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8692. MSM_BACKEND_DAI_AFE_PCM_RX,
  8693. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8694. msm_routing_put_audio_mixer),
  8695. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8696. MSM_BACKEND_DAI_AFE_PCM_RX,
  8697. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8698. msm_routing_put_audio_mixer),
  8699. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8700. MSM_BACKEND_DAI_AFE_PCM_RX,
  8701. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8702. msm_routing_put_audio_mixer),
  8703. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8704. MSM_BACKEND_DAI_AFE_PCM_RX,
  8705. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8706. msm_routing_put_audio_mixer),
  8707. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8708. MSM_BACKEND_DAI_AFE_PCM_RX,
  8709. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8710. msm_routing_put_audio_mixer),
  8711. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8712. MSM_BACKEND_DAI_AFE_PCM_RX,
  8713. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8714. msm_routing_put_audio_mixer),
  8715. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8716. MSM_BACKEND_DAI_AFE_PCM_RX,
  8717. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8718. msm_routing_put_audio_mixer),
  8719. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8720. MSM_BACKEND_DAI_AFE_PCM_RX,
  8721. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8722. msm_routing_put_audio_mixer),
  8723. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8724. MSM_BACKEND_DAI_AFE_PCM_RX,
  8725. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8726. msm_routing_put_audio_mixer),
  8727. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8728. MSM_BACKEND_DAI_AFE_PCM_RX,
  8729. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8730. msm_routing_put_audio_mixer),
  8731. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8732. MSM_BACKEND_DAI_AFE_PCM_RX,
  8733. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8734. msm_routing_put_audio_mixer),
  8735. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8736. MSM_BACKEND_DAI_AFE_PCM_RX,
  8737. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8738. msm_routing_put_audio_mixer),
  8739. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8740. MSM_BACKEND_DAI_AFE_PCM_RX,
  8741. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8742. msm_routing_put_audio_mixer),
  8743. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8744. MSM_BACKEND_DAI_AFE_PCM_RX,
  8745. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8746. msm_routing_put_audio_mixer),
  8747. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8748. MSM_BACKEND_DAI_AFE_PCM_RX,
  8749. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8750. msm_routing_put_audio_mixer),
  8751. };
  8752. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8753. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8754. MSM_BACKEND_DAI_AUXPCM_RX,
  8755. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8756. msm_routing_put_audio_mixer),
  8757. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8758. MSM_BACKEND_DAI_AUXPCM_RX,
  8759. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8760. msm_routing_put_audio_mixer),
  8761. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8762. MSM_BACKEND_DAI_AUXPCM_RX,
  8763. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8764. msm_routing_put_audio_mixer),
  8765. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8766. MSM_BACKEND_DAI_AUXPCM_RX,
  8767. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8768. msm_routing_put_audio_mixer),
  8769. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8770. MSM_BACKEND_DAI_AUXPCM_RX,
  8771. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8772. msm_routing_put_audio_mixer),
  8773. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8774. MSM_BACKEND_DAI_AUXPCM_RX,
  8775. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8776. msm_routing_put_audio_mixer),
  8777. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8778. MSM_BACKEND_DAI_AUXPCM_RX,
  8779. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8780. msm_routing_put_audio_mixer),
  8781. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8782. MSM_BACKEND_DAI_AUXPCM_RX,
  8783. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8784. msm_routing_put_audio_mixer),
  8785. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8786. MSM_BACKEND_DAI_AUXPCM_RX,
  8787. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8788. msm_routing_put_audio_mixer),
  8789. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8790. MSM_BACKEND_DAI_AUXPCM_RX,
  8791. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8792. msm_routing_put_audio_mixer),
  8793. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8794. MSM_BACKEND_DAI_AUXPCM_RX,
  8795. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8796. msm_routing_put_audio_mixer),
  8797. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8798. MSM_BACKEND_DAI_AUXPCM_RX,
  8799. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8800. msm_routing_put_audio_mixer),
  8801. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8802. MSM_BACKEND_DAI_AUXPCM_RX,
  8803. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8804. msm_routing_put_audio_mixer),
  8805. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8806. MSM_BACKEND_DAI_AUXPCM_RX,
  8807. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8808. msm_routing_put_audio_mixer),
  8809. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8810. MSM_BACKEND_DAI_AUXPCM_RX,
  8811. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8812. msm_routing_put_audio_mixer),
  8813. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8814. MSM_BACKEND_DAI_AUXPCM_RX,
  8815. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8816. msm_routing_put_audio_mixer),
  8817. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8818. MSM_BACKEND_DAI_AUXPCM_RX,
  8819. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8820. msm_routing_put_audio_mixer),
  8821. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8822. MSM_BACKEND_DAI_AUXPCM_RX,
  8823. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8824. msm_routing_put_audio_mixer),
  8825. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8826. MSM_BACKEND_DAI_AUXPCM_RX,
  8827. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8828. msm_routing_put_audio_mixer),
  8829. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8830. MSM_BACKEND_DAI_AUXPCM_RX,
  8831. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8832. msm_routing_put_audio_mixer),
  8833. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8834. MSM_BACKEND_DAI_AUXPCM_RX,
  8835. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8836. msm_routing_put_audio_mixer),
  8837. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8838. MSM_BACKEND_DAI_AUXPCM_RX,
  8839. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8840. msm_routing_put_audio_mixer),
  8841. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8842. MSM_BACKEND_DAI_AUXPCM_RX,
  8843. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8844. msm_routing_put_audio_mixer),
  8845. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8846. MSM_BACKEND_DAI_AUXPCM_RX,
  8847. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8848. msm_routing_put_audio_mixer),
  8849. };
  8850. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  8851. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8852. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8853. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8854. msm_routing_put_audio_mixer),
  8855. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8856. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8857. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8858. msm_routing_put_audio_mixer),
  8859. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8860. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8861. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8862. msm_routing_put_audio_mixer),
  8863. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8864. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8865. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8866. msm_routing_put_audio_mixer),
  8867. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8868. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8869. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8870. msm_routing_put_audio_mixer),
  8871. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8872. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8873. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8874. msm_routing_put_audio_mixer),
  8875. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8876. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8877. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8878. msm_routing_put_audio_mixer),
  8879. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8880. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8881. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8882. msm_routing_put_audio_mixer),
  8883. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8884. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8885. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8886. msm_routing_put_audio_mixer),
  8887. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8888. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8889. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8890. msm_routing_put_audio_mixer),
  8891. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8892. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8893. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8894. msm_routing_put_audio_mixer),
  8895. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8896. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8897. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8898. msm_routing_put_audio_mixer),
  8899. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8900. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8901. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8902. msm_routing_put_audio_mixer),
  8903. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8904. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8905. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8906. msm_routing_put_audio_mixer),
  8907. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8908. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8909. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8910. msm_routing_put_audio_mixer),
  8911. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8912. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8913. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8914. msm_routing_put_audio_mixer),
  8915. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8916. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8917. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8918. msm_routing_put_audio_mixer),
  8919. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8920. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8921. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8922. msm_routing_put_audio_mixer),
  8923. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8924. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8925. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8926. msm_routing_put_audio_mixer),
  8927. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8928. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8929. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8930. msm_routing_put_audio_mixer),
  8931. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8932. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8933. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8934. msm_routing_put_audio_mixer),
  8935. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8936. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8937. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8938. msm_routing_put_audio_mixer),
  8939. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8940. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8941. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8942. msm_routing_put_audio_mixer),
  8943. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8944. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8945. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8946. msm_routing_put_audio_mixer),
  8947. };
  8948. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  8949. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8950. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8951. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8952. msm_routing_put_audio_mixer),
  8953. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8954. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8955. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8956. msm_routing_put_audio_mixer),
  8957. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8958. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8959. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8960. msm_routing_put_audio_mixer),
  8961. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8962. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8963. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8964. msm_routing_put_audio_mixer),
  8965. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8966. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8967. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8968. msm_routing_put_audio_mixer),
  8969. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8970. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8971. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8972. msm_routing_put_audio_mixer),
  8973. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8974. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8975. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8976. msm_routing_put_audio_mixer),
  8977. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8978. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8979. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8980. msm_routing_put_audio_mixer),
  8981. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8982. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8983. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8984. msm_routing_put_audio_mixer),
  8985. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8986. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8987. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8988. msm_routing_put_audio_mixer),
  8989. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8990. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8991. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8992. msm_routing_put_audio_mixer),
  8993. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8994. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8995. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8996. msm_routing_put_audio_mixer),
  8997. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9002. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9003. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9004. msm_routing_put_audio_mixer),
  9005. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9006. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9007. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9008. msm_routing_put_audio_mixer),
  9009. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9010. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9011. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9012. msm_routing_put_audio_mixer),
  9013. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9014. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9015. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9016. msm_routing_put_audio_mixer),
  9017. };
  9018. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  9019. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9020. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9021. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9022. msm_routing_put_audio_mixer),
  9023. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9024. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9025. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9026. msm_routing_put_audio_mixer),
  9027. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9028. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9029. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9030. msm_routing_put_audio_mixer),
  9031. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9032. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9033. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9034. msm_routing_put_audio_mixer),
  9035. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9036. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9037. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9038. msm_routing_put_audio_mixer),
  9039. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9040. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9041. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9042. msm_routing_put_audio_mixer),
  9043. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9044. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9045. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9046. msm_routing_put_audio_mixer),
  9047. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9048. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9049. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9050. msm_routing_put_audio_mixer),
  9051. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9052. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9053. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9054. msm_routing_put_audio_mixer),
  9055. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9056. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9057. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9058. msm_routing_put_audio_mixer),
  9059. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9060. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9061. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9062. msm_routing_put_audio_mixer),
  9063. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9064. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9065. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9066. msm_routing_put_audio_mixer),
  9067. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9068. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9069. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9070. msm_routing_put_audio_mixer),
  9071. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9072. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9073. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9074. msm_routing_put_audio_mixer),
  9075. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9076. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9077. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9078. msm_routing_put_audio_mixer),
  9079. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9080. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9081. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9082. msm_routing_put_audio_mixer),
  9083. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9084. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9085. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9086. msm_routing_put_audio_mixer),
  9087. };
  9088. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  9089. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9090. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9091. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9092. msm_routing_put_audio_mixer),
  9093. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9094. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9095. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9096. msm_routing_put_audio_mixer),
  9097. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9098. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9099. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9100. msm_routing_put_audio_mixer),
  9101. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9102. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9103. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9104. msm_routing_put_audio_mixer),
  9105. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9106. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9107. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9108. msm_routing_put_audio_mixer),
  9109. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9110. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9111. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9112. msm_routing_put_audio_mixer),
  9113. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9114. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9115. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9116. msm_routing_put_audio_mixer),
  9117. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9118. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9119. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9120. msm_routing_put_audio_mixer),
  9121. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9122. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9123. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9124. msm_routing_put_audio_mixer),
  9125. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9126. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9127. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9128. msm_routing_put_audio_mixer),
  9129. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9130. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9131. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9132. msm_routing_put_audio_mixer),
  9133. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9134. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9135. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9136. msm_routing_put_audio_mixer),
  9137. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9138. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9139. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9140. msm_routing_put_audio_mixer),
  9141. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9142. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9143. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9144. msm_routing_put_audio_mixer),
  9145. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9146. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9147. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9148. msm_routing_put_audio_mixer),
  9149. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9150. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9151. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9152. msm_routing_put_audio_mixer),
  9153. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9154. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9155. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9156. msm_routing_put_audio_mixer),
  9157. };
  9158. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  9159. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9160. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9161. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9162. msm_routing_put_audio_mixer),
  9163. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9164. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9165. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9166. msm_routing_put_audio_mixer),
  9167. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9168. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9169. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9170. msm_routing_put_audio_mixer),
  9171. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9172. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9173. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9174. msm_routing_put_audio_mixer),
  9175. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9176. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9177. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9178. msm_routing_put_audio_mixer),
  9179. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9180. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9181. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9182. msm_routing_put_audio_mixer),
  9183. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9184. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9185. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9186. msm_routing_put_audio_mixer),
  9187. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9188. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9189. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9190. msm_routing_put_audio_mixer),
  9191. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9192. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9193. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9194. msm_routing_put_audio_mixer),
  9195. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9196. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9197. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9198. msm_routing_put_audio_mixer),
  9199. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9200. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9201. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9202. msm_routing_put_audio_mixer),
  9203. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9204. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9205. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9206. msm_routing_put_audio_mixer),
  9207. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9208. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9209. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9210. msm_routing_put_audio_mixer),
  9211. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9212. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9213. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9214. msm_routing_put_audio_mixer),
  9215. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9216. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9217. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9218. msm_routing_put_audio_mixer),
  9219. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9220. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9221. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9222. msm_routing_put_audio_mixer),
  9223. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9224. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9225. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9226. msm_routing_put_audio_mixer),
  9227. };
  9228. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  9229. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9230. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9231. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9232. msm_routing_put_audio_mixer),
  9233. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9234. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9235. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9236. msm_routing_put_audio_mixer),
  9237. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9238. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9239. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9240. msm_routing_put_audio_mixer),
  9241. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9242. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9243. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9244. msm_routing_put_audio_mixer),
  9245. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9246. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9247. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9248. msm_routing_put_audio_mixer),
  9249. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9250. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9251. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9252. msm_routing_put_audio_mixer),
  9253. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9254. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9255. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9256. msm_routing_put_audio_mixer),
  9257. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9258. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9259. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9260. msm_routing_put_audio_mixer),
  9261. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9270. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9271. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9272. msm_routing_put_audio_mixer),
  9273. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9274. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9275. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9276. msm_routing_put_audio_mixer),
  9277. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9278. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9279. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9280. msm_routing_put_audio_mixer),
  9281. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9282. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9283. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9284. msm_routing_put_audio_mixer),
  9285. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9286. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9287. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9288. msm_routing_put_audio_mixer),
  9289. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9290. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9291. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9292. msm_routing_put_audio_mixer),
  9293. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9294. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9295. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9296. msm_routing_put_audio_mixer),
  9297. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9302. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9303. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9304. msm_routing_put_audio_mixer),
  9305. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9306. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9307. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9308. msm_routing_put_audio_mixer),
  9309. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. };
  9314. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9315. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9316. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9317. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9318. msm_routing_put_audio_mixer),
  9319. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9320. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9321. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9322. msm_routing_put_audio_mixer),
  9323. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9324. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9325. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9326. msm_routing_put_audio_mixer),
  9327. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9328. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9329. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9330. msm_routing_put_audio_mixer),
  9331. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9332. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9333. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9334. msm_routing_put_audio_mixer),
  9335. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9336. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9337. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9338. msm_routing_put_audio_mixer),
  9339. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9340. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9341. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9342. msm_routing_put_audio_mixer),
  9343. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9344. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9345. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9346. msm_routing_put_audio_mixer),
  9347. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9348. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9349. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9350. msm_routing_put_audio_mixer),
  9351. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9352. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9353. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9354. msm_routing_put_audio_mixer),
  9355. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9356. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9357. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9358. msm_routing_put_audio_mixer),
  9359. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9360. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9361. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9362. msm_routing_put_audio_mixer),
  9363. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9364. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9365. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9366. msm_routing_put_audio_mixer),
  9367. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9368. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9369. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9370. msm_routing_put_audio_mixer),
  9371. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9372. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9373. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9374. msm_routing_put_audio_mixer),
  9375. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9376. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9377. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9378. msm_routing_put_audio_mixer),
  9379. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9384. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9385. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9386. msm_routing_put_audio_mixer),
  9387. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9388. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9389. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9390. msm_routing_put_audio_mixer),
  9391. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9392. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9393. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9394. msm_routing_put_audio_mixer),
  9395. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9396. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9397. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9398. msm_routing_put_audio_mixer),
  9399. };
  9400. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  9401. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9402. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9403. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9404. msm_routing_put_audio_mixer),
  9405. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9406. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9407. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9408. msm_routing_put_audio_mixer),
  9409. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9410. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9411. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9412. msm_routing_put_audio_mixer),
  9413. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9414. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9415. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9416. msm_routing_put_audio_mixer),
  9417. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9418. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9419. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9420. msm_routing_put_audio_mixer),
  9421. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9422. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9423. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9424. msm_routing_put_audio_mixer),
  9425. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9426. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9427. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9428. msm_routing_put_audio_mixer),
  9429. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9431. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9432. msm_routing_put_audio_mixer),
  9433. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9436. msm_routing_put_audio_mixer),
  9437. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9439. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9443. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9444. msm_routing_put_audio_mixer),
  9445. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9446. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9447. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9448. msm_routing_put_audio_mixer),
  9449. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9450. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9451. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9452. msm_routing_put_audio_mixer),
  9453. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9454. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9455. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9456. msm_routing_put_audio_mixer),
  9457. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9458. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9459. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9460. msm_routing_put_audio_mixer),
  9461. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9462. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9463. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9464. msm_routing_put_audio_mixer),
  9465. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9466. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9467. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9468. msm_routing_put_audio_mixer),
  9469. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9470. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9471. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9472. msm_routing_put_audio_mixer),
  9473. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9474. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9475. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9476. msm_routing_put_audio_mixer),
  9477. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9478. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9479. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9480. msm_routing_put_audio_mixer),
  9481. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9482. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9483. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9484. msm_routing_put_audio_mixer),
  9485. };
  9486. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  9487. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9488. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9489. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9490. msm_routing_put_audio_mixer),
  9491. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9520. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9521. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9522. msm_routing_put_audio_mixer),
  9523. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9524. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9525. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9526. msm_routing_put_audio_mixer),
  9527. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9528. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9529. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9530. msm_routing_put_audio_mixer),
  9531. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9532. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9533. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9534. msm_routing_put_audio_mixer),
  9535. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9536. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9537. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9538. msm_routing_put_audio_mixer),
  9539. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9540. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9541. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9542. msm_routing_put_audio_mixer),
  9543. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9544. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9545. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9546. msm_routing_put_audio_mixer),
  9547. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9548. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9549. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9550. msm_routing_put_audio_mixer),
  9551. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9552. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9553. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9554. msm_routing_put_audio_mixer),
  9555. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9556. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9557. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9558. msm_routing_put_audio_mixer),
  9559. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9560. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9561. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9562. msm_routing_put_audio_mixer),
  9563. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9564. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9565. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9566. msm_routing_put_audio_mixer),
  9567. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9568. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9569. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9570. msm_routing_put_audio_mixer),
  9571. };
  9572. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9573. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9594. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9606. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9607. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9608. msm_routing_put_audio_mixer),
  9609. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9610. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9611. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9612. msm_routing_put_audio_mixer),
  9613. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9615. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9616. msm_routing_put_audio_mixer),
  9617. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9618. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9619. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9620. msm_routing_put_audio_mixer),
  9621. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9622. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9623. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9624. msm_routing_put_audio_mixer),
  9625. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9626. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9627. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9628. msm_routing_put_audio_mixer),
  9629. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9630. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9631. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9632. msm_routing_put_audio_mixer),
  9633. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9634. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9635. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9636. msm_routing_put_audio_mixer),
  9637. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9638. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9639. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9640. msm_routing_put_audio_mixer),
  9641. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9642. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9643. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9644. msm_routing_put_audio_mixer),
  9645. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9646. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9647. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9648. msm_routing_put_audio_mixer),
  9649. };
  9650. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9651. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9652. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9653. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9654. msm_routing_put_audio_mixer),
  9655. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9656. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9657. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9658. msm_routing_put_audio_mixer),
  9659. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9660. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9661. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9662. msm_routing_put_audio_mixer),
  9663. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9664. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9665. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9666. msm_routing_put_audio_mixer),
  9667. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9668. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9669. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9670. msm_routing_put_audio_mixer),
  9671. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9672. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9673. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9674. msm_routing_put_audio_mixer),
  9675. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9676. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9677. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9678. msm_routing_put_audio_mixer),
  9679. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9680. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9681. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9682. msm_routing_put_audio_mixer),
  9683. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9684. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9685. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9686. msm_routing_put_audio_mixer),
  9687. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9688. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9689. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9690. msm_routing_put_audio_mixer),
  9691. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9692. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9693. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9694. msm_routing_put_audio_mixer),
  9695. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9696. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9697. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9698. msm_routing_put_audio_mixer),
  9699. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9700. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9701. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9702. msm_routing_put_audio_mixer),
  9703. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9704. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9705. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9706. msm_routing_put_audio_mixer),
  9707. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9708. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9709. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9710. msm_routing_put_audio_mixer),
  9711. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9712. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9713. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9714. msm_routing_put_audio_mixer),
  9715. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9716. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9717. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9718. msm_routing_put_audio_mixer),
  9719. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9720. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9721. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9722. msm_routing_put_audio_mixer),
  9723. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9724. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9725. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9726. msm_routing_put_audio_mixer),
  9727. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9728. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9729. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9730. msm_routing_put_audio_mixer),
  9731. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9732. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9733. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9734. msm_routing_put_audio_mixer),
  9735. };
  9736. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9737. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9739. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9740. msm_routing_put_audio_mixer),
  9741. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9754. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9755. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9756. msm_routing_put_audio_mixer),
  9757. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9758. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9759. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9760. msm_routing_put_audio_mixer),
  9761. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9762. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9763. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9764. msm_routing_put_audio_mixer),
  9765. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9766. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9767. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9768. msm_routing_put_audio_mixer),
  9769. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9770. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9771. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9772. msm_routing_put_audio_mixer),
  9773. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9774. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9775. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9776. msm_routing_put_audio_mixer),
  9777. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9778. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9779. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9780. msm_routing_put_audio_mixer),
  9781. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9782. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9783. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9784. msm_routing_put_audio_mixer),
  9785. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9786. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9787. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9788. msm_routing_put_audio_mixer),
  9789. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9790. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9791. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9792. msm_routing_put_audio_mixer),
  9793. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9794. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9795. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9796. msm_routing_put_audio_mixer),
  9797. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9798. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9799. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9800. msm_routing_put_audio_mixer),
  9801. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9802. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9803. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9804. msm_routing_put_audio_mixer),
  9805. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9806. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9807. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9808. msm_routing_put_audio_mixer),
  9809. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9810. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9811. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9812. msm_routing_put_audio_mixer),
  9813. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9814. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9815. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9816. msm_routing_put_audio_mixer),
  9817. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9818. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9819. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9820. msm_routing_put_audio_mixer),
  9821. };
  9822. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9823. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9824. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9825. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9826. msm_routing_put_audio_mixer),
  9827. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9828. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9829. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9830. msm_routing_put_audio_mixer),
  9831. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9832. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9833. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9834. msm_routing_put_audio_mixer),
  9835. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9836. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9837. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9838. msm_routing_put_audio_mixer),
  9839. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9841. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9842. msm_routing_put_audio_mixer),
  9843. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9844. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9845. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9846. msm_routing_put_audio_mixer),
  9847. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9848. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9849. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9850. msm_routing_put_audio_mixer),
  9851. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9852. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9853. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9854. msm_routing_put_audio_mixer),
  9855. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9856. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9857. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9858. msm_routing_put_audio_mixer),
  9859. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9860. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9861. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9862. msm_routing_put_audio_mixer),
  9863. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9864. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9865. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9866. msm_routing_put_audio_mixer),
  9867. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9868. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9869. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9870. msm_routing_put_audio_mixer),
  9871. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9872. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9873. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9874. msm_routing_put_audio_mixer),
  9875. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9876. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9877. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9878. msm_routing_put_audio_mixer),
  9879. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9880. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9881. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9882. msm_routing_put_audio_mixer),
  9883. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9884. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9885. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9886. msm_routing_put_audio_mixer),
  9887. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9888. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9889. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9890. msm_routing_put_audio_mixer),
  9891. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9892. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9893. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9894. msm_routing_put_audio_mixer),
  9895. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9896. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9897. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9898. msm_routing_put_audio_mixer),
  9899. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9900. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9901. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9902. msm_routing_put_audio_mixer),
  9903. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9904. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9905. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9906. msm_routing_put_audio_mixer),
  9907. };
  9908. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  9909. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9910. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  9983. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9984. msm_routing_put_audio_mixer),
  9985. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9986. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9987. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9988. msm_routing_put_audio_mixer),
  9989. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9991. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9992. msm_routing_put_audio_mixer),
  9993. };
  9994. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  9995. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9996. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9997. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9998. msm_routing_put_audio_mixer),
  9999. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10000. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10001. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10002. msm_routing_put_audio_mixer),
  10003. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10004. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10005. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10006. msm_routing_put_audio_mixer),
  10007. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10008. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10009. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10010. msm_routing_put_audio_mixer),
  10011. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10012. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10013. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10014. msm_routing_put_audio_mixer),
  10015. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10016. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10017. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10018. msm_routing_put_audio_mixer),
  10019. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10020. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10021. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10022. msm_routing_put_audio_mixer),
  10023. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10024. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10025. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10026. msm_routing_put_audio_mixer),
  10027. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10028. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10029. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10030. msm_routing_put_audio_mixer),
  10031. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10032. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10033. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10034. msm_routing_put_audio_mixer),
  10035. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10036. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10037. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10038. msm_routing_put_audio_mixer),
  10039. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10040. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10041. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10042. msm_routing_put_audio_mixer),
  10043. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10044. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10045. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10046. msm_routing_put_audio_mixer),
  10047. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10048. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10049. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10050. msm_routing_put_audio_mixer),
  10051. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10052. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10053. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10054. msm_routing_put_audio_mixer),
  10055. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10056. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10057. MSM_FRONTEND_DAI_MULTIMEDIA16, 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_SEC_TDM_TX_0,
  10061. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10062. msm_routing_put_audio_mixer),
  10063. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10064. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10065. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10066. msm_routing_put_audio_mixer),
  10067. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10068. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10069. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10070. msm_routing_put_audio_mixer),
  10071. };
  10072. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  10073. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10074. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10075. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10076. msm_routing_put_audio_mixer),
  10077. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10078. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10079. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10080. msm_routing_put_audio_mixer),
  10081. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10082. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10083. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10084. msm_routing_put_audio_mixer),
  10085. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10086. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10087. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10088. msm_routing_put_audio_mixer),
  10089. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10090. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10091. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10092. msm_routing_put_audio_mixer),
  10093. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10094. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10095. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10096. msm_routing_put_audio_mixer),
  10097. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10098. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10099. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10100. msm_routing_put_audio_mixer),
  10101. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10102. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10103. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10104. msm_routing_put_audio_mixer),
  10105. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10106. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10107. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10108. msm_routing_put_audio_mixer),
  10109. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10110. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10111. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10112. msm_routing_put_audio_mixer),
  10113. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10114. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10115. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10116. msm_routing_put_audio_mixer),
  10117. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10118. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10119. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10120. msm_routing_put_audio_mixer),
  10121. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10123. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10124. msm_routing_put_audio_mixer),
  10125. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10127. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10128. msm_routing_put_audio_mixer),
  10129. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10131. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10132. msm_routing_put_audio_mixer),
  10133. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10135. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10136. msm_routing_put_audio_mixer),
  10137. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10139. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10140. msm_routing_put_audio_mixer),
  10141. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10143. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10144. msm_routing_put_audio_mixer),
  10145. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10146. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10147. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10148. msm_routing_put_audio_mixer),
  10149. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10150. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10151. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10152. msm_routing_put_audio_mixer),
  10153. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10154. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10155. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10156. msm_routing_put_audio_mixer),
  10157. };
  10158. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  10159. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10160. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10161. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10162. msm_routing_put_audio_mixer),
  10163. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10164. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10165. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10166. msm_routing_put_audio_mixer),
  10167. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10168. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10169. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10170. msm_routing_put_audio_mixer),
  10171. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10172. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10173. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10174. msm_routing_put_audio_mixer),
  10175. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10176. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10177. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10178. msm_routing_put_audio_mixer),
  10179. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10180. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10181. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10182. msm_routing_put_audio_mixer),
  10183. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10184. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10185. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10186. msm_routing_put_audio_mixer),
  10187. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10188. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10189. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10190. msm_routing_put_audio_mixer),
  10191. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10192. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10193. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10194. msm_routing_put_audio_mixer),
  10195. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10196. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10197. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10198. msm_routing_put_audio_mixer),
  10199. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10200. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10201. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10202. msm_routing_put_audio_mixer),
  10203. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10205. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10206. msm_routing_put_audio_mixer),
  10207. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10208. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10209. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10210. msm_routing_put_audio_mixer),
  10211. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10212. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10213. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10214. msm_routing_put_audio_mixer),
  10215. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10216. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10217. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10218. msm_routing_put_audio_mixer),
  10219. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10220. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10221. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10222. msm_routing_put_audio_mixer),
  10223. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10224. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10225. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10226. msm_routing_put_audio_mixer),
  10227. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10228. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10229. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10230. msm_routing_put_audio_mixer),
  10231. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10232. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10233. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10234. msm_routing_put_audio_mixer),
  10235. };
  10236. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  10237. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10238. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10239. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10240. msm_routing_put_audio_mixer),
  10241. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10242. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10243. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10244. msm_routing_put_audio_mixer),
  10245. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10246. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10247. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10248. msm_routing_put_audio_mixer),
  10249. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10250. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10251. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10252. msm_routing_put_audio_mixer),
  10253. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10254. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10255. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10256. msm_routing_put_audio_mixer),
  10257. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10258. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10259. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10260. msm_routing_put_audio_mixer),
  10261. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10262. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10263. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10264. msm_routing_put_audio_mixer),
  10265. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10267. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10268. msm_routing_put_audio_mixer),
  10269. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10271. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10272. msm_routing_put_audio_mixer),
  10273. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10275. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10276. msm_routing_put_audio_mixer),
  10277. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10278. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10279. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10280. msm_routing_put_audio_mixer),
  10281. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10282. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10283. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10284. msm_routing_put_audio_mixer),
  10285. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10286. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10287. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10288. msm_routing_put_audio_mixer),
  10289. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10290. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10291. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10292. msm_routing_put_audio_mixer),
  10293. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10294. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10295. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10296. msm_routing_put_audio_mixer),
  10297. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10298. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10299. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10300. msm_routing_put_audio_mixer),
  10301. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10302. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10303. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10304. msm_routing_put_audio_mixer),
  10305. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10306. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10307. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10308. msm_routing_put_audio_mixer),
  10309. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10310. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10311. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10312. msm_routing_put_audio_mixer),
  10313. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10314. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10315. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10316. msm_routing_put_audio_mixer),
  10317. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10318. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10319. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10320. msm_routing_put_audio_mixer),
  10321. };
  10322. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  10323. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10324. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10325. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10326. msm_routing_put_audio_mixer),
  10327. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10328. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10329. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10330. msm_routing_put_audio_mixer),
  10331. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10332. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10333. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10334. msm_routing_put_audio_mixer),
  10335. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10336. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10337. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10338. msm_routing_put_audio_mixer),
  10339. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10340. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10341. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10342. msm_routing_put_audio_mixer),
  10343. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10345. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10346. msm_routing_put_audio_mixer),
  10347. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10349. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10350. msm_routing_put_audio_mixer),
  10351. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10357. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10361. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10362. msm_routing_put_audio_mixer),
  10363. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10365. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10366. msm_routing_put_audio_mixer),
  10367. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10368. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10369. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10370. msm_routing_put_audio_mixer),
  10371. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10372. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10373. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10374. msm_routing_put_audio_mixer),
  10375. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10376. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10377. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10378. msm_routing_put_audio_mixer),
  10379. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10380. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10381. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10382. msm_routing_put_audio_mixer),
  10383. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10384. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10385. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10386. msm_routing_put_audio_mixer),
  10387. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10388. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10389. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10390. msm_routing_put_audio_mixer),
  10391. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10392. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10393. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10394. msm_routing_put_audio_mixer),
  10395. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10396. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10397. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10398. msm_routing_put_audio_mixer),
  10399. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10400. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10401. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10402. msm_routing_put_audio_mixer),
  10403. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10404. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10405. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10406. msm_routing_put_audio_mixer),
  10407. };
  10408. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  10409. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10410. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10411. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10412. msm_routing_put_audio_mixer),
  10413. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10414. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10415. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10416. msm_routing_put_audio_mixer),
  10417. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10418. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10419. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10420. msm_routing_put_audio_mixer),
  10421. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10423. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10424. msm_routing_put_audio_mixer),
  10425. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10427. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10428. msm_routing_put_audio_mixer),
  10429. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10430. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10431. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10432. msm_routing_put_audio_mixer),
  10433. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10435. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10436. msm_routing_put_audio_mixer),
  10437. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10438. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10439. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10440. msm_routing_put_audio_mixer),
  10441. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10443. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10444. msm_routing_put_audio_mixer),
  10445. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10446. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10447. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10448. msm_routing_put_audio_mixer),
  10449. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10451. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10452. msm_routing_put_audio_mixer),
  10453. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10454. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10455. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10456. msm_routing_put_audio_mixer),
  10457. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10458. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10459. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10460. msm_routing_put_audio_mixer),
  10461. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10462. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10463. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10464. msm_routing_put_audio_mixer),
  10465. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10466. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10467. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10468. msm_routing_put_audio_mixer),
  10469. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10470. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10471. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10472. msm_routing_put_audio_mixer),
  10473. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10474. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10475. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10476. msm_routing_put_audio_mixer),
  10477. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10478. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10479. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10480. msm_routing_put_audio_mixer),
  10481. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10482. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10483. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10484. msm_routing_put_audio_mixer),
  10485. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10486. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10487. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10488. msm_routing_put_audio_mixer),
  10489. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10490. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10491. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10492. msm_routing_put_audio_mixer),
  10493. };
  10494. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  10495. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10496. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10497. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10498. msm_routing_put_audio_mixer),
  10499. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10501. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10502. msm_routing_put_audio_mixer),
  10503. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10505. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10506. msm_routing_put_audio_mixer),
  10507. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10509. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10510. msm_routing_put_audio_mixer),
  10511. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10512. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10513. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10514. msm_routing_put_audio_mixer),
  10515. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10517. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10518. msm_routing_put_audio_mixer),
  10519. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10520. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10521. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10522. msm_routing_put_audio_mixer),
  10523. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10524. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10525. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10526. msm_routing_put_audio_mixer),
  10527. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10529. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10530. msm_routing_put_audio_mixer),
  10531. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10532. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10533. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10534. msm_routing_put_audio_mixer),
  10535. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10536. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10537. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10538. msm_routing_put_audio_mixer),
  10539. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10540. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10541. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10542. msm_routing_put_audio_mixer),
  10543. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10544. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10545. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10546. msm_routing_put_audio_mixer),
  10547. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10548. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10549. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10550. msm_routing_put_audio_mixer),
  10551. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10552. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10553. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10554. msm_routing_put_audio_mixer),
  10555. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10556. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10557. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10558. msm_routing_put_audio_mixer),
  10559. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10560. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10561. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10562. msm_routing_put_audio_mixer),
  10563. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10564. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10565. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10566. msm_routing_put_audio_mixer),
  10567. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10568. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10569. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10570. msm_routing_put_audio_mixer),
  10571. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10572. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10573. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10574. msm_routing_put_audio_mixer),
  10575. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10576. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10577. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10578. msm_routing_put_audio_mixer),
  10579. };
  10580. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  10581. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10583. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10584. msm_routing_put_audio_mixer),
  10585. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10587. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10588. msm_routing_put_audio_mixer),
  10589. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10591. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10592. msm_routing_put_audio_mixer),
  10593. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10595. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10596. msm_routing_put_audio_mixer),
  10597. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10599. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10600. msm_routing_put_audio_mixer),
  10601. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10603. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10604. msm_routing_put_audio_mixer),
  10605. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10607. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10608. msm_routing_put_audio_mixer),
  10609. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10611. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10612. msm_routing_put_audio_mixer),
  10613. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10614. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10615. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10616. msm_routing_put_audio_mixer),
  10617. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10619. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10620. msm_routing_put_audio_mixer),
  10621. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10622. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10623. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10624. msm_routing_put_audio_mixer),
  10625. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10626. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10627. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10628. msm_routing_put_audio_mixer),
  10629. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10630. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10631. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10632. msm_routing_put_audio_mixer),
  10633. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10634. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10635. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10636. msm_routing_put_audio_mixer),
  10637. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10638. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10639. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10640. msm_routing_put_audio_mixer),
  10641. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10642. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10643. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10644. msm_routing_put_audio_mixer),
  10645. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10646. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10647. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10648. msm_routing_put_audio_mixer),
  10649. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10650. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10651. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10652. msm_routing_put_audio_mixer),
  10653. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10654. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10655. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10656. msm_routing_put_audio_mixer),
  10657. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10658. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10659. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10660. msm_routing_put_audio_mixer),
  10661. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10662. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10663. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10664. msm_routing_put_audio_mixer),
  10665. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10666. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10667. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10668. msm_routing_put_audio_mixer),
  10669. };
  10670. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  10671. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10672. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10673. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10674. msm_routing_put_audio_mixer),
  10675. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10676. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10677. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10678. msm_routing_put_audio_mixer),
  10679. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10680. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10681. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10682. msm_routing_put_audio_mixer),
  10683. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10685. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10686. msm_routing_put_audio_mixer),
  10687. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10689. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10690. msm_routing_put_audio_mixer),
  10691. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10693. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10694. msm_routing_put_audio_mixer),
  10695. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10697. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10698. msm_routing_put_audio_mixer),
  10699. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10701. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10702. msm_routing_put_audio_mixer),
  10703. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10705. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10706. msm_routing_put_audio_mixer),
  10707. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10708. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10709. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10710. msm_routing_put_audio_mixer),
  10711. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10712. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10713. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10714. msm_routing_put_audio_mixer),
  10715. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10716. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10717. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10718. msm_routing_put_audio_mixer),
  10719. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10720. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10721. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10722. msm_routing_put_audio_mixer),
  10723. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10724. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10725. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10726. msm_routing_put_audio_mixer),
  10727. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10728. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10729. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10730. msm_routing_put_audio_mixer),
  10731. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10732. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10733. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10734. msm_routing_put_audio_mixer),
  10735. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10736. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10737. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10738. msm_routing_put_audio_mixer),
  10739. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10740. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10741. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10742. msm_routing_put_audio_mixer),
  10743. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10744. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10745. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10746. msm_routing_put_audio_mixer),
  10747. };
  10748. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  10749. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10750. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10751. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10752. msm_routing_put_audio_mixer),
  10753. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10754. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10755. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10756. msm_routing_put_audio_mixer),
  10757. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10758. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10759. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10760. msm_routing_put_audio_mixer),
  10761. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10762. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10763. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10764. msm_routing_put_audio_mixer),
  10765. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10766. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10767. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10768. msm_routing_put_audio_mixer),
  10769. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10770. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10771. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10772. msm_routing_put_audio_mixer),
  10773. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10775. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10776. msm_routing_put_audio_mixer),
  10777. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10779. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10780. msm_routing_put_audio_mixer),
  10781. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10783. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10784. msm_routing_put_audio_mixer),
  10785. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10786. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10787. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10788. msm_routing_put_audio_mixer),
  10789. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10790. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10791. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10792. msm_routing_put_audio_mixer),
  10793. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10794. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10795. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10796. msm_routing_put_audio_mixer),
  10797. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10798. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10799. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10800. msm_routing_put_audio_mixer),
  10801. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10802. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10803. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10804. msm_routing_put_audio_mixer),
  10805. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10806. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10807. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10808. msm_routing_put_audio_mixer),
  10809. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10810. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10811. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10812. msm_routing_put_audio_mixer),
  10813. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10814. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10815. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10816. msm_routing_put_audio_mixer),
  10817. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10818. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10819. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10820. msm_routing_put_audio_mixer),
  10821. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10822. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10823. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10824. msm_routing_put_audio_mixer),
  10825. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10826. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10827. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10828. msm_routing_put_audio_mixer),
  10829. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10830. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10831. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10832. msm_routing_put_audio_mixer),
  10833. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10834. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10835. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10836. msm_routing_put_audio_mixer),
  10837. };
  10838. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  10839. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10840. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10841. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10842. msm_routing_put_audio_mixer),
  10843. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10845. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10846. msm_routing_put_audio_mixer),
  10847. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10849. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10850. msm_routing_put_audio_mixer),
  10851. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10853. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10854. msm_routing_put_audio_mixer),
  10855. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10857. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10858. msm_routing_put_audio_mixer),
  10859. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10860. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10861. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10862. msm_routing_put_audio_mixer),
  10863. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10864. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10865. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10866. msm_routing_put_audio_mixer),
  10867. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10868. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10869. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10870. msm_routing_put_audio_mixer),
  10871. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10873. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10874. msm_routing_put_audio_mixer),
  10875. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10876. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10877. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10878. msm_routing_put_audio_mixer),
  10879. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10880. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10881. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10882. msm_routing_put_audio_mixer),
  10883. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10884. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10885. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10886. msm_routing_put_audio_mixer),
  10887. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10888. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10889. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10890. msm_routing_put_audio_mixer),
  10891. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10892. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10893. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10894. msm_routing_put_audio_mixer),
  10895. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10896. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10897. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10898. msm_routing_put_audio_mixer),
  10899. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10900. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10901. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10902. msm_routing_put_audio_mixer),
  10903. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10904. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10905. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10906. msm_routing_put_audio_mixer),
  10907. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10908. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10909. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10910. msm_routing_put_audio_mixer),
  10911. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10912. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10913. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10914. msm_routing_put_audio_mixer),
  10915. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10916. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10917. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10918. msm_routing_put_audio_mixer),
  10919. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10920. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10921. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10922. msm_routing_put_audio_mixer),
  10923. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10924. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10925. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10926. msm_routing_put_audio_mixer),
  10927. };
  10928. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  10929. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10931. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10935. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10936. msm_routing_put_audio_mixer),
  10937. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10938. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10939. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10940. msm_routing_put_audio_mixer),
  10941. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10942. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10943. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10944. msm_routing_put_audio_mixer),
  10945. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10946. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10947. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10948. msm_routing_put_audio_mixer),
  10949. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10950. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10951. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10952. msm_routing_put_audio_mixer),
  10953. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10954. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10955. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10956. msm_routing_put_audio_mixer),
  10957. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10958. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10959. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10960. msm_routing_put_audio_mixer),
  10961. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10962. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10963. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10964. msm_routing_put_audio_mixer),
  10965. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10966. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10967. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10968. msm_routing_put_audio_mixer),
  10969. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10970. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10971. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10972. msm_routing_put_audio_mixer),
  10973. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10974. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10975. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10976. msm_routing_put_audio_mixer),
  10977. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10978. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10979. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10980. msm_routing_put_audio_mixer),
  10981. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10982. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10983. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10984. msm_routing_put_audio_mixer),
  10985. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10986. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10987. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10988. msm_routing_put_audio_mixer),
  10989. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10990. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10991. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10992. msm_routing_put_audio_mixer),
  10993. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10994. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10995. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10996. msm_routing_put_audio_mixer),
  10997. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10998. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10999. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11000. msm_routing_put_audio_mixer),
  11001. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11002. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11003. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11004. msm_routing_put_audio_mixer),
  11005. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11006. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11007. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11008. msm_routing_put_audio_mixer),
  11009. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11010. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11011. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11012. msm_routing_put_audio_mixer),
  11013. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11014. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11015. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11016. msm_routing_put_audio_mixer),
  11017. };
  11018. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  11019. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11020. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11021. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11022. msm_routing_put_audio_mixer),
  11023. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11025. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11026. msm_routing_put_audio_mixer),
  11027. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11028. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11029. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11030. msm_routing_put_audio_mixer),
  11031. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11032. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11033. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11034. msm_routing_put_audio_mixer),
  11035. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11036. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11037. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11038. msm_routing_put_audio_mixer),
  11039. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11040. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11041. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11042. msm_routing_put_audio_mixer),
  11043. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11044. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11045. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11046. msm_routing_put_audio_mixer),
  11047. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11048. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11049. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11050. msm_routing_put_audio_mixer),
  11051. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11052. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11053. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11054. msm_routing_put_audio_mixer),
  11055. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11056. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11057. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11058. msm_routing_put_audio_mixer),
  11059. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11060. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11061. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11062. msm_routing_put_audio_mixer),
  11063. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11064. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11065. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11066. msm_routing_put_audio_mixer),
  11067. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11068. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11069. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11070. msm_routing_put_audio_mixer),
  11071. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11072. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11073. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11074. msm_routing_put_audio_mixer),
  11075. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11076. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11077. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11078. msm_routing_put_audio_mixer),
  11079. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11080. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11081. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11082. msm_routing_put_audio_mixer),
  11083. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11085. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11086. msm_routing_put_audio_mixer),
  11087. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11088. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11089. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11090. msm_routing_put_audio_mixer),
  11091. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11092. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11093. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11094. msm_routing_put_audio_mixer),
  11095. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11096. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11097. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11098. msm_routing_put_audio_mixer),
  11099. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11100. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11101. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11102. msm_routing_put_audio_mixer),
  11103. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11104. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11105. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11106. msm_routing_put_audio_mixer),
  11107. };
  11108. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  11109. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11110. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11111. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11112. msm_routing_put_audio_mixer),
  11113. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11114. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11115. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11116. msm_routing_put_audio_mixer),
  11117. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11118. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11119. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11120. msm_routing_put_audio_mixer),
  11121. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11122. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11123. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11124. msm_routing_put_audio_mixer),
  11125. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11126. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11127. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11128. msm_routing_put_audio_mixer),
  11129. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11130. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11131. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11132. msm_routing_put_audio_mixer),
  11133. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11134. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11135. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11136. msm_routing_put_audio_mixer),
  11137. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11138. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11139. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11140. msm_routing_put_audio_mixer),
  11141. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11142. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11143. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11144. msm_routing_put_audio_mixer),
  11145. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11146. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11147. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11148. msm_routing_put_audio_mixer),
  11149. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11150. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11151. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11152. msm_routing_put_audio_mixer),
  11153. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11154. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11155. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11156. msm_routing_put_audio_mixer),
  11157. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11158. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11159. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11160. msm_routing_put_audio_mixer),
  11161. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11162. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11163. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11164. msm_routing_put_audio_mixer),
  11165. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11166. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11167. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11168. msm_routing_put_audio_mixer),
  11169. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11170. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11171. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11172. msm_routing_put_audio_mixer),
  11173. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11174. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11175. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11176. msm_routing_put_audio_mixer),
  11177. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11178. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11179. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11180. msm_routing_put_audio_mixer),
  11181. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11182. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11183. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11184. msm_routing_put_audio_mixer),
  11185. };
  11186. static const struct snd_kcontrol_new quin_tdm_tx_1_mixer_controls[] = {
  11187. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11188. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11189. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11190. msm_routing_put_audio_mixer),
  11191. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11192. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11193. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11194. msm_routing_put_audio_mixer),
  11195. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11196. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11197. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11198. msm_routing_put_audio_mixer),
  11199. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11200. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11201. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11202. msm_routing_put_audio_mixer),
  11203. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11204. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11205. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11206. msm_routing_put_audio_mixer),
  11207. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11208. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11209. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11210. msm_routing_put_audio_mixer),
  11211. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11212. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11213. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11214. msm_routing_put_audio_mixer),
  11215. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11216. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11217. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11218. msm_routing_put_audio_mixer),
  11219. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11220. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11221. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11222. msm_routing_put_audio_mixer),
  11223. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11224. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11225. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11226. msm_routing_put_audio_mixer),
  11227. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11228. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11229. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11230. msm_routing_put_audio_mixer),
  11231. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11232. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11233. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11234. msm_routing_put_audio_mixer),
  11235. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11236. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11237. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11238. msm_routing_put_audio_mixer),
  11239. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11240. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11241. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11242. msm_routing_put_audio_mixer),
  11243. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11244. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11245. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11246. msm_routing_put_audio_mixer),
  11247. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11248. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11249. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11250. msm_routing_put_audio_mixer),
  11251. };
  11252. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  11253. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11254. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11255. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11256. msm_routing_put_audio_mixer),
  11257. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11258. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11259. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11260. msm_routing_put_audio_mixer),
  11261. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11262. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11263. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11264. msm_routing_put_audio_mixer),
  11265. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11266. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11267. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11268. msm_routing_put_audio_mixer),
  11269. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11270. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11271. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11272. msm_routing_put_audio_mixer),
  11273. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11274. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11275. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11276. msm_routing_put_audio_mixer),
  11277. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11278. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11279. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11280. msm_routing_put_audio_mixer),
  11281. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11282. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11283. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11284. msm_routing_put_audio_mixer),
  11285. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11286. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11287. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11288. msm_routing_put_audio_mixer),
  11289. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11290. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11291. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11292. msm_routing_put_audio_mixer),
  11293. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11294. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11295. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11296. msm_routing_put_audio_mixer),
  11297. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11298. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11299. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11300. msm_routing_put_audio_mixer),
  11301. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11302. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11303. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11304. msm_routing_put_audio_mixer),
  11305. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11306. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11307. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11308. msm_routing_put_audio_mixer),
  11309. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11310. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11311. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11312. msm_routing_put_audio_mixer),
  11313. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11314. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11315. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11316. msm_routing_put_audio_mixer),
  11317. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11318. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11319. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11320. msm_routing_put_audio_mixer),
  11321. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11322. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11323. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11324. msm_routing_put_audio_mixer),
  11325. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11326. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11327. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11328. msm_routing_put_audio_mixer),
  11329. };
  11330. static const struct snd_kcontrol_new quin_tdm_tx_2_mixer_controls[] = {
  11331. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11332. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11333. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11334. msm_routing_put_audio_mixer),
  11335. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11336. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11337. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11338. msm_routing_put_audio_mixer),
  11339. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11340. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11341. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11342. msm_routing_put_audio_mixer),
  11343. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11344. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11345. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11346. msm_routing_put_audio_mixer),
  11347. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11348. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11349. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11350. msm_routing_put_audio_mixer),
  11351. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11352. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11353. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11354. msm_routing_put_audio_mixer),
  11355. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11356. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11357. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11358. msm_routing_put_audio_mixer),
  11359. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11360. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11361. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11362. msm_routing_put_audio_mixer),
  11363. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11364. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11365. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11366. msm_routing_put_audio_mixer),
  11367. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11368. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11369. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11370. msm_routing_put_audio_mixer),
  11371. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11372. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11373. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11374. msm_routing_put_audio_mixer),
  11375. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11376. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11377. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11378. msm_routing_put_audio_mixer),
  11379. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11380. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11381. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11382. msm_routing_put_audio_mixer),
  11383. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11384. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11385. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11386. msm_routing_put_audio_mixer),
  11387. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11388. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11389. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11390. msm_routing_put_audio_mixer),
  11391. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11392. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11393. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11394. msm_routing_put_audio_mixer),
  11395. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11396. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11397. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11398. msm_routing_put_audio_mixer),
  11399. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11400. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11401. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11402. msm_routing_put_audio_mixer),
  11403. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11404. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11405. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11406. msm_routing_put_audio_mixer),
  11407. };
  11408. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  11409. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11410. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11411. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11412. msm_routing_put_audio_mixer),
  11413. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11414. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11415. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11416. msm_routing_put_audio_mixer),
  11417. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11418. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11419. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11420. msm_routing_put_audio_mixer),
  11421. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11422. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11423. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11424. msm_routing_put_audio_mixer),
  11425. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11426. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11427. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11428. msm_routing_put_audio_mixer),
  11429. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11430. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11431. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11432. msm_routing_put_audio_mixer),
  11433. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11434. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11435. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11436. msm_routing_put_audio_mixer),
  11437. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11438. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11439. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11440. msm_routing_put_audio_mixer),
  11441. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11442. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11443. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11444. msm_routing_put_audio_mixer),
  11445. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11446. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11447. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11448. msm_routing_put_audio_mixer),
  11449. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11450. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11451. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11452. msm_routing_put_audio_mixer),
  11453. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11454. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11455. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11456. msm_routing_put_audio_mixer),
  11457. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11458. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11459. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11460. msm_routing_put_audio_mixer),
  11461. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11462. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11463. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11464. msm_routing_put_audio_mixer),
  11465. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11466. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11467. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11468. msm_routing_put_audio_mixer),
  11469. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11470. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11471. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11472. msm_routing_put_audio_mixer),
  11473. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11474. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11475. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11476. msm_routing_put_audio_mixer),
  11477. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11478. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11479. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11480. msm_routing_put_audio_mixer),
  11481. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11482. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11483. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11484. msm_routing_put_audio_mixer),
  11485. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11486. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11487. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11488. msm_routing_put_audio_mixer),
  11489. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11490. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11491. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11492. msm_routing_put_audio_mixer),
  11493. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11494. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11495. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11496. msm_routing_put_audio_mixer),
  11497. };
  11498. static const struct snd_kcontrol_new quin_tdm_tx_3_mixer_controls[] = {
  11499. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11500. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11501. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11502. msm_routing_put_audio_mixer),
  11503. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11505. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11506. msm_routing_put_audio_mixer),
  11507. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11508. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11509. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11510. msm_routing_put_audio_mixer),
  11511. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11512. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11513. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11514. msm_routing_put_audio_mixer),
  11515. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11516. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11517. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11518. msm_routing_put_audio_mixer),
  11519. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11520. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11521. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11522. msm_routing_put_audio_mixer),
  11523. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11524. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11525. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11526. msm_routing_put_audio_mixer),
  11527. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11528. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11529. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11530. msm_routing_put_audio_mixer),
  11531. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11532. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11533. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11534. msm_routing_put_audio_mixer),
  11535. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11536. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11537. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11538. msm_routing_put_audio_mixer),
  11539. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11540. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11541. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11542. msm_routing_put_audio_mixer),
  11543. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11544. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11545. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11546. msm_routing_put_audio_mixer),
  11547. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11548. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11549. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11550. msm_routing_put_audio_mixer),
  11551. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11552. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11553. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11554. msm_routing_put_audio_mixer),
  11555. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11556. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11557. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11558. msm_routing_put_audio_mixer),
  11559. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11560. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11561. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11562. msm_routing_put_audio_mixer),
  11563. };
  11564. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  11565. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11566. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11567. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11568. msm_routing_put_audio_mixer),
  11569. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11570. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11571. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11572. msm_routing_put_audio_mixer),
  11573. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11574. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11575. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11576. msm_routing_put_audio_mixer),
  11577. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11578. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11579. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11580. msm_routing_put_audio_mixer),
  11581. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11582. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11583. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11584. msm_routing_put_audio_mixer),
  11585. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11586. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11587. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11588. msm_routing_put_audio_mixer),
  11589. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11590. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11591. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11592. msm_routing_put_audio_mixer),
  11593. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11594. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11595. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11596. msm_routing_put_audio_mixer),
  11597. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11598. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11599. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11600. msm_routing_put_audio_mixer),
  11601. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11602. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11603. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11604. msm_routing_put_audio_mixer),
  11605. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11606. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11607. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11608. msm_routing_put_audio_mixer),
  11609. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11610. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11611. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11612. msm_routing_put_audio_mixer),
  11613. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11614. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11615. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11616. msm_routing_put_audio_mixer),
  11617. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11618. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11619. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11620. msm_routing_put_audio_mixer),
  11621. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11622. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11623. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11624. msm_routing_put_audio_mixer),
  11625. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11626. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11627. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11628. msm_routing_put_audio_mixer),
  11629. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11630. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11631. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11632. msm_routing_put_audio_mixer),
  11633. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11634. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11635. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11636. msm_routing_put_audio_mixer),
  11637. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11638. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11639. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11640. msm_routing_put_audio_mixer),
  11641. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11642. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11643. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11644. msm_routing_put_audio_mixer),
  11645. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11646. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11647. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11648. msm_routing_put_audio_mixer),
  11649. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11650. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11651. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11652. msm_routing_put_audio_mixer),
  11653. };
  11654. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  11655. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11656. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11657. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11658. msm_routing_put_audio_mixer),
  11659. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11660. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11661. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11662. msm_routing_put_audio_mixer),
  11663. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11664. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11665. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11666. msm_routing_put_audio_mixer),
  11667. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11668. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11669. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11670. msm_routing_put_audio_mixer),
  11671. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11672. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11673. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11674. msm_routing_put_audio_mixer),
  11675. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11676. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11677. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11678. msm_routing_put_audio_mixer),
  11679. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11680. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11681. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11682. msm_routing_put_audio_mixer),
  11683. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11684. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11685. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11686. msm_routing_put_audio_mixer),
  11687. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11688. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11689. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11690. msm_routing_put_audio_mixer),
  11691. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11692. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11693. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11694. msm_routing_put_audio_mixer),
  11695. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11696. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11697. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11698. msm_routing_put_audio_mixer),
  11699. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11700. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11701. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11702. msm_routing_put_audio_mixer),
  11703. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11704. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11705. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11706. msm_routing_put_audio_mixer),
  11707. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11708. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11709. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11710. msm_routing_put_audio_mixer),
  11711. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11712. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11713. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11714. msm_routing_put_audio_mixer),
  11715. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11716. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11717. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11718. msm_routing_put_audio_mixer),
  11719. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11720. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11721. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11722. msm_routing_put_audio_mixer),
  11723. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11724. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11725. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11726. msm_routing_put_audio_mixer),
  11727. };
  11728. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  11729. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11730. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11731. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11732. msm_routing_put_audio_mixer),
  11733. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11734. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11735. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11736. msm_routing_put_audio_mixer),
  11737. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11738. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11739. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11740. msm_routing_put_audio_mixer),
  11741. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11742. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11743. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11744. msm_routing_put_audio_mixer),
  11745. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11746. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11747. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11748. msm_routing_put_audio_mixer),
  11749. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11750. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11751. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11752. msm_routing_put_audio_mixer),
  11753. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11754. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11755. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11756. msm_routing_put_audio_mixer),
  11757. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11758. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11759. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11760. msm_routing_put_audio_mixer),
  11761. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11762. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11763. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11764. msm_routing_put_audio_mixer),
  11765. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11766. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11767. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11768. msm_routing_put_audio_mixer),
  11769. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11770. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11771. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11772. msm_routing_put_audio_mixer),
  11773. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11774. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11775. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11776. msm_routing_put_audio_mixer),
  11777. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11778. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11779. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11780. msm_routing_put_audio_mixer),
  11781. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11782. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11783. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11784. msm_routing_put_audio_mixer),
  11785. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11786. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11787. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11788. msm_routing_put_audio_mixer),
  11789. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11790. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11791. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11792. msm_routing_put_audio_mixer),
  11793. };
  11794. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11795. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11796. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11797. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11798. msm_routing_put_audio_mixer),
  11799. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11800. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11801. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11802. msm_routing_put_audio_mixer),
  11803. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11804. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11805. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11806. msm_routing_put_audio_mixer),
  11807. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11808. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11809. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11810. msm_routing_put_audio_mixer),
  11811. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11812. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11813. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11814. msm_routing_put_audio_mixer),
  11815. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11816. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11817. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11818. msm_routing_put_audio_mixer),
  11819. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11820. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11821. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11822. msm_routing_put_audio_mixer),
  11823. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11824. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11825. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11826. msm_routing_put_audio_mixer),
  11827. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11828. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11829. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11830. msm_routing_put_audio_mixer),
  11831. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11832. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11833. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11834. msm_routing_put_audio_mixer),
  11835. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11836. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11837. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11838. msm_routing_put_audio_mixer),
  11839. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11840. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11841. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11842. msm_routing_put_audio_mixer),
  11843. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11844. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11845. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11846. msm_routing_put_audio_mixer),
  11847. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11848. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11849. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11850. msm_routing_put_audio_mixer),
  11851. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11853. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11854. msm_routing_put_audio_mixer),
  11855. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11857. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11858. msm_routing_put_audio_mixer),
  11859. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11860. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11861. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11862. msm_routing_put_audio_mixer),
  11863. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11865. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11866. msm_routing_put_audio_mixer),
  11867. };
  11868. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  11869. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11870. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11871. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11872. msm_routing_put_audio_mixer),
  11873. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11874. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11875. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11876. msm_routing_put_audio_mixer),
  11877. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11878. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11879. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11880. msm_routing_put_audio_mixer),
  11881. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11882. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11883. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11884. msm_routing_put_audio_mixer),
  11885. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11886. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11887. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11888. msm_routing_put_audio_mixer),
  11889. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11890. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11891. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11892. msm_routing_put_audio_mixer),
  11893. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11894. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11895. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11896. msm_routing_put_audio_mixer),
  11897. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11898. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11899. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11900. msm_routing_put_audio_mixer),
  11901. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11902. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11903. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11904. msm_routing_put_audio_mixer),
  11905. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11906. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11907. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11908. msm_routing_put_audio_mixer),
  11909. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11910. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11911. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11912. msm_routing_put_audio_mixer),
  11913. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11914. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11915. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11916. msm_routing_put_audio_mixer),
  11917. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11918. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11919. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11920. msm_routing_put_audio_mixer),
  11921. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11922. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11923. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11924. msm_routing_put_audio_mixer),
  11925. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11926. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11927. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11928. msm_routing_put_audio_mixer),
  11929. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11930. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11931. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11932. msm_routing_put_audio_mixer),
  11933. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11934. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11935. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11936. msm_routing_put_audio_mixer),
  11937. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11938. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11939. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11940. msm_routing_put_audio_mixer),
  11941. };
  11942. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  11943. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11944. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11945. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11946. msm_routing_put_audio_mixer),
  11947. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11948. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11949. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11950. msm_routing_put_audio_mixer),
  11951. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11952. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11953. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11954. msm_routing_put_audio_mixer),
  11955. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11956. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11957. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11958. msm_routing_put_audio_mixer),
  11959. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11960. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11961. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11962. msm_routing_put_audio_mixer),
  11963. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11964. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11965. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11966. msm_routing_put_audio_mixer),
  11967. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11968. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11969. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11970. msm_routing_put_audio_mixer),
  11971. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11972. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11973. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11974. msm_routing_put_audio_mixer),
  11975. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11976. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11977. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11978. msm_routing_put_audio_mixer),
  11979. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11980. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11981. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11982. msm_routing_put_audio_mixer),
  11983. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11984. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11985. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11986. msm_routing_put_audio_mixer),
  11987. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11988. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11989. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11990. msm_routing_put_audio_mixer),
  11991. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11992. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11993. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11994. msm_routing_put_audio_mixer),
  11995. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11996. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11997. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11998. msm_routing_put_audio_mixer),
  11999. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  12000. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12001. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  12002. msm_routing_put_audio_mixer),
  12003. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  12004. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12005. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12006. msm_routing_put_audio_mixer),
  12007. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  12008. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12009. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12010. msm_routing_put_audio_mixer),
  12011. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  12012. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12013. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12014. msm_routing_put_audio_mixer),
  12015. };
  12016. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  12017. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  12018. MSM_BACKEND_DAI_PRI_I2S_TX,
  12019. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12020. msm_routing_put_audio_mixer),
  12021. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12022. MSM_BACKEND_DAI_MI2S_TX,
  12023. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12024. msm_routing_put_audio_mixer),
  12025. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12026. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12027. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12028. msm_routing_put_audio_mixer),
  12029. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12030. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12031. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12032. msm_routing_put_audio_mixer),
  12033. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12034. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12035. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12036. msm_routing_put_audio_mixer),
  12037. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12038. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12039. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12040. msm_routing_put_audio_mixer),
  12041. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12042. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12043. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12044. msm_routing_put_audio_mixer),
  12045. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12046. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12047. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12048. msm_routing_put_audio_mixer),
  12049. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12050. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12051. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12052. msm_routing_put_audio_mixer),
  12053. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12054. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12055. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12056. msm_routing_put_audio_mixer),
  12057. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12058. MSM_BACKEND_DAI_AUXPCM_TX,
  12059. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12060. msm_routing_put_audio_mixer),
  12061. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12062. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12063. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12064. msm_routing_put_audio_mixer),
  12065. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12066. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12067. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12068. msm_routing_put_audio_mixer),
  12069. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12070. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12071. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12072. msm_routing_put_audio_mixer),
  12073. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12074. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12075. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12076. msm_routing_put_audio_mixer),
  12077. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12078. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12079. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12080. msm_routing_put_audio_mixer),
  12081. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12082. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12083. MSM_FRONTEND_DAI_MULTIMEDIA1, 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_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12088. msm_routing_put_audio_mixer),
  12089. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12090. MSM_BACKEND_DAI_AFE_PCM_TX,
  12091. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12092. msm_routing_put_audio_mixer),
  12093. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12094. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12095. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12096. msm_routing_put_audio_mixer),
  12097. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12098. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12099. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12100. msm_routing_put_audio_mixer),
  12101. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  12102. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  12103. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12104. msm_routing_put_audio_mixer),
  12105. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12106. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12107. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12108. msm_routing_put_audio_mixer),
  12109. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12110. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12111. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12112. msm_routing_put_audio_mixer),
  12113. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12114. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12115. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12116. msm_routing_put_audio_mixer),
  12117. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12118. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12119. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12120. msm_routing_put_audio_mixer),
  12121. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12122. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12123. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12124. msm_routing_put_audio_mixer),
  12125. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12126. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12127. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12128. msm_routing_put_audio_mixer),
  12129. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12130. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12131. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12132. msm_routing_put_audio_mixer),
  12133. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12134. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12135. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12136. msm_routing_put_audio_mixer),
  12137. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12138. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12139. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12140. msm_routing_put_audio_mixer),
  12141. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12142. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12143. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12144. msm_routing_put_audio_mixer),
  12145. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12146. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12147. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12148. msm_routing_put_audio_mixer),
  12149. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12150. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12151. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12152. msm_routing_put_audio_mixer),
  12153. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12154. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12155. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12156. msm_routing_put_audio_mixer),
  12157. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12158. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12159. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12160. msm_routing_put_audio_mixer),
  12161. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12162. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12163. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12164. msm_routing_put_audio_mixer),
  12165. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12166. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12167. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12168. msm_routing_put_audio_mixer),
  12169. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12170. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12171. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12172. msm_routing_put_audio_mixer),
  12173. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12174. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12175. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12176. msm_routing_put_audio_mixer),
  12177. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12178. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12179. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12180. msm_routing_put_audio_mixer),
  12181. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12182. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12183. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12184. msm_routing_put_audio_mixer),
  12185. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12186. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12187. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12188. msm_routing_put_audio_mixer),
  12189. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12190. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12191. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12192. msm_routing_put_audio_mixer),
  12193. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12194. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12195. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12196. msm_routing_put_audio_mixer),
  12197. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12198. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12199. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12200. msm_routing_put_audio_mixer),
  12201. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12202. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12203. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12204. msm_routing_put_audio_mixer),
  12205. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12206. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12207. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12208. msm_routing_put_audio_mixer),
  12209. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12210. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12211. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12212. msm_routing_put_audio_mixer),
  12213. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12214. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12215. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12216. msm_routing_put_audio_mixer),
  12217. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12218. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12219. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12220. msm_routing_put_audio_mixer),
  12221. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12222. MSM_BACKEND_DAI_USB_TX,
  12223. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12224. msm_routing_put_audio_mixer),
  12225. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12226. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12227. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12228. msm_routing_put_audio_mixer),
  12229. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12230. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12231. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12232. msm_routing_put_audio_mixer),
  12233. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12234. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12235. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12236. msm_routing_put_audio_mixer),
  12237. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12238. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12239. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12240. msm_routing_put_audio_mixer),
  12241. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12242. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12243. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12244. msm_routing_put_audio_mixer),
  12245. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12246. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12247. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12248. msm_routing_put_audio_mixer),
  12249. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12250. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12251. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12252. msm_routing_put_audio_mixer),
  12253. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12254. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12255. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12256. msm_routing_put_audio_mixer),
  12257. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12258. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12259. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12260. msm_routing_put_audio_mixer),
  12261. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12262. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12263. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12264. msm_routing_put_audio_mixer),
  12265. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12266. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12267. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12268. msm_routing_put_audio_mixer),
  12269. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12270. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12271. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12272. msm_routing_put_audio_mixer),
  12273. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12274. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12275. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12276. msm_routing_put_audio_mixer),
  12277. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12278. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12279. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12280. msm_routing_put_audio_mixer),
  12281. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12282. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12283. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12284. msm_routing_put_audio_mixer),
  12285. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12286. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12287. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12288. msm_routing_put_audio_mixer),
  12289. };
  12290. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  12291. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12292. MSM_BACKEND_DAI_INT_FM_TX,
  12293. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12294. msm_routing_put_audio_mixer),
  12295. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12296. MSM_BACKEND_DAI_MI2S_TX,
  12297. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12298. msm_routing_put_audio_mixer),
  12299. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12300. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12301. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12302. msm_routing_put_audio_mixer),
  12303. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12304. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12305. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12306. msm_routing_put_audio_mixer),
  12307. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12308. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12309. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12310. msm_routing_put_audio_mixer),
  12311. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12312. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12313. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12314. msm_routing_put_audio_mixer),
  12315. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12316. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12317. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12318. msm_routing_put_audio_mixer),
  12319. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12320. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12321. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12322. msm_routing_put_audio_mixer),
  12323. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12324. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12325. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12326. msm_routing_put_audio_mixer),
  12327. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12328. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12329. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12330. msm_routing_put_audio_mixer),
  12331. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12332. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12333. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12334. msm_routing_put_audio_mixer),
  12335. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12336. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12337. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12338. msm_routing_put_audio_mixer),
  12339. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12340. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12341. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12342. msm_routing_put_audio_mixer),
  12343. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12344. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12345. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12346. msm_routing_put_audio_mixer),
  12347. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12348. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12349. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12350. msm_routing_put_audio_mixer),
  12351. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12352. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12353. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12354. msm_routing_put_audio_mixer),
  12355. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12356. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12357. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12358. msm_routing_put_audio_mixer),
  12359. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12360. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12361. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12362. msm_routing_put_audio_mixer),
  12363. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12364. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12365. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12366. msm_routing_put_audio_mixer),
  12367. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12368. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12369. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12370. msm_routing_put_audio_mixer),
  12371. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12372. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12373. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12374. msm_routing_put_audio_mixer),
  12375. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12376. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12377. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12378. msm_routing_put_audio_mixer),
  12379. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12380. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12381. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12382. msm_routing_put_audio_mixer),
  12383. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12384. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12385. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12386. msm_routing_put_audio_mixer),
  12387. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12388. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12389. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12390. msm_routing_put_audio_mixer),
  12391. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12392. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12393. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12394. msm_routing_put_audio_mixer),
  12395. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12396. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12397. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12398. msm_routing_put_audio_mixer),
  12399. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12400. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12401. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12402. msm_routing_put_audio_mixer),
  12403. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12404. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12405. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12406. msm_routing_put_audio_mixer),
  12407. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12408. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12409. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12410. msm_routing_put_audio_mixer),
  12411. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12412. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12413. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12414. msm_routing_put_audio_mixer),
  12415. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12416. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12417. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12418. msm_routing_put_audio_mixer),
  12419. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12420. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12421. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12422. msm_routing_put_audio_mixer),
  12423. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12424. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12425. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12426. msm_routing_put_audio_mixer),
  12427. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12428. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12429. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12430. msm_routing_put_audio_mixer),
  12431. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12432. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12433. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12434. msm_routing_put_audio_mixer),
  12435. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12436. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12437. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12438. msm_routing_put_audio_mixer),
  12439. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12440. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12441. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12442. msm_routing_put_audio_mixer),
  12443. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12444. MSM_BACKEND_DAI_USB_TX,
  12445. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12446. msm_routing_put_audio_mixer),
  12447. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12448. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12449. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12450. msm_routing_put_audio_mixer),
  12451. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12452. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12453. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12454. msm_routing_put_audio_mixer),
  12455. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12456. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12457. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12458. msm_routing_put_audio_mixer),
  12459. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12460. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12461. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12462. msm_routing_put_audio_mixer),
  12463. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12464. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12465. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12466. msm_routing_put_audio_mixer),
  12467. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12468. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12469. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12470. msm_routing_put_audio_mixer),
  12471. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12472. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12473. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12474. msm_routing_put_audio_mixer),
  12475. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12476. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12477. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12478. msm_routing_put_audio_mixer),
  12479. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12480. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12481. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12482. msm_routing_put_audio_mixer),
  12483. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12484. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12485. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12486. msm_routing_put_audio_mixer),
  12487. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12488. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12489. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12490. msm_routing_put_audio_mixer),
  12491. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12492. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12493. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12494. msm_routing_put_audio_mixer),
  12495. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12496. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12497. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12498. msm_routing_put_audio_mixer),
  12499. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12500. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12501. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12502. msm_routing_put_audio_mixer),
  12503. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12504. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12505. MSM_FRONTEND_DAI_MULTIMEDIA2, 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_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12510. msm_routing_put_audio_mixer),
  12511. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12512. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12513. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12514. msm_routing_put_audio_mixer),
  12515. };
  12516. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  12517. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12518. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12519. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12520. msm_routing_put_audio_mixer),
  12521. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12522. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12523. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12524. msm_routing_put_audio_mixer),
  12525. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12526. MSM_BACKEND_DAI_INT_FM_TX,
  12527. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12528. msm_routing_put_audio_mixer),
  12529. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12530. MSM_BACKEND_DAI_MI2S_TX,
  12531. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12532. msm_routing_put_audio_mixer),
  12533. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_AFE_PCM_TX,
  12535. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12536. msm_routing_put_audio_mixer),
  12537. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12538. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12539. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12540. msm_routing_put_audio_mixer),
  12541. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  12542. MSM_BACKEND_DAI_AUXPCM_TX,
  12543. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12544. msm_routing_put_audio_mixer),
  12545. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12546. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12547. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12548. msm_routing_put_audio_mixer),
  12549. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12550. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12551. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12552. msm_routing_put_audio_mixer),
  12553. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12554. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12555. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12556. msm_routing_put_audio_mixer),
  12557. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12558. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12559. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12560. msm_routing_put_audio_mixer),
  12561. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12562. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12563. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12564. msm_routing_put_audio_mixer),
  12565. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12566. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12567. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12568. msm_routing_put_audio_mixer),
  12569. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12570. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12571. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12572. msm_routing_put_audio_mixer),
  12573. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12574. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12575. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12576. msm_routing_put_audio_mixer),
  12577. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12578. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12579. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12580. msm_routing_put_audio_mixer),
  12581. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12582. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12583. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12584. msm_routing_put_audio_mixer),
  12585. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12586. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12587. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12588. msm_routing_put_audio_mixer),
  12589. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12590. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12591. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12592. msm_routing_put_audio_mixer),
  12593. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12594. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12595. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12596. msm_routing_put_audio_mixer),
  12597. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12598. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12599. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12600. msm_routing_put_audio_mixer),
  12601. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12602. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12603. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12604. msm_routing_put_audio_mixer),
  12605. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12606. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12607. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12608. msm_routing_put_audio_mixer),
  12609. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12610. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12611. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12612. msm_routing_put_audio_mixer),
  12613. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12614. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12615. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12616. msm_routing_put_audio_mixer),
  12617. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12618. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12619. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12620. msm_routing_put_audio_mixer),
  12621. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12622. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12623. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12624. msm_routing_put_audio_mixer),
  12625. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12626. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12627. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12628. msm_routing_put_audio_mixer),
  12629. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12630. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12631. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12632. msm_routing_put_audio_mixer),
  12633. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12634. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12635. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12636. msm_routing_put_audio_mixer),
  12637. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12638. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12639. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12640. msm_routing_put_audio_mixer),
  12641. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12642. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12643. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12644. msm_routing_put_audio_mixer),
  12645. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12646. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12647. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12648. msm_routing_put_audio_mixer),
  12649. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12650. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12651. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12652. msm_routing_put_audio_mixer),
  12653. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12654. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12655. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12656. msm_routing_put_audio_mixer),
  12657. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12658. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12659. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12660. msm_routing_put_audio_mixer),
  12661. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12662. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12663. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12664. msm_routing_put_audio_mixer),
  12665. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12666. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12667. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12668. msm_routing_put_audio_mixer),
  12669. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12670. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12671. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12672. msm_routing_put_audio_mixer),
  12673. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12674. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12675. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12676. msm_routing_put_audio_mixer),
  12677. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12678. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12679. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12680. msm_routing_put_audio_mixer),
  12681. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12682. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12683. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12684. msm_routing_put_audio_mixer),
  12685. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12686. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12687. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12688. msm_routing_put_audio_mixer),
  12689. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12690. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12691. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12692. msm_routing_put_audio_mixer),
  12693. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12694. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12695. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12696. msm_routing_put_audio_mixer),
  12697. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12698. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12699. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12700. msm_routing_put_audio_mixer),
  12701. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12702. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12703. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12704. msm_routing_put_audio_mixer),
  12705. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12706. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12707. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12708. msm_routing_put_audio_mixer),
  12709. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12710. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12711. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12712. msm_routing_put_audio_mixer),
  12713. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12714. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12715. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12716. msm_routing_put_audio_mixer),
  12717. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12718. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12719. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12720. msm_routing_put_audio_mixer),
  12721. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12722. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12723. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12724. msm_routing_put_audio_mixer),
  12725. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12726. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12727. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12728. msm_routing_put_audio_mixer),
  12729. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12730. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12731. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12732. msm_routing_put_audio_mixer),
  12733. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12734. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12735. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12736. msm_routing_put_audio_mixer),
  12737. };
  12738. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  12739. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12740. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12741. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12742. msm_routing_put_audio_mixer),
  12743. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12744. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12745. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12746. msm_routing_put_audio_mixer),
  12747. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12748. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12749. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12750. msm_routing_put_audio_mixer),
  12751. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12752. MSM_BACKEND_DAI_INT_FM_TX,
  12753. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12754. msm_routing_put_audio_mixer),
  12755. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12756. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12757. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12758. msm_routing_put_audio_mixer),
  12759. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12760. MSM_BACKEND_DAI_AFE_PCM_TX,
  12761. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12762. msm_routing_put_audio_mixer),
  12763. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12764. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12765. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12766. msm_routing_put_audio_mixer),
  12767. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12768. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12769. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12770. msm_routing_put_audio_mixer),
  12771. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12772. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12773. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12774. msm_routing_put_audio_mixer),
  12775. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12776. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12777. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12778. msm_routing_put_audio_mixer),
  12779. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12780. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12781. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12782. msm_routing_put_audio_mixer),
  12783. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12784. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12786. msm_routing_put_audio_mixer),
  12787. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12788. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12789. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12790. msm_routing_put_audio_mixer),
  12791. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12792. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12793. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12794. msm_routing_put_audio_mixer),
  12795. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12796. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12797. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12798. msm_routing_put_audio_mixer),
  12799. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12800. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12801. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12802. msm_routing_put_audio_mixer),
  12803. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12804. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12805. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12806. msm_routing_put_audio_mixer),
  12807. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12808. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12809. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12810. msm_routing_put_audio_mixer),
  12811. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12812. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12813. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12814. msm_routing_put_audio_mixer),
  12815. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12816. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12817. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12818. msm_routing_put_audio_mixer),
  12819. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12820. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12821. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12822. msm_routing_put_audio_mixer),
  12823. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12824. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12825. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12826. msm_routing_put_audio_mixer),
  12827. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12828. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12829. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12830. msm_routing_put_audio_mixer),
  12831. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12832. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12833. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12834. msm_routing_put_audio_mixer),
  12835. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12836. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12837. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12838. msm_routing_put_audio_mixer),
  12839. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12840. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12841. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12842. msm_routing_put_audio_mixer),
  12843. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12844. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12845. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12846. msm_routing_put_audio_mixer),
  12847. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12848. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12849. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12850. msm_routing_put_audio_mixer),
  12851. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12852. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12853. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12854. msm_routing_put_audio_mixer),
  12855. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12856. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12857. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12858. msm_routing_put_audio_mixer),
  12859. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12860. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12861. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12862. msm_routing_put_audio_mixer),
  12863. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12864. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12865. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12866. msm_routing_put_audio_mixer),
  12867. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12868. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12869. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12870. msm_routing_put_audio_mixer),
  12871. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12872. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12873. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12874. msm_routing_put_audio_mixer),
  12875. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12876. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12877. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12878. msm_routing_put_audio_mixer),
  12879. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12880. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12881. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12882. msm_routing_put_audio_mixer),
  12883. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12884. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12885. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12886. msm_routing_put_audio_mixer),
  12887. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12888. MSM_BACKEND_DAI_USB_TX,
  12889. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12890. msm_routing_put_audio_mixer),
  12891. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12892. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12893. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12894. msm_routing_put_audio_mixer),
  12895. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12896. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12897. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12898. msm_routing_put_audio_mixer),
  12899. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12900. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12901. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12902. msm_routing_put_audio_mixer),
  12903. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12904. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12905. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12906. msm_routing_put_audio_mixer),
  12907. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12908. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12909. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12910. msm_routing_put_audio_mixer),
  12911. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12912. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12913. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12914. msm_routing_put_audio_mixer),
  12915. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12916. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12917. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12918. msm_routing_put_audio_mixer),
  12919. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12920. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12921. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12922. msm_routing_put_audio_mixer),
  12923. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12924. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12925. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12926. msm_routing_put_audio_mixer),
  12927. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12928. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12929. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12930. msm_routing_put_audio_mixer),
  12931. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12932. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12933. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12934. msm_routing_put_audio_mixer),
  12935. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12936. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12937. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12938. msm_routing_put_audio_mixer),
  12939. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12940. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12941. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12942. msm_routing_put_audio_mixer),
  12943. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12944. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12945. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12946. msm_routing_put_audio_mixer),
  12947. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12948. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12949. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12950. msm_routing_put_audio_mixer),
  12951. };
  12952. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  12953. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12954. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12955. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12956. msm_routing_put_audio_mixer),
  12957. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12958. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12959. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12960. msm_routing_put_audio_mixer),
  12961. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12962. MSM_BACKEND_DAI_INT_FM_TX,
  12963. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12964. msm_routing_put_audio_mixer),
  12965. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12966. MSM_BACKEND_DAI_MI2S_TX,
  12967. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12968. msm_routing_put_audio_mixer),
  12969. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12970. MSM_BACKEND_DAI_AFE_PCM_TX,
  12971. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12972. msm_routing_put_audio_mixer),
  12973. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12974. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12975. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12976. msm_routing_put_audio_mixer),
  12977. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12978. MSM_BACKEND_DAI_AUXPCM_TX,
  12979. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12980. msm_routing_put_audio_mixer),
  12981. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12982. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12983. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12984. msm_routing_put_audio_mixer),
  12985. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12986. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12987. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12988. msm_routing_put_audio_mixer),
  12989. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12990. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12991. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12992. msm_routing_put_audio_mixer),
  12993. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12994. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12995. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12996. msm_routing_put_audio_mixer),
  12997. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12998. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12999. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13000. msm_routing_put_audio_mixer),
  13001. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13002. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13003. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13004. msm_routing_put_audio_mixer),
  13005. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13006. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13007. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13008. msm_routing_put_audio_mixer),
  13009. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13010. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13011. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13012. msm_routing_put_audio_mixer),
  13013. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13014. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13015. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13016. msm_routing_put_audio_mixer),
  13017. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13018. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13019. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13020. msm_routing_put_audio_mixer),
  13021. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13022. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13023. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13024. msm_routing_put_audio_mixer),
  13025. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13026. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13027. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13028. msm_routing_put_audio_mixer),
  13029. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13030. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13031. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13032. msm_routing_put_audio_mixer),
  13033. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13034. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13035. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13036. msm_routing_put_audio_mixer),
  13037. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13038. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13039. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13040. msm_routing_put_audio_mixer),
  13041. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13042. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13043. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13044. msm_routing_put_audio_mixer),
  13045. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13046. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13047. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13048. msm_routing_put_audio_mixer),
  13049. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13050. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13051. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13052. msm_routing_put_audio_mixer),
  13053. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13054. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13055. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13056. msm_routing_put_audio_mixer),
  13057. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13058. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13059. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13060. msm_routing_put_audio_mixer),
  13061. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13062. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13063. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13064. msm_routing_put_audio_mixer),
  13065. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13066. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13067. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13068. msm_routing_put_audio_mixer),
  13069. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13070. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13071. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13072. msm_routing_put_audio_mixer),
  13073. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13074. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13075. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13076. msm_routing_put_audio_mixer),
  13077. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13078. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13079. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13080. msm_routing_put_audio_mixer),
  13081. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13082. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13083. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13084. msm_routing_put_audio_mixer),
  13085. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13086. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13087. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13088. msm_routing_put_audio_mixer),
  13089. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13090. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13091. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13092. msm_routing_put_audio_mixer),
  13093. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13094. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13095. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13096. msm_routing_put_audio_mixer),
  13097. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13098. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13099. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13100. msm_routing_put_audio_mixer),
  13101. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13102. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13103. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13104. msm_routing_put_audio_mixer),
  13105. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13106. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13107. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13108. msm_routing_put_audio_mixer),
  13109. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13110. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13111. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13112. msm_routing_put_audio_mixer),
  13113. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13114. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13115. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13116. msm_routing_put_audio_mixer),
  13117. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13118. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13119. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13120. msm_routing_put_audio_mixer),
  13121. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13122. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13123. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13124. msm_routing_put_audio_mixer),
  13125. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13126. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13127. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13128. msm_routing_put_audio_mixer),
  13129. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13130. MSM_BACKEND_DAI_USB_TX,
  13131. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13132. msm_routing_put_audio_mixer),
  13133. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13134. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13135. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13136. msm_routing_put_audio_mixer),
  13137. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13138. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13139. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13140. msm_routing_put_audio_mixer),
  13141. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13142. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13143. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13144. msm_routing_put_audio_mixer),
  13145. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13146. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13147. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13148. msm_routing_put_audio_mixer),
  13149. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13150. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13151. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13152. msm_routing_put_audio_mixer),
  13153. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13154. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13155. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13156. msm_routing_put_audio_mixer),
  13157. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13158. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13159. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13160. msm_routing_put_audio_mixer),
  13161. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13162. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13163. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13164. msm_routing_put_audio_mixer),
  13165. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13166. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13167. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13168. msm_routing_put_audio_mixer),
  13169. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13170. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13171. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13172. msm_routing_put_audio_mixer),
  13173. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13174. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13175. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13176. msm_routing_put_audio_mixer),
  13177. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13178. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13179. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13180. msm_routing_put_audio_mixer),
  13181. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13182. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13183. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13184. msm_routing_put_audio_mixer),
  13185. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13186. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13187. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13188. msm_routing_put_audio_mixer),
  13189. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13190. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13191. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13192. msm_routing_put_audio_mixer),
  13193. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13194. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13195. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13196. msm_routing_put_audio_mixer),
  13197. };
  13198. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  13199. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13200. MSM_BACKEND_DAI_INT_FM_TX,
  13201. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13202. msm_routing_put_audio_mixer),
  13203. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13204. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13205. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13206. msm_routing_put_audio_mixer),
  13207. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13208. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13209. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13210. msm_routing_put_audio_mixer),
  13211. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13212. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13213. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13214. msm_routing_put_audio_mixer),
  13215. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13216. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13217. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13218. msm_routing_put_audio_mixer),
  13219. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13220. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13221. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13222. msm_routing_put_audio_mixer),
  13223. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13224. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13225. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13226. msm_routing_put_audio_mixer),
  13227. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13228. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13229. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13230. msm_routing_put_audio_mixer),
  13231. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13232. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13233. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13234. msm_routing_put_audio_mixer),
  13235. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13236. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13237. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13238. msm_routing_put_audio_mixer),
  13239. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13240. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13241. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13242. msm_routing_put_audio_mixer),
  13243. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13244. MSM_BACKEND_DAI_AUXPCM_TX,
  13245. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13246. msm_routing_put_audio_mixer),
  13247. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13248. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13249. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13250. msm_routing_put_audio_mixer),
  13251. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13252. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13253. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13254. msm_routing_put_audio_mixer),
  13255. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13256. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13257. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13258. msm_routing_put_audio_mixer),
  13259. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13260. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13261. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13262. msm_routing_put_audio_mixer),
  13263. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13264. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13265. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13266. msm_routing_put_audio_mixer),
  13267. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13268. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13269. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13270. msm_routing_put_audio_mixer),
  13271. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13272. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13273. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13274. msm_routing_put_audio_mixer),
  13275. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13276. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13277. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13278. msm_routing_put_audio_mixer),
  13279. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13280. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13281. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13282. msm_routing_put_audio_mixer),
  13283. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13284. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13285. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13286. msm_routing_put_audio_mixer),
  13287. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13288. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13289. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13290. msm_routing_put_audio_mixer),
  13291. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13292. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13293. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13294. msm_routing_put_audio_mixer),
  13295. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13296. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13297. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13298. msm_routing_put_audio_mixer),
  13299. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13300. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13301. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13302. msm_routing_put_audio_mixer),
  13303. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13304. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13305. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13306. msm_routing_put_audio_mixer),
  13307. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13308. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13309. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13310. msm_routing_put_audio_mixer),
  13311. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13312. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13313. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13314. msm_routing_put_audio_mixer),
  13315. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13316. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13317. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13318. msm_routing_put_audio_mixer),
  13319. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13320. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13321. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13322. msm_routing_put_audio_mixer),
  13323. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13324. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13325. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13326. msm_routing_put_audio_mixer),
  13327. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13328. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13329. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13330. msm_routing_put_audio_mixer),
  13331. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13332. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13333. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13334. msm_routing_put_audio_mixer),
  13335. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13336. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13337. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13338. msm_routing_put_audio_mixer),
  13339. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13340. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13341. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13342. msm_routing_put_audio_mixer),
  13343. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13344. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13345. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13346. msm_routing_put_audio_mixer),
  13347. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13348. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13349. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13350. msm_routing_put_audio_mixer),
  13351. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13352. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13353. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13354. msm_routing_put_audio_mixer),
  13355. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13356. MSM_BACKEND_DAI_USB_TX,
  13357. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13358. msm_routing_put_audio_mixer),
  13359. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13360. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13361. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13362. msm_routing_put_audio_mixer),
  13363. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13364. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13365. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13366. msm_routing_put_audio_mixer),
  13367. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13368. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13369. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13370. msm_routing_put_audio_mixer),
  13371. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13372. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13373. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13374. msm_routing_put_audio_mixer),
  13375. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13376. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13377. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13378. msm_routing_put_audio_mixer),
  13379. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13380. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13381. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13382. msm_routing_put_audio_mixer),
  13383. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13384. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13385. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13386. msm_routing_put_audio_mixer),
  13387. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13388. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13389. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13390. msm_routing_put_audio_mixer),
  13391. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13392. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13393. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13394. msm_routing_put_audio_mixer),
  13395. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13396. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13397. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13398. msm_routing_put_audio_mixer),
  13399. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13400. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13401. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13402. msm_routing_put_audio_mixer),
  13403. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13404. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13405. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13406. msm_routing_put_audio_mixer),
  13407. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13408. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13409. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13410. msm_routing_put_audio_mixer),
  13411. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13412. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13413. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13414. msm_routing_put_audio_mixer),
  13415. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13416. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13417. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13418. msm_routing_put_audio_mixer),
  13419. };
  13420. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  13421. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13422. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13423. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13424. msm_routing_put_audio_mixer),
  13425. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13426. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13427. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13428. msm_routing_put_audio_mixer),
  13429. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13430. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13431. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13432. msm_routing_put_audio_mixer),
  13433. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13434. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13435. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13436. msm_routing_put_audio_mixer),
  13437. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13438. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13439. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13440. msm_routing_put_audio_mixer),
  13441. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13442. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13443. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13444. msm_routing_put_audio_mixer),
  13445. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13446. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13447. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13448. msm_routing_put_audio_mixer),
  13449. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13450. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13451. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13452. msm_routing_put_audio_mixer),
  13453. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13454. MSM_BACKEND_DAI_INT_FM_TX,
  13455. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13456. msm_routing_put_audio_mixer),
  13457. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13458. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13459. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13460. msm_routing_put_audio_mixer),
  13461. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13462. MSM_BACKEND_DAI_AFE_PCM_TX,
  13463. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13464. msm_routing_put_audio_mixer),
  13465. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13466. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13467. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13468. msm_routing_put_audio_mixer),
  13469. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13470. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13471. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13472. msm_routing_put_audio_mixer),
  13473. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13474. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13475. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13476. msm_routing_put_audio_mixer),
  13477. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13478. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13479. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13480. msm_routing_put_audio_mixer),
  13481. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13482. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13483. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13484. msm_routing_put_audio_mixer),
  13485. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13486. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13487. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13488. msm_routing_put_audio_mixer),
  13489. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13490. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13491. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13492. msm_routing_put_audio_mixer),
  13493. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13494. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13495. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13496. msm_routing_put_audio_mixer),
  13497. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13498. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13499. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13500. msm_routing_put_audio_mixer),
  13501. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13502. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13503. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13504. msm_routing_put_audio_mixer),
  13505. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13506. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13507. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13508. msm_routing_put_audio_mixer),
  13509. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13510. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13511. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13512. msm_routing_put_audio_mixer),
  13513. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13514. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13515. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13516. msm_routing_put_audio_mixer),
  13517. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13518. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13519. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13520. msm_routing_put_audio_mixer),
  13521. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13522. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13523. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13524. msm_routing_put_audio_mixer),
  13525. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13526. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13527. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13528. msm_routing_put_audio_mixer),
  13529. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13530. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13531. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13532. msm_routing_put_audio_mixer),
  13533. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13534. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13535. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13536. msm_routing_put_audio_mixer),
  13537. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13538. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13539. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13540. msm_routing_put_audio_mixer),
  13541. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13542. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13543. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13544. msm_routing_put_audio_mixer),
  13545. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13546. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13547. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13548. msm_routing_put_audio_mixer),
  13549. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13550. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13551. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13552. msm_routing_put_audio_mixer),
  13553. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13554. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13555. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13556. msm_routing_put_audio_mixer),
  13557. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13558. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13559. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13560. msm_routing_put_audio_mixer),
  13561. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13562. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13563. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13564. msm_routing_put_audio_mixer),
  13565. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13566. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13567. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13568. msm_routing_put_audio_mixer),
  13569. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13570. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13571. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13572. msm_routing_put_audio_mixer),
  13573. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13574. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13575. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13576. msm_routing_put_audio_mixer),
  13577. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13578. MSM_BACKEND_DAI_USB_TX,
  13579. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13580. msm_routing_put_audio_mixer),
  13581. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13582. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13583. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13584. msm_routing_put_audio_mixer),
  13585. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13586. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13587. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13588. msm_routing_put_audio_mixer),
  13589. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13590. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13591. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13592. msm_routing_put_audio_mixer),
  13593. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13594. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13595. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13596. msm_routing_put_audio_mixer),
  13597. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13598. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13599. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13600. msm_routing_put_audio_mixer),
  13601. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13602. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13603. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13604. msm_routing_put_audio_mixer),
  13605. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13606. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13607. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13608. msm_routing_put_audio_mixer),
  13609. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13610. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13611. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13612. msm_routing_put_audio_mixer),
  13613. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13614. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13615. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13616. msm_routing_put_audio_mixer),
  13617. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13618. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13619. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13620. msm_routing_put_audio_mixer),
  13621. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13622. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13623. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13624. msm_routing_put_audio_mixer),
  13625. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13626. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13627. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13628. msm_routing_put_audio_mixer),
  13629. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13630. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13631. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13632. msm_routing_put_audio_mixer),
  13633. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13634. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13635. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13636. msm_routing_put_audio_mixer),
  13637. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13638. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13639. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13640. msm_routing_put_audio_mixer),
  13641. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13642. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13643. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13644. msm_routing_put_audio_mixer),
  13645. };
  13646. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  13647. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13648. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13649. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13650. msm_routing_put_audio_mixer),
  13651. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13652. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13653. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13654. msm_routing_put_audio_mixer),
  13655. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13656. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13657. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13658. msm_routing_put_audio_mixer),
  13659. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13660. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13661. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13662. msm_routing_put_audio_mixer),
  13663. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13664. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13665. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13666. msm_routing_put_audio_mixer),
  13667. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13668. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13669. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13670. msm_routing_put_audio_mixer),
  13671. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13672. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13673. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13674. msm_routing_put_audio_mixer),
  13675. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13676. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13677. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13678. msm_routing_put_audio_mixer),
  13679. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13680. MSM_BACKEND_DAI_INT_FM_TX,
  13681. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13682. msm_routing_put_audio_mixer),
  13683. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13684. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13685. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13686. msm_routing_put_audio_mixer),
  13687. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13688. MSM_BACKEND_DAI_AFE_PCM_TX,
  13689. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13690. msm_routing_put_audio_mixer),
  13691. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13692. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13693. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13694. msm_routing_put_audio_mixer),
  13695. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13696. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13697. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13698. msm_routing_put_audio_mixer),
  13699. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13700. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13701. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13702. msm_routing_put_audio_mixer),
  13703. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13704. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13705. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13706. msm_routing_put_audio_mixer),
  13707. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13708. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13709. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13710. msm_routing_put_audio_mixer),
  13711. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13712. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13713. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13714. msm_routing_put_audio_mixer),
  13715. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13716. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13717. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13718. msm_routing_put_audio_mixer),
  13719. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13720. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13721. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13722. msm_routing_put_audio_mixer),
  13723. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13724. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13725. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13726. msm_routing_put_audio_mixer),
  13727. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13728. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13729. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13730. msm_routing_put_audio_mixer),
  13731. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13732. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13733. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13734. msm_routing_put_audio_mixer),
  13735. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13736. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13737. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13738. msm_routing_put_audio_mixer),
  13739. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13740. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13741. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13742. msm_routing_put_audio_mixer),
  13743. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13744. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13745. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13746. msm_routing_put_audio_mixer),
  13747. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13748. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13749. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13750. msm_routing_put_audio_mixer),
  13751. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13752. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13753. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13754. msm_routing_put_audio_mixer),
  13755. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13756. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13757. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13758. msm_routing_put_audio_mixer),
  13759. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13760. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13761. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13762. msm_routing_put_audio_mixer),
  13763. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13764. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13765. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13766. msm_routing_put_audio_mixer),
  13767. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13768. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13769. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13770. msm_routing_put_audio_mixer),
  13771. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13772. MSM_BACKEND_DAI_USB_TX,
  13773. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13774. msm_routing_put_audio_mixer),
  13775. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13776. MSM_BACKEND_DAI_MI2S_TX,
  13777. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13778. msm_routing_put_audio_mixer),
  13779. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13780. MSM_BACKEND_DAI_AUXPCM_TX,
  13781. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13782. msm_routing_put_audio_mixer),
  13783. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13784. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13785. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13786. msm_routing_put_audio_mixer),
  13787. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13788. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13789. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13790. msm_routing_put_audio_mixer),
  13791. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13792. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13793. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13794. msm_routing_put_audio_mixer),
  13795. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13796. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13797. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13798. msm_routing_put_audio_mixer),
  13799. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13800. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13801. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13802. msm_routing_put_audio_mixer),
  13803. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13804. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13805. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13806. msm_routing_put_audio_mixer),
  13807. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13808. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13809. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13810. msm_routing_put_audio_mixer),
  13811. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13812. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13813. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13814. msm_routing_put_audio_mixer),
  13815. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13816. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13817. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13818. msm_routing_get_audio_mixer,
  13819. msm_routing_put_audio_mixer),
  13820. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13821. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13822. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13823. msm_routing_get_audio_mixer,
  13824. msm_routing_put_audio_mixer),
  13825. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13826. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13827. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13828. msm_routing_get_audio_mixer,
  13829. msm_routing_put_audio_mixer),
  13830. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13831. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13832. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13833. msm_routing_get_audio_mixer,
  13834. msm_routing_put_audio_mixer),
  13835. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13836. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13837. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13838. msm_routing_get_audio_mixer,
  13839. msm_routing_put_audio_mixer),
  13840. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13841. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13842. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13843. msm_routing_get_audio_mixer,
  13844. msm_routing_put_audio_mixer),
  13845. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13846. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13847. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13848. msm_routing_put_audio_mixer),
  13849. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13850. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13851. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13852. msm_routing_put_audio_mixer),
  13853. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13854. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13855. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13856. msm_routing_put_audio_mixer),
  13857. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13858. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13859. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13860. msm_routing_put_audio_mixer),
  13861. };
  13862. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  13863. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13864. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13865. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13866. msm_routing_put_audio_mixer),
  13867. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13868. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13869. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13870. msm_routing_put_audio_mixer),
  13871. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13872. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13873. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13874. msm_routing_put_audio_mixer),
  13875. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13876. MSM_BACKEND_DAI_INT_FM_TX,
  13877. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13878. msm_routing_put_audio_mixer),
  13879. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13880. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13881. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13882. msm_routing_put_audio_mixer),
  13883. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13884. MSM_BACKEND_DAI_AFE_PCM_TX,
  13885. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13886. msm_routing_put_audio_mixer),
  13887. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13888. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13889. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13890. msm_routing_put_audio_mixer),
  13891. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13892. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13893. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13894. msm_routing_put_audio_mixer),
  13895. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13896. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13897. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13898. msm_routing_put_audio_mixer),
  13899. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13900. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13901. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13902. msm_routing_put_audio_mixer),
  13903. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13904. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13905. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13906. msm_routing_put_audio_mixer),
  13907. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13908. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13909. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13910. msm_routing_put_audio_mixer),
  13911. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13912. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13913. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13914. msm_routing_put_audio_mixer),
  13915. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13916. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13917. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13918. msm_routing_put_audio_mixer),
  13919. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13920. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13921. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13922. msm_routing_put_audio_mixer),
  13923. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13924. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13925. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13926. msm_routing_put_audio_mixer),
  13927. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13928. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13929. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13930. msm_routing_put_audio_mixer),
  13931. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13932. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13933. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13934. msm_routing_put_audio_mixer),
  13935. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13936. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13937. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13938. msm_routing_put_audio_mixer),
  13939. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13940. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13941. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13942. msm_routing_put_audio_mixer),
  13943. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13944. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13945. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13946. msm_routing_put_audio_mixer),
  13947. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13948. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13949. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13950. msm_routing_put_audio_mixer),
  13951. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13952. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13953. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13954. msm_routing_put_audio_mixer),
  13955. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13956. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13957. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13958. msm_routing_put_audio_mixer),
  13959. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13960. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13961. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13962. msm_routing_put_audio_mixer),
  13963. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13964. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13965. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13966. msm_routing_put_audio_mixer),
  13967. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13968. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13969. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13970. msm_routing_put_audio_mixer),
  13971. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13972. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13973. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13974. msm_routing_put_audio_mixer),
  13975. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13976. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13977. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13978. msm_routing_put_audio_mixer),
  13979. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13980. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13981. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13982. msm_routing_put_audio_mixer),
  13983. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13984. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13985. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13986. msm_routing_put_audio_mixer),
  13987. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13988. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13989. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13990. msm_routing_put_audio_mixer),
  13991. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13992. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13993. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13994. msm_routing_put_audio_mixer),
  13995. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13996. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13997. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13998. msm_routing_put_audio_mixer),
  13999. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14000. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14001. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14002. msm_routing_put_audio_mixer),
  14003. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14004. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14005. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14006. msm_routing_put_audio_mixer),
  14007. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14008. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14009. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14010. msm_routing_put_audio_mixer),
  14011. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14012. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14013. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14014. msm_routing_put_audio_mixer),
  14015. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14016. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14017. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14018. msm_routing_put_audio_mixer),
  14019. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14020. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14021. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14022. msm_routing_put_audio_mixer),
  14023. };
  14024. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  14025. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14026. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14027. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14028. msm_routing_put_audio_mixer),
  14029. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14030. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14031. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14032. msm_routing_put_audio_mixer),
  14033. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14034. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14035. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14036. msm_routing_put_audio_mixer),
  14037. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14038. MSM_BACKEND_DAI_INT_FM_TX,
  14039. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14040. msm_routing_put_audio_mixer),
  14041. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14042. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14043. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14044. msm_routing_put_audio_mixer),
  14045. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14046. MSM_BACKEND_DAI_AFE_PCM_TX,
  14047. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14048. msm_routing_put_audio_mixer),
  14049. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14050. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14051. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14052. msm_routing_put_audio_mixer),
  14053. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14054. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14055. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14056. msm_routing_put_audio_mixer),
  14057. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  14058. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  14059. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14060. msm_routing_put_audio_mixer),
  14061. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14062. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14063. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14064. msm_routing_put_audio_mixer),
  14065. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14066. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14067. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14068. msm_routing_put_audio_mixer),
  14069. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14070. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14071. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14072. msm_routing_put_audio_mixer),
  14073. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14074. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14075. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14076. msm_routing_put_audio_mixer),
  14077. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14078. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14079. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14080. msm_routing_put_audio_mixer),
  14081. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14082. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14083. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14084. msm_routing_put_audio_mixer),
  14085. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14086. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14087. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14088. msm_routing_put_audio_mixer),
  14089. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14090. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14091. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14092. msm_routing_put_audio_mixer),
  14093. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14094. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14095. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14096. msm_routing_put_audio_mixer),
  14097. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  14098. MSM_BACKEND_DAI_USB_TX,
  14099. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14100. msm_routing_put_audio_mixer),
  14101. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14102. MSM_BACKEND_DAI_MI2S_TX,
  14103. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14104. msm_routing_put_audio_mixer),
  14105. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  14106. MSM_BACKEND_DAI_AUXPCM_TX,
  14107. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14108. msm_routing_put_audio_mixer),
  14109. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  14110. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14111. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14112. msm_routing_put_audio_mixer),
  14113. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  14114. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14115. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14116. msm_routing_put_audio_mixer),
  14117. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  14118. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14119. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14120. msm_routing_put_audio_mixer),
  14121. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14122. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14123. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14124. msm_routing_put_audio_mixer),
  14125. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  14126. MSM_BACKEND_DAI_INT2_MI2S_TX,
  14127. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14128. msm_routing_put_audio_mixer),
  14129. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14130. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14131. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14132. msm_routing_put_audio_mixer),
  14133. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14134. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14135. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14136. msm_routing_put_audio_mixer),
  14137. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14138. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14139. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14140. msm_routing_put_audio_mixer),
  14141. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14142. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14143. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14144. msm_routing_put_audio_mixer),
  14145. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14146. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14147. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14148. msm_routing_put_audio_mixer),
  14149. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14150. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14151. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14152. msm_routing_put_audio_mixer),
  14153. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14154. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14155. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14156. msm_routing_put_audio_mixer),
  14157. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14158. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14159. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14160. msm_routing_get_audio_mixer,
  14161. msm_routing_put_audio_mixer),
  14162. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14163. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14164. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14165. msm_routing_get_audio_mixer,
  14166. msm_routing_put_audio_mixer),
  14167. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14168. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14169. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14170. msm_routing_get_audio_mixer,
  14171. msm_routing_put_audio_mixer),
  14172. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14173. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14174. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14175. msm_routing_get_audio_mixer,
  14176. msm_routing_put_audio_mixer),
  14177. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14178. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14179. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14180. msm_routing_get_audio_mixer,
  14181. msm_routing_put_audio_mixer),
  14182. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14183. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14184. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14185. msm_routing_get_audio_mixer,
  14186. msm_routing_put_audio_mixer),
  14187. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14188. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14189. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14190. msm_routing_put_audio_mixer),
  14191. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14192. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14193. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14194. msm_routing_put_audio_mixer),
  14195. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14196. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14197. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14198. msm_routing_put_audio_mixer),
  14199. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14200. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14201. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14202. msm_routing_put_audio_mixer),
  14203. };
  14204. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  14205. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14206. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14207. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14208. msm_routing_put_audio_mixer),
  14209. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14210. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14211. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14212. msm_routing_put_audio_mixer),
  14213. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14214. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14215. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14216. msm_routing_put_audio_mixer),
  14217. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14218. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14219. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14220. msm_routing_put_audio_mixer),
  14221. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14222. MSM_BACKEND_DAI_INT_FM_TX,
  14223. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14224. msm_routing_put_audio_mixer),
  14225. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14226. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14227. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14228. msm_routing_put_audio_mixer),
  14229. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14230. MSM_BACKEND_DAI_AFE_PCM_TX,
  14231. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14232. msm_routing_put_audio_mixer),
  14233. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14234. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14235. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14236. msm_routing_put_audio_mixer),
  14237. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14238. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14239. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14240. msm_routing_put_audio_mixer),
  14241. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14242. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14243. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14244. msm_routing_put_audio_mixer),
  14245. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14246. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14247. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14248. msm_routing_put_audio_mixer),
  14249. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14250. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14251. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14252. msm_routing_put_audio_mixer),
  14253. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14254. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14255. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14256. msm_routing_put_audio_mixer),
  14257. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14258. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14259. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14260. msm_routing_put_audio_mixer),
  14261. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14262. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14263. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14264. msm_routing_put_audio_mixer),
  14265. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14266. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14267. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14268. msm_routing_put_audio_mixer),
  14269. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14270. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14271. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14272. msm_routing_put_audio_mixer),
  14273. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14274. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14275. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14276. msm_routing_get_audio_mixer,
  14277. msm_routing_put_audio_mixer),
  14278. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14279. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14280. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14281. msm_routing_get_audio_mixer,
  14282. msm_routing_put_audio_mixer),
  14283. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14284. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14285. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14286. msm_routing_get_audio_mixer,
  14287. msm_routing_put_audio_mixer),
  14288. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14289. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14290. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14291. msm_routing_get_audio_mixer,
  14292. msm_routing_put_audio_mixer),
  14293. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14294. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14295. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14296. msm_routing_get_audio_mixer,
  14297. msm_routing_put_audio_mixer),
  14298. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14299. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14300. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14301. msm_routing_get_audio_mixer,
  14302. msm_routing_put_audio_mixer),
  14303. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14304. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14305. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14306. msm_routing_put_audio_mixer),
  14307. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14308. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14309. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14310. msm_routing_put_audio_mixer),
  14311. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14312. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14313. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14314. msm_routing_put_audio_mixer),
  14315. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14316. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14317. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14318. msm_routing_put_audio_mixer),
  14319. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  14320. MSM_BACKEND_DAI_USB_TX,
  14321. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14322. msm_routing_put_audio_mixer),
  14323. };
  14324. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  14325. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14326. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14327. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14328. msm_routing_put_audio_mixer),
  14329. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14330. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14331. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14332. msm_routing_put_audio_mixer),
  14333. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14334. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14335. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14336. msm_routing_put_audio_mixer),
  14337. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14338. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14339. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14340. msm_routing_put_audio_mixer),
  14341. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14342. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14343. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14344. msm_routing_put_audio_mixer),
  14345. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14346. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14347. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14348. msm_routing_put_audio_mixer),
  14349. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14350. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14351. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14352. msm_routing_put_audio_mixer),
  14353. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14354. MSM_BACKEND_DAI_INT_FM_TX,
  14355. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14356. msm_routing_put_audio_mixer),
  14357. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14358. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14359. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14360. msm_routing_put_audio_mixer),
  14361. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14362. MSM_BACKEND_DAI_AFE_PCM_TX,
  14363. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14364. msm_routing_put_audio_mixer),
  14365. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14366. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14367. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14368. msm_routing_put_audio_mixer),
  14369. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14370. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14371. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14372. msm_routing_put_audio_mixer),
  14373. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14374. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14375. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14376. msm_routing_put_audio_mixer),
  14377. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14378. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14379. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14380. msm_routing_put_audio_mixer),
  14381. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14382. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14383. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14384. msm_routing_put_audio_mixer),
  14385. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14386. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14387. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14388. msm_routing_put_audio_mixer),
  14389. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14390. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14391. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14392. msm_routing_put_audio_mixer),
  14393. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14394. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14395. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14396. msm_routing_put_audio_mixer),
  14397. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14398. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14399. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14400. msm_routing_get_audio_mixer,
  14401. msm_routing_put_audio_mixer),
  14402. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14403. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14404. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14405. msm_routing_get_audio_mixer,
  14406. msm_routing_put_audio_mixer),
  14407. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14408. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14409. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14410. msm_routing_get_audio_mixer,
  14411. msm_routing_put_audio_mixer),
  14412. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14413. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14414. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14415. msm_routing_get_audio_mixer,
  14416. msm_routing_put_audio_mixer),
  14417. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14418. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14419. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14420. msm_routing_get_audio_mixer,
  14421. msm_routing_put_audio_mixer),
  14422. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14423. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14424. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14425. msm_routing_get_audio_mixer,
  14426. msm_routing_put_audio_mixer),
  14427. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14428. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14429. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14430. msm_routing_put_audio_mixer),
  14431. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14432. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14433. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14434. msm_routing_put_audio_mixer),
  14435. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14436. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14437. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14438. msm_routing_put_audio_mixer),
  14439. };
  14440. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  14441. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14442. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14443. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14444. msm_routing_put_audio_mixer),
  14445. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14446. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14447. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14448. msm_routing_put_audio_mixer),
  14449. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14450. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14451. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14452. msm_routing_put_audio_mixer),
  14453. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14454. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14455. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14456. msm_routing_put_audio_mixer),
  14457. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14458. MSM_BACKEND_DAI_INT_FM_TX,
  14459. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14460. msm_routing_put_audio_mixer),
  14461. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14462. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14463. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14464. msm_routing_put_audio_mixer),
  14465. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14466. MSM_BACKEND_DAI_AFE_PCM_TX,
  14467. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14468. msm_routing_put_audio_mixer),
  14469. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14470. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14471. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14472. msm_routing_put_audio_mixer),
  14473. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14474. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14475. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14476. msm_routing_put_audio_mixer),
  14477. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14478. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14479. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14480. msm_routing_put_audio_mixer),
  14481. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14482. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14483. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14484. msm_routing_put_audio_mixer),
  14485. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14486. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14487. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14488. msm_routing_put_audio_mixer),
  14489. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14490. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14491. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14492. msm_routing_put_audio_mixer),
  14493. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14494. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14495. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14496. msm_routing_put_audio_mixer),
  14497. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14498. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14499. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14500. msm_routing_put_audio_mixer),
  14501. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14502. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14503. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14504. msm_routing_put_audio_mixer),
  14505. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14506. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14507. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14508. msm_routing_put_audio_mixer),
  14509. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14510. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14511. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14512. msm_routing_put_audio_mixer),
  14513. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14514. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14515. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14516. msm_routing_get_audio_mixer,
  14517. msm_routing_put_audio_mixer),
  14518. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14519. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14520. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14521. msm_routing_get_audio_mixer,
  14522. msm_routing_put_audio_mixer),
  14523. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14524. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14525. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14526. msm_routing_get_audio_mixer,
  14527. msm_routing_put_audio_mixer),
  14528. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14529. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14530. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14531. msm_routing_get_audio_mixer,
  14532. msm_routing_put_audio_mixer),
  14533. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14534. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14535. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14536. msm_routing_get_audio_mixer,
  14537. msm_routing_put_audio_mixer),
  14538. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14539. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14540. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14541. msm_routing_get_audio_mixer,
  14542. msm_routing_put_audio_mixer),
  14543. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14544. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14545. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14546. msm_routing_put_audio_mixer),
  14547. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14548. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14549. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14550. msm_routing_put_audio_mixer),
  14551. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14552. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14553. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14554. msm_routing_put_audio_mixer),
  14555. };
  14556. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  14557. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14558. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14559. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14560. msm_routing_put_audio_mixer),
  14561. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14562. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14563. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14564. msm_routing_put_audio_mixer),
  14565. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14566. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14567. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14568. msm_routing_put_audio_mixer),
  14569. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14570. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14571. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14572. msm_routing_put_audio_mixer),
  14573. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14574. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14575. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14576. msm_routing_put_audio_mixer),
  14577. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14578. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14579. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14580. msm_routing_put_audio_mixer),
  14581. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14582. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14583. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14584. msm_routing_put_audio_mixer),
  14585. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14586. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14587. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14588. msm_routing_put_audio_mixer),
  14589. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14590. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14591. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14592. msm_routing_put_audio_mixer),
  14593. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14594. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14595. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14596. msm_routing_put_audio_mixer),
  14597. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14598. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14599. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14600. msm_routing_put_audio_mixer),
  14601. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14602. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14603. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14604. msm_routing_put_audio_mixer),
  14605. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14606. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14607. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14608. msm_routing_put_audio_mixer),
  14609. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14610. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14611. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14612. msm_routing_put_audio_mixer),
  14613. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14614. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14615. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14616. msm_routing_put_audio_mixer),
  14617. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14618. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14619. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14620. msm_routing_put_audio_mixer),
  14621. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14622. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14623. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14624. msm_routing_put_audio_mixer),
  14625. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14626. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14627. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14628. msm_routing_put_audio_mixer),
  14629. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14630. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14631. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14632. msm_routing_put_audio_mixer),
  14633. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14634. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14635. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14636. msm_routing_put_audio_mixer),
  14637. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14638. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14639. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14640. msm_routing_put_audio_mixer),
  14641. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14642. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14643. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14644. msm_routing_put_audio_mixer),
  14645. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14646. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14647. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14648. msm_routing_put_audio_mixer),
  14649. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14650. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14651. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14652. msm_routing_put_audio_mixer),
  14653. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14654. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14655. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14656. msm_routing_put_audio_mixer),
  14657. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14658. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14659. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14660. msm_routing_put_audio_mixer),
  14661. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14662. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14663. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14664. msm_routing_put_audio_mixer),
  14665. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14666. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14667. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14668. msm_routing_put_audio_mixer),
  14669. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14670. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14671. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14672. msm_routing_put_audio_mixer),
  14673. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14674. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14675. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14676. msm_routing_put_audio_mixer),
  14677. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14678. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14679. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14680. msm_routing_put_audio_mixer),
  14681. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14682. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14683. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14684. msm_routing_put_audio_mixer),
  14685. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14686. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14687. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14688. msm_routing_put_audio_mixer),
  14689. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14690. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14691. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14692. msm_routing_put_audio_mixer),
  14693. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14694. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14695. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14696. msm_routing_put_audio_mixer),
  14697. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14698. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14699. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14700. msm_routing_put_audio_mixer),
  14701. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14702. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14703. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14704. msm_routing_put_audio_mixer),
  14705. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14706. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14707. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14708. msm_routing_put_audio_mixer),
  14709. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14710. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14711. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14712. msm_routing_put_audio_mixer),
  14713. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14714. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14715. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14716. msm_routing_put_audio_mixer),
  14717. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14718. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14719. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14720. msm_routing_put_audio_mixer),
  14721. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14722. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14723. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14724. msm_routing_put_audio_mixer),
  14725. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14726. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14727. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14728. msm_routing_put_audio_mixer),
  14729. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14730. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14731. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14732. msm_routing_put_audio_mixer),
  14733. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14734. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14735. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14736. msm_routing_put_audio_mixer),
  14737. };
  14738. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  14739. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14740. MSM_BACKEND_DAI_AUXPCM_TX,
  14741. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14742. msm_routing_put_audio_mixer),
  14743. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14744. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14745. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14746. msm_routing_put_audio_mixer),
  14747. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14748. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14749. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14750. msm_routing_put_audio_mixer),
  14751. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14752. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14753. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14754. msm_routing_put_audio_mixer),
  14755. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14756. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14757. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14758. msm_routing_put_audio_mixer),
  14759. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14760. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14761. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14762. msm_routing_put_audio_mixer),
  14763. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14764. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14765. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14766. msm_routing_put_audio_mixer),
  14767. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14768. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14769. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14770. msm_routing_put_audio_mixer),
  14771. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14772. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14773. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14774. msm_routing_put_audio_mixer),
  14775. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14776. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14777. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14778. msm_routing_put_audio_mixer),
  14779. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14780. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14781. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14782. msm_routing_put_audio_mixer),
  14783. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14784. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14785. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14786. msm_routing_put_audio_mixer),
  14787. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14788. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14789. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14790. msm_routing_put_audio_mixer),
  14791. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14792. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14793. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14794. msm_routing_put_audio_mixer),
  14795. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14796. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14797. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14798. msm_routing_put_audio_mixer),
  14799. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14800. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14801. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14802. msm_routing_put_audio_mixer),
  14803. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14804. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14805. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14806. msm_routing_put_audio_mixer),
  14807. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14808. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14809. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14810. msm_routing_put_audio_mixer),
  14811. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14812. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14813. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14814. msm_routing_put_audio_mixer),
  14815. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14816. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14817. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14818. msm_routing_put_audio_mixer),
  14819. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14820. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14821. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14822. msm_routing_put_audio_mixer),
  14823. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14824. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14825. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14826. msm_routing_put_audio_mixer),
  14827. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14828. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14829. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14830. msm_routing_put_audio_mixer),
  14831. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14832. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14833. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14834. msm_routing_put_audio_mixer),
  14835. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14836. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14837. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14838. msm_routing_put_audio_mixer),
  14839. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14840. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14841. MSM_FRONTEND_DAI_MULTIMEDIA21, 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_MULTIMEDIA21, 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_MULTIMEDIA21, 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_MULTIMEDIA21, 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_MULTIMEDIA21, 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_MULTIMEDIA21, 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_MULTIMEDIA21, 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_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14870. msm_routing_put_audio_mixer),
  14871. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14872. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14873. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14874. msm_routing_put_audio_mixer),
  14875. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14876. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14877. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14878. msm_routing_put_audio_mixer),
  14879. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14880. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14881. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14882. msm_routing_put_audio_mixer),
  14883. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14884. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14885. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14886. msm_routing_put_audio_mixer),
  14887. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14888. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14889. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14890. msm_routing_put_audio_mixer),
  14891. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14892. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14893. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14894. msm_routing_put_audio_mixer),
  14895. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14896. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14897. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14898. msm_routing_put_audio_mixer),
  14899. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14900. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14901. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14902. msm_routing_put_audio_mixer),
  14903. };
  14904. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  14905. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14906. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14907. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14908. msm_routing_put_audio_mixer),
  14909. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14910. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14911. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14912. msm_routing_put_audio_mixer),
  14913. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14914. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14915. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14916. msm_routing_put_audio_mixer),
  14917. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14918. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14919. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14920. msm_routing_put_audio_mixer),
  14921. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14922. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14923. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14924. msm_routing_put_audio_mixer),
  14925. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14926. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14927. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14928. msm_routing_put_audio_mixer),
  14929. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14930. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14931. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14932. msm_routing_put_audio_mixer),
  14933. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14934. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14935. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14936. msm_routing_put_audio_mixer),
  14937. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14938. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14939. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14940. msm_routing_put_audio_mixer),
  14941. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14942. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14943. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14944. msm_routing_put_audio_mixer),
  14945. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14946. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14947. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14948. msm_routing_put_audio_mixer),
  14949. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14950. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14951. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14952. msm_routing_put_audio_mixer),
  14953. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14954. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14955. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14956. msm_routing_put_audio_mixer),
  14957. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14958. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14959. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14960. msm_routing_put_audio_mixer),
  14961. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14962. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14963. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14964. msm_routing_put_audio_mixer),
  14965. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14966. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14967. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14968. msm_routing_put_audio_mixer),
  14969. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14970. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14971. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14972. msm_routing_put_audio_mixer),
  14973. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14974. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14975. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14976. msm_routing_put_audio_mixer),
  14977. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14978. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14979. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14980. msm_routing_put_audio_mixer),
  14981. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14982. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14983. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14984. msm_routing_put_audio_mixer),
  14985. };
  14986. static const struct snd_kcontrol_new mmul23_mixer_controls[] = {
  14987. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14988. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14989. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14990. msm_routing_put_audio_mixer),
  14991. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14992. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14993. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14994. msm_routing_put_audio_mixer),
  14995. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14996. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14997. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14998. msm_routing_put_audio_mixer),
  14999. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15001. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15002. msm_routing_put_audio_mixer),
  15003. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15004. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15005. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15006. msm_routing_put_audio_mixer),
  15007. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15008. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15009. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15010. msm_routing_put_audio_mixer),
  15011. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15012. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15013. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15014. msm_routing_put_audio_mixer),
  15015. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15016. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15017. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15018. msm_routing_put_audio_mixer),
  15019. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15020. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15021. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15022. msm_routing_put_audio_mixer),
  15023. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15024. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15025. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15026. msm_routing_put_audio_mixer),
  15027. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15028. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15029. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15030. msm_routing_put_audio_mixer),
  15031. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15032. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15033. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15034. msm_routing_put_audio_mixer),
  15035. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15036. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15037. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15038. msm_routing_put_audio_mixer),
  15039. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15040. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15041. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15042. msm_routing_put_audio_mixer),
  15043. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15044. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15045. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15046. msm_routing_put_audio_mixer),
  15047. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15048. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15049. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15050. msm_routing_put_audio_mixer),
  15051. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15052. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15053. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15054. msm_routing_put_audio_mixer),
  15055. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15056. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15057. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15058. msm_routing_put_audio_mixer),
  15059. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15060. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15061. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15062. msm_routing_put_audio_mixer),
  15063. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15064. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15065. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15066. msm_routing_put_audio_mixer),
  15067. };
  15068. static const struct snd_kcontrol_new mmul24_mixer_controls[] = {
  15069. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15070. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15071. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15072. msm_routing_put_audio_mixer),
  15073. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15074. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15075. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15076. msm_routing_put_audio_mixer),
  15077. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15078. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15079. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15080. msm_routing_put_audio_mixer),
  15081. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15082. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15083. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15084. msm_routing_put_audio_mixer),
  15085. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15086. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15087. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15088. msm_routing_put_audio_mixer),
  15089. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15090. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15091. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15092. msm_routing_put_audio_mixer),
  15093. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15094. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15095. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15096. msm_routing_put_audio_mixer),
  15097. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15098. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15099. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15100. msm_routing_put_audio_mixer),
  15101. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15102. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15103. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15104. msm_routing_put_audio_mixer),
  15105. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15106. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15107. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15108. msm_routing_put_audio_mixer),
  15109. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15110. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15111. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15112. msm_routing_put_audio_mixer),
  15113. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15114. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15115. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15116. msm_routing_put_audio_mixer),
  15117. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15118. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15119. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15120. msm_routing_put_audio_mixer),
  15121. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15122. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15123. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15124. msm_routing_put_audio_mixer),
  15125. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15126. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15127. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15128. msm_routing_put_audio_mixer),
  15129. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15130. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15131. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15132. msm_routing_put_audio_mixer),
  15133. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15134. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15135. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15136. msm_routing_put_audio_mixer),
  15137. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15138. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15139. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15140. msm_routing_put_audio_mixer),
  15141. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15142. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15143. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15144. msm_routing_put_audio_mixer),
  15145. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15146. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15147. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15148. msm_routing_put_audio_mixer),
  15149. };
  15150. static const struct snd_kcontrol_new mmul25_mixer_controls[] = {
  15151. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15152. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15153. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15154. msm_routing_put_audio_mixer),
  15155. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15156. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15157. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15158. msm_routing_put_audio_mixer),
  15159. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15160. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15161. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15162. msm_routing_put_audio_mixer),
  15163. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15164. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15165. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15166. msm_routing_put_audio_mixer),
  15167. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15168. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15169. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15170. msm_routing_put_audio_mixer),
  15171. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15172. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15173. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15174. msm_routing_put_audio_mixer),
  15175. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15176. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15177. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15178. msm_routing_put_audio_mixer),
  15179. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15180. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15181. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15182. msm_routing_put_audio_mixer),
  15183. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15184. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15185. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15186. msm_routing_put_audio_mixer),
  15187. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15188. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15189. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15190. msm_routing_put_audio_mixer),
  15191. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15192. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15193. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15194. msm_routing_put_audio_mixer),
  15195. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15196. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15197. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15198. msm_routing_put_audio_mixer),
  15199. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15200. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15201. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15202. msm_routing_put_audio_mixer),
  15203. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15204. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15205. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15206. msm_routing_put_audio_mixer),
  15207. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15208. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15209. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15210. msm_routing_put_audio_mixer),
  15211. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15212. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15213. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15214. msm_routing_put_audio_mixer),
  15215. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15216. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15217. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15218. msm_routing_put_audio_mixer),
  15219. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15220. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15221. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15222. msm_routing_put_audio_mixer),
  15223. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15224. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15225. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15226. msm_routing_put_audio_mixer),
  15227. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15228. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15229. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15230. msm_routing_put_audio_mixer),
  15231. };
  15232. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  15233. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15234. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15235. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15236. msm_routing_put_audio_mixer),
  15237. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15238. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15239. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15240. msm_routing_put_audio_mixer),
  15241. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  15242. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  15243. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15244. msm_routing_put_audio_mixer),
  15245. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15246. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15247. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15248. msm_routing_put_audio_mixer),
  15249. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15250. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15251. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15252. msm_routing_put_audio_mixer),
  15253. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15254. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15255. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15256. msm_routing_put_audio_mixer),
  15257. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15258. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15259. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15260. msm_routing_put_audio_mixer),
  15261. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15262. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15263. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15264. msm_routing_put_audio_mixer),
  15265. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15266. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  15267. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15268. msm_routing_put_audio_mixer),
  15269. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15270. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  15271. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15272. msm_routing_put_audio_mixer),
  15273. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15274. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15275. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15276. msm_routing_put_audio_mixer),
  15277. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15278. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15279. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15280. msm_routing_put_audio_mixer),
  15281. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15282. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  15283. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15284. msm_routing_put_audio_mixer),
  15285. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15286. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15287. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15288. msm_routing_put_audio_mixer),
  15289. };
  15290. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  15291. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15292. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15293. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15294. msm_routing_put_audio_mixer),
  15295. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15296. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15297. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15298. msm_routing_put_audio_mixer),
  15299. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15300. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15301. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15302. msm_routing_put_audio_mixer),
  15303. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15304. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15305. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15306. msm_routing_put_audio_mixer),
  15307. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15308. MSM_BACKEND_DAI_INT_FM_TX,
  15309. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15310. msm_routing_put_audio_mixer),
  15311. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15312. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15313. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15314. msm_routing_put_audio_mixer),
  15315. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15316. MSM_BACKEND_DAI_AFE_PCM_TX,
  15317. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15318. msm_routing_put_audio_mixer),
  15319. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15320. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15321. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15322. msm_routing_put_audio_mixer),
  15323. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15324. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15325. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15326. msm_routing_put_audio_mixer),
  15327. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15328. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15329. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15330. msm_routing_put_audio_mixer),
  15331. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15332. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15333. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15334. msm_routing_put_audio_mixer),
  15335. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15336. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15337. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15338. msm_routing_put_audio_mixer),
  15339. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15340. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15341. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15342. msm_routing_put_audio_mixer),
  15343. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15344. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15345. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15346. msm_routing_put_audio_mixer),
  15347. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15348. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15349. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15350. msm_routing_put_audio_mixer),
  15351. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15352. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15353. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15354. msm_routing_put_audio_mixer),
  15355. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15356. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15357. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15358. msm_routing_put_audio_mixer),
  15359. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15360. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15361. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15362. msm_routing_put_audio_mixer),
  15363. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15364. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15365. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15366. msm_routing_get_audio_mixer,
  15367. msm_routing_put_audio_mixer),
  15368. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15369. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15370. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15371. msm_routing_get_audio_mixer,
  15372. msm_routing_put_audio_mixer),
  15373. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15374. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15375. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15376. msm_routing_get_audio_mixer,
  15377. msm_routing_put_audio_mixer),
  15378. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15379. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15380. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15381. msm_routing_get_audio_mixer,
  15382. msm_routing_put_audio_mixer),
  15383. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15384. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15385. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15386. msm_routing_get_audio_mixer,
  15387. msm_routing_put_audio_mixer),
  15388. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15389. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15390. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15391. msm_routing_get_audio_mixer,
  15392. msm_routing_put_audio_mixer),
  15393. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15394. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15395. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15396. msm_routing_put_audio_mixer),
  15397. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15398. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15399. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15400. msm_routing_put_audio_mixer),
  15401. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15402. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15403. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15404. msm_routing_put_audio_mixer),
  15405. };
  15406. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  15407. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15408. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15409. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15410. msm_routing_put_audio_mixer),
  15411. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15412. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15413. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15414. msm_routing_put_audio_mixer),
  15415. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15416. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15417. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15418. msm_routing_put_audio_mixer),
  15419. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15420. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15421. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15422. msm_routing_put_audio_mixer),
  15423. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15424. MSM_BACKEND_DAI_INT_FM_TX,
  15425. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15426. msm_routing_put_audio_mixer),
  15427. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15428. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15429. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15430. msm_routing_put_audio_mixer),
  15431. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15432. MSM_BACKEND_DAI_AFE_PCM_TX,
  15433. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15434. msm_routing_put_audio_mixer),
  15435. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15436. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15437. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15438. msm_routing_put_audio_mixer),
  15439. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15440. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15441. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15442. msm_routing_put_audio_mixer),
  15443. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15444. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15445. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15446. msm_routing_put_audio_mixer),
  15447. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15448. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15449. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15450. msm_routing_put_audio_mixer),
  15451. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15452. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15453. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15454. msm_routing_put_audio_mixer),
  15455. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15456. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15457. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15458. msm_routing_put_audio_mixer),
  15459. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15460. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15461. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15462. msm_routing_put_audio_mixer),
  15463. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15464. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15465. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15466. msm_routing_put_audio_mixer),
  15467. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15468. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15469. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15470. msm_routing_put_audio_mixer),
  15471. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15472. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15473. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15474. msm_routing_put_audio_mixer),
  15475. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15476. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15477. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15478. msm_routing_put_audio_mixer),
  15479. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15480. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15481. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15482. msm_routing_get_audio_mixer,
  15483. msm_routing_put_audio_mixer),
  15484. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15485. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15486. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15487. msm_routing_get_audio_mixer,
  15488. msm_routing_put_audio_mixer),
  15489. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15490. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15491. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15492. msm_routing_get_audio_mixer,
  15493. msm_routing_put_audio_mixer),
  15494. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15495. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15496. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15497. msm_routing_get_audio_mixer,
  15498. msm_routing_put_audio_mixer),
  15499. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15500. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15501. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15502. msm_routing_get_audio_mixer,
  15503. msm_routing_put_audio_mixer),
  15504. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15505. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15506. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15507. msm_routing_get_audio_mixer,
  15508. msm_routing_put_audio_mixer),
  15509. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15510. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15511. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15512. msm_routing_put_audio_mixer),
  15513. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15514. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15515. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15516. msm_routing_put_audio_mixer),
  15517. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15518. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15519. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15520. msm_routing_put_audio_mixer),
  15521. };
  15522. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  15523. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15524. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15525. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15526. msm_routing_put_audio_mixer),
  15527. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15528. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15529. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15530. msm_routing_put_audio_mixer),
  15531. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15532. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15533. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15534. msm_routing_put_audio_mixer),
  15535. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15536. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15537. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15538. msm_routing_put_audio_mixer),
  15539. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15540. MSM_BACKEND_DAI_INT_FM_TX,
  15541. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15542. msm_routing_put_audio_mixer),
  15543. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15544. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15545. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15546. msm_routing_put_audio_mixer),
  15547. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15548. MSM_BACKEND_DAI_AFE_PCM_TX,
  15549. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15550. msm_routing_put_audio_mixer),
  15551. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15552. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15553. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15554. msm_routing_put_audio_mixer),
  15555. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15556. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15557. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15558. msm_routing_put_audio_mixer),
  15559. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15560. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15561. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15562. msm_routing_put_audio_mixer),
  15563. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15564. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15565. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15566. msm_routing_put_audio_mixer),
  15567. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15568. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15569. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15570. msm_routing_put_audio_mixer),
  15571. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15572. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15573. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15574. msm_routing_put_audio_mixer),
  15575. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15576. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15577. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15578. msm_routing_put_audio_mixer),
  15579. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15580. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15581. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15582. msm_routing_put_audio_mixer),
  15583. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15584. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15585. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15586. msm_routing_put_audio_mixer),
  15587. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15588. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15589. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15590. msm_routing_put_audio_mixer),
  15591. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15592. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15593. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15594. msm_routing_get_audio_mixer,
  15595. msm_routing_put_audio_mixer),
  15596. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15597. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15598. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15599. msm_routing_get_audio_mixer,
  15600. msm_routing_put_audio_mixer),
  15601. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15602. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15603. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15604. msm_routing_get_audio_mixer,
  15605. msm_routing_put_audio_mixer),
  15606. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15607. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15608. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15609. msm_routing_get_audio_mixer,
  15610. msm_routing_put_audio_mixer),
  15611. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15612. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15613. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15614. msm_routing_get_audio_mixer,
  15615. msm_routing_put_audio_mixer),
  15616. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15617. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15618. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15619. msm_routing_get_audio_mixer,
  15620. msm_routing_put_audio_mixer),
  15621. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15622. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15623. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15624. msm_routing_put_audio_mixer),
  15625. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15626. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15627. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15628. msm_routing_put_audio_mixer),
  15629. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15630. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15631. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15632. msm_routing_put_audio_mixer),
  15633. };
  15634. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  15635. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15636. MSM_BACKEND_DAI_PRI_I2S_RX,
  15637. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15638. msm_routing_put_voice_mixer),
  15639. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15640. MSM_BACKEND_DAI_PRI_I2S_RX,
  15641. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15642. msm_routing_put_voice_mixer),
  15643. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15644. MSM_BACKEND_DAI_PRI_I2S_RX,
  15645. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15646. msm_routing_put_voice_mixer),
  15647. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15648. MSM_BACKEND_DAI_PRI_I2S_RX,
  15649. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15650. msm_routing_put_voice_mixer),
  15651. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15652. MSM_BACKEND_DAI_PRI_I2S_RX,
  15653. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15654. msm_routing_put_voice_mixer),
  15655. };
  15656. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  15657. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15658. MSM_BACKEND_DAI_SEC_I2S_RX,
  15659. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15660. msm_routing_put_voice_mixer),
  15661. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15662. MSM_BACKEND_DAI_SEC_I2S_RX,
  15663. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15664. msm_routing_put_voice_mixer),
  15665. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15666. MSM_BACKEND_DAI_SEC_I2S_RX,
  15667. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15668. msm_routing_put_voice_mixer),
  15669. };
  15670. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  15671. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15672. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15673. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15674. msm_routing_put_voice_mixer),
  15675. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15676. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15677. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15678. msm_routing_put_voice_mixer),
  15679. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15680. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15681. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15682. msm_routing_put_voice_mixer),
  15683. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15684. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15685. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15686. msm_routing_put_voice_mixer),
  15687. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15688. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15689. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15690. msm_routing_put_voice_mixer),
  15691. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15692. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15693. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15694. msm_routing_put_voice_mixer),
  15695. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15696. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15697. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15698. msm_routing_put_voice_mixer),
  15699. };
  15700. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  15701. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15702. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15703. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15704. msm_routing_put_voice_mixer),
  15705. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15706. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15707. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15708. msm_routing_put_voice_mixer),
  15709. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15710. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15711. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15712. msm_routing_put_voice_mixer),
  15713. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15714. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15715. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15716. msm_routing_put_voice_mixer),
  15717. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15718. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15719. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15720. msm_routing_put_voice_mixer),
  15721. };
  15722. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  15723. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15724. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15725. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15726. msm_routing_put_voice_mixer),
  15727. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15728. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15729. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15730. msm_routing_put_voice_mixer),
  15731. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15732. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15733. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15734. msm_routing_put_voice_mixer),
  15735. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15736. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15737. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15738. msm_routing_put_voice_mixer),
  15739. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15740. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15741. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15742. msm_routing_put_voice_mixer),
  15743. };
  15744. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  15745. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15746. MSM_BACKEND_DAI_USB_RX,
  15747. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15748. msm_routing_put_voice_mixer),
  15749. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15750. MSM_BACKEND_DAI_USB_RX,
  15751. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15752. msm_routing_put_voice_mixer),
  15753. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15754. MSM_BACKEND_DAI_USB_RX,
  15755. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15756. msm_routing_put_voice_mixer),
  15757. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15758. MSM_BACKEND_DAI_USB_RX,
  15759. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15760. msm_routing_put_voice_mixer),
  15761. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15762. MSM_BACKEND_DAI_USB_RX,
  15763. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15764. msm_routing_put_voice_mixer),
  15765. };
  15766. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  15767. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15768. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15769. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15770. msm_routing_put_voice_mixer),
  15771. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15772. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15773. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15774. msm_routing_put_voice_mixer),
  15775. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15776. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15777. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15778. msm_routing_put_voice_mixer),
  15779. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15780. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15781. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15782. msm_routing_put_voice_mixer),
  15783. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15784. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15785. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15786. msm_routing_put_voice_mixer),
  15787. };
  15788. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  15789. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15790. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15791. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15792. msm_routing_put_voice_mixer),
  15793. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15794. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15795. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15796. msm_routing_put_voice_mixer),
  15797. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15798. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15799. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15800. msm_routing_put_voice_mixer),
  15801. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15802. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15803. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15804. msm_routing_put_voice_mixer),
  15805. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15806. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15807. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15808. msm_routing_put_voice_mixer),
  15809. };
  15810. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  15811. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15812. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15813. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15814. msm_routing_put_voice_mixer),
  15815. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15816. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15817. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15818. msm_routing_put_voice_mixer),
  15819. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15820. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15821. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15822. msm_routing_put_voice_mixer),
  15823. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15824. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15825. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15826. msm_routing_put_voice_mixer),
  15827. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15828. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15829. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15830. msm_routing_put_voice_mixer),
  15831. };
  15832. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  15833. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15834. MSM_BACKEND_DAI_MI2S_RX,
  15835. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15836. msm_routing_put_voice_mixer),
  15837. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15838. MSM_BACKEND_DAI_MI2S_RX,
  15839. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15840. msm_routing_put_voice_mixer),
  15841. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15842. MSM_BACKEND_DAI_MI2S_RX,
  15843. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15844. msm_routing_put_voice_mixer),
  15845. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15846. MSM_BACKEND_DAI_MI2S_RX,
  15847. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15848. msm_routing_put_voice_mixer),
  15849. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15850. MSM_BACKEND_DAI_MI2S_RX,
  15851. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15852. msm_routing_put_voice_mixer),
  15853. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15854. MSM_BACKEND_DAI_MI2S_RX,
  15855. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15856. msm_routing_put_voice_mixer),
  15857. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15858. MSM_BACKEND_DAI_MI2S_RX,
  15859. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15860. msm_routing_put_voice_mixer),
  15861. };
  15862. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  15863. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15864. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15865. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15866. msm_routing_put_voice_mixer),
  15867. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15868. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15869. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15870. msm_routing_put_voice_mixer),
  15871. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15872. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15873. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15874. msm_routing_put_voice_mixer),
  15875. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15876. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15877. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15878. msm_routing_put_voice_mixer),
  15879. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15880. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15881. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15882. msm_routing_put_voice_mixer),
  15883. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15884. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15885. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15886. msm_routing_put_voice_mixer),
  15887. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15888. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15889. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15890. msm_routing_put_voice_mixer),
  15891. };
  15892. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  15893. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15894. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15895. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15896. msm_routing_put_voice_mixer),
  15897. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15898. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15899. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15900. msm_routing_put_voice_mixer),
  15901. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15902. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15903. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15904. msm_routing_put_voice_mixer),
  15905. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15906. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15907. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15908. msm_routing_put_voice_mixer),
  15909. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15910. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15911. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15912. msm_routing_put_voice_mixer),
  15913. };
  15914. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  15915. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15916. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15917. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15918. msm_routing_put_voice_mixer),
  15919. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15920. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15921. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15922. msm_routing_put_voice_mixer),
  15923. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15924. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15925. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15926. msm_routing_put_voice_mixer),
  15927. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15928. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15929. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15930. msm_routing_put_voice_mixer),
  15931. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15932. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15933. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15934. msm_routing_put_voice_mixer),
  15935. };
  15936. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  15937. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15938. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15939. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15940. msm_routing_put_voice_mixer),
  15941. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15942. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15943. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15944. msm_routing_put_voice_mixer),
  15945. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15946. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15947. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15948. msm_routing_put_voice_mixer),
  15949. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15950. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15951. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15952. msm_routing_put_voice_mixer),
  15953. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15954. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15955. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15956. msm_routing_put_voice_mixer),
  15957. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15958. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15959. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15960. msm_routing_put_voice_mixer),
  15961. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15962. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15963. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15964. msm_routing_put_voice_mixer),
  15965. };
  15966. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  15967. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15968. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15969. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15970. msm_routing_put_voice_mixer),
  15971. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15972. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15973. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15974. msm_routing_put_voice_mixer),
  15975. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15976. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15977. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15978. msm_routing_put_voice_mixer),
  15979. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15980. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15981. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15982. msm_routing_put_voice_mixer),
  15983. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15984. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15985. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15986. msm_routing_put_voice_mixer),
  15987. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15988. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15989. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15990. msm_routing_put_voice_mixer),
  15991. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15992. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15993. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15994. msm_routing_put_voice_mixer),
  15995. };
  15996. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  15997. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15998. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15999. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16000. msm_routing_put_voice_mixer),
  16001. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16002. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16003. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16004. msm_routing_put_voice_stub_mixer),
  16005. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16006. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16007. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16008. msm_routing_put_voice_stub_mixer),
  16009. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16010. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16011. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16012. msm_routing_put_voice_mixer),
  16013. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16014. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16015. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16016. msm_routing_put_voice_mixer),
  16017. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16018. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16019. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16020. msm_routing_put_voice_mixer),
  16021. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16022. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16023. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16024. msm_routing_put_voice_mixer),
  16025. };
  16026. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  16027. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16028. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16029. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16030. msm_routing_put_voice_mixer),
  16031. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16032. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16033. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16034. msm_routing_put_voice_mixer),
  16035. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16036. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16037. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16038. msm_routing_put_voice_mixer),
  16039. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16040. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16041. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16042. msm_routing_put_voice_mixer),
  16043. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16044. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16045. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16046. msm_routing_put_voice_mixer),
  16047. };
  16048. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  16049. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16050. MSM_BACKEND_DAI_AFE_PCM_RX,
  16051. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16052. msm_routing_put_voice_mixer),
  16053. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16054. MSM_BACKEND_DAI_AFE_PCM_RX,
  16055. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16056. msm_routing_put_voice_mixer),
  16057. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16058. MSM_BACKEND_DAI_AFE_PCM_RX,
  16059. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16060. msm_routing_put_voice_mixer),
  16061. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16062. MSM_BACKEND_DAI_AFE_PCM_RX,
  16063. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16064. msm_routing_put_voice_mixer),
  16065. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16066. MSM_BACKEND_DAI_AFE_PCM_RX,
  16067. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16068. msm_routing_put_voice_mixer),
  16069. };
  16070. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  16071. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16072. MSM_BACKEND_DAI_AUXPCM_RX,
  16073. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16074. msm_routing_put_voice_mixer),
  16075. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16076. MSM_BACKEND_DAI_AUXPCM_RX,
  16077. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16078. msm_routing_put_voice_mixer),
  16079. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16080. MSM_BACKEND_DAI_AUXPCM_RX,
  16081. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16082. msm_routing_put_voice_mixer),
  16083. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16084. MSM_BACKEND_DAI_AUXPCM_RX,
  16085. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16086. msm_routing_put_voice_mixer),
  16087. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16088. MSM_BACKEND_DAI_AUXPCM_RX,
  16089. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16090. msm_routing_put_voice_mixer),
  16091. };
  16092. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  16093. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16094. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16095. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16096. msm_routing_put_voice_mixer),
  16097. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16098. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16099. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16100. msm_routing_put_voice_mixer),
  16101. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16102. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16103. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16104. msm_routing_put_voice_mixer),
  16105. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16106. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16107. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16108. msm_routing_put_voice_mixer),
  16109. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16110. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16111. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16112. msm_routing_put_voice_mixer),
  16113. };
  16114. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  16115. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16116. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16117. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16118. msm_routing_put_voice_mixer),
  16119. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16120. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16121. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16122. msm_routing_put_voice_mixer),
  16123. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16124. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16125. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16126. msm_routing_put_voice_mixer),
  16127. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16128. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16129. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16130. msm_routing_put_voice_mixer),
  16131. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16132. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16133. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16134. msm_routing_put_voice_mixer),
  16135. };
  16136. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  16137. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16138. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16139. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16140. msm_routing_put_voice_mixer),
  16141. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16142. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16143. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16144. msm_routing_put_voice_mixer),
  16145. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16146. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16147. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16148. msm_routing_put_voice_mixer),
  16149. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16150. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16151. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16152. msm_routing_put_voice_mixer),
  16153. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16154. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16155. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16156. msm_routing_put_voice_mixer),
  16157. };
  16158. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  16159. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16160. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16161. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16162. msm_routing_put_voice_mixer),
  16163. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16164. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16165. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16166. msm_routing_put_voice_mixer),
  16167. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16168. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16169. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16170. msm_routing_put_voice_mixer),
  16171. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16172. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16173. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16174. msm_routing_put_voice_mixer),
  16175. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16176. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16177. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16178. msm_routing_put_voice_mixer),
  16179. };
  16180. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  16181. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16182. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16183. msm_routing_put_voice_mixer),
  16184. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16185. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16186. msm_routing_put_voice_mixer),
  16187. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16188. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16189. msm_routing_put_voice_mixer),
  16190. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16191. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16192. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16193. msm_routing_put_voice_mixer),
  16194. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16195. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16196. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16197. msm_routing_put_voice_mixer),
  16198. };
  16199. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  16200. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16201. MSM_BACKEND_DAI_HDMI_RX,
  16202. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16203. msm_routing_put_voice_mixer),
  16204. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16205. MSM_BACKEND_DAI_HDMI_RX,
  16206. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16207. msm_routing_put_voice_mixer),
  16208. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16209. MSM_BACKEND_DAI_HDMI_RX,
  16210. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16211. msm_routing_put_voice_mixer),
  16212. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16213. MSM_BACKEND_DAI_HDMI_RX,
  16214. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16215. msm_routing_put_voice_mixer),
  16216. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16217. MSM_BACKEND_DAI_HDMI_RX,
  16218. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16219. msm_routing_put_voice_mixer),
  16220. };
  16221. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  16222. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16223. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16224. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16225. msm_routing_put_voice_mixer),
  16226. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16227. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16228. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16229. msm_routing_put_voice_mixer),
  16230. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16231. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16232. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16233. msm_routing_put_voice_mixer),
  16234. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16235. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16236. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16237. msm_routing_put_voice_mixer),
  16238. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16239. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16240. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16241. msm_routing_put_voice_mixer),
  16242. };
  16243. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  16244. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16245. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16246. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16247. msm_routing_put_voice_mixer),
  16248. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16249. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16250. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16251. msm_routing_put_voice_mixer),
  16252. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16253. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16254. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16255. msm_routing_put_voice_mixer),
  16256. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16257. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16258. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16259. msm_routing_put_voice_mixer),
  16260. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16261. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16262. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16263. msm_routing_put_voice_mixer),
  16264. };
  16265. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  16266. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16267. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  16268. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16269. msm_routing_put_voice_mixer),
  16270. };
  16271. static const struct snd_kcontrol_new quin_tdm_rx_2_voice_mixer_controls[] = {
  16272. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16273. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16274. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16275. msm_routing_put_voice_mixer),
  16276. };
  16277. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  16278. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16279. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16280. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16281. msm_routing_put_voice_mixer),
  16282. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16283. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16284. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16285. msm_routing_put_voice_mixer),
  16286. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16287. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16288. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16289. msm_routing_put_voice_mixer),
  16290. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16291. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16292. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16293. msm_routing_put_voice_mixer),
  16294. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16295. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16296. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16297. msm_routing_put_voice_mixer),
  16298. };
  16299. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  16300. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16301. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16302. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16303. msm_routing_put_voice_mixer),
  16304. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16305. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16306. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16307. msm_routing_put_voice_mixer),
  16308. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16309. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16310. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16311. msm_routing_put_voice_mixer),
  16312. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16313. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16314. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16315. msm_routing_put_voice_mixer),
  16316. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16317. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16318. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16319. msm_routing_put_voice_mixer),
  16320. };
  16321. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  16322. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16323. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16324. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16325. msm_routing_put_voice_mixer),
  16326. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16327. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16328. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16329. msm_routing_put_voice_mixer),
  16330. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16331. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16332. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16333. msm_routing_put_voice_mixer),
  16334. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16335. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16336. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16337. msm_routing_put_voice_mixer),
  16338. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16339. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16340. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16341. msm_routing_put_voice_mixer),
  16342. };
  16343. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  16344. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16345. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16346. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16347. msm_routing_put_voice_mixer),
  16348. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16349. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16350. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16351. msm_routing_put_voice_mixer),
  16352. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16353. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16354. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16355. msm_routing_put_voice_mixer),
  16356. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16357. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16358. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16359. msm_routing_put_voice_mixer),
  16360. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16361. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16362. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16363. msm_routing_put_voice_mixer),
  16364. };
  16365. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  16366. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16367. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16368. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16369. msm_routing_put_voice_mixer),
  16370. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16371. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16372. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16373. msm_routing_put_voice_mixer),
  16374. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16375. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16376. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16377. msm_routing_put_voice_mixer),
  16378. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16379. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16380. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16381. msm_routing_put_voice_mixer),
  16382. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16383. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16384. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16385. msm_routing_put_voice_mixer),
  16386. };
  16387. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  16388. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16389. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16390. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16391. msm_routing_put_voice_mixer),
  16392. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16393. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16394. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16395. msm_routing_put_voice_mixer),
  16396. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16397. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16398. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16399. msm_routing_put_voice_mixer),
  16400. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16401. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16402. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16403. msm_routing_put_voice_mixer),
  16404. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16405. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16406. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16407. msm_routing_put_voice_mixer),
  16408. };
  16409. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  16410. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16411. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16412. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16413. msm_routing_put_voice_mixer),
  16414. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16415. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16416. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16417. msm_routing_put_voice_mixer),
  16418. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16419. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16420. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16421. msm_routing_put_voice_mixer),
  16422. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16423. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16424. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16425. msm_routing_put_voice_mixer),
  16426. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16427. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16428. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16429. msm_routing_put_voice_mixer),
  16430. };
  16431. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  16432. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16433. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16434. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16435. msm_routing_put_voice_mixer),
  16436. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16437. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16438. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16439. msm_routing_put_voice_mixer),
  16440. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16441. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16442. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16443. msm_routing_put_voice_mixer),
  16444. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16445. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16446. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16447. msm_routing_put_voice_mixer),
  16448. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16449. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16450. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16451. msm_routing_put_voice_mixer),
  16452. };
  16453. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  16454. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16455. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16456. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16457. msm_routing_put_voice_mixer),
  16458. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16459. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16460. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16461. msm_routing_put_voice_mixer),
  16462. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16463. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16464. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16465. msm_routing_put_voice_mixer),
  16466. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16467. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16468. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16469. msm_routing_put_voice_mixer),
  16470. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16471. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16472. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16473. msm_routing_put_voice_mixer),
  16474. };
  16475. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  16476. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16477. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16478. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16479. msm_routing_put_voice_mixer),
  16480. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16481. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16482. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16483. msm_routing_put_voice_mixer),
  16484. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16485. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16486. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16487. msm_routing_put_voice_mixer),
  16488. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16489. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16490. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16491. msm_routing_put_voice_mixer),
  16492. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16493. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16494. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16495. msm_routing_put_voice_mixer),
  16496. };
  16497. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  16498. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16499. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16500. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16501. msm_routing_put_voice_mixer),
  16502. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16503. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16504. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16505. msm_routing_put_voice_stub_mixer),
  16506. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16507. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  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("VoLTE Stub", SND_SOC_NOPM,
  16511. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16512. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16513. msm_routing_put_voice_mixer),
  16514. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16515. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16516. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16517. msm_routing_put_voice_mixer),
  16518. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16519. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16520. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16521. msm_routing_put_voice_mixer),
  16522. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16523. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16524. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16525. msm_routing_put_voice_mixer),
  16526. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16527. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16528. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16529. msm_routing_put_voice_mixer),
  16530. };
  16531. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  16532. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16533. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16534. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16535. msm_routing_put_voice_mixer),
  16536. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16537. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16538. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16539. msm_routing_put_voice_stub_mixer),
  16540. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16541. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16542. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16543. msm_routing_put_voice_stub_mixer),
  16544. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16545. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16546. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16547. msm_routing_put_voice_mixer),
  16548. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16549. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16550. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16551. msm_routing_put_voice_mixer),
  16552. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16553. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16554. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16555. msm_routing_put_voice_mixer),
  16556. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16557. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16558. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16559. msm_routing_put_voice_mixer),
  16560. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16561. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16562. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16563. msm_routing_put_voice_mixer),
  16564. };
  16565. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  16566. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16567. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16568. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16569. msm_routing_put_voice_mixer),
  16570. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16571. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16572. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16573. msm_routing_put_voice_stub_mixer),
  16574. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16575. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16576. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16577. msm_routing_put_voice_stub_mixer),
  16578. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16579. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16580. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16581. msm_routing_put_voice_mixer),
  16582. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16583. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16584. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16585. msm_routing_put_voice_mixer),
  16586. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16587. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16588. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16589. msm_routing_put_voice_mixer),
  16590. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16591. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16592. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16593. msm_routing_put_voice_mixer),
  16594. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16595. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16596. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16597. msm_routing_put_voice_mixer),
  16598. };
  16599. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  16600. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16601. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16602. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16603. msm_routing_put_voice_mixer),
  16604. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16605. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16606. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16607. msm_routing_put_voice_stub_mixer),
  16608. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16609. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16610. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16611. msm_routing_put_voice_stub_mixer),
  16612. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16613. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16614. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16615. msm_routing_put_voice_mixer),
  16616. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16617. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16618. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16619. msm_routing_put_voice_mixer),
  16620. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16621. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16622. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16623. msm_routing_put_voice_mixer),
  16624. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16625. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16626. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16627. msm_routing_put_voice_mixer),
  16628. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16629. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16630. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16631. msm_routing_put_voice_mixer),
  16632. };
  16633. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  16634. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16635. MSM_BACKEND_DAI_EXTPROC_RX,
  16636. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16637. msm_routing_put_voice_mixer),
  16638. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16639. MSM_BACKEND_DAI_EXTPROC_RX,
  16640. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16641. msm_routing_put_voice_mixer),
  16642. };
  16643. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  16644. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16645. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16646. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16647. msm_routing_put_voice_mixer),
  16648. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16649. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16650. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16651. msm_routing_put_voice_mixer),
  16652. };
  16653. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  16654. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16655. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16656. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16657. msm_routing_put_voice_mixer),
  16658. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16659. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16660. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16661. msm_routing_put_voice_mixer),
  16662. };
  16663. static const struct snd_kcontrol_new proxy_rx_voice_mixer_controls[] = {
  16664. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16665. MSM_BACKEND_DAI_PROXY_RX,
  16666. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16667. msm_routing_put_voice_mixer),
  16668. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16669. MSM_BACKEND_DAI_PROXY_RX,
  16670. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16671. msm_routing_put_voice_mixer),
  16672. };
  16673. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  16674. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  16675. MSM_BACKEND_DAI_PRI_I2S_TX,
  16676. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16677. msm_routing_put_voice_mixer),
  16678. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  16679. MSM_BACKEND_DAI_MI2S_TX,
  16680. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16681. msm_routing_put_voice_mixer),
  16682. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  16683. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16684. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16685. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  16686. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16687. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16688. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  16689. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16690. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16691. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16692. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16693. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16694. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16695. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16696. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16697. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16698. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16699. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16700. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16701. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16702. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16703. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16704. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16705. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16706. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16707. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16708. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16709. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  16710. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16711. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16712. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  16713. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16714. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16715. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16716. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16717. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16718. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  16719. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16720. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16721. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  16722. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16723. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16724. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  16725. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16726. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16727. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  16728. MSM_BACKEND_DAI_USB_TX,
  16729. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16730. msm_routing_put_voice_mixer),
  16731. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  16732. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16733. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16734. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16735. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16736. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16737. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16738. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16739. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16740. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16741. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16742. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16743. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16744. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16745. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16746. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16747. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16748. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16749. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16750. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16751. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16752. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  16753. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16754. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16755. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  16756. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  16757. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16758. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  16759. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  16760. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16761. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16762. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16763. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16764. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  16765. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16766. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16767. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  16768. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16769. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16770. SOC_DOUBLE_EXT("PROXY_TX_MMode1", SND_SOC_NOPM,
  16771. MSM_BACKEND_DAI_PROXY_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16772. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16773. };
  16774. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  16775. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  16776. MSM_BACKEND_DAI_PRI_I2S_TX,
  16777. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16778. msm_routing_put_voice_mixer),
  16779. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  16780. MSM_BACKEND_DAI_MI2S_TX,
  16781. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16782. msm_routing_put_voice_mixer),
  16783. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  16784. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16785. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16786. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  16787. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16788. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16789. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  16790. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16791. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16792. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16793. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16794. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16795. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16796. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16797. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16798. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16799. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16800. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16801. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16802. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16803. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16804. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16805. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16806. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16807. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16808. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16809. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16810. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  16811. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16812. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16813. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  16814. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16815. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16816. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16817. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16818. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16819. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  16820. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16821. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16822. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  16823. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16824. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16825. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  16826. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16827. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16828. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  16829. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16830. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16831. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16832. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16833. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16834. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16835. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16836. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16837. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16838. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16839. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16840. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16841. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16842. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16843. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16844. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16845. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16846. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16847. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16848. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16849. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  16850. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16851. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16852. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  16853. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  16854. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16855. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  16856. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  16857. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16858. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16859. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16860. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16861. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  16862. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16863. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16864. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  16865. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16866. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16867. SOC_DOUBLE_EXT("PROXY_TX_MMode2", SND_SOC_NOPM,
  16868. MSM_BACKEND_DAI_PROXY_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16869. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16870. };
  16871. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  16872. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  16873. MSM_BACKEND_DAI_PRI_I2S_TX,
  16874. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16875. msm_routing_put_voice_mixer),
  16876. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  16877. MSM_BACKEND_DAI_MI2S_TX,
  16878. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16879. msm_routing_put_voice_mixer),
  16880. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  16881. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16882. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16883. msm_routing_put_voice_mixer),
  16884. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  16885. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16886. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16887. msm_routing_put_voice_mixer),
  16888. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  16889. MSM_BACKEND_DAI_AFE_PCM_TX,
  16890. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16891. msm_routing_put_voice_mixer),
  16892. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16893. MSM_BACKEND_DAI_AUXPCM_TX,
  16894. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16895. msm_routing_put_voice_mixer),
  16896. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16897. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16898. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16899. msm_routing_put_voice_mixer),
  16900. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16901. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16902. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16903. msm_routing_put_voice_mixer),
  16904. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16905. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16906. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16907. msm_routing_put_voice_mixer),
  16908. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16909. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16910. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16911. msm_routing_put_voice_mixer),
  16912. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16913. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16914. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16915. msm_routing_put_voice_mixer),
  16916. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  16917. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16918. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16919. msm_routing_put_voice_mixer),
  16920. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  16921. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  16922. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16923. msm_routing_put_voice_mixer),
  16924. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  16925. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16926. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16927. msm_routing_put_voice_mixer),
  16928. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  16929. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16930. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16931. msm_routing_put_voice_mixer),
  16932. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  16933. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16934. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16935. msm_routing_put_voice_mixer),
  16936. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  16937. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16938. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16939. msm_routing_put_voice_mixer),
  16940. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  16941. MSM_BACKEND_DAI_USB_TX,
  16942. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16943. msm_routing_put_voice_mixer),
  16944. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16945. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16946. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16947. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16948. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16949. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16950. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16951. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16952. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16953. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16954. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16955. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16956. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16957. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16958. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16959. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16960. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16961. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16962. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  16963. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  16964. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16965. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  16966. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  16967. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16968. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  16969. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  16970. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16971. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  16972. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16973. msm_routing_put_voice_mixer),
  16974. };
  16975. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  16976. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16977. MSM_BACKEND_DAI_EXTPROC_TX,
  16978. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16979. msm_routing_put_voice_stub_mixer),
  16980. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16981. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16982. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16983. msm_routing_put_voice_stub_mixer),
  16984. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16985. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16986. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16987. msm_routing_put_voice_stub_mixer),
  16988. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16989. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16990. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16991. msm_routing_put_voice_stub_mixer),
  16992. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16993. MSM_BACKEND_DAI_MI2S_TX,
  16994. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16995. msm_routing_put_voice_stub_mixer),
  16996. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16997. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16998. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16999. msm_routing_put_voice_stub_mixer),
  17000. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17001. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17002. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17003. msm_routing_put_voice_stub_mixer),
  17004. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17005. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17006. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17007. msm_routing_put_voice_stub_mixer),
  17008. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17009. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17010. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17011. msm_routing_put_voice_stub_mixer),
  17012. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17013. MSM_BACKEND_DAI_AUXPCM_TX,
  17014. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17015. msm_routing_put_voice_stub_mixer),
  17016. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17017. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17018. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17019. msm_routing_put_voice_stub_mixer),
  17020. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17021. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17022. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17023. msm_routing_put_voice_stub_mixer),
  17024. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17025. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17026. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17027. msm_routing_put_voice_stub_mixer),
  17028. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17029. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17030. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17031. msm_routing_put_voice_stub_mixer),
  17032. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17033. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17034. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17035. msm_routing_put_voice_stub_mixer),
  17036. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17037. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17038. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17039. msm_routing_put_voice_stub_mixer),
  17040. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17041. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17042. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17043. msm_routing_put_voice_stub_mixer),
  17044. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17045. MSM_BACKEND_DAI_AFE_PCM_TX,
  17046. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17047. msm_routing_put_voice_stub_mixer),
  17048. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17049. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17050. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17051. msm_routing_put_voice_stub_mixer),
  17052. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17053. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17054. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17055. msm_routing_put_voice_stub_mixer),
  17056. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17057. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  17058. 1, 0, msm_routing_get_voice_stub_mixer,
  17059. msm_routing_put_voice_stub_mixer),
  17060. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17061. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  17062. 1, 0, msm_routing_get_voice_stub_mixer,
  17063. msm_routing_put_voice_stub_mixer),
  17064. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17065. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  17066. 1, 0, msm_routing_get_voice_stub_mixer,
  17067. msm_routing_put_voice_stub_mixer),
  17068. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17069. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  17070. 1, 0, msm_routing_get_voice_stub_mixer,
  17071. msm_routing_put_voice_stub_mixer),
  17072. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17073. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  17074. 1, 0, msm_routing_get_voice_stub_mixer,
  17075. msm_routing_put_voice_stub_mixer),
  17076. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17077. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  17078. 1, 0, msm_routing_get_voice_stub_mixer,
  17079. msm_routing_put_voice_stub_mixer),
  17080. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17081. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  17082. 1, 0, msm_routing_get_voice_stub_mixer,
  17083. msm_routing_put_voice_stub_mixer),
  17084. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17085. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  17086. 1, 0, msm_routing_get_voice_stub_mixer,
  17087. msm_routing_put_voice_stub_mixer),
  17088. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17089. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  17090. 1, 0, msm_routing_get_voice_stub_mixer,
  17091. msm_routing_put_voice_stub_mixer),
  17092. };
  17093. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  17094. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  17095. MSM_BACKEND_DAI_EXTPROC_TX,
  17096. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17097. msm_routing_put_voice_stub_mixer),
  17098. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17099. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17100. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17101. msm_routing_put_voice_stub_mixer),
  17102. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  17103. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  17104. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17105. msm_routing_put_voice_stub_mixer),
  17106. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17107. MSM_BACKEND_DAI_AUXPCM_TX,
  17108. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17109. msm_routing_put_voice_stub_mixer),
  17110. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17111. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17112. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17113. msm_routing_put_voice_stub_mixer),
  17114. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17115. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17116. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17117. msm_routing_put_voice_stub_mixer),
  17118. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17119. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17120. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17121. msm_routing_put_voice_stub_mixer),
  17122. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17123. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17124. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17125. msm_routing_put_voice_stub_mixer),
  17126. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17127. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17128. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17129. msm_routing_put_voice_stub_mixer),
  17130. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17131. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17132. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17133. msm_routing_put_voice_stub_mixer),
  17134. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17135. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17136. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17137. msm_routing_put_voice_stub_mixer),
  17138. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17139. MSM_BACKEND_DAI_AFE_PCM_TX,
  17140. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17141. msm_routing_put_voice_stub_mixer),
  17142. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17143. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17144. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17145. msm_routing_put_voice_stub_mixer),
  17146. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17147. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17148. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17149. msm_routing_put_voice_stub_mixer),
  17150. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17151. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17152. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17153. msm_routing_put_voice_stub_mixer),
  17154. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17155. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17156. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17157. msm_routing_put_voice_stub_mixer),
  17158. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17159. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17160. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17161. msm_routing_put_voice_stub_mixer),
  17162. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17163. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  17164. 1, 0, msm_routing_get_voice_stub_mixer,
  17165. msm_routing_put_voice_stub_mixer),
  17166. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17167. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  17168. 1, 0, msm_routing_get_voice_stub_mixer,
  17169. msm_routing_put_voice_stub_mixer),
  17170. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17171. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  17172. 1, 0, msm_routing_get_voice_stub_mixer,
  17173. msm_routing_put_voice_stub_mixer),
  17174. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17175. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  17176. 1, 0, msm_routing_get_voice_stub_mixer,
  17177. msm_routing_put_voice_stub_mixer),
  17178. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17179. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  17180. 1, 0, msm_routing_get_voice_stub_mixer,
  17181. msm_routing_put_voice_stub_mixer),
  17182. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17183. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  17184. 1, 0, msm_routing_get_voice_stub_mixer,
  17185. msm_routing_put_voice_stub_mixer),
  17186. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17187. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  17188. 1, 0, msm_routing_get_voice_stub_mixer,
  17189. msm_routing_put_voice_stub_mixer),
  17190. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17191. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  17192. 1, 0, msm_routing_get_voice_stub_mixer,
  17193. msm_routing_put_voice_stub_mixer),
  17194. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17195. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  17196. 1, 0, msm_routing_get_voice_stub_mixer,
  17197. msm_routing_put_voice_stub_mixer),
  17198. };
  17199. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  17200. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  17201. MSM_BACKEND_DAI_EXTPROC_TX,
  17202. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17203. msm_routing_put_voice_stub_mixer),
  17204. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17205. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17206. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17207. msm_routing_put_voice_stub_mixer),
  17208. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  17209. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  17210. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17211. msm_routing_put_voice_stub_mixer),
  17212. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17213. MSM_BACKEND_DAI_AUXPCM_TX,
  17214. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17215. msm_routing_put_voice_stub_mixer),
  17216. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17217. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17218. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17219. msm_routing_put_voice_stub_mixer),
  17220. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17221. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17222. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17223. msm_routing_put_voice_stub_mixer),
  17224. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17225. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17226. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17227. msm_routing_put_voice_stub_mixer),
  17228. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17229. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17230. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17231. msm_routing_put_voice_stub_mixer),
  17232. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17233. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17234. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17235. msm_routing_put_voice_stub_mixer),
  17236. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17237. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17238. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17239. msm_routing_put_voice_stub_mixer),
  17240. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17241. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17242. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17243. msm_routing_put_voice_stub_mixer),
  17244. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17245. MSM_BACKEND_DAI_AFE_PCM_TX,
  17246. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17247. msm_routing_put_voice_stub_mixer),
  17248. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17249. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17250. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17251. msm_routing_put_voice_stub_mixer),
  17252. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17253. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17254. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17255. msm_routing_put_voice_stub_mixer),
  17256. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17257. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17258. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17259. msm_routing_put_voice_stub_mixer),
  17260. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17261. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17262. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17263. msm_routing_put_voice_stub_mixer),
  17264. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17265. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17266. 1, 0, msm_routing_get_voice_stub_mixer,
  17267. msm_routing_put_voice_stub_mixer),
  17268. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17269. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17270. 1, 0, msm_routing_get_voice_stub_mixer,
  17271. msm_routing_put_voice_stub_mixer),
  17272. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17273. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17274. 1, 0, msm_routing_get_voice_stub_mixer,
  17275. msm_routing_put_voice_stub_mixer),
  17276. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17277. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17278. 1, 0, msm_routing_get_voice_stub_mixer,
  17279. msm_routing_put_voice_stub_mixer),
  17280. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17281. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17282. 1, 0, msm_routing_get_voice_stub_mixer,
  17283. msm_routing_put_voice_stub_mixer),
  17284. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17285. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17286. 1, 0, msm_routing_get_voice_stub_mixer,
  17287. msm_routing_put_voice_stub_mixer),
  17288. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17289. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  17290. 1, 0, msm_routing_get_voice_stub_mixer,
  17291. msm_routing_put_voice_stub_mixer),
  17292. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17293. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  17294. 1, 0, msm_routing_get_voice_stub_mixer,
  17295. msm_routing_put_voice_stub_mixer),
  17296. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17297. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  17298. 1, 0, msm_routing_get_voice_stub_mixer,
  17299. msm_routing_put_voice_stub_mixer),
  17300. };
  17301. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  17302. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  17303. MSM_BACKEND_DAI_PRI_I2S_TX,
  17304. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17305. msm_routing_put_voice_mixer),
  17306. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  17307. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17308. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17309. msm_routing_put_voice_mixer),
  17310. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  17311. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17312. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  17313. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17314. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  17315. MSM_BACKEND_DAI_AFE_PCM_TX,
  17316. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17317. msm_routing_put_voice_mixer),
  17318. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17319. MSM_BACKEND_DAI_AUXPCM_TX,
  17320. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17321. msm_routing_put_voice_mixer),
  17322. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17323. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17324. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17325. msm_routing_put_voice_mixer),
  17326. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17327. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17328. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17329. msm_routing_put_voice_mixer),
  17330. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17331. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17332. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17333. msm_routing_put_voice_mixer),
  17334. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17335. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17336. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17337. msm_routing_put_voice_mixer),
  17338. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17339. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17340. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17341. msm_routing_put_voice_mixer),
  17342. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  17343. MSM_BACKEND_DAI_MI2S_TX,
  17344. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17345. msm_routing_put_voice_mixer),
  17346. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17347. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17348. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17349. msm_routing_put_voice_mixer),
  17350. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17351. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17352. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17353. msm_routing_put_voice_mixer),
  17354. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17355. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17356. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17357. msm_routing_put_voice_mixer),
  17358. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  17359. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17360. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17361. msm_routing_put_voice_mixer),
  17362. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  17363. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17364. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17365. msm_routing_put_voice_mixer),
  17366. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  17367. MSM_BACKEND_DAI_USB_TX,
  17368. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17369. msm_routing_put_voice_mixer),
  17370. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17371. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17372. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17373. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17374. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17375. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17376. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17377. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17378. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17379. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17380. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17381. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17382. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17383. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17384. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17385. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17386. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17387. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17388. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  17389. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  17390. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17391. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  17392. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  17393. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17394. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  17395. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  17396. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17397. };
  17398. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  17399. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17400. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17401. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17402. msm_routing_put_port_mixer),
  17403. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17404. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17405. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17406. msm_routing_put_port_mixer),
  17407. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17408. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17409. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17410. msm_routing_put_port_mixer),
  17411. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17412. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17413. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17414. msm_routing_put_port_mixer),
  17415. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17416. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17417. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17418. msm_routing_put_port_mixer),
  17419. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17420. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17421. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17422. msm_routing_put_port_mixer),
  17423. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17424. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17425. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17426. msm_routing_put_port_mixer),
  17427. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17428. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17429. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17430. msm_routing_put_port_mixer),
  17431. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17432. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17433. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17434. msm_routing_put_port_mixer),
  17435. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17436. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17437. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17438. msm_routing_put_port_mixer),
  17439. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17440. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17441. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17442. msm_routing_put_port_mixer),
  17443. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17444. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17445. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17446. msm_routing_put_port_mixer),
  17447. };
  17448. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  17449. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17450. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17451. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17452. msm_routing_put_port_mixer),
  17453. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17454. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17455. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17456. msm_routing_put_port_mixer),
  17457. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17458. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17459. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17460. msm_routing_put_port_mixer),
  17461. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17462. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17463. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17464. msm_routing_put_port_mixer),
  17465. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17466. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17467. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17468. msm_routing_put_port_mixer),
  17469. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17470. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17471. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17472. msm_routing_put_port_mixer),
  17473. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17474. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17475. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17476. msm_routing_put_port_mixer),
  17477. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17478. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17479. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17480. msm_routing_put_port_mixer),
  17481. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17482. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17483. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17484. msm_routing_put_port_mixer),
  17485. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17486. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17487. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17488. msm_routing_put_port_mixer),
  17489. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17490. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17491. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17492. msm_routing_put_port_mixer),
  17493. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17494. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17495. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17496. msm_routing_put_port_mixer),
  17497. };
  17498. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  17499. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17500. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17501. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17502. msm_routing_put_port_mixer),
  17503. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17504. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17505. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17506. msm_routing_put_port_mixer),
  17507. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17508. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17509. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17510. msm_routing_put_port_mixer),
  17511. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17512. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17513. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17514. msm_routing_put_port_mixer),
  17515. };
  17516. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  17517. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17518. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17519. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17520. msm_routing_put_port_mixer),
  17521. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17522. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17523. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17524. msm_routing_put_port_mixer),
  17525. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17526. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17527. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17528. msm_routing_put_port_mixer),
  17529. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17530. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17531. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17532. msm_routing_put_port_mixer),
  17533. };
  17534. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_port_mixer_controls[] = {
  17535. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17536. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17537. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17538. msm_routing_put_port_mixer),
  17539. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17540. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17541. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17542. msm_routing_put_port_mixer),
  17543. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17544. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17545. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17546. msm_routing_put_port_mixer),
  17547. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17548. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17549. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17550. msm_routing_put_port_mixer),
  17551. };
  17552. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  17553. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17554. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17555. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17556. msm_routing_put_port_mixer),
  17557. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17558. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17559. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17560. msm_routing_put_port_mixer),
  17561. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17562. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17563. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17564. msm_routing_put_port_mixer),
  17565. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17566. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17567. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17568. msm_routing_put_port_mixer),
  17569. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17570. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17571. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17572. msm_routing_put_port_mixer),
  17573. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17574. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17575. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17576. msm_routing_put_port_mixer),
  17577. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17578. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17579. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17580. msm_routing_put_port_mixer),
  17581. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17582. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17583. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17584. msm_routing_put_port_mixer),
  17585. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17586. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17587. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17588. msm_routing_put_port_mixer),
  17589. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17590. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17591. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17592. msm_routing_put_port_mixer),
  17593. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17594. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17595. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17596. msm_routing_put_port_mixer),
  17597. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17598. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17599. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17600. msm_routing_put_port_mixer),
  17601. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17602. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17603. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17604. msm_routing_put_port_mixer),
  17605. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17606. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17607. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17608. msm_routing_put_port_mixer),
  17609. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17610. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17611. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17612. msm_routing_put_port_mixer),
  17613. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17614. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17615. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17616. msm_routing_put_port_mixer),
  17617. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17618. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17619. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17620. msm_routing_put_port_mixer),
  17621. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17622. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17623. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17624. msm_routing_put_port_mixer),
  17625. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17626. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17627. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17628. msm_routing_put_port_mixer),
  17629. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  17630. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17631. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17632. msm_routing_put_port_mixer),
  17633. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  17634. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17635. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17636. msm_routing_put_port_mixer),
  17637. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  17638. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17639. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17640. msm_routing_put_port_mixer),
  17641. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  17642. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17643. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17644. msm_routing_put_port_mixer),
  17645. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  17646. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17647. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17648. msm_routing_put_port_mixer),
  17649. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  17650. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17651. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17652. msm_routing_put_port_mixer),
  17653. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17654. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17655. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17656. msm_routing_put_port_mixer),
  17657. };
  17658. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  17659. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17660. MSM_BACKEND_DAI_AUXPCM_RX,
  17661. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17662. msm_routing_put_port_mixer),
  17663. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17664. MSM_BACKEND_DAI_AUXPCM_RX,
  17665. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17666. msm_routing_put_port_mixer),
  17667. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17668. MSM_BACKEND_DAI_AUXPCM_RX,
  17669. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17670. msm_routing_put_port_mixer),
  17671. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17672. MSM_BACKEND_DAI_AUXPCM_RX,
  17673. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17674. msm_routing_put_port_mixer),
  17675. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17676. MSM_BACKEND_DAI_AUXPCM_RX,
  17677. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17678. msm_routing_put_port_mixer),
  17679. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17680. MSM_BACKEND_DAI_AUXPCM_RX,
  17681. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17682. msm_routing_put_port_mixer),
  17683. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17684. MSM_BACKEND_DAI_AUXPCM_RX,
  17685. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17686. msm_routing_put_port_mixer),
  17687. };
  17688. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  17689. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17690. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17691. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17692. msm_routing_put_port_mixer),
  17693. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17694. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17695. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17696. msm_routing_put_port_mixer),
  17697. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17698. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17699. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17700. msm_routing_put_port_mixer),
  17701. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17702. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17703. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17704. msm_routing_put_port_mixer),
  17705. };
  17706. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  17707. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17708. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17709. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17710. msm_routing_put_port_mixer),
  17711. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17712. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17713. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17714. msm_routing_put_port_mixer),
  17715. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17716. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17717. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17718. msm_routing_put_port_mixer),
  17719. };
  17720. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  17721. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17722. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17723. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17724. msm_routing_put_port_mixer),
  17725. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17726. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17727. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17728. msm_routing_put_port_mixer),
  17729. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17730. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17731. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17732. msm_routing_put_port_mixer),
  17733. };
  17734. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  17735. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17736. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17737. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17738. msm_routing_put_port_mixer),
  17739. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17740. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17741. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17742. msm_routing_put_port_mixer),
  17743. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17744. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17745. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17746. msm_routing_put_port_mixer),
  17747. };
  17748. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  17749. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17750. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17751. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17752. msm_routing_put_port_mixer),
  17753. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17754. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17755. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17756. msm_routing_put_port_mixer),
  17757. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17758. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17759. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17760. msm_routing_put_port_mixer),
  17761. };
  17762. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  17763. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17764. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17765. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17766. msm_routing_put_port_mixer),
  17767. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17768. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17769. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  17770. msm_routing_put_port_mixer),
  17771. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17772. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17773. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17774. msm_routing_put_port_mixer),
  17775. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17776. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17777. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17778. msm_routing_put_port_mixer),
  17779. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17780. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17781. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17782. msm_routing_put_port_mixer),
  17783. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17784. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17785. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17786. msm_routing_put_port_mixer),
  17787. };
  17788. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  17789. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  17790. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17791. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  17792. msm_routing_put_port_mixer),
  17793. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17794. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17795. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17796. msm_routing_put_port_mixer),
  17797. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  17798. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17799. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  17800. msm_routing_put_port_mixer),
  17801. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  17802. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17803. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  17804. msm_routing_put_port_mixer),
  17805. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  17806. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17807. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  17808. msm_routing_put_port_mixer),
  17809. };
  17810. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  17811. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17812. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17813. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17814. msm_routing_put_port_mixer),
  17815. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17816. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17817. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17818. msm_routing_put_port_mixer),
  17819. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17820. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17821. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17822. msm_routing_put_port_mixer),
  17823. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17824. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17825. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17826. msm_routing_put_port_mixer),
  17827. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17828. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17829. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17830. msm_routing_put_port_mixer),
  17831. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17832. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17833. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17834. msm_routing_put_port_mixer),
  17835. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17836. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17837. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17838. msm_routing_put_port_mixer),
  17839. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17840. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17841. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17842. msm_routing_put_port_mixer),
  17843. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17844. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17845. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17846. msm_routing_put_port_mixer),
  17847. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17848. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17849. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17850. msm_routing_put_port_mixer),
  17851. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17852. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17853. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17854. msm_routing_put_port_mixer),
  17855. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17856. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17857. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17858. msm_routing_put_port_mixer),
  17859. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17860. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17861. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17862. msm_routing_put_port_mixer),
  17863. };
  17864. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  17865. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17866. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17867. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17868. msm_routing_put_port_mixer),
  17869. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17870. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17871. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17872. msm_routing_put_port_mixer),
  17873. };
  17874. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  17875. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17876. MSM_BACKEND_DAI_AFE_PCM_RX,
  17877. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17878. msm_routing_put_port_mixer),
  17879. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17880. MSM_BACKEND_DAI_AFE_PCM_RX,
  17881. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17882. msm_routing_put_port_mixer),
  17883. };
  17884. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  17885. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17886. MSM_BACKEND_DAI_HDMI_RX,
  17887. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17888. msm_routing_put_port_mixer),
  17889. };
  17890. static const struct snd_kcontrol_new hdmi_rx_ms_port_mixer_controls[] = {
  17891. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17892. MSM_BACKEND_DAI_HDMI_RX_MS,
  17893. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17894. msm_routing_put_port_mixer),
  17895. };
  17896. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  17897. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17898. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  17899. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17900. msm_routing_put_port_mixer),
  17901. };
  17902. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  17903. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17904. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  17905. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17906. msm_routing_put_port_mixer),
  17907. };
  17908. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  17909. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17910. MSM_BACKEND_DAI_SEC_I2S_RX,
  17911. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17912. msm_routing_put_port_mixer),
  17913. };
  17914. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  17915. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17916. MSM_BACKEND_DAI_MI2S_RX,
  17917. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17918. msm_routing_put_port_mixer),
  17919. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17920. MSM_BACKEND_DAI_MI2S_RX,
  17921. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17922. msm_routing_put_port_mixer),
  17923. };
  17924. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  17925. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17926. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17927. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17928. msm_routing_put_port_mixer),
  17929. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17930. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17931. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17932. msm_routing_put_port_mixer),
  17933. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17934. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17935. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17936. msm_routing_put_port_mixer),
  17937. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17938. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17939. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17940. msm_routing_put_port_mixer),
  17941. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17942. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17943. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17944. msm_routing_put_port_mixer),
  17945. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17946. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17947. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17948. msm_routing_put_port_mixer),
  17949. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17950. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17951. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17952. msm_routing_put_port_mixer),
  17953. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17954. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17955. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17956. msm_routing_put_port_mixer),
  17957. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17958. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17959. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17960. msm_routing_put_port_mixer),
  17961. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17962. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17963. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17964. msm_routing_put_port_mixer),
  17965. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17966. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17967. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17968. msm_routing_put_port_mixer),
  17969. };
  17970. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  17971. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  17972. MSM_BACKEND_DAI_USB_RX,
  17973. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  17974. msm_routing_put_port_mixer),
  17975. };
  17976. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  17977. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17978. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17979. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17980. msm_routing_put_port_mixer),
  17981. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17982. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17983. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17984. msm_routing_put_port_mixer),
  17985. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17986. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17987. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17988. msm_routing_put_port_mixer),
  17989. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17990. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17991. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17992. msm_routing_put_port_mixer),
  17993. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17994. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17995. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17996. msm_routing_put_port_mixer),
  17997. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17998. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17999. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18000. msm_routing_put_port_mixer),
  18001. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18002. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18003. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18004. msm_routing_put_port_mixer),
  18005. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18006. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18007. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18008. msm_routing_put_port_mixer),
  18009. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18010. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18011. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18012. msm_routing_put_port_mixer),
  18013. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18014. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18015. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18016. msm_routing_put_port_mixer),
  18017. };
  18018. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  18019. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18020. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18021. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18022. msm_routing_put_port_mixer),
  18023. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18024. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18025. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18026. msm_routing_put_port_mixer),
  18027. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18028. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18029. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18030. msm_routing_put_port_mixer),
  18031. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18032. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18033. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18034. msm_routing_put_port_mixer),
  18035. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18036. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18037. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18038. msm_routing_put_port_mixer),
  18039. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18040. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18041. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18042. msm_routing_put_port_mixer),
  18043. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18044. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18045. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18046. msm_routing_put_port_mixer),
  18047. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18048. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18049. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18050. msm_routing_put_port_mixer),
  18051. };
  18052. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  18053. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18054. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18055. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18056. msm_routing_put_port_mixer),
  18057. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18058. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18059. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18060. msm_routing_put_port_mixer),
  18061. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18062. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18063. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18064. msm_routing_put_port_mixer),
  18065. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18066. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18067. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18068. msm_routing_put_port_mixer),
  18069. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18070. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18071. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18072. msm_routing_put_port_mixer),
  18073. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18074. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18075. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18076. msm_routing_put_port_mixer),
  18077. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18078. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18079. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18080. msm_routing_put_port_mixer),
  18081. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18082. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18083. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18084. msm_routing_put_port_mixer),
  18085. };
  18086. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  18087. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18088. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18089. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18090. msm_routing_get_port_mixer,
  18091. msm_routing_put_port_mixer),
  18092. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18093. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18094. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18095. msm_routing_get_port_mixer,
  18096. msm_routing_put_port_mixer),
  18097. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18098. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18099. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18100. msm_routing_get_port_mixer,
  18101. msm_routing_put_port_mixer),
  18102. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18103. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18104. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18105. msm_routing_get_port_mixer,
  18106. msm_routing_put_port_mixer),
  18107. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18108. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18109. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18110. msm_routing_get_port_mixer,
  18111. msm_routing_put_port_mixer),
  18112. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18113. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18114. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18115. msm_routing_get_port_mixer,
  18116. msm_routing_put_port_mixer),
  18117. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18118. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18119. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18120. msm_routing_get_port_mixer,
  18121. msm_routing_put_port_mixer),
  18122. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18123. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18124. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18125. msm_routing_get_port_mixer,
  18126. msm_routing_put_port_mixer),
  18127. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18128. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18129. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18130. msm_routing_get_port_mixer,
  18131. msm_routing_put_port_mixer),
  18132. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18133. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18134. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18135. msm_routing_get_port_mixer,
  18136. msm_routing_put_port_mixer),
  18137. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18138. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18139. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18140. msm_routing_get_port_mixer,
  18141. msm_routing_put_port_mixer),
  18142. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18143. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18144. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18145. msm_routing_get_port_mixer,
  18146. msm_routing_put_port_mixer),
  18147. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18148. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18149. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18150. msm_routing_get_port_mixer,
  18151. msm_routing_put_port_mixer),
  18152. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18153. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18154. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18155. msm_routing_get_port_mixer,
  18156. msm_routing_put_port_mixer),
  18157. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18158. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18159. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18160. msm_routing_get_port_mixer,
  18161. msm_routing_put_port_mixer),
  18162. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18163. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18164. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18165. msm_routing_get_port_mixer,
  18166. msm_routing_put_port_mixer),
  18167. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18168. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18169. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18170. msm_routing_get_port_mixer,
  18171. msm_routing_put_port_mixer),
  18172. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18173. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18174. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18175. msm_routing_get_port_mixer,
  18176. msm_routing_put_port_mixer),
  18177. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18178. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18179. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18180. msm_routing_get_port_mixer,
  18181. msm_routing_put_port_mixer),
  18182. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18183. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18184. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18185. msm_routing_get_port_mixer,
  18186. msm_routing_put_port_mixer),
  18187. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18188. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18189. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18190. msm_routing_get_port_mixer,
  18191. msm_routing_put_port_mixer),
  18192. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18193. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18194. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18195. msm_routing_get_port_mixer,
  18196. msm_routing_put_port_mixer),
  18197. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18198. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18199. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18200. msm_routing_get_port_mixer,
  18201. msm_routing_put_port_mixer),
  18202. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18203. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18204. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18205. msm_routing_get_port_mixer,
  18206. msm_routing_put_port_mixer),
  18207. };
  18208. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  18209. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18210. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18211. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18212. msm_routing_get_port_mixer,
  18213. msm_routing_put_port_mixer),
  18214. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18215. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18216. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18217. msm_routing_get_port_mixer,
  18218. msm_routing_put_port_mixer),
  18219. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18220. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18221. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18222. msm_routing_get_port_mixer,
  18223. msm_routing_put_port_mixer),
  18224. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18225. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18226. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18227. msm_routing_get_port_mixer,
  18228. msm_routing_put_port_mixer),
  18229. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18230. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18231. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18232. msm_routing_get_port_mixer,
  18233. msm_routing_put_port_mixer),
  18234. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18235. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18236. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18237. msm_routing_get_port_mixer,
  18238. msm_routing_put_port_mixer),
  18239. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18240. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18241. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18242. msm_routing_get_port_mixer,
  18243. msm_routing_put_port_mixer),
  18244. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18245. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18246. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18247. msm_routing_get_port_mixer,
  18248. msm_routing_put_port_mixer),
  18249. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18250. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18251. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18252. msm_routing_get_port_mixer,
  18253. msm_routing_put_port_mixer),
  18254. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18255. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18256. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18257. msm_routing_get_port_mixer,
  18258. msm_routing_put_port_mixer),
  18259. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18260. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18261. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18262. msm_routing_get_port_mixer,
  18263. msm_routing_put_port_mixer),
  18264. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18265. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18266. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18267. msm_routing_get_port_mixer,
  18268. msm_routing_put_port_mixer),
  18269. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18270. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18271. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18272. msm_routing_get_port_mixer,
  18273. msm_routing_put_port_mixer),
  18274. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18275. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18276. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18277. msm_routing_get_port_mixer,
  18278. msm_routing_put_port_mixer),
  18279. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18280. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18281. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18282. msm_routing_get_port_mixer,
  18283. msm_routing_put_port_mixer),
  18284. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18285. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18286. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18287. msm_routing_get_port_mixer,
  18288. msm_routing_put_port_mixer),
  18289. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18290. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18291. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18292. msm_routing_get_port_mixer,
  18293. msm_routing_put_port_mixer),
  18294. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18295. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18296. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18297. msm_routing_get_port_mixer,
  18298. msm_routing_put_port_mixer),
  18299. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18300. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18301. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18302. msm_routing_get_port_mixer,
  18303. msm_routing_put_port_mixer),
  18304. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18305. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18306. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18307. msm_routing_get_port_mixer,
  18308. msm_routing_put_port_mixer),
  18309. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18310. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18311. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18312. msm_routing_get_port_mixer,
  18313. msm_routing_put_port_mixer),
  18314. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18315. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18316. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18317. msm_routing_get_port_mixer,
  18318. msm_routing_put_port_mixer),
  18319. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18320. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18321. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18322. msm_routing_get_port_mixer,
  18323. msm_routing_put_port_mixer),
  18324. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18325. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18326. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18327. msm_routing_get_port_mixer,
  18328. msm_routing_put_port_mixer),
  18329. };
  18330. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  18331. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18332. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18333. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18334. msm_routing_get_port_mixer,
  18335. msm_routing_put_port_mixer),
  18336. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18337. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18338. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18339. msm_routing_get_port_mixer,
  18340. msm_routing_put_port_mixer),
  18341. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18342. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18343. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18344. msm_routing_get_port_mixer,
  18345. msm_routing_put_port_mixer),
  18346. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18347. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18348. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18349. msm_routing_get_port_mixer,
  18350. msm_routing_put_port_mixer),
  18351. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18352. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18353. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18354. msm_routing_get_port_mixer,
  18355. msm_routing_put_port_mixer),
  18356. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18357. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18358. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18359. msm_routing_get_port_mixer,
  18360. msm_routing_put_port_mixer),
  18361. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18362. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18363. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18364. msm_routing_get_port_mixer,
  18365. msm_routing_put_port_mixer),
  18366. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18367. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18368. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18369. msm_routing_get_port_mixer,
  18370. msm_routing_put_port_mixer),
  18371. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18372. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18373. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18374. msm_routing_get_port_mixer,
  18375. msm_routing_put_port_mixer),
  18376. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18377. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18378. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18379. msm_routing_get_port_mixer,
  18380. msm_routing_put_port_mixer),
  18381. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18382. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18383. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18384. msm_routing_get_port_mixer,
  18385. msm_routing_put_port_mixer),
  18386. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18387. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18388. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18389. msm_routing_get_port_mixer,
  18390. msm_routing_put_port_mixer),
  18391. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18392. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18393. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18394. msm_routing_get_port_mixer,
  18395. msm_routing_put_port_mixer),
  18396. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18397. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18398. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18399. msm_routing_get_port_mixer,
  18400. msm_routing_put_port_mixer),
  18401. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18402. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18403. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18404. msm_routing_get_port_mixer,
  18405. msm_routing_put_port_mixer),
  18406. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18407. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18408. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18409. msm_routing_get_port_mixer,
  18410. msm_routing_put_port_mixer),
  18411. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18412. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18413. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18414. msm_routing_get_port_mixer,
  18415. msm_routing_put_port_mixer),
  18416. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18417. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18418. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18419. msm_routing_get_port_mixer,
  18420. msm_routing_put_port_mixer),
  18421. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18422. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18423. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18424. msm_routing_get_port_mixer,
  18425. msm_routing_put_port_mixer),
  18426. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18427. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18428. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18429. msm_routing_get_port_mixer,
  18430. msm_routing_put_port_mixer),
  18431. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18432. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18433. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18434. msm_routing_get_port_mixer,
  18435. msm_routing_put_port_mixer),
  18436. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18437. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18438. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18439. msm_routing_get_port_mixer,
  18440. msm_routing_put_port_mixer),
  18441. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18442. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18443. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18444. msm_routing_get_port_mixer,
  18445. msm_routing_put_port_mixer),
  18446. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18447. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18448. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18449. msm_routing_get_port_mixer,
  18450. msm_routing_put_port_mixer),
  18451. };
  18452. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  18453. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18454. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18455. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18456. msm_routing_get_port_mixer,
  18457. msm_routing_put_port_mixer),
  18458. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18459. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18460. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18461. msm_routing_get_port_mixer,
  18462. msm_routing_put_port_mixer),
  18463. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18464. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18465. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18466. msm_routing_get_port_mixer,
  18467. msm_routing_put_port_mixer),
  18468. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18469. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18470. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18471. msm_routing_get_port_mixer,
  18472. msm_routing_put_port_mixer),
  18473. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18474. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18475. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18476. msm_routing_get_port_mixer,
  18477. msm_routing_put_port_mixer),
  18478. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18479. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18480. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18481. msm_routing_get_port_mixer,
  18482. msm_routing_put_port_mixer),
  18483. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18484. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18485. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18486. msm_routing_get_port_mixer,
  18487. msm_routing_put_port_mixer),
  18488. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18489. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18490. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18491. msm_routing_get_port_mixer,
  18492. msm_routing_put_port_mixer),
  18493. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18494. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18495. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18496. msm_routing_get_port_mixer,
  18497. msm_routing_put_port_mixer),
  18498. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18499. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18500. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18501. msm_routing_get_port_mixer,
  18502. msm_routing_put_port_mixer),
  18503. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18504. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18505. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18506. msm_routing_get_port_mixer,
  18507. msm_routing_put_port_mixer),
  18508. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18509. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18510. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18511. msm_routing_get_port_mixer,
  18512. msm_routing_put_port_mixer),
  18513. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18514. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18515. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18516. msm_routing_get_port_mixer,
  18517. msm_routing_put_port_mixer),
  18518. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18519. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18520. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18521. msm_routing_get_port_mixer,
  18522. msm_routing_put_port_mixer),
  18523. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18524. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18525. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18526. msm_routing_get_port_mixer,
  18527. msm_routing_put_port_mixer),
  18528. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18529. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18530. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18531. msm_routing_get_port_mixer,
  18532. msm_routing_put_port_mixer),
  18533. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18534. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18535. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18536. msm_routing_get_port_mixer,
  18537. msm_routing_put_port_mixer),
  18538. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18539. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18540. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18541. msm_routing_get_port_mixer,
  18542. msm_routing_put_port_mixer),
  18543. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18544. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18545. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18546. msm_routing_get_port_mixer,
  18547. msm_routing_put_port_mixer),
  18548. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18549. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18550. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18551. msm_routing_get_port_mixer,
  18552. msm_routing_put_port_mixer),
  18553. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18554. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18555. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18556. msm_routing_get_port_mixer,
  18557. msm_routing_put_port_mixer),
  18558. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18559. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18560. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18561. msm_routing_get_port_mixer,
  18562. msm_routing_put_port_mixer),
  18563. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18564. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18565. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18566. msm_routing_get_port_mixer,
  18567. msm_routing_put_port_mixer),
  18568. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18569. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18570. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18571. msm_routing_get_port_mixer,
  18572. msm_routing_put_port_mixer),
  18573. };
  18574. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  18575. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18576. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18577. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18578. msm_routing_get_port_mixer,
  18579. msm_routing_put_port_mixer),
  18580. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18581. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18582. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18583. msm_routing_get_port_mixer,
  18584. msm_routing_put_port_mixer),
  18585. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18586. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18587. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18588. msm_routing_get_port_mixer,
  18589. msm_routing_put_port_mixer),
  18590. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18591. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18592. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18593. msm_routing_get_port_mixer,
  18594. msm_routing_put_port_mixer),
  18595. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18596. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18597. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18598. msm_routing_get_port_mixer,
  18599. msm_routing_put_port_mixer),
  18600. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18601. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18602. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18603. msm_routing_get_port_mixer,
  18604. msm_routing_put_port_mixer),
  18605. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18606. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18607. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18608. msm_routing_get_port_mixer,
  18609. msm_routing_put_port_mixer),
  18610. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18611. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18612. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18613. msm_routing_get_port_mixer,
  18614. msm_routing_put_port_mixer),
  18615. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18616. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18617. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18618. msm_routing_get_port_mixer,
  18619. msm_routing_put_port_mixer),
  18620. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18621. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18622. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18623. msm_routing_get_port_mixer,
  18624. msm_routing_put_port_mixer),
  18625. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18626. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18627. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18628. msm_routing_get_port_mixer,
  18629. msm_routing_put_port_mixer),
  18630. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18631. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18632. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18633. msm_routing_get_port_mixer,
  18634. msm_routing_put_port_mixer),
  18635. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18636. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18637. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18638. msm_routing_get_port_mixer,
  18639. msm_routing_put_port_mixer),
  18640. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18641. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18642. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18643. msm_routing_get_port_mixer,
  18644. msm_routing_put_port_mixer),
  18645. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18646. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18647. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18648. msm_routing_get_port_mixer,
  18649. msm_routing_put_port_mixer),
  18650. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18651. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18652. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18653. msm_routing_get_port_mixer,
  18654. msm_routing_put_port_mixer),
  18655. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18656. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18657. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18658. msm_routing_get_port_mixer,
  18659. msm_routing_put_port_mixer),
  18660. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18661. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18662. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18663. msm_routing_get_port_mixer,
  18664. msm_routing_put_port_mixer),
  18665. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18666. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18667. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18668. msm_routing_get_port_mixer,
  18669. msm_routing_put_port_mixer),
  18670. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18671. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18672. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18673. msm_routing_get_port_mixer,
  18674. msm_routing_put_port_mixer),
  18675. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18676. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18677. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18678. msm_routing_get_port_mixer,
  18679. msm_routing_put_port_mixer),
  18680. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18681. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18682. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18683. msm_routing_get_port_mixer,
  18684. msm_routing_put_port_mixer),
  18685. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18686. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18687. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18688. msm_routing_get_port_mixer,
  18689. msm_routing_put_port_mixer),
  18690. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18691. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18692. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18693. msm_routing_get_port_mixer,
  18694. msm_routing_put_port_mixer),
  18695. };
  18696. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  18697. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18698. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18699. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18700. msm_routing_get_port_mixer,
  18701. msm_routing_put_port_mixer),
  18702. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18703. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18704. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18705. msm_routing_get_port_mixer,
  18706. msm_routing_put_port_mixer),
  18707. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18708. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18709. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18710. msm_routing_get_port_mixer,
  18711. msm_routing_put_port_mixer),
  18712. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18713. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18714. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18715. msm_routing_get_port_mixer,
  18716. msm_routing_put_port_mixer),
  18717. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18718. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18719. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18720. msm_routing_get_port_mixer,
  18721. msm_routing_put_port_mixer),
  18722. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18723. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18724. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18725. msm_routing_get_port_mixer,
  18726. msm_routing_put_port_mixer),
  18727. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18728. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18729. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18730. msm_routing_get_port_mixer,
  18731. msm_routing_put_port_mixer),
  18732. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18733. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18734. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18735. msm_routing_get_port_mixer,
  18736. msm_routing_put_port_mixer),
  18737. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18738. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18739. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18740. msm_routing_get_port_mixer,
  18741. msm_routing_put_port_mixer),
  18742. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18743. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18744. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18745. msm_routing_get_port_mixer,
  18746. msm_routing_put_port_mixer),
  18747. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18748. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18749. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18750. msm_routing_get_port_mixer,
  18751. msm_routing_put_port_mixer),
  18752. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18753. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18754. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18755. msm_routing_get_port_mixer,
  18756. msm_routing_put_port_mixer),
  18757. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18758. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18759. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18760. msm_routing_get_port_mixer,
  18761. msm_routing_put_port_mixer),
  18762. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18763. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18764. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18765. msm_routing_get_port_mixer,
  18766. msm_routing_put_port_mixer),
  18767. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18768. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18769. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18770. msm_routing_get_port_mixer,
  18771. msm_routing_put_port_mixer),
  18772. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18773. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18774. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18775. msm_routing_get_port_mixer,
  18776. msm_routing_put_port_mixer),
  18777. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18778. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18779. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18780. msm_routing_get_port_mixer,
  18781. msm_routing_put_port_mixer),
  18782. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18783. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18784. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18785. msm_routing_get_port_mixer,
  18786. msm_routing_put_port_mixer),
  18787. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18788. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18789. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18790. msm_routing_get_port_mixer,
  18791. msm_routing_put_port_mixer),
  18792. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18793. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18794. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18795. msm_routing_get_port_mixer,
  18796. msm_routing_put_port_mixer),
  18797. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18798. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18799. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18800. msm_routing_get_port_mixer,
  18801. msm_routing_put_port_mixer),
  18802. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18803. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18804. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18805. msm_routing_get_port_mixer,
  18806. msm_routing_put_port_mixer),
  18807. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18808. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18809. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18810. msm_routing_get_port_mixer,
  18811. msm_routing_put_port_mixer),
  18812. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18813. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18814. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18815. msm_routing_get_port_mixer,
  18816. msm_routing_put_port_mixer),
  18817. };
  18818. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  18819. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18820. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18821. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18822. msm_routing_get_port_mixer,
  18823. msm_routing_put_port_mixer),
  18824. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18825. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18826. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18827. msm_routing_get_port_mixer,
  18828. msm_routing_put_port_mixer),
  18829. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18830. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18831. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18832. msm_routing_get_port_mixer,
  18833. msm_routing_put_port_mixer),
  18834. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18835. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18836. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18837. msm_routing_get_port_mixer,
  18838. msm_routing_put_port_mixer),
  18839. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18840. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18841. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18842. msm_routing_get_port_mixer,
  18843. msm_routing_put_port_mixer),
  18844. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18845. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18846. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18847. msm_routing_get_port_mixer,
  18848. msm_routing_put_port_mixer),
  18849. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18850. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18851. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18852. msm_routing_get_port_mixer,
  18853. msm_routing_put_port_mixer),
  18854. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18855. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18856. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18857. msm_routing_get_port_mixer,
  18858. msm_routing_put_port_mixer),
  18859. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18860. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18861. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18862. msm_routing_get_port_mixer,
  18863. msm_routing_put_port_mixer),
  18864. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18865. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18866. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18867. msm_routing_get_port_mixer,
  18868. msm_routing_put_port_mixer),
  18869. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18870. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18871. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18872. msm_routing_get_port_mixer,
  18873. msm_routing_put_port_mixer),
  18874. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18875. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18876. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18877. msm_routing_get_port_mixer,
  18878. msm_routing_put_port_mixer),
  18879. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18880. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18881. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18882. msm_routing_get_port_mixer,
  18883. msm_routing_put_port_mixer),
  18884. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18885. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18886. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18887. msm_routing_get_port_mixer,
  18888. msm_routing_put_port_mixer),
  18889. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18890. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18891. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18892. msm_routing_get_port_mixer,
  18893. msm_routing_put_port_mixer),
  18894. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18895. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18896. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18897. msm_routing_get_port_mixer,
  18898. msm_routing_put_port_mixer),
  18899. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18900. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18901. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18902. msm_routing_get_port_mixer,
  18903. msm_routing_put_port_mixer),
  18904. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18905. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18906. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18907. msm_routing_get_port_mixer,
  18908. msm_routing_put_port_mixer),
  18909. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18910. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18911. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18912. msm_routing_get_port_mixer,
  18913. msm_routing_put_port_mixer),
  18914. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18915. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18916. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18917. msm_routing_get_port_mixer,
  18918. msm_routing_put_port_mixer),
  18919. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18920. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18921. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18922. msm_routing_get_port_mixer,
  18923. msm_routing_put_port_mixer),
  18924. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18925. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18926. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18927. msm_routing_get_port_mixer,
  18928. msm_routing_put_port_mixer),
  18929. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18930. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18931. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18932. msm_routing_get_port_mixer,
  18933. msm_routing_put_port_mixer),
  18934. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18935. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18936. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18937. msm_routing_get_port_mixer,
  18938. msm_routing_put_port_mixer),
  18939. };
  18940. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  18941. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18942. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18943. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18944. msm_routing_get_port_mixer,
  18945. msm_routing_put_port_mixer),
  18946. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18947. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18948. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18949. msm_routing_get_port_mixer,
  18950. msm_routing_put_port_mixer),
  18951. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18952. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18953. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18954. msm_routing_get_port_mixer,
  18955. msm_routing_put_port_mixer),
  18956. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18957. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18958. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18959. msm_routing_get_port_mixer,
  18960. msm_routing_put_port_mixer),
  18961. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18962. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18963. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18964. msm_routing_get_port_mixer,
  18965. msm_routing_put_port_mixer),
  18966. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18967. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18968. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18969. msm_routing_get_port_mixer,
  18970. msm_routing_put_port_mixer),
  18971. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18972. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18973. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18974. msm_routing_get_port_mixer,
  18975. msm_routing_put_port_mixer),
  18976. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18977. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18978. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18979. msm_routing_get_port_mixer,
  18980. msm_routing_put_port_mixer),
  18981. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18982. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18983. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18984. msm_routing_get_port_mixer,
  18985. msm_routing_put_port_mixer),
  18986. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18987. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18988. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18989. msm_routing_get_port_mixer,
  18990. msm_routing_put_port_mixer),
  18991. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18992. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18993. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18994. msm_routing_get_port_mixer,
  18995. msm_routing_put_port_mixer),
  18996. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18997. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18998. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18999. msm_routing_get_port_mixer,
  19000. msm_routing_put_port_mixer),
  19001. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19002. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19003. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19004. msm_routing_get_port_mixer,
  19005. msm_routing_put_port_mixer),
  19006. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19007. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19008. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19009. msm_routing_get_port_mixer,
  19010. msm_routing_put_port_mixer),
  19011. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19012. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19013. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19014. msm_routing_get_port_mixer,
  19015. msm_routing_put_port_mixer),
  19016. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19017. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19018. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19019. msm_routing_get_port_mixer,
  19020. msm_routing_put_port_mixer),
  19021. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19022. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19023. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19024. msm_routing_get_port_mixer,
  19025. msm_routing_put_port_mixer),
  19026. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19027. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19028. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19029. msm_routing_get_port_mixer,
  19030. msm_routing_put_port_mixer),
  19031. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19032. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19033. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19034. msm_routing_get_port_mixer,
  19035. msm_routing_put_port_mixer),
  19036. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19037. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19038. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19039. msm_routing_get_port_mixer,
  19040. msm_routing_put_port_mixer),
  19041. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19042. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19043. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19044. msm_routing_get_port_mixer,
  19045. msm_routing_put_port_mixer),
  19046. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19047. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19048. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19049. msm_routing_get_port_mixer,
  19050. msm_routing_put_port_mixer),
  19051. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19052. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19053. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19054. msm_routing_get_port_mixer,
  19055. msm_routing_put_port_mixer),
  19056. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19057. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19058. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19059. msm_routing_get_port_mixer,
  19060. msm_routing_put_port_mixer),
  19061. };
  19062. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  19063. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  19064. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  19065. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  19066. msm_routing_get_port_mixer,
  19067. msm_routing_put_port_mixer),
  19068. };
  19069. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  19070. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19071. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19072. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19073. msm_routing_get_port_mixer,
  19074. msm_routing_put_port_mixer),
  19075. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19076. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19077. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19078. msm_routing_get_port_mixer,
  19079. msm_routing_put_port_mixer),
  19080. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19081. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19082. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19083. msm_routing_get_port_mixer,
  19084. msm_routing_put_port_mixer),
  19085. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19086. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19087. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19088. msm_routing_get_port_mixer,
  19089. msm_routing_put_port_mixer),
  19090. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19091. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19092. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19093. msm_routing_get_port_mixer,
  19094. msm_routing_put_port_mixer),
  19095. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19096. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19097. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19098. msm_routing_get_port_mixer,
  19099. msm_routing_put_port_mixer),
  19100. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19101. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19102. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19103. msm_routing_get_port_mixer,
  19104. msm_routing_put_port_mixer),
  19105. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19106. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19107. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19108. msm_routing_get_port_mixer,
  19109. msm_routing_put_port_mixer),
  19110. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19111. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19112. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19113. msm_routing_get_port_mixer,
  19114. msm_routing_put_port_mixer),
  19115. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19116. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19117. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19118. msm_routing_get_port_mixer,
  19119. msm_routing_put_port_mixer),
  19120. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19121. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19122. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19123. msm_routing_get_port_mixer,
  19124. msm_routing_put_port_mixer),
  19125. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19126. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19127. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19128. msm_routing_get_port_mixer,
  19129. msm_routing_put_port_mixer),
  19130. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19131. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19132. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19133. msm_routing_get_port_mixer,
  19134. msm_routing_put_port_mixer),
  19135. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19136. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19137. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19138. msm_routing_get_port_mixer,
  19139. msm_routing_put_port_mixer),
  19140. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19141. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19142. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19143. msm_routing_get_port_mixer,
  19144. msm_routing_put_port_mixer),
  19145. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19146. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19147. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19148. msm_routing_get_port_mixer,
  19149. msm_routing_put_port_mixer),
  19150. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19151. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19152. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19153. msm_routing_get_port_mixer,
  19154. msm_routing_put_port_mixer),
  19155. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19156. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19157. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19158. msm_routing_get_port_mixer,
  19159. msm_routing_put_port_mixer),
  19160. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19161. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19162. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19163. msm_routing_get_port_mixer,
  19164. msm_routing_put_port_mixer),
  19165. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19166. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19167. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19168. msm_routing_get_port_mixer,
  19169. msm_routing_put_port_mixer),
  19170. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19171. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19172. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19173. msm_routing_get_port_mixer,
  19174. msm_routing_put_port_mixer),
  19175. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19176. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19177. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19178. msm_routing_get_port_mixer,
  19179. msm_routing_put_port_mixer),
  19180. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19181. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19182. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19183. msm_routing_get_port_mixer,
  19184. msm_routing_put_port_mixer),
  19185. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19186. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19187. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19188. msm_routing_get_port_mixer,
  19189. msm_routing_put_port_mixer),
  19190. };
  19191. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  19192. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19193. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19194. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19195. msm_routing_get_port_mixer,
  19196. msm_routing_put_port_mixer),
  19197. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19198. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19199. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19200. msm_routing_get_port_mixer,
  19201. msm_routing_put_port_mixer),
  19202. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19203. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19204. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19205. msm_routing_get_port_mixer,
  19206. msm_routing_put_port_mixer),
  19207. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19208. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19209. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19210. msm_routing_get_port_mixer,
  19211. msm_routing_put_port_mixer),
  19212. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19213. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19214. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19215. msm_routing_get_port_mixer,
  19216. msm_routing_put_port_mixer),
  19217. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19218. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19219. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19220. msm_routing_get_port_mixer,
  19221. msm_routing_put_port_mixer),
  19222. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19223. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19224. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19225. msm_routing_get_port_mixer,
  19226. msm_routing_put_port_mixer),
  19227. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19228. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19229. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19230. msm_routing_get_port_mixer,
  19231. msm_routing_put_port_mixer),
  19232. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19233. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19234. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19235. msm_routing_get_port_mixer,
  19236. msm_routing_put_port_mixer),
  19237. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19238. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19239. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19240. msm_routing_get_port_mixer,
  19241. msm_routing_put_port_mixer),
  19242. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19243. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19244. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19245. msm_routing_get_port_mixer,
  19246. msm_routing_put_port_mixer),
  19247. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19248. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19249. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19250. msm_routing_get_port_mixer,
  19251. msm_routing_put_port_mixer),
  19252. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19253. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19254. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19255. msm_routing_get_port_mixer,
  19256. msm_routing_put_port_mixer),
  19257. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19258. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19259. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19260. msm_routing_get_port_mixer,
  19261. msm_routing_put_port_mixer),
  19262. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19263. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19264. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19265. msm_routing_get_port_mixer,
  19266. msm_routing_put_port_mixer),
  19267. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19268. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19269. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19270. msm_routing_get_port_mixer,
  19271. msm_routing_put_port_mixer),
  19272. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19273. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19274. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19275. msm_routing_get_port_mixer,
  19276. msm_routing_put_port_mixer),
  19277. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19278. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19279. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19280. msm_routing_get_port_mixer,
  19281. msm_routing_put_port_mixer),
  19282. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19283. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19284. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19285. msm_routing_get_port_mixer,
  19286. msm_routing_put_port_mixer),
  19287. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19288. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19289. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19290. msm_routing_get_port_mixer,
  19291. msm_routing_put_port_mixer),
  19292. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19293. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19294. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19295. msm_routing_get_port_mixer,
  19296. msm_routing_put_port_mixer),
  19297. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19298. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19299. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19300. msm_routing_get_port_mixer,
  19301. msm_routing_put_port_mixer),
  19302. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19303. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19304. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19305. msm_routing_get_port_mixer,
  19306. msm_routing_put_port_mixer),
  19307. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19308. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19309. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19310. msm_routing_get_port_mixer,
  19311. msm_routing_put_port_mixer),
  19312. };
  19313. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  19314. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19315. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19316. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19317. msm_routing_get_port_mixer,
  19318. msm_routing_put_port_mixer),
  19319. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19320. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19321. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19322. msm_routing_get_port_mixer,
  19323. msm_routing_put_port_mixer),
  19324. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19325. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19326. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19327. msm_routing_get_port_mixer,
  19328. msm_routing_put_port_mixer),
  19329. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19330. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19331. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19332. msm_routing_get_port_mixer,
  19333. msm_routing_put_port_mixer),
  19334. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19335. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19336. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19337. msm_routing_get_port_mixer,
  19338. msm_routing_put_port_mixer),
  19339. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19340. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19341. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19342. msm_routing_get_port_mixer,
  19343. msm_routing_put_port_mixer),
  19344. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19345. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19346. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19347. msm_routing_get_port_mixer,
  19348. msm_routing_put_port_mixer),
  19349. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19350. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19351. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19352. msm_routing_get_port_mixer,
  19353. msm_routing_put_port_mixer),
  19354. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19355. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19356. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19357. msm_routing_get_port_mixer,
  19358. msm_routing_put_port_mixer),
  19359. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19360. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19361. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19362. msm_routing_get_port_mixer,
  19363. msm_routing_put_port_mixer),
  19364. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19365. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19366. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19367. msm_routing_get_port_mixer,
  19368. msm_routing_put_port_mixer),
  19369. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19370. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19371. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19372. msm_routing_get_port_mixer,
  19373. msm_routing_put_port_mixer),
  19374. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19375. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19376. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19377. msm_routing_get_port_mixer,
  19378. msm_routing_put_port_mixer),
  19379. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19380. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19381. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19382. msm_routing_get_port_mixer,
  19383. msm_routing_put_port_mixer),
  19384. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19385. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19386. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19387. msm_routing_get_port_mixer,
  19388. msm_routing_put_port_mixer),
  19389. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19390. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19391. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19392. msm_routing_get_port_mixer,
  19393. msm_routing_put_port_mixer),
  19394. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19395. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19396. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19397. msm_routing_get_port_mixer,
  19398. msm_routing_put_port_mixer),
  19399. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19400. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19401. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19402. msm_routing_get_port_mixer,
  19403. msm_routing_put_port_mixer),
  19404. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19405. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19406. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19407. msm_routing_get_port_mixer,
  19408. msm_routing_put_port_mixer),
  19409. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19410. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19411. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19412. msm_routing_get_port_mixer,
  19413. msm_routing_put_port_mixer),
  19414. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19415. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19416. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19417. msm_routing_get_port_mixer,
  19418. msm_routing_put_port_mixer),
  19419. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19420. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19421. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19422. msm_routing_get_port_mixer,
  19423. msm_routing_put_port_mixer),
  19424. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19425. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19426. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19427. msm_routing_get_port_mixer,
  19428. msm_routing_put_port_mixer),
  19429. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19430. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19431. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19432. msm_routing_get_port_mixer,
  19433. msm_routing_put_port_mixer),
  19434. };
  19435. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  19436. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19437. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19438. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19439. msm_routing_get_port_mixer,
  19440. msm_routing_put_port_mixer),
  19441. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19442. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19443. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19444. msm_routing_get_port_mixer,
  19445. msm_routing_put_port_mixer),
  19446. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19447. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19448. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19449. msm_routing_get_port_mixer,
  19450. msm_routing_put_port_mixer),
  19451. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19452. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19453. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19454. msm_routing_get_port_mixer,
  19455. msm_routing_put_port_mixer),
  19456. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19457. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19458. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19459. msm_routing_get_port_mixer,
  19460. msm_routing_put_port_mixer),
  19461. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19462. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19463. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19464. msm_routing_get_port_mixer,
  19465. msm_routing_put_port_mixer),
  19466. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19467. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19468. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19469. msm_routing_get_port_mixer,
  19470. msm_routing_put_port_mixer),
  19471. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19472. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19473. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19474. msm_routing_get_port_mixer,
  19475. msm_routing_put_port_mixer),
  19476. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19477. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19478. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19479. msm_routing_get_port_mixer,
  19480. msm_routing_put_port_mixer),
  19481. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19482. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19483. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19484. msm_routing_get_port_mixer,
  19485. msm_routing_put_port_mixer),
  19486. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19487. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19488. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19489. msm_routing_get_port_mixer,
  19490. msm_routing_put_port_mixer),
  19491. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19492. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19493. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19494. msm_routing_get_port_mixer,
  19495. msm_routing_put_port_mixer),
  19496. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19497. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19498. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19499. msm_routing_get_port_mixer,
  19500. msm_routing_put_port_mixer),
  19501. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19502. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19503. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19504. msm_routing_get_port_mixer,
  19505. msm_routing_put_port_mixer),
  19506. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19507. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19508. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19509. msm_routing_get_port_mixer,
  19510. msm_routing_put_port_mixer),
  19511. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19512. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19513. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19514. msm_routing_get_port_mixer,
  19515. msm_routing_put_port_mixer),
  19516. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19517. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19518. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19519. msm_routing_get_port_mixer,
  19520. msm_routing_put_port_mixer),
  19521. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19522. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19523. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19524. msm_routing_get_port_mixer,
  19525. msm_routing_put_port_mixer),
  19526. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19527. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19528. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19529. msm_routing_get_port_mixer,
  19530. msm_routing_put_port_mixer),
  19531. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19532. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19533. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19534. msm_routing_get_port_mixer,
  19535. msm_routing_put_port_mixer),
  19536. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19537. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19538. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19539. msm_routing_get_port_mixer,
  19540. msm_routing_put_port_mixer),
  19541. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19542. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19543. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19544. msm_routing_get_port_mixer,
  19545. msm_routing_put_port_mixer),
  19546. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19547. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19548. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19549. msm_routing_get_port_mixer,
  19550. msm_routing_put_port_mixer),
  19551. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19552. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19553. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19554. msm_routing_get_port_mixer,
  19555. msm_routing_put_port_mixer),
  19556. };
  19557. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  19558. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19559. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19560. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19561. msm_routing_get_port_mixer,
  19562. msm_routing_put_port_mixer),
  19563. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19564. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19565. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19566. msm_routing_get_port_mixer,
  19567. msm_routing_put_port_mixer),
  19568. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19569. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19570. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19571. msm_routing_get_port_mixer,
  19572. msm_routing_put_port_mixer),
  19573. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19574. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19575. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19576. msm_routing_get_port_mixer,
  19577. msm_routing_put_port_mixer),
  19578. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19579. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19580. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19581. msm_routing_get_port_mixer,
  19582. msm_routing_put_port_mixer),
  19583. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19584. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19585. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19586. msm_routing_get_port_mixer,
  19587. msm_routing_put_port_mixer),
  19588. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19589. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19590. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19591. msm_routing_get_port_mixer,
  19592. msm_routing_put_port_mixer),
  19593. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19594. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19595. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19596. msm_routing_get_port_mixer,
  19597. msm_routing_put_port_mixer),
  19598. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19599. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19600. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19601. msm_routing_get_port_mixer,
  19602. msm_routing_put_port_mixer),
  19603. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19604. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19605. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19606. msm_routing_get_port_mixer,
  19607. msm_routing_put_port_mixer),
  19608. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19609. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19610. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19611. msm_routing_get_port_mixer,
  19612. msm_routing_put_port_mixer),
  19613. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19614. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19615. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19616. msm_routing_get_port_mixer,
  19617. msm_routing_put_port_mixer),
  19618. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19619. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19620. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19621. msm_routing_get_port_mixer,
  19622. msm_routing_put_port_mixer),
  19623. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19624. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19625. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19626. msm_routing_get_port_mixer,
  19627. msm_routing_put_port_mixer),
  19628. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19629. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19630. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19631. msm_routing_get_port_mixer,
  19632. msm_routing_put_port_mixer),
  19633. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19634. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19635. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19636. msm_routing_get_port_mixer,
  19637. msm_routing_put_port_mixer),
  19638. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19639. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19640. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19641. msm_routing_get_port_mixer,
  19642. msm_routing_put_port_mixer),
  19643. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19644. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19645. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19646. msm_routing_get_port_mixer,
  19647. msm_routing_put_port_mixer),
  19648. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19649. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19650. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19651. msm_routing_get_port_mixer,
  19652. msm_routing_put_port_mixer),
  19653. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19654. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19655. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19656. msm_routing_get_port_mixer,
  19657. msm_routing_put_port_mixer),
  19658. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19659. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19660. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19661. msm_routing_get_port_mixer,
  19662. msm_routing_put_port_mixer),
  19663. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19664. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19665. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19666. msm_routing_get_port_mixer,
  19667. msm_routing_put_port_mixer),
  19668. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19669. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19670. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19671. msm_routing_get_port_mixer,
  19672. msm_routing_put_port_mixer),
  19673. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19674. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19675. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19676. msm_routing_get_port_mixer,
  19677. msm_routing_put_port_mixer),
  19678. };
  19679. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  19680. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19681. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19682. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19683. msm_routing_get_port_mixer,
  19684. msm_routing_put_port_mixer),
  19685. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19686. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19687. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19688. msm_routing_get_port_mixer,
  19689. msm_routing_put_port_mixer),
  19690. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19691. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19692. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19693. msm_routing_get_port_mixer,
  19694. msm_routing_put_port_mixer),
  19695. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19696. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19697. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19698. msm_routing_get_port_mixer,
  19699. msm_routing_put_port_mixer),
  19700. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19701. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19702. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19703. msm_routing_get_port_mixer,
  19704. msm_routing_put_port_mixer),
  19705. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19706. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19707. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19708. msm_routing_get_port_mixer,
  19709. msm_routing_put_port_mixer),
  19710. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19711. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19712. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19713. msm_routing_get_port_mixer,
  19714. msm_routing_put_port_mixer),
  19715. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19716. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19717. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19718. msm_routing_get_port_mixer,
  19719. msm_routing_put_port_mixer),
  19720. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19721. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19722. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19723. msm_routing_get_port_mixer,
  19724. msm_routing_put_port_mixer),
  19725. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19726. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19727. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19728. msm_routing_get_port_mixer,
  19729. msm_routing_put_port_mixer),
  19730. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19731. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19732. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19733. msm_routing_get_port_mixer,
  19734. msm_routing_put_port_mixer),
  19735. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19736. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19737. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19738. msm_routing_get_port_mixer,
  19739. msm_routing_put_port_mixer),
  19740. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19741. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19742. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19743. msm_routing_get_port_mixer,
  19744. msm_routing_put_port_mixer),
  19745. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19746. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19747. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19748. msm_routing_get_port_mixer,
  19749. msm_routing_put_port_mixer),
  19750. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19751. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19752. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19753. msm_routing_get_port_mixer,
  19754. msm_routing_put_port_mixer),
  19755. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19756. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19757. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19758. msm_routing_get_port_mixer,
  19759. msm_routing_put_port_mixer),
  19760. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19761. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19762. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19763. msm_routing_get_port_mixer,
  19764. msm_routing_put_port_mixer),
  19765. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19766. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19767. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19768. msm_routing_get_port_mixer,
  19769. msm_routing_put_port_mixer),
  19770. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19771. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19772. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19773. msm_routing_get_port_mixer,
  19774. msm_routing_put_port_mixer),
  19775. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19776. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19777. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19778. msm_routing_get_port_mixer,
  19779. msm_routing_put_port_mixer),
  19780. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19781. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19782. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19783. msm_routing_get_port_mixer,
  19784. msm_routing_put_port_mixer),
  19785. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19786. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19787. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19788. msm_routing_get_port_mixer,
  19789. msm_routing_put_port_mixer),
  19790. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19791. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19792. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19793. msm_routing_get_port_mixer,
  19794. msm_routing_put_port_mixer),
  19795. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19796. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19797. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19798. msm_routing_get_port_mixer,
  19799. msm_routing_put_port_mixer),
  19800. };
  19801. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  19802. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19803. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19804. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19805. msm_routing_get_port_mixer,
  19806. msm_routing_put_port_mixer),
  19807. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19808. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19809. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19810. msm_routing_get_port_mixer,
  19811. msm_routing_put_port_mixer),
  19812. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19813. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19814. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19815. msm_routing_get_port_mixer,
  19816. msm_routing_put_port_mixer),
  19817. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19818. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19819. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19820. msm_routing_get_port_mixer,
  19821. msm_routing_put_port_mixer),
  19822. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19823. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19824. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19825. msm_routing_get_port_mixer,
  19826. msm_routing_put_port_mixer),
  19827. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19828. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19829. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19830. msm_routing_get_port_mixer,
  19831. msm_routing_put_port_mixer),
  19832. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19833. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19834. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19835. msm_routing_get_port_mixer,
  19836. msm_routing_put_port_mixer),
  19837. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19838. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19839. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19840. msm_routing_get_port_mixer,
  19841. msm_routing_put_port_mixer),
  19842. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19843. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19844. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19845. msm_routing_get_port_mixer,
  19846. msm_routing_put_port_mixer),
  19847. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19848. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19849. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19850. msm_routing_get_port_mixer,
  19851. msm_routing_put_port_mixer),
  19852. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19853. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19854. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19855. msm_routing_get_port_mixer,
  19856. msm_routing_put_port_mixer),
  19857. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19858. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19859. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19860. msm_routing_get_port_mixer,
  19861. msm_routing_put_port_mixer),
  19862. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19863. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19864. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19865. msm_routing_get_port_mixer,
  19866. msm_routing_put_port_mixer),
  19867. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19868. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19869. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19870. msm_routing_get_port_mixer,
  19871. msm_routing_put_port_mixer),
  19872. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19873. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19874. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19875. msm_routing_get_port_mixer,
  19876. msm_routing_put_port_mixer),
  19877. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19878. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19879. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19880. msm_routing_get_port_mixer,
  19881. msm_routing_put_port_mixer),
  19882. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19883. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19884. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19885. msm_routing_get_port_mixer,
  19886. msm_routing_put_port_mixer),
  19887. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19888. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19889. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19890. msm_routing_get_port_mixer,
  19891. msm_routing_put_port_mixer),
  19892. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19893. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19894. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19895. msm_routing_get_port_mixer,
  19896. msm_routing_put_port_mixer),
  19897. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19898. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19899. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19900. msm_routing_get_port_mixer,
  19901. msm_routing_put_port_mixer),
  19902. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19903. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19904. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19905. msm_routing_get_port_mixer,
  19906. msm_routing_put_port_mixer),
  19907. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19908. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19909. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19910. msm_routing_get_port_mixer,
  19911. msm_routing_put_port_mixer),
  19912. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19913. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19914. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19915. msm_routing_get_port_mixer,
  19916. msm_routing_put_port_mixer),
  19917. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19918. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19919. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19920. msm_routing_get_port_mixer,
  19921. msm_routing_put_port_mixer),
  19922. };
  19923. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  19924. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19925. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19926. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19927. msm_routing_get_port_mixer,
  19928. msm_routing_put_port_mixer),
  19929. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19930. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19931. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19932. msm_routing_get_port_mixer,
  19933. msm_routing_put_port_mixer),
  19934. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19935. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19936. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19937. msm_routing_get_port_mixer,
  19938. msm_routing_put_port_mixer),
  19939. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19940. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19941. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19942. msm_routing_get_port_mixer,
  19943. msm_routing_put_port_mixer),
  19944. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19945. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19946. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19947. msm_routing_get_port_mixer,
  19948. msm_routing_put_port_mixer),
  19949. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19950. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19951. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19952. msm_routing_get_port_mixer,
  19953. msm_routing_put_port_mixer),
  19954. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19955. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19956. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19957. msm_routing_get_port_mixer,
  19958. msm_routing_put_port_mixer),
  19959. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19960. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19961. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19962. msm_routing_get_port_mixer,
  19963. msm_routing_put_port_mixer),
  19964. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19965. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19966. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19967. msm_routing_get_port_mixer,
  19968. msm_routing_put_port_mixer),
  19969. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19970. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19971. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19972. msm_routing_get_port_mixer,
  19973. msm_routing_put_port_mixer),
  19974. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19975. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19976. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19977. msm_routing_get_port_mixer,
  19978. msm_routing_put_port_mixer),
  19979. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19980. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19981. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19982. msm_routing_get_port_mixer,
  19983. msm_routing_put_port_mixer),
  19984. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19985. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19986. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19987. msm_routing_get_port_mixer,
  19988. msm_routing_put_port_mixer),
  19989. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19990. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19991. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19992. msm_routing_get_port_mixer,
  19993. msm_routing_put_port_mixer),
  19994. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19995. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19996. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19997. msm_routing_get_port_mixer,
  19998. msm_routing_put_port_mixer),
  19999. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20000. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20001. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20002. msm_routing_get_port_mixer,
  20003. msm_routing_put_port_mixer),
  20004. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20005. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20006. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20007. msm_routing_get_port_mixer,
  20008. msm_routing_put_port_mixer),
  20009. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20010. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20011. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20012. msm_routing_get_port_mixer,
  20013. msm_routing_put_port_mixer),
  20014. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20015. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20016. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20017. msm_routing_get_port_mixer,
  20018. msm_routing_put_port_mixer),
  20019. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20020. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20021. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20022. msm_routing_get_port_mixer,
  20023. msm_routing_put_port_mixer),
  20024. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20025. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20026. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20027. msm_routing_get_port_mixer,
  20028. msm_routing_put_port_mixer),
  20029. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20030. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20031. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20032. msm_routing_get_port_mixer,
  20033. msm_routing_put_port_mixer),
  20034. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20035. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20036. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20037. msm_routing_get_port_mixer,
  20038. msm_routing_put_port_mixer),
  20039. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20040. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20041. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20042. msm_routing_get_port_mixer,
  20043. msm_routing_put_port_mixer),
  20044. };
  20045. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  20046. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  20047. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  20048. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  20049. msm_routing_get_port_mixer,
  20050. msm_routing_put_port_mixer),
  20051. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  20052. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  20053. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  20054. msm_routing_get_port_mixer,
  20055. msm_routing_put_port_mixer),
  20056. };
  20057. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  20058. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20059. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20060. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20061. msm_routing_get_port_mixer,
  20062. msm_routing_put_port_mixer),
  20063. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20064. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20065. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20066. msm_routing_get_port_mixer,
  20067. msm_routing_put_port_mixer),
  20068. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20069. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20070. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20071. msm_routing_get_port_mixer,
  20072. msm_routing_put_port_mixer),
  20073. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20074. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20075. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20076. msm_routing_get_port_mixer,
  20077. msm_routing_put_port_mixer),
  20078. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20079. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20080. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20081. msm_routing_get_port_mixer,
  20082. msm_routing_put_port_mixer),
  20083. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20084. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20085. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20086. msm_routing_get_port_mixer,
  20087. msm_routing_put_port_mixer),
  20088. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20089. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20090. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20091. msm_routing_get_port_mixer,
  20092. msm_routing_put_port_mixer),
  20093. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20094. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20095. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20096. msm_routing_get_port_mixer,
  20097. msm_routing_put_port_mixer),
  20098. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20099. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20100. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20101. msm_routing_get_port_mixer,
  20102. msm_routing_put_port_mixer),
  20103. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20104. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20105. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20106. msm_routing_get_port_mixer,
  20107. msm_routing_put_port_mixer),
  20108. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20109. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20110. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20111. msm_routing_get_port_mixer,
  20112. msm_routing_put_port_mixer),
  20113. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20114. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20115. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20116. msm_routing_get_port_mixer,
  20117. msm_routing_put_port_mixer),
  20118. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20119. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20120. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20121. msm_routing_get_port_mixer,
  20122. msm_routing_put_port_mixer),
  20123. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20124. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20125. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20126. msm_routing_get_port_mixer,
  20127. msm_routing_put_port_mixer),
  20128. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20129. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20130. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20131. msm_routing_get_port_mixer,
  20132. msm_routing_put_port_mixer),
  20133. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20134. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20135. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20136. msm_routing_get_port_mixer,
  20137. msm_routing_put_port_mixer),
  20138. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20139. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20140. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20141. msm_routing_get_port_mixer,
  20142. msm_routing_put_port_mixer),
  20143. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20144. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20145. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20146. msm_routing_get_port_mixer,
  20147. msm_routing_put_port_mixer),
  20148. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20149. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20150. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20151. msm_routing_get_port_mixer,
  20152. msm_routing_put_port_mixer),
  20153. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20154. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20155. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20156. msm_routing_get_port_mixer,
  20157. msm_routing_put_port_mixer),
  20158. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20159. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20160. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20161. msm_routing_get_port_mixer,
  20162. msm_routing_put_port_mixer),
  20163. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20164. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20165. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20166. msm_routing_get_port_mixer,
  20167. msm_routing_put_port_mixer),
  20168. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20169. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20170. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20171. msm_routing_get_port_mixer,
  20172. msm_routing_put_port_mixer),
  20173. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20174. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20175. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20176. msm_routing_get_port_mixer,
  20177. msm_routing_put_port_mixer),
  20178. };
  20179. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  20180. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20181. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20182. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20183. msm_routing_get_port_mixer,
  20184. msm_routing_put_port_mixer),
  20185. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20186. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20187. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20188. msm_routing_get_port_mixer,
  20189. msm_routing_put_port_mixer),
  20190. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20191. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20192. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20193. msm_routing_get_port_mixer,
  20194. msm_routing_put_port_mixer),
  20195. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20196. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20197. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20198. msm_routing_get_port_mixer,
  20199. msm_routing_put_port_mixer),
  20200. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20201. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20202. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20203. msm_routing_get_port_mixer,
  20204. msm_routing_put_port_mixer),
  20205. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20206. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20207. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20208. msm_routing_get_port_mixer,
  20209. msm_routing_put_port_mixer),
  20210. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20211. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20212. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20213. msm_routing_get_port_mixer,
  20214. msm_routing_put_port_mixer),
  20215. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20216. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20217. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20218. msm_routing_get_port_mixer,
  20219. msm_routing_put_port_mixer),
  20220. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20221. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20222. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20223. msm_routing_get_port_mixer,
  20224. msm_routing_put_port_mixer),
  20225. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20226. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20227. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20228. msm_routing_get_port_mixer,
  20229. msm_routing_put_port_mixer),
  20230. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20231. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20232. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20233. msm_routing_get_port_mixer,
  20234. msm_routing_put_port_mixer),
  20235. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20236. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20237. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20238. msm_routing_get_port_mixer,
  20239. msm_routing_put_port_mixer),
  20240. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20241. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20242. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20243. msm_routing_get_port_mixer,
  20244. msm_routing_put_port_mixer),
  20245. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20246. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20247. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20248. msm_routing_get_port_mixer,
  20249. msm_routing_put_port_mixer),
  20250. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20251. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20252. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20253. msm_routing_get_port_mixer,
  20254. msm_routing_put_port_mixer),
  20255. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20256. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20257. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20258. msm_routing_get_port_mixer,
  20259. msm_routing_put_port_mixer),
  20260. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20261. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20262. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20263. msm_routing_get_port_mixer,
  20264. msm_routing_put_port_mixer),
  20265. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20266. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20267. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20268. msm_routing_get_port_mixer,
  20269. msm_routing_put_port_mixer),
  20270. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20271. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20272. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20273. msm_routing_get_port_mixer,
  20274. msm_routing_put_port_mixer),
  20275. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20276. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20277. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20278. msm_routing_get_port_mixer,
  20279. msm_routing_put_port_mixer),
  20280. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20281. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20282. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20283. msm_routing_get_port_mixer,
  20284. msm_routing_put_port_mixer),
  20285. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20286. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20287. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20288. msm_routing_get_port_mixer,
  20289. msm_routing_put_port_mixer),
  20290. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20291. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20292. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20293. msm_routing_get_port_mixer,
  20294. msm_routing_put_port_mixer),
  20295. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20296. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20297. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20298. msm_routing_get_port_mixer,
  20299. msm_routing_put_port_mixer),
  20300. };
  20301. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  20302. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20303. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20304. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20305. msm_routing_get_port_mixer,
  20306. msm_routing_put_port_mixer),
  20307. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20308. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20309. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20310. msm_routing_get_port_mixer,
  20311. msm_routing_put_port_mixer),
  20312. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20313. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20314. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20315. msm_routing_get_port_mixer,
  20316. msm_routing_put_port_mixer),
  20317. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20318. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20319. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20320. msm_routing_get_port_mixer,
  20321. msm_routing_put_port_mixer),
  20322. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20323. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20324. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20325. msm_routing_get_port_mixer,
  20326. msm_routing_put_port_mixer),
  20327. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20328. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20329. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20330. msm_routing_get_port_mixer,
  20331. msm_routing_put_port_mixer),
  20332. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20333. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20334. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20335. msm_routing_get_port_mixer,
  20336. msm_routing_put_port_mixer),
  20337. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20338. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20339. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20340. msm_routing_get_port_mixer,
  20341. msm_routing_put_port_mixer),
  20342. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20343. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20344. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20345. msm_routing_get_port_mixer,
  20346. msm_routing_put_port_mixer),
  20347. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20348. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20349. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20350. msm_routing_get_port_mixer,
  20351. msm_routing_put_port_mixer),
  20352. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20353. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20354. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20355. msm_routing_get_port_mixer,
  20356. msm_routing_put_port_mixer),
  20357. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20358. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20359. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20360. msm_routing_get_port_mixer,
  20361. msm_routing_put_port_mixer),
  20362. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20363. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20364. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20365. msm_routing_get_port_mixer,
  20366. msm_routing_put_port_mixer),
  20367. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20368. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20369. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20370. msm_routing_get_port_mixer,
  20371. msm_routing_put_port_mixer),
  20372. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20373. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20374. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20375. msm_routing_get_port_mixer,
  20376. msm_routing_put_port_mixer),
  20377. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20378. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20379. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20380. msm_routing_get_port_mixer,
  20381. msm_routing_put_port_mixer),
  20382. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20383. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20384. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20385. msm_routing_get_port_mixer,
  20386. msm_routing_put_port_mixer),
  20387. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20388. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20389. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20390. msm_routing_get_port_mixer,
  20391. msm_routing_put_port_mixer),
  20392. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20393. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20394. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20395. msm_routing_get_port_mixer,
  20396. msm_routing_put_port_mixer),
  20397. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20398. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20399. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20400. msm_routing_get_port_mixer,
  20401. msm_routing_put_port_mixer),
  20402. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20403. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20404. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20405. msm_routing_get_port_mixer,
  20406. msm_routing_put_port_mixer),
  20407. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20408. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20409. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20410. msm_routing_get_port_mixer,
  20411. msm_routing_put_port_mixer),
  20412. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20413. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20414. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20415. msm_routing_get_port_mixer,
  20416. msm_routing_put_port_mixer),
  20417. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20418. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20419. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20420. msm_routing_get_port_mixer,
  20421. msm_routing_put_port_mixer),
  20422. };
  20423. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  20424. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20425. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20426. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20427. msm_routing_get_port_mixer,
  20428. msm_routing_put_port_mixer),
  20429. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20430. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20431. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20432. msm_routing_get_port_mixer,
  20433. msm_routing_put_port_mixer),
  20434. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20435. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20436. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20437. msm_routing_get_port_mixer,
  20438. msm_routing_put_port_mixer),
  20439. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20440. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20441. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20442. msm_routing_get_port_mixer,
  20443. msm_routing_put_port_mixer),
  20444. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20445. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20446. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20447. msm_routing_get_port_mixer,
  20448. msm_routing_put_port_mixer),
  20449. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20450. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20451. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20452. msm_routing_get_port_mixer,
  20453. msm_routing_put_port_mixer),
  20454. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20455. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20456. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20457. msm_routing_get_port_mixer,
  20458. msm_routing_put_port_mixer),
  20459. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20460. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20461. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20462. msm_routing_get_port_mixer,
  20463. msm_routing_put_port_mixer),
  20464. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20465. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20466. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20467. msm_routing_get_port_mixer,
  20468. msm_routing_put_port_mixer),
  20469. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20470. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20471. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20472. msm_routing_get_port_mixer,
  20473. msm_routing_put_port_mixer),
  20474. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20475. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20476. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20477. msm_routing_get_port_mixer,
  20478. msm_routing_put_port_mixer),
  20479. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20480. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20481. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20482. msm_routing_get_port_mixer,
  20483. msm_routing_put_port_mixer),
  20484. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20485. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20486. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20487. msm_routing_get_port_mixer,
  20488. msm_routing_put_port_mixer),
  20489. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20490. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20491. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20492. msm_routing_get_port_mixer,
  20493. msm_routing_put_port_mixer),
  20494. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20495. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20496. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20497. msm_routing_get_port_mixer,
  20498. msm_routing_put_port_mixer),
  20499. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20500. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20501. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20502. msm_routing_get_port_mixer,
  20503. msm_routing_put_port_mixer),
  20504. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20505. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20506. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20507. msm_routing_get_port_mixer,
  20508. msm_routing_put_port_mixer),
  20509. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20510. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20511. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20512. msm_routing_get_port_mixer,
  20513. msm_routing_put_port_mixer),
  20514. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20515. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20516. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20517. msm_routing_get_port_mixer,
  20518. msm_routing_put_port_mixer),
  20519. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20520. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20521. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20522. msm_routing_get_port_mixer,
  20523. msm_routing_put_port_mixer),
  20524. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20525. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20526. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20527. msm_routing_get_port_mixer,
  20528. msm_routing_put_port_mixer),
  20529. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20530. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20531. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20532. msm_routing_get_port_mixer,
  20533. msm_routing_put_port_mixer),
  20534. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20535. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20536. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20537. msm_routing_get_port_mixer,
  20538. msm_routing_put_port_mixer),
  20539. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20540. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20541. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20542. msm_routing_get_port_mixer,
  20543. msm_routing_put_port_mixer),
  20544. };
  20545. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  20546. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20547. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20548. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20549. msm_routing_get_port_mixer,
  20550. msm_routing_put_port_mixer),
  20551. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20552. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20553. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20554. msm_routing_get_port_mixer,
  20555. msm_routing_put_port_mixer),
  20556. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20557. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20558. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20559. msm_routing_get_port_mixer,
  20560. msm_routing_put_port_mixer),
  20561. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20562. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20563. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20564. msm_routing_get_port_mixer,
  20565. msm_routing_put_port_mixer),
  20566. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20567. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20568. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20569. msm_routing_get_port_mixer,
  20570. msm_routing_put_port_mixer),
  20571. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20572. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20573. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20574. msm_routing_get_port_mixer,
  20575. msm_routing_put_port_mixer),
  20576. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20577. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20578. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20579. msm_routing_get_port_mixer,
  20580. msm_routing_put_port_mixer),
  20581. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20582. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20583. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20584. msm_routing_get_port_mixer,
  20585. msm_routing_put_port_mixer),
  20586. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20587. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20588. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20589. msm_routing_get_port_mixer,
  20590. msm_routing_put_port_mixer),
  20591. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20592. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20593. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20594. msm_routing_get_port_mixer,
  20595. msm_routing_put_port_mixer),
  20596. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20597. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20598. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20599. msm_routing_get_port_mixer,
  20600. msm_routing_put_port_mixer),
  20601. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20602. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20603. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20604. msm_routing_get_port_mixer,
  20605. msm_routing_put_port_mixer),
  20606. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20607. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20608. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20609. msm_routing_get_port_mixer,
  20610. msm_routing_put_port_mixer),
  20611. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20612. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20613. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20614. msm_routing_get_port_mixer,
  20615. msm_routing_put_port_mixer),
  20616. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20617. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20618. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20619. msm_routing_get_port_mixer,
  20620. msm_routing_put_port_mixer),
  20621. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20622. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20623. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20624. msm_routing_get_port_mixer,
  20625. msm_routing_put_port_mixer),
  20626. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20627. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20628. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20629. msm_routing_get_port_mixer,
  20630. msm_routing_put_port_mixer),
  20631. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20632. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20633. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20634. msm_routing_get_port_mixer,
  20635. msm_routing_put_port_mixer),
  20636. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20637. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20638. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20639. msm_routing_get_port_mixer,
  20640. msm_routing_put_port_mixer),
  20641. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20642. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20643. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20644. msm_routing_get_port_mixer,
  20645. msm_routing_put_port_mixer),
  20646. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20647. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20648. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20649. msm_routing_get_port_mixer,
  20650. msm_routing_put_port_mixer),
  20651. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20652. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20653. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20654. msm_routing_get_port_mixer,
  20655. msm_routing_put_port_mixer),
  20656. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20657. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20658. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20659. msm_routing_get_port_mixer,
  20660. msm_routing_put_port_mixer),
  20661. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20662. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20663. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20664. msm_routing_get_port_mixer,
  20665. msm_routing_put_port_mixer),
  20666. };
  20667. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  20668. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20669. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20670. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20671. msm_routing_get_port_mixer,
  20672. msm_routing_put_port_mixer),
  20673. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20674. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20675. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20676. msm_routing_get_port_mixer,
  20677. msm_routing_put_port_mixer),
  20678. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20679. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20680. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20681. msm_routing_get_port_mixer,
  20682. msm_routing_put_port_mixer),
  20683. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20684. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20685. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20686. msm_routing_get_port_mixer,
  20687. msm_routing_put_port_mixer),
  20688. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20689. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20690. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20691. msm_routing_get_port_mixer,
  20692. msm_routing_put_port_mixer),
  20693. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20694. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20695. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20696. msm_routing_get_port_mixer,
  20697. msm_routing_put_port_mixer),
  20698. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20699. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20700. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20701. msm_routing_get_port_mixer,
  20702. msm_routing_put_port_mixer),
  20703. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20704. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20705. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20706. msm_routing_get_port_mixer,
  20707. msm_routing_put_port_mixer),
  20708. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20709. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20710. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20711. msm_routing_get_port_mixer,
  20712. msm_routing_put_port_mixer),
  20713. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20714. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20715. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20716. msm_routing_get_port_mixer,
  20717. msm_routing_put_port_mixer),
  20718. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20719. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20720. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20721. msm_routing_get_port_mixer,
  20722. msm_routing_put_port_mixer),
  20723. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20724. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20725. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20726. msm_routing_get_port_mixer,
  20727. msm_routing_put_port_mixer),
  20728. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20729. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20730. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20731. msm_routing_get_port_mixer,
  20732. msm_routing_put_port_mixer),
  20733. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20734. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20735. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20736. msm_routing_get_port_mixer,
  20737. msm_routing_put_port_mixer),
  20738. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20739. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20740. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20741. msm_routing_get_port_mixer,
  20742. msm_routing_put_port_mixer),
  20743. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20744. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20745. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20746. msm_routing_get_port_mixer,
  20747. msm_routing_put_port_mixer),
  20748. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20749. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20750. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20751. msm_routing_get_port_mixer,
  20752. msm_routing_put_port_mixer),
  20753. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20754. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20755. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20756. msm_routing_get_port_mixer,
  20757. msm_routing_put_port_mixer),
  20758. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20759. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20760. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20761. msm_routing_get_port_mixer,
  20762. msm_routing_put_port_mixer),
  20763. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20764. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20765. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20766. msm_routing_get_port_mixer,
  20767. msm_routing_put_port_mixer),
  20768. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20769. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20770. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20771. msm_routing_get_port_mixer,
  20772. msm_routing_put_port_mixer),
  20773. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20774. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20775. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20776. msm_routing_get_port_mixer,
  20777. msm_routing_put_port_mixer),
  20778. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20779. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20780. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20781. msm_routing_get_port_mixer,
  20782. msm_routing_put_port_mixer),
  20783. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20784. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20785. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20786. msm_routing_get_port_mixer,
  20787. msm_routing_put_port_mixer),
  20788. };
  20789. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  20790. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20791. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20792. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20793. msm_routing_get_port_mixer,
  20794. msm_routing_put_port_mixer),
  20795. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20796. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20797. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20798. msm_routing_get_port_mixer,
  20799. msm_routing_put_port_mixer),
  20800. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20801. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20802. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20803. msm_routing_get_port_mixer,
  20804. msm_routing_put_port_mixer),
  20805. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20806. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20807. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20808. msm_routing_get_port_mixer,
  20809. msm_routing_put_port_mixer),
  20810. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20811. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20812. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20813. msm_routing_get_port_mixer,
  20814. msm_routing_put_port_mixer),
  20815. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20816. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20817. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20818. msm_routing_get_port_mixer,
  20819. msm_routing_put_port_mixer),
  20820. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20821. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20822. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20823. msm_routing_get_port_mixer,
  20824. msm_routing_put_port_mixer),
  20825. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20826. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20827. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20828. msm_routing_get_port_mixer,
  20829. msm_routing_put_port_mixer),
  20830. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20831. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20832. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20833. msm_routing_get_port_mixer,
  20834. msm_routing_put_port_mixer),
  20835. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20836. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20837. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20838. msm_routing_get_port_mixer,
  20839. msm_routing_put_port_mixer),
  20840. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20841. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20842. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20843. msm_routing_get_port_mixer,
  20844. msm_routing_put_port_mixer),
  20845. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20846. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20847. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20848. msm_routing_get_port_mixer,
  20849. msm_routing_put_port_mixer),
  20850. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20851. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20852. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20853. msm_routing_get_port_mixer,
  20854. msm_routing_put_port_mixer),
  20855. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20856. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20857. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20858. msm_routing_get_port_mixer,
  20859. msm_routing_put_port_mixer),
  20860. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20861. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20862. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20863. msm_routing_get_port_mixer,
  20864. msm_routing_put_port_mixer),
  20865. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20866. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20867. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20868. msm_routing_get_port_mixer,
  20869. msm_routing_put_port_mixer),
  20870. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20871. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20872. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20873. msm_routing_get_port_mixer,
  20874. msm_routing_put_port_mixer),
  20875. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20876. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20877. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20878. msm_routing_get_port_mixer,
  20879. msm_routing_put_port_mixer),
  20880. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20881. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20882. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20883. msm_routing_get_port_mixer,
  20884. msm_routing_put_port_mixer),
  20885. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20886. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20887. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20888. msm_routing_get_port_mixer,
  20889. msm_routing_put_port_mixer),
  20890. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20891. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20892. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20893. msm_routing_get_port_mixer,
  20894. msm_routing_put_port_mixer),
  20895. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20896. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20897. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20898. msm_routing_get_port_mixer,
  20899. msm_routing_put_port_mixer),
  20900. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20901. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20902. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20903. msm_routing_get_port_mixer,
  20904. msm_routing_put_port_mixer),
  20905. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20906. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20907. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20908. msm_routing_get_port_mixer,
  20909. msm_routing_put_port_mixer),
  20910. };
  20911. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  20912. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20913. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20914. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20915. msm_routing_get_port_mixer,
  20916. msm_routing_put_port_mixer),
  20917. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20918. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20919. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20920. msm_routing_get_port_mixer,
  20921. msm_routing_put_port_mixer),
  20922. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20923. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20924. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20925. msm_routing_get_port_mixer,
  20926. msm_routing_put_port_mixer),
  20927. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20928. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20929. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20930. msm_routing_get_port_mixer,
  20931. msm_routing_put_port_mixer),
  20932. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20933. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20934. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20935. msm_routing_get_port_mixer,
  20936. msm_routing_put_port_mixer),
  20937. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20938. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20939. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20940. msm_routing_get_port_mixer,
  20941. msm_routing_put_port_mixer),
  20942. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20943. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20944. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20945. msm_routing_get_port_mixer,
  20946. msm_routing_put_port_mixer),
  20947. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20948. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20949. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20950. msm_routing_get_port_mixer,
  20951. msm_routing_put_port_mixer),
  20952. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20953. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20954. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20955. msm_routing_get_port_mixer,
  20956. msm_routing_put_port_mixer),
  20957. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20958. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20959. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20960. msm_routing_get_port_mixer,
  20961. msm_routing_put_port_mixer),
  20962. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20963. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20964. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20965. msm_routing_get_port_mixer,
  20966. msm_routing_put_port_mixer),
  20967. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20968. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20969. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20970. msm_routing_get_port_mixer,
  20971. msm_routing_put_port_mixer),
  20972. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20973. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20974. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20975. msm_routing_get_port_mixer,
  20976. msm_routing_put_port_mixer),
  20977. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20978. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20979. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20980. msm_routing_get_port_mixer,
  20981. msm_routing_put_port_mixer),
  20982. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20983. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20984. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20985. msm_routing_get_port_mixer,
  20986. msm_routing_put_port_mixer),
  20987. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20988. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20989. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20990. msm_routing_get_port_mixer,
  20991. msm_routing_put_port_mixer),
  20992. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20993. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20994. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20995. msm_routing_get_port_mixer,
  20996. msm_routing_put_port_mixer),
  20997. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20998. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20999. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  21000. msm_routing_get_port_mixer,
  21001. msm_routing_put_port_mixer),
  21002. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  21003. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21004. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  21005. msm_routing_get_port_mixer,
  21006. msm_routing_put_port_mixer),
  21007. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  21008. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21009. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  21010. msm_routing_get_port_mixer,
  21011. msm_routing_put_port_mixer),
  21012. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  21013. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21014. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  21015. msm_routing_get_port_mixer,
  21016. msm_routing_put_port_mixer),
  21017. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  21018. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21019. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  21020. msm_routing_get_port_mixer,
  21021. msm_routing_put_port_mixer),
  21022. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  21023. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21024. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  21025. msm_routing_get_port_mixer,
  21026. msm_routing_put_port_mixer),
  21027. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  21028. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21029. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  21030. msm_routing_get_port_mixer,
  21031. msm_routing_put_port_mixer),
  21032. };
  21033. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  21034. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  21035. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  21036. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  21037. msm_routing_get_port_mixer,
  21038. msm_routing_put_port_mixer),
  21039. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  21040. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  21041. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  21042. msm_routing_get_port_mixer,
  21043. msm_routing_put_port_mixer),
  21044. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  21045. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  21046. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  21047. msm_routing_get_port_mixer,
  21048. msm_routing_put_port_mixer),
  21049. };
  21050. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  21051. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  21052. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21053. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21054. msm_routing_put_port_mixer),
  21055. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21056. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21057. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21058. msm_routing_put_port_mixer),
  21059. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21060. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21061. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  21062. msm_routing_put_port_mixer),
  21063. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21064. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21065. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21066. msm_routing_put_port_mixer),
  21067. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  21068. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21069. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21070. msm_routing_put_port_mixer),
  21071. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  21072. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21073. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21074. msm_routing_put_port_mixer),
  21075. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  21076. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21077. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21078. msm_routing_put_port_mixer),
  21079. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  21080. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21081. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  21082. msm_routing_put_port_mixer),
  21083. };
  21084. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  21085. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  21086. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21087. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21088. msm_routing_put_port_mixer),
  21089. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  21090. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21091. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21092. msm_routing_put_port_mixer),
  21093. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21094. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21095. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21096. msm_routing_put_port_mixer),
  21097. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21098. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21099. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21100. msm_routing_put_port_mixer),
  21101. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  21102. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21103. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21104. msm_routing_put_port_mixer),
  21105. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  21106. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21107. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21108. msm_routing_put_port_mixer),
  21109. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21110. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21111. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  21112. msm_routing_put_port_mixer),
  21113. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  21114. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21115. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  21116. msm_routing_put_port_mixer),
  21117. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  21118. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21119. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  21120. msm_routing_put_port_mixer),
  21121. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21122. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21123. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21124. msm_routing_put_port_mixer),
  21125. };
  21126. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  21127. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21128. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21129. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21130. msm_routing_put_listen_mixer),
  21131. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21132. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21133. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21134. msm_routing_put_listen_mixer),
  21135. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21136. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21137. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21138. msm_routing_put_listen_mixer),
  21139. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21140. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21141. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21142. msm_routing_put_listen_mixer),
  21143. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21144. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21145. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21146. msm_routing_put_listen_mixer),
  21147. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21148. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21149. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21150. msm_routing_put_listen_mixer),
  21151. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21152. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21153. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21154. msm_routing_put_listen_mixer),
  21155. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21156. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21157. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21158. msm_routing_put_listen_mixer),
  21159. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21160. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21161. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21162. msm_routing_put_listen_mixer),
  21163. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21164. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21165. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21166. msm_routing_put_listen_mixer),
  21167. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21168. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21169. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21170. msm_routing_put_listen_mixer),
  21171. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21172. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21173. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21174. msm_routing_put_listen_mixer),
  21175. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21176. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21177. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21178. msm_routing_put_listen_mixer),
  21179. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21180. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21181. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21182. msm_routing_put_listen_mixer),
  21183. };
  21184. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  21185. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21186. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21187. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21188. msm_routing_put_listen_mixer),
  21189. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  21190. SND_SOC_NOPM,
  21191. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21192. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21193. msm_routing_put_listen_mixer),
  21194. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21195. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21196. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21197. msm_routing_put_listen_mixer),
  21198. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21199. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21200. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21201. msm_routing_put_listen_mixer),
  21202. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21203. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21204. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21205. msm_routing_put_listen_mixer),
  21206. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21207. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21208. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21209. msm_routing_put_listen_mixer),
  21210. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21211. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21212. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21213. msm_routing_put_listen_mixer),
  21214. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21215. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21216. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21217. msm_routing_put_listen_mixer),
  21218. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21219. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21220. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21221. msm_routing_put_listen_mixer),
  21222. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21223. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21224. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21225. msm_routing_put_listen_mixer),
  21226. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21227. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21228. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21229. msm_routing_put_listen_mixer),
  21230. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21231. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21232. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21233. msm_routing_put_listen_mixer),
  21234. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21235. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21236. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21237. msm_routing_put_listen_mixer),
  21238. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21239. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21240. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21241. msm_routing_put_listen_mixer),
  21242. };
  21243. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  21244. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21245. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21246. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21247. msm_routing_put_listen_mixer),
  21248. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21249. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21250. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21251. msm_routing_put_listen_mixer),
  21252. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21253. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21254. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21255. msm_routing_put_listen_mixer),
  21256. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21257. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21258. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21259. msm_routing_put_listen_mixer),
  21260. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21261. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21262. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21263. msm_routing_put_listen_mixer),
  21264. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21265. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21266. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21267. msm_routing_put_listen_mixer),
  21268. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21269. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21270. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21271. msm_routing_put_listen_mixer),
  21272. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21273. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21274. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21275. msm_routing_put_listen_mixer),
  21276. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21277. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21278. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21279. msm_routing_put_listen_mixer),
  21280. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21281. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21282. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21283. msm_routing_put_listen_mixer),
  21284. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21285. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21286. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21287. msm_routing_put_listen_mixer),
  21288. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21289. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21290. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21291. msm_routing_put_listen_mixer),
  21292. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21293. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21294. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21295. msm_routing_put_listen_mixer),
  21296. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21297. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21298. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21299. msm_routing_put_listen_mixer),
  21300. };
  21301. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  21302. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21303. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21304. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21305. msm_routing_put_listen_mixer),
  21306. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21307. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21308. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21309. msm_routing_put_listen_mixer),
  21310. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21311. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21312. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21313. msm_routing_put_listen_mixer),
  21314. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21315. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21316. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21317. msm_routing_put_listen_mixer),
  21318. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21319. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21320. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21321. msm_routing_put_listen_mixer),
  21322. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21323. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21324. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21325. msm_routing_put_listen_mixer),
  21326. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21327. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21328. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21329. msm_routing_put_listen_mixer),
  21330. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21331. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21332. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21333. msm_routing_put_listen_mixer),
  21334. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21335. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21336. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21337. msm_routing_put_listen_mixer),
  21338. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21339. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21340. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21341. msm_routing_put_listen_mixer),
  21342. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21343. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21344. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21345. msm_routing_put_listen_mixer),
  21346. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21347. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21348. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21349. msm_routing_put_listen_mixer),
  21350. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21351. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21352. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21353. msm_routing_put_listen_mixer),
  21354. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21355. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21356. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21357. msm_routing_put_listen_mixer),
  21358. };
  21359. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  21360. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21361. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21362. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21363. msm_routing_put_listen_mixer),
  21364. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21365. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21366. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21367. msm_routing_put_listen_mixer),
  21368. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21369. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21370. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21371. msm_routing_put_listen_mixer),
  21372. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21373. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21374. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21375. msm_routing_put_listen_mixer),
  21376. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21377. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21378. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21379. msm_routing_put_listen_mixer),
  21380. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21381. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21382. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21383. msm_routing_put_listen_mixer),
  21384. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21385. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21386. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21387. msm_routing_put_listen_mixer),
  21388. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21389. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21390. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21391. msm_routing_put_listen_mixer),
  21392. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21393. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21394. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21395. msm_routing_put_listen_mixer),
  21396. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21397. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21398. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21399. msm_routing_put_listen_mixer),
  21400. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21401. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21402. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21403. msm_routing_put_listen_mixer),
  21404. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21405. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21406. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21407. msm_routing_put_listen_mixer),
  21408. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21409. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21410. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21411. msm_routing_put_listen_mixer),
  21412. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21413. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21414. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21415. msm_routing_put_listen_mixer),
  21416. };
  21417. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  21418. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21419. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21420. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21421. msm_routing_put_listen_mixer),
  21422. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21423. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21424. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21425. msm_routing_put_listen_mixer),
  21426. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21427. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21428. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21429. msm_routing_put_listen_mixer),
  21430. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21431. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21432. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21433. msm_routing_put_listen_mixer),
  21434. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21435. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21436. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21437. msm_routing_put_listen_mixer),
  21438. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21439. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21440. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21441. msm_routing_put_listen_mixer),
  21442. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21443. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21444. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21445. msm_routing_put_listen_mixer),
  21446. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21447. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21448. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21449. msm_routing_put_listen_mixer),
  21450. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21451. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21452. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21453. msm_routing_put_listen_mixer),
  21454. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21455. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21456. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21457. msm_routing_put_listen_mixer),
  21458. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21459. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21460. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21461. msm_routing_put_listen_mixer),
  21462. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21463. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21464. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21465. msm_routing_put_listen_mixer),
  21466. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21467. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21468. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21469. msm_routing_put_listen_mixer),
  21470. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21471. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21472. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21473. msm_routing_put_listen_mixer),
  21474. };
  21475. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  21476. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21477. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21478. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21479. msm_routing_put_listen_mixer),
  21480. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21481. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21482. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21483. msm_routing_put_listen_mixer),
  21484. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21485. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21486. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21487. msm_routing_put_listen_mixer),
  21488. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21489. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21490. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21491. msm_routing_put_listen_mixer),
  21492. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21493. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21494. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21495. msm_routing_put_listen_mixer),
  21496. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21497. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21498. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21499. msm_routing_put_listen_mixer),
  21500. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21501. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21502. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21503. msm_routing_put_listen_mixer),
  21504. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21505. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21506. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21507. msm_routing_put_listen_mixer),
  21508. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21509. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21510. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21511. msm_routing_put_listen_mixer),
  21512. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21513. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21514. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21515. msm_routing_put_listen_mixer),
  21516. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21517. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21518. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21519. msm_routing_put_listen_mixer),
  21520. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21521. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21522. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21523. msm_routing_put_listen_mixer),
  21524. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21525. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21526. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21527. msm_routing_put_listen_mixer),
  21528. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21529. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21530. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21531. msm_routing_put_listen_mixer),
  21532. };
  21533. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  21534. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21535. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21536. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21537. msm_routing_put_listen_mixer),
  21538. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21539. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21540. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21541. msm_routing_put_listen_mixer),
  21542. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21543. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21544. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21545. msm_routing_put_listen_mixer),
  21546. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21547. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21548. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21549. msm_routing_put_listen_mixer),
  21550. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21551. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21552. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21553. msm_routing_put_listen_mixer),
  21554. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21555. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21556. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21557. msm_routing_put_listen_mixer),
  21558. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21559. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21560. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21561. msm_routing_put_listen_mixer),
  21562. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21563. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21564. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21565. msm_routing_put_listen_mixer),
  21566. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21567. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21568. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21569. msm_routing_put_listen_mixer),
  21570. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21571. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21572. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21573. msm_routing_put_listen_mixer),
  21574. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21575. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21576. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21577. msm_routing_put_listen_mixer),
  21578. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21579. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21580. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21581. msm_routing_put_listen_mixer),
  21582. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21583. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21584. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21585. msm_routing_put_listen_mixer),
  21586. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21587. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21588. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21589. msm_routing_put_listen_mixer),
  21590. };
  21591. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  21592. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21593. 0, 1, 0, msm_routing_get_switch_mixer,
  21594. msm_routing_put_switch_mixer);
  21595. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  21596. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21597. 0, 1, 0, msm_routing_get_switch_mixer,
  21598. msm_routing_put_switch_mixer);
  21599. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  21600. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21601. 0, 1, 0, msm_routing_get_switch_mixer,
  21602. msm_routing_put_switch_mixer);
  21603. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  21604. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21605. 0, 1, 0, msm_routing_get_switch_mixer,
  21606. msm_routing_put_switch_mixer);
  21607. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  21608. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21609. 0, 1, 0, msm_routing_get_switch_mixer,
  21610. msm_routing_put_switch_mixer);
  21611. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  21612. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21613. 0, 1, 0, msm_routing_get_switch_mixer,
  21614. msm_routing_put_switch_mixer);
  21615. static const struct snd_kcontrol_new cdc_dma_rx_1_switch_mixer_controls =
  21616. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21617. 0, 1, 0, msm_routing_get_switch_mixer,
  21618. msm_routing_put_switch_mixer);
  21619. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  21620. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21621. 0, 1, 0, msm_routing_get_switch_mixer,
  21622. msm_routing_put_switch_mixer);
  21623. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  21624. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21625. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  21626. msm_routing_put_fm_pcmrx_switch_mixer);
  21627. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  21628. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21629. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  21630. msm_routing_put_int0_mi2s_switch_mixer);
  21631. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  21632. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21633. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  21634. msm_routing_put_int4_mi2s_switch_mixer);
  21635. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  21636. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21637. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  21638. msm_routing_put_pri_mi2s_switch_mixer);
  21639. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  21640. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21641. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  21642. msm_routing_put_sec_mi2s_switch_mixer);
  21643. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  21644. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21645. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  21646. msm_routing_put_tert_mi2s_switch_mixer);
  21647. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  21648. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21649. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  21650. msm_routing_put_quat_mi2s_switch_mixer);
  21651. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  21652. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21653. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  21654. msm_routing_put_quin_mi2s_switch_mixer);
  21655. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  21656. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21657. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  21658. msm_routing_put_sen_mi2s_switch_mixer);
  21659. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  21660. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21661. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21662. msm_routing_put_hfp_switch_mixer);
  21663. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  21664. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21665. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21666. msm_routing_put_hfp_switch_mixer);
  21667. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  21668. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21669. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21670. msm_routing_put_hfp_switch_mixer);
  21671. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  21672. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21673. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21674. msm_routing_put_hfp_switch_mixer);
  21675. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  21676. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21677. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  21678. msm_routing_put_usb_switch_mixer);
  21679. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  21680. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21681. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  21682. msm_routing_a2dp_switch_mixer_put);
  21683. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  21684. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21685. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  21686. msm_routing_sco_switch_mixer_put);
  21687. static const struct soc_enum lsm_port_enum =
  21688. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  21689. static const char * const lsm_func_text[] = {
  21690. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  21691. };
  21692. static const struct soc_enum lsm_func_enum =
  21693. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  21694. static const struct snd_kcontrol_new lsm_controls[] = {
  21695. /* kcontrol of lsm_function */
  21696. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21697. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21698. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21699. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21700. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21701. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21702. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21703. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21704. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21705. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21706. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21707. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21708. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21709. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21710. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21711. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21712. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21713. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21714. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21715. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21716. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21717. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21718. SOC_ENUM_EXT(TERT_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21719. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21720. /* kcontrol of lsm_port */
  21721. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  21722. msm_routing_lsm_port_get,
  21723. msm_routing_lsm_port_put),
  21724. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  21725. msm_routing_lsm_port_get,
  21726. msm_routing_lsm_port_put),
  21727. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  21728. msm_routing_lsm_port_get,
  21729. msm_routing_lsm_port_put),
  21730. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  21731. msm_routing_lsm_port_get,
  21732. msm_routing_lsm_port_put),
  21733. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  21734. msm_routing_lsm_port_get,
  21735. msm_routing_lsm_port_put),
  21736. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  21737. msm_routing_lsm_port_get,
  21738. msm_routing_lsm_port_put),
  21739. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  21740. msm_routing_lsm_port_get,
  21741. msm_routing_lsm_port_put),
  21742. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  21743. msm_routing_lsm_port_get,
  21744. msm_routing_lsm_port_put),
  21745. };
  21746. static const char * const aanc_slim_0_rx_text[] = {
  21747. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  21748. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  21749. };
  21750. static const struct soc_enum aanc_slim_0_rx_enum =
  21751. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  21752. aanc_slim_0_rx_text);
  21753. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  21754. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  21755. msm_routing_slim_0_rx_aanc_mux_get,
  21756. msm_routing_slim_0_rx_aanc_mux_put)
  21757. };
  21758. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  21759. struct snd_ctl_elem_value *ucontrol)
  21760. {
  21761. ucontrol->value.integer.value[0] = aanc_level;
  21762. return 0;
  21763. }
  21764. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  21765. struct snd_ctl_elem_value *ucontrol)
  21766. {
  21767. int ret = 0;
  21768. mutex_lock(&routing_lock);
  21769. aanc_level = ucontrol->value.integer.value[0];
  21770. pr_debug("%s: value: %ld\n",
  21771. __func__, ucontrol->value.integer.value[0]);
  21772. ret = afe_set_aanc_noise_level(aanc_level);
  21773. mutex_unlock(&routing_lock);
  21774. return ret;
  21775. }
  21776. static const struct snd_kcontrol_new aanc_noise_level[] = {
  21777. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  21778. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  21779. };
  21780. static int msm_routing_get_stereo_to_custom_stereo_control(
  21781. struct snd_kcontrol *kcontrol,
  21782. struct snd_ctl_elem_value *ucontrol)
  21783. {
  21784. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  21785. return 0;
  21786. }
  21787. static int msm_routing_put_stereo_to_custom_stereo_control(
  21788. struct snd_kcontrol *kcontrol,
  21789. struct snd_ctl_elem_value *ucontrol)
  21790. {
  21791. int flag = 0, i = 0, rc = 0, idx = 0;
  21792. int be_index = 0, port_id, topo_id;
  21793. unsigned int session_id = 0;
  21794. uint16_t op_FL_ip_FL_weight = 0;
  21795. uint16_t op_FL_ip_FR_weight = 0;
  21796. uint16_t op_FR_ip_FL_weight = 0;
  21797. uint16_t op_FR_ip_FR_weight = 0;
  21798. flag = ucontrol->value.integer.value[0];
  21799. pr_debug("%s E flag %d\n", __func__, flag);
  21800. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  21801. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  21802. __func__, is_custom_stereo_on, flag);
  21803. return 0;
  21804. }
  21805. is_custom_stereo_on = flag ? true : false;
  21806. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  21807. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  21808. port_id = msm_bedais[be_index].port_id;
  21809. if (!msm_bedais[be_index].active)
  21810. continue;
  21811. if ((port_id != SLIMBUS_0_RX) &&
  21812. (port_id != RT_PROXY_PORT_001_RX) &&
  21813. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  21814. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  21815. continue;
  21816. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  21817. MSM_FRONTEND_DAI_MM_SIZE) {
  21818. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  21819. LEGACY_PCM_MODE)
  21820. goto skip_send_custom_stereo;
  21821. session_id =
  21822. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  21823. if (is_custom_stereo_on) {
  21824. op_FL_ip_FL_weight =
  21825. Q14_GAIN_ZERO_POINT_FIVE;
  21826. op_FL_ip_FR_weight =
  21827. Q14_GAIN_ZERO_POINT_FIVE;
  21828. op_FR_ip_FL_weight =
  21829. Q14_GAIN_ZERO_POINT_FIVE;
  21830. op_FR_ip_FR_weight =
  21831. Q14_GAIN_ZERO_POINT_FIVE;
  21832. } else {
  21833. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  21834. op_FL_ip_FR_weight = 0;
  21835. op_FR_ip_FL_weight = 0;
  21836. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  21837. }
  21838. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21839. unsigned long copp =
  21840. session_copp_map[i]
  21841. [SESSION_TYPE_RX][be_index];
  21842. if (!test_bit(idx, &copp))
  21843. goto skip_send_custom_stereo;
  21844. topo_id = adm_get_topology_for_port_copp_idx(
  21845. msm_bedais[be_index].port_id, idx);
  21846. if (topo_id < 0)
  21847. pr_debug("%s:Err:custom stereo topo %d",
  21848. __func__, topo_id);
  21849. pr_debug("idx %d\n", idx);
  21850. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  21851. rc = msm_ds2_dap_set_custom_stereo_onoff
  21852. (msm_bedais[be_index].port_id,
  21853. idx, is_custom_stereo_on);
  21854. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  21855. rc = dolby_dap_set_custom_stereo_onoff(
  21856. msm_bedais[be_index].port_id,
  21857. idx, is_custom_stereo_on);
  21858. else
  21859. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  21860. (msm_bedais[be_index].port_id,
  21861. idx, session_id,
  21862. op_FL_ip_FL_weight,
  21863. op_FL_ip_FR_weight,
  21864. op_FR_ip_FL_weight,
  21865. op_FR_ip_FR_weight);
  21866. if (rc < 0)
  21867. skip_send_custom_stereo:
  21868. pr_err("%s: err setting custom stereo\n",
  21869. __func__);
  21870. }
  21871. }
  21872. }
  21873. return 0;
  21874. }
  21875. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  21876. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  21877. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  21878. msm_routing_put_stereo_to_custom_stereo_control),
  21879. };
  21880. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21881. struct snd_ctl_elem_value *ucontrol)
  21882. {
  21883. return 0;
  21884. }
  21885. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21886. struct snd_ctl_elem_value *ucontrol)
  21887. {
  21888. int i = 0, j;
  21889. int num_app_types = ucontrol->value.integer.value[i++];
  21890. pr_debug("%s\n", __func__);
  21891. memset(app_type_cfg, 0, MAX_APP_TYPES*
  21892. sizeof(struct msm_pcm_routing_app_type_data));
  21893. if (num_app_types > MAX_APP_TYPES) {
  21894. pr_err("%s: number of app types exceed the max supported\n",
  21895. __func__);
  21896. return -EINVAL;
  21897. }
  21898. for (j = 0; j < num_app_types; j++) {
  21899. app_type_cfg[j].app_type =
  21900. ucontrol->value.integer.value[i++];
  21901. app_type_cfg[j].sample_rate =
  21902. ucontrol->value.integer.value[i++];
  21903. app_type_cfg[j].bit_width =
  21904. ucontrol->value.integer.value[i++];
  21905. }
  21906. return 0;
  21907. }
  21908. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  21909. struct snd_ctl_elem_value *ucontrol)
  21910. {
  21911. int j, fe_id, be_id, port_type;
  21912. int ret = 0;
  21913. unsigned long copp;
  21914. struct msm_pcm_routing_bdai_data *bedai;
  21915. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21916. SESSION_TYPE_RX;
  21917. int app_type = ucontrol->value.integer.value[1];
  21918. int gain = (ucontrol->value.integer.value[2] +
  21919. ucontrol->value.integer.value[3])/2;
  21920. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21921. MSM_AFE_PORT_TYPE_TX;
  21922. mutex_lock(&routing_lock);
  21923. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21924. if (is_be_dai_extproc(be_id))
  21925. continue;
  21926. bedai = &msm_bedais[be_id];
  21927. if (afe_get_port_type(bedai->port_id) != port_type)
  21928. continue;
  21929. if (!bedai->active)
  21930. continue;
  21931. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21932. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21933. continue;
  21934. if (app_type !=
  21935. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21936. continue;
  21937. copp = session_copp_map[fe_id][dir][be_id];
  21938. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  21939. if (!test_bit(j, &copp))
  21940. continue;
  21941. ret |= adm_set_volume(bedai->port_id, j, gain);
  21942. }
  21943. }
  21944. }
  21945. mutex_unlock(&routing_lock);
  21946. return ret ? -EINVAL : 0;
  21947. }
  21948. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  21949. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  21950. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  21951. msm_routing_put_app_type_cfg_control),
  21952. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  21953. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  21954. };
  21955. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  21956. struct snd_ctl_elem_value *ucontrol)
  21957. {
  21958. int copp_idx, fe_id, be_id, port_type;
  21959. int ret = 0;
  21960. unsigned long copp;
  21961. struct msm_pcm_routing_bdai_data *bedai;
  21962. u8 *packed_params = NULL;
  21963. struct param_hdr_v3 param_hdr;
  21964. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  21965. sizeof(uint32_t));
  21966. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21967. SESSION_TYPE_RX;
  21968. int app_type = ucontrol->value.integer.value[1];
  21969. int module_id = ucontrol->value.integer.value[2];
  21970. int instance_id = ucontrol->value.integer.value[3];
  21971. int param_id = ucontrol->value.integer.value[4];
  21972. int param_value = ucontrol->value.integer.value[5];
  21973. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21974. MSM_AFE_PORT_TYPE_TX;
  21975. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  21976. __func__, app_type, module_id,
  21977. instance_id, param_id, param_value);
  21978. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  21979. if (!packed_params)
  21980. return -ENOMEM;
  21981. memset(&param_hdr, 0, sizeof(param_hdr));
  21982. param_hdr.module_id = module_id;
  21983. param_hdr.instance_id = instance_id;
  21984. param_hdr.param_id = param_id;
  21985. param_hdr.param_size = sizeof(uint32_t);
  21986. packed_param_size = 0;
  21987. mutex_lock(&routing_lock);
  21988. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21989. if (is_be_dai_extproc(be_id))
  21990. continue;
  21991. bedai = &msm_bedais[be_id];
  21992. if (afe_get_port_type(bedai->port_id) != port_type)
  21993. continue;
  21994. if (!bedai->active)
  21995. continue;
  21996. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21997. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21998. continue;
  21999. if (app_type !=
  22000. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  22001. continue;
  22002. copp = session_copp_map[fe_id][dir][be_id];
  22003. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  22004. copp_idx++) {
  22005. if (!test_bit(copp_idx, &copp))
  22006. continue;
  22007. ret = q6common_pack_pp_params(packed_params,
  22008. &param_hdr,
  22009. (u8 *) &param_value,
  22010. &packed_param_size);
  22011. if (ret) {
  22012. pr_err("%s: Failed to pack params, error %d\n",
  22013. __func__, ret);
  22014. goto done;
  22015. }
  22016. ret = adm_set_pp_params(bedai->port_id,
  22017. copp_idx, NULL,
  22018. packed_params,
  22019. packed_param_size);
  22020. if (ret) {
  22021. pr_err("%s: Setting param failed with err=%d\n",
  22022. __func__, ret);
  22023. ret = -EINVAL;
  22024. goto done;
  22025. }
  22026. }
  22027. }
  22028. }
  22029. done:
  22030. mutex_unlock(&routing_lock);
  22031. kfree(packed_params);
  22032. return ret;
  22033. }
  22034. static const struct snd_kcontrol_new module_cfg_controls[] = {
  22035. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  22036. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  22037. };
  22038. static int msm_routing_get_lsm_app_type_cfg_control(
  22039. struct snd_kcontrol *kcontrol,
  22040. struct snd_ctl_elem_value *ucontrol)
  22041. {
  22042. int shift = ((struct soc_multi_mixer_control *)
  22043. kcontrol->private_value)->shift;
  22044. int i = 0, j = 0;
  22045. mutex_lock(&routing_lock);
  22046. ucontrol->value.integer.value[i] = num_app_cfg_types;
  22047. for (j = 0; j < num_app_cfg_types; ++j) {
  22048. ucontrol->value.integer.value[++i] =
  22049. lsm_app_type_cfg[j].app_type;
  22050. ucontrol->value.integer.value[++i] =
  22051. lsm_app_type_cfg[j].sample_rate;
  22052. ucontrol->value.integer.value[++i] =
  22053. lsm_app_type_cfg[j].bit_width;
  22054. if (shift == 1)
  22055. ucontrol->value.integer.value[++i] =
  22056. lsm_app_type_cfg[j].num_out_channels;
  22057. }
  22058. mutex_unlock(&routing_lock);
  22059. return 0;
  22060. }
  22061. static int msm_routing_put_lsm_app_type_cfg_control(
  22062. struct snd_kcontrol *kcontrol,
  22063. struct snd_ctl_elem_value *ucontrol)
  22064. {
  22065. int shift = ((struct soc_multi_mixer_control *)
  22066. kcontrol->private_value)->shift;
  22067. int i = 0, j;
  22068. mutex_lock(&routing_lock);
  22069. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  22070. pr_err("%s: number of app types exceed the max supported\n",
  22071. __func__);
  22072. mutex_unlock(&routing_lock);
  22073. return -EINVAL;
  22074. }
  22075. num_app_cfg_types = ucontrol->value.integer.value[i++];
  22076. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  22077. sizeof(struct msm_pcm_routing_app_type_data));
  22078. for (j = 0; j < num_app_cfg_types; j++) {
  22079. lsm_app_type_cfg[j].app_type =
  22080. ucontrol->value.integer.value[i++];
  22081. lsm_app_type_cfg[j].sample_rate =
  22082. ucontrol->value.integer.value[i++];
  22083. lsm_app_type_cfg[j].bit_width =
  22084. ucontrol->value.integer.value[i++];
  22085. /* Shift of 1 indicates this is V2 mixer control */
  22086. if (shift == 1)
  22087. lsm_app_type_cfg[j].num_out_channels =
  22088. ucontrol->value.integer.value[i++];
  22089. }
  22090. mutex_unlock(&routing_lock);
  22091. return 0;
  22092. }
  22093. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  22094. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  22095. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  22096. msm_routing_put_lsm_app_type_cfg_control),
  22097. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  22098. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  22099. msm_routing_put_lsm_app_type_cfg_control),
  22100. };
  22101. static int msm_routing_get_use_ds1_or_ds2_control(
  22102. struct snd_kcontrol *kcontrol,
  22103. struct snd_ctl_elem_value *ucontrol)
  22104. {
  22105. ucontrol->value.integer.value[0] = is_ds2_on;
  22106. return 0;
  22107. }
  22108. static int msm_routing_put_use_ds1_or_ds2_control(
  22109. struct snd_kcontrol *kcontrol,
  22110. struct snd_ctl_elem_value *ucontrol)
  22111. {
  22112. is_ds2_on = ucontrol->value.integer.value[0];
  22113. return 0;
  22114. }
  22115. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  22116. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  22117. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  22118. msm_routing_put_use_ds1_or_ds2_control),
  22119. };
  22120. static int msm_routing_get_hifi_filter_control(
  22121. struct snd_kcontrol *kcontrol,
  22122. struct snd_ctl_elem_value *ucontrol)
  22123. {
  22124. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  22125. return 0;
  22126. }
  22127. static int msm_routing_put_hifi_filter_control(
  22128. struct snd_kcontrol *kcontrol,
  22129. struct snd_ctl_elem_value *ucontrol)
  22130. {
  22131. hifi_filter_enabled = ucontrol->value.integer.value[0];
  22132. return 0;
  22133. }
  22134. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  22135. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  22136. 1, 0, msm_routing_get_hifi_filter_control,
  22137. msm_routing_put_hifi_filter_control),
  22138. };
  22139. static int msm_routing_get_ffecns_freeze_event_control(
  22140. struct snd_kcontrol *kcontrol,
  22141. struct snd_ctl_elem_value *ucontrol)
  22142. {
  22143. ucontrol->value.integer.value[0] = ffecns_freeze_event;
  22144. return 0;
  22145. }
  22146. static int msm_routing_put_ffecns_freeze_event_control(
  22147. struct snd_kcontrol *kcontrol,
  22148. struct snd_ctl_elem_value *ucontrol)
  22149. {
  22150. int ret = -EINVAL;
  22151. ffecns_freeze_event = ucontrol->value.integer.value[0];
  22152. ret = adm_set_ffecns_freeze_event(ffecns_freeze_event);
  22153. if (ret)
  22154. pr_err("%s: failed to set ffecns imc event to%d\n",
  22155. __func__, ffecns_freeze_event);
  22156. return ret;
  22157. }
  22158. static const struct snd_kcontrol_new use_ffecns_freeze_event_controls[] = {
  22159. SOC_SINGLE_EXT("FFECNS Freeze Event", SND_SOC_NOPM, 0,
  22160. 1, 0, msm_routing_get_ffecns_freeze_event_control,
  22161. msm_routing_put_ffecns_freeze_event_control),
  22162. };
  22163. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  22164. struct snd_ctl_elem_value *ucontrol) {
  22165. int rc = 0;
  22166. int be_idx = 0;
  22167. char *param_value;
  22168. int *update_param_value;
  22169. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  22170. struct param_hdr_v3 param_hdr;
  22171. param_value = kzalloc(param_size, GFP_KERNEL);
  22172. if (!param_value)
  22173. return -ENOMEM;
  22174. memset(&param_hdr, 0, sizeof(param_hdr));
  22175. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  22176. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  22177. break;
  22178. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  22179. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  22180. param_hdr.instance_id = INSTANCE_ID_0;
  22181. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  22182. param_hdr.param_size = param_size;
  22183. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  22184. NULL, &param_hdr, (u8 *) param_value);
  22185. if (rc) {
  22186. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  22187. kfree(param_value);
  22188. return -EINVAL;
  22189. }
  22190. update_param_value = (int *)param_value;
  22191. ucontrol->value.integer.value[0] = update_param_value[0];
  22192. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  22193. __func__, update_param_value[0]);
  22194. }
  22195. kfree(param_value);
  22196. return 0;
  22197. }
  22198. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  22199. struct snd_ctl_elem_value *ucontrol)
  22200. {
  22201. voc_session_id = ucontrol->value.integer.value[0];
  22202. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  22203. return 0;
  22204. }
  22205. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  22206. struct snd_ctl_elem_value *ucontrol)
  22207. {
  22208. ucontrol->value.integer.value[0] = voc_session_id;
  22209. return 0;
  22210. }
  22211. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  22212. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  22213. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  22214. msm_voc_session_id_put),
  22215. };
  22216. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  22217. struct snd_ctl_elem_info *uinfo)
  22218. {
  22219. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22220. uinfo->count = sizeof(struct sound_focus_param);
  22221. return 0;
  22222. }
  22223. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  22224. struct snd_ctl_elem_value *ucontrol)
  22225. {
  22226. int ret = 0;
  22227. struct sound_focus_param soundFocusData;
  22228. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22229. sizeof(struct sound_focus_param));
  22230. ret = voc_set_sound_focus(soundFocusData);
  22231. if (ret) {
  22232. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22233. __func__, ret);
  22234. ret = -EINVAL;
  22235. }
  22236. return ret;
  22237. }
  22238. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  22239. struct snd_ctl_elem_value *ucontrol)
  22240. {
  22241. int ret = 0;
  22242. struct sound_focus_param soundFocusData;
  22243. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  22244. ret = voc_get_sound_focus(&soundFocusData);
  22245. if (ret) {
  22246. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  22247. __func__, ret);
  22248. ret = -EINVAL;
  22249. goto done;
  22250. }
  22251. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22252. sizeof(struct sound_focus_param));
  22253. done:
  22254. return ret;
  22255. }
  22256. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  22257. struct snd_ctl_elem_info *uinfo)
  22258. {
  22259. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22260. uinfo->count = sizeof(struct source_tracking_param);
  22261. return 0;
  22262. }
  22263. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  22264. struct snd_ctl_elem_value *ucontrol)
  22265. {
  22266. int ret = 0;
  22267. struct source_tracking_param sourceTrackingData;
  22268. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  22269. ret = voc_get_source_tracking(&sourceTrackingData);
  22270. if (ret) {
  22271. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  22272. __func__, ret);
  22273. ret = -EINVAL;
  22274. goto done;
  22275. }
  22276. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22277. sizeof(struct source_tracking_param));
  22278. done:
  22279. return ret;
  22280. }
  22281. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  22282. int *copp_idx)
  22283. {
  22284. int i, idx, be_idx;
  22285. int ret = 0;
  22286. unsigned long copp;
  22287. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  22288. ret = q6audio_validate_port(port_id);
  22289. if (ret < 0) {
  22290. pr_err("%s: port validation failed id 0x%x ret %d\n",
  22291. __func__, port_id, ret);
  22292. ret = -EINVAL;
  22293. goto done;
  22294. }
  22295. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22296. if (msm_bedais[be_idx].port_id == port_id)
  22297. break;
  22298. }
  22299. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22300. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  22301. ret = -EINVAL;
  22302. goto done;
  22303. }
  22304. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  22305. MSM_FRONTEND_DAI_MAX) {
  22306. if (!(is_mm_lsm_fe_id(i) &&
  22307. route_check_fe_id_adm_support(i)))
  22308. continue;
  22309. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22310. copp = session_copp_map[i]
  22311. [session_type][be_idx];
  22312. if (test_bit(idx, &copp))
  22313. break;
  22314. }
  22315. if (idx >= MAX_COPPS_PER_PORT)
  22316. continue;
  22317. else
  22318. break;
  22319. }
  22320. if (i >= MSM_FRONTEND_DAI_MAX) {
  22321. pr_debug("%s: Invalid FE, exiting\n", __func__);
  22322. ret = -EINVAL;
  22323. goto done;
  22324. }
  22325. *copp_idx = idx;
  22326. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  22327. done:
  22328. return ret;
  22329. }
  22330. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  22331. const char *prefix, int *port_id)
  22332. {
  22333. int ret = 0;
  22334. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  22335. /*
  22336. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  22337. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  22338. * and compare the string with the backend name to derive the port id.
  22339. */
  22340. if (!strcmp(kcontrol->id.name + strlen(prefix),
  22341. "SLIMBUS_0")) {
  22342. *port_id = SLIMBUS_0_TX;
  22343. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22344. "TERT_MI2S")) {
  22345. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  22346. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22347. "INT3_MI2S")) {
  22348. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  22349. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22350. "VA_CDC_DMA_TX_0")) {
  22351. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  22352. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22353. "TX_CDC_DMA_TX_3")) {
  22354. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  22355. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22356. "QUIN_TDM_TX_0")) {
  22357. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  22358. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22359. "PRIMARY_TDM")) {
  22360. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  22361. } else {
  22362. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  22363. __func__, kcontrol->id.name);
  22364. ret = -EINVAL;
  22365. goto done;
  22366. }
  22367. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  22368. __func__, kcontrol->id.name, *port_id);
  22369. done:
  22370. return ret;
  22371. }
  22372. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  22373. struct snd_ctl_elem_value *ucontrol)
  22374. {
  22375. int ret = 0;
  22376. struct sound_focus_param soundFocusData;
  22377. int port_id, copp_idx;
  22378. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22379. "Sound Focus Audio Tx ", &port_id);
  22380. if (ret != 0) {
  22381. pr_err("%s: Error in deriving port id, err=%d\n",
  22382. __func__, ret);
  22383. ret = -EINVAL;
  22384. goto done;
  22385. }
  22386. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22387. &copp_idx);
  22388. if (ret) {
  22389. pr_err("%s: Could not get copp idx for port_id=%d\n",
  22390. __func__, port_id);
  22391. ret = -EINVAL;
  22392. goto done;
  22393. }
  22394. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22395. sizeof(struct sound_focus_param));
  22396. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  22397. if (ret) {
  22398. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22399. __func__, ret);
  22400. ret = -EINVAL;
  22401. goto done;
  22402. }
  22403. done:
  22404. return ret;
  22405. }
  22406. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  22407. struct snd_ctl_elem_value *ucontrol)
  22408. {
  22409. int ret = 0;
  22410. struct sound_focus_param soundFocusData;
  22411. int port_id, copp_idx;
  22412. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22413. "Sound Focus Audio Tx ", &port_id);
  22414. if (ret) {
  22415. pr_err("%s: Error in deriving port id, err=%d\n",
  22416. __func__, ret);
  22417. ret = -EINVAL;
  22418. goto done;
  22419. }
  22420. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22421. &copp_idx);
  22422. if (ret) {
  22423. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22424. __func__, port_id);
  22425. ret = -EINVAL;
  22426. goto done;
  22427. }
  22428. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  22429. if (ret) {
  22430. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  22431. __func__, ret);
  22432. ret = -EINVAL;
  22433. goto done;
  22434. }
  22435. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22436. sizeof(struct sound_focus_param));
  22437. done:
  22438. return ret;
  22439. }
  22440. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  22441. struct snd_ctl_elem_value *ucontrol)
  22442. {
  22443. int ret = 0;
  22444. struct source_tracking_param sourceTrackingData;
  22445. int port_id, copp_idx;
  22446. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22447. "Source Tracking Audio Tx ", &port_id);
  22448. if (ret) {
  22449. pr_err("%s: Error in deriving port id, err=%d\n",
  22450. __func__, ret);
  22451. ret = -EINVAL;
  22452. goto done;
  22453. }
  22454. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22455. &copp_idx);
  22456. if (ret) {
  22457. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22458. __func__, port_id);
  22459. ret = -EINVAL;
  22460. goto done;
  22461. }
  22462. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  22463. if (ret) {
  22464. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  22465. __func__, ret);
  22466. ret = -EINVAL;
  22467. goto done;
  22468. }
  22469. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22470. sizeof(struct source_tracking_param));
  22471. done:
  22472. return ret;
  22473. }
  22474. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  22475. struct snd_ctl_elem_info *uinfo)
  22476. {
  22477. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22478. uinfo->count = sizeof(struct doa_tracking_mon_param);
  22479. return 0;
  22480. }
  22481. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  22482. struct snd_ctl_elem_value *ucontrol)
  22483. {
  22484. int ret = 0;
  22485. struct doa_tracking_mon_param doa_tracking_data;
  22486. int port_id, copp_idx;
  22487. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  22488. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22489. "Doa Tracking Monitor Listen ", &port_id);
  22490. if (ret) {
  22491. pr_err("%s: Error in deriving port id, err=%d\n",
  22492. __func__, ret);
  22493. ret = -EINVAL;
  22494. goto done;
  22495. }
  22496. /*
  22497. * If copp id exists for given port id, query adm to get doa data.
  22498. * Else query afe for doa tracking params.
  22499. * This is to support in cases where LSM directly connects to
  22500. * AFE for FFNS.
  22501. */
  22502. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22503. &copp_idx);
  22504. if (!ret)
  22505. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  22506. &doa_tracking_data);
  22507. else
  22508. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  22509. if (ret) {
  22510. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  22511. __func__, ret);
  22512. ret = -EINVAL;
  22513. goto done;
  22514. }
  22515. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  22516. sizeof(struct doa_tracking_mon_param));
  22517. done:
  22518. return ret;
  22519. }
  22520. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  22521. {
  22522. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22523. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22524. .name = "Sound Focus Voice Tx SLIMBUS_0",
  22525. .info = msm_sound_focus_info,
  22526. .get = msm_voice_sound_focus_get,
  22527. .put = msm_voice_sound_focus_put,
  22528. },
  22529. {
  22530. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22531. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22532. .name = "Source Tracking Voice Tx SLIMBUS_0",
  22533. .info = msm_source_tracking_info,
  22534. .get = msm_voice_source_tracking_get,
  22535. },
  22536. {
  22537. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22538. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22539. .name = "Sound Focus Audio Tx SLIMBUS_0",
  22540. .info = msm_sound_focus_info,
  22541. .get = msm_audio_sound_focus_get,
  22542. .put = msm_audio_sound_focus_put,
  22543. },
  22544. {
  22545. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22546. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22547. .name = "Source Tracking Audio Tx SLIMBUS_0",
  22548. .info = msm_source_tracking_info,
  22549. .get = msm_audio_source_tracking_get,
  22550. },
  22551. {
  22552. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22553. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22554. .name = "Sound Focus Voice Tx TERT_MI2S",
  22555. .info = msm_sound_focus_info,
  22556. .get = msm_voice_sound_focus_get,
  22557. .put = msm_voice_sound_focus_put,
  22558. },
  22559. {
  22560. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22561. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22562. .name = "Source Tracking Voice Tx TERT_MI2S",
  22563. .info = msm_source_tracking_info,
  22564. .get = msm_voice_source_tracking_get,
  22565. },
  22566. {
  22567. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22568. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22569. .name = "Sound Focus Audio Tx TERT_MI2S",
  22570. .info = msm_sound_focus_info,
  22571. .get = msm_audio_sound_focus_get,
  22572. .put = msm_audio_sound_focus_put,
  22573. },
  22574. {
  22575. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22576. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22577. .name = "Source Tracking Audio Tx TERT_MI2S",
  22578. .info = msm_source_tracking_info,
  22579. .get = msm_audio_source_tracking_get,
  22580. },
  22581. {
  22582. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22583. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22584. .name = "Sound Focus Voice Tx INT3_MI2S",
  22585. .info = msm_sound_focus_info,
  22586. .get = msm_voice_sound_focus_get,
  22587. .put = msm_voice_sound_focus_put,
  22588. },
  22589. {
  22590. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22591. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22592. .name = "Source Tracking Voice Tx INT3_MI2S",
  22593. .info = msm_source_tracking_info,
  22594. .get = msm_voice_source_tracking_get,
  22595. },
  22596. {
  22597. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22598. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22599. .name = "Sound Focus Audio Tx INT3_MI2S",
  22600. .info = msm_sound_focus_info,
  22601. .get = msm_audio_sound_focus_get,
  22602. .put = msm_audio_sound_focus_put,
  22603. },
  22604. {
  22605. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22606. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22607. .name = "Source Tracking Audio Tx INT3_MI2S",
  22608. .info = msm_source_tracking_info,
  22609. .get = msm_audio_source_tracking_get,
  22610. },
  22611. {
  22612. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22613. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22614. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  22615. .info = msm_sound_focus_info,
  22616. .get = msm_voice_sound_focus_get,
  22617. .put = msm_voice_sound_focus_put,
  22618. },
  22619. {
  22620. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22621. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22622. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  22623. .info = msm_source_tracking_info,
  22624. .get = msm_voice_source_tracking_get,
  22625. },
  22626. {
  22627. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22628. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22629. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  22630. .info = msm_sound_focus_info,
  22631. .get = msm_audio_sound_focus_get,
  22632. .put = msm_audio_sound_focus_put,
  22633. },
  22634. {
  22635. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22636. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22637. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  22638. .info = msm_source_tracking_info,
  22639. .get = msm_audio_source_tracking_get,
  22640. },
  22641. {
  22642. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22643. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22644. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  22645. .info = msm_sound_focus_info,
  22646. .get = msm_voice_sound_focus_get,
  22647. .put = msm_voice_sound_focus_put,
  22648. },
  22649. {
  22650. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22651. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22652. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  22653. .info = msm_source_tracking_info,
  22654. .get = msm_voice_source_tracking_get,
  22655. },
  22656. {
  22657. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22658. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22659. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  22660. .info = msm_sound_focus_info,
  22661. .get = msm_audio_sound_focus_get,
  22662. .put = msm_audio_sound_focus_put,
  22663. },
  22664. {
  22665. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22666. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22667. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  22668. .info = msm_source_tracking_info,
  22669. .get = msm_audio_source_tracking_get,
  22670. },
  22671. {
  22672. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22673. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22674. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  22675. .info = msm_sound_focus_info,
  22676. .get = msm_voice_sound_focus_get,
  22677. .put = msm_voice_sound_focus_put,
  22678. },
  22679. {
  22680. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22681. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22682. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  22683. .info = msm_source_tracking_info,
  22684. .get = msm_voice_source_tracking_get,
  22685. },
  22686. {
  22687. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22688. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22689. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  22690. .info = msm_sound_focus_info,
  22691. .get = msm_audio_sound_focus_get,
  22692. .put = msm_audio_sound_focus_put,
  22693. },
  22694. {
  22695. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22696. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22697. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  22698. .info = msm_source_tracking_info,
  22699. .get = msm_audio_source_tracking_get,
  22700. },
  22701. {
  22702. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22703. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22704. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  22705. .info = msm_sound_focus_info,
  22706. .get = msm_audio_sound_focus_get,
  22707. .put = msm_audio_sound_focus_put,
  22708. },
  22709. {
  22710. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22711. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22712. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  22713. .info = msm_source_tracking_info,
  22714. .get = msm_audio_source_tracking_get,
  22715. },
  22716. };
  22717. static const struct snd_kcontrol_new msm_source_doa_tracking_controls[] = {
  22718. {
  22719. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22720. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22721. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  22722. .info = msm_doa_tracking_mon_info,
  22723. .get = msm_doa_tracking_mon_get,
  22724. },
  22725. };
  22726. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  22727. struct snd_ctl_elem_value *ucontrol)
  22728. {
  22729. int ret = 0;
  22730. int item;
  22731. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22732. pr_debug("%s item is %d\n", __func__,
  22733. ucontrol->value.enumerated.item[0]);
  22734. mutex_lock(&routing_lock);
  22735. item = ucontrol->value.enumerated.item[0];
  22736. if (item < e->items) {
  22737. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22738. __func__, e->shift_l, e->values[item]);
  22739. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22740. e->values[item] < MSM_BACKEND_DAI_MAX)
  22741. /* Enable feedback TX path */
  22742. ret = afe_spk_prot_feed_back_cfg(
  22743. msm_bedais[e->values[item]].port_id,
  22744. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  22745. else {
  22746. pr_debug("%s values are out of range item %d\n",
  22747. __func__, e->values[item]);
  22748. /* Disable feedback TX path */
  22749. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22750. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  22751. else
  22752. ret = -EINVAL;
  22753. }
  22754. } else {
  22755. pr_err("%s item value is out of range item\n", __func__);
  22756. ret = -EINVAL;
  22757. }
  22758. mutex_unlock(&routing_lock);
  22759. return ret;
  22760. }
  22761. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  22762. struct snd_ctl_elem_value *ucontrol)
  22763. {
  22764. int ret = 0;
  22765. int item;
  22766. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22767. pr_debug("%s item is %d\n", __func__,
  22768. ucontrol->value.enumerated.item[0]);
  22769. mutex_lock(&routing_lock);
  22770. item = ucontrol->value.enumerated.item[0];
  22771. if (item < e->items) {
  22772. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22773. __func__, e->shift_l, e->values[item]);
  22774. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22775. e->values[item] < MSM_BACKEND_DAI_MAX)
  22776. /* Enable feedback TX path */
  22777. ret = afe_spk_prot_feed_back_cfg(
  22778. msm_bedais[e->values[item]].port_id,
  22779. msm_bedais[e->shift_l].port_id,
  22780. 1, 1, 1);
  22781. else {
  22782. pr_debug("%s values are out of range item %d\n",
  22783. __func__, e->values[item]);
  22784. /* Disable feedback TX path */
  22785. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22786. ret = afe_spk_prot_feed_back_cfg(0,
  22787. 0, 0, 0, 0);
  22788. else
  22789. ret = -EINVAL;
  22790. }
  22791. } else {
  22792. pr_err("%s item value is out of range item\n", __func__);
  22793. ret = -EINVAL;
  22794. }
  22795. mutex_unlock(&routing_lock);
  22796. return ret;
  22797. }
  22798. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  22799. struct snd_ctl_elem_value *ucontrol)
  22800. {
  22801. pr_debug("%s\n", __func__);
  22802. return 0;
  22803. }
  22804. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  22805. struct snd_ctl_elem_value *ucontrol)
  22806. {
  22807. pr_debug("%s\n", __func__);
  22808. ucontrol->value.enumerated.item[0] = 0;
  22809. return 0;
  22810. }
  22811. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  22812. "ZERO", "SLIM4_TX"
  22813. };
  22814. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  22815. "ZERO", "SLIM4_TX"
  22816. };
  22817. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  22818. "ZERO", "WSA_CDC_DMA_TX_0"
  22819. };
  22820. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  22821. "ZERO", "WSA_CDC_DMA_TX_0"
  22822. };
  22823. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  22824. "ZERO", "SENARY_TX"
  22825. };
  22826. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  22827. "ZERO", "INT5_MI2S_TX"
  22828. };
  22829. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  22830. "ZERO", "INT5_MI2S_TX"
  22831. };
  22832. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  22833. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  22834. };
  22835. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  22836. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  22837. };
  22838. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  22839. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  22840. };
  22841. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  22842. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  22843. };
  22844. static const int mi2s_rx_vi_fb_tx_value[] = {
  22845. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  22846. };
  22847. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  22848. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  22849. };
  22850. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  22851. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  22852. };
  22853. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  22854. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  22855. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  22856. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  22857. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  22858. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  22859. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  22860. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  22861. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  22862. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  22863. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  22864. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  22865. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  22866. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  22867. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  22868. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  22869. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  22870. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  22871. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  22872. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  22873. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  22874. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  22875. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  22876. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  22877. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  22878. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  22879. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  22880. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  22881. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  22882. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  22883. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  22884. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  22885. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22886. spkr_prot_put_vi_lch_port);
  22887. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  22888. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  22889. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22890. spkr_prot_put_vi_rch_port);
  22891. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  22892. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  22893. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22894. spkr_prot_put_vi_lch_port);
  22895. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  22896. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  22897. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22898. spkr_prot_put_vi_rch_port);
  22899. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  22900. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  22901. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  22902. spkr_prot_put_vi_lch_port);
  22903. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  22904. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  22905. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  22906. spkr_prot_put_vi_lch_port);
  22907. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  22908. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  22909. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  22910. spkr_prot_put_vi_rch_port);
  22911. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  22912. /* Frontend AIF */
  22913. /* Widget name equals to Front-End DAI name<Need confirmation>,
  22914. * Stream name must contains substring of front-end dai name
  22915. */
  22916. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  22917. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  22918. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  22919. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  22920. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  22921. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  22922. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  22923. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  22924. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  22925. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  22926. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  22927. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  22928. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  22929. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  22930. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  22931. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  22932. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  22933. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  22934. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  22935. SND_SOC_DAPM_AIF_IN("MM_DL23", "MultiMedia23 Playback", 0, 0, 0, 0),
  22936. SND_SOC_DAPM_AIF_IN("MM_DL24", "MultiMedia24 Playback", 0, 0, 0, 0),
  22937. SND_SOC_DAPM_AIF_IN("MM_DL25", "MultiMedia25 Playback", 0, 0, 0, 0),
  22938. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  22939. SND_SOC_DAPM_AIF_IN("MM_DL31", "MultiMedia31 Playback", 0, 0, 0, 0),
  22940. SND_SOC_DAPM_AIF_IN("MM_DL32", "MultiMedia32 Playback", 0, 0, 0, 0),
  22941. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  22942. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  22943. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  22944. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  22945. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  22946. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  22947. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  22948. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  22949. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  22950. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  22951. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  22952. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  22953. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  22954. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  22955. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  22956. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  22957. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  22958. SND_SOC_DAPM_AIF_OUT("MM_UL23", "MultiMedia23 Capture", 0, 0, 0, 0),
  22959. SND_SOC_DAPM_AIF_OUT("MM_UL24", "MultiMedia24 Capture", 0, 0, 0, 0),
  22960. SND_SOC_DAPM_AIF_OUT("MM_UL25", "MultiMedia25 Capture", 0, 0, 0, 0),
  22961. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  22962. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  22963. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  22964. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  22965. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  22966. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  22967. "VoiceMMode1 Playback", 0, 0, 0, 0),
  22968. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  22969. "VoiceMMode1 Capture", 0, 0, 0, 0),
  22970. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  22971. "VoiceMMode2 Playback", 0, 0, 0, 0),
  22972. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  22973. "VoiceMMode2 Capture", 0, 0, 0, 0),
  22974. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  22975. 0, 0, 0, 0),
  22976. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  22977. 0, 0, 0, 0),
  22978. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  22979. 0, 0, 0, 0),
  22980. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  22981. 0, 0, 0, 0),
  22982. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  22983. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  22984. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  22985. 0, 0, 0, 0),
  22986. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  22987. 0, 0, 0, 0),
  22988. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  22989. 0, 0, 0, 0),
  22990. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  22991. 0, 0, 0, 0),
  22992. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  22993. 0, 0, 0, 0),
  22994. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  22995. 0, 0, 0, 0),
  22996. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  22997. 0, 0, 0, 0),
  22998. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  22999. 0, 0, 0, 0),
  23000. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  23001. 0, 0, 0, 0),
  23002. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  23003. 0, 0, 0, 0),
  23004. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  23005. 0, 0, 0, 0),
  23006. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  23007. 0, 0, 0, 0),
  23008. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  23009. 0, 0, 0, 0),
  23010. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  23011. 0, 0, 0, 0),
  23012. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  23013. 0, 0, 0, 0),
  23014. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  23015. 0, 0, 0, 0),
  23016. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  23017. 0, 0, 0, 0),
  23018. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  23019. 0, 0, 0, 0),
  23020. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  23021. 0, 0, 0, 0),
  23022. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  23023. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  23024. 0, 0, 0, 0),
  23025. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  23026. "INT0 MI2S_RX Hostless Playback",
  23027. 0, 0, 0, 0),
  23028. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  23029. "INT4 MI2S_RX Hostless Playback",
  23030. 0, 0, 0, 0),
  23031. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  23032. "Primary MI2S_RX Hostless Playback",
  23033. 0, 0, 0, 0),
  23034. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  23035. "Secondary MI2S_RX Hostless Playback",
  23036. 0, 0, 0, 0),
  23037. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  23038. "Tertiary MI2S_RX Hostless Playback",
  23039. 0, 0, 0, 0),
  23040. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  23041. "Quaternary MI2S_RX Hostless Playback",
  23042. 0, 0, 0, 0),
  23043. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  23044. "Quinary MI2S_RX Hostless Playback",
  23045. 0, 0, 0, 0),
  23046. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  23047. "Senary MI2S_RX Hostless Playback",
  23048. 0, 0, 0, 0),
  23049. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  23050. 0, 0, 0, 0),
  23051. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  23052. 0, 0, 0, 0),
  23053. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  23054. 0, 0, 0, 0),
  23055. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  23056. 0, 0, 0, 0),
  23057. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  23058. 0, 0, 0, 0),
  23059. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  23060. "INT3 MI2S_TX Hostless Capture",
  23061. 0, 0, 0, 0),
  23062. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  23063. "Tertiary MI2S_TX Hostless Capture",
  23064. 0, 0, 0, 0),
  23065. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  23066. "Secondary MI2S_TX Hostless Capture",
  23067. 0, 0, 0, 0),
  23068. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  23069. "Primary MI2S_TX Hostless Capture",
  23070. 0, 0, 0, 0),
  23071. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  23072. 0, 0, 0, 0),
  23073. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  23074. 0, 0, 0, 0),
  23075. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  23076. "Quaternary MI2S_TX Hostless Capture",
  23077. 0, 0, 0, 0),
  23078. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  23079. "Quinary MI2S_TX Hostless Capture",
  23080. 0, 0, 0, 0),
  23081. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  23082. "Senary MI2S_TX Hostless Capture",
  23083. 0, 0, 0, 0),
  23084. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  23085. "Primary TDM0 Hostless Playback",
  23086. 0, 0, 0, 0),
  23087. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  23088. "Primary TDM0 Hostless Capture",
  23089. 0, 0, 0, 0),
  23090. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  23091. "Primary TDM1 Hostless Playback",
  23092. 0, 0, 0, 0),
  23093. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  23094. "Primary TDM1 Hostless Capture",
  23095. 0, 0, 0, 0),
  23096. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  23097. "Primary TDM2 Hostless Playback",
  23098. 0, 0, 0, 0),
  23099. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  23100. "Primary TDM2 Hostless Capture",
  23101. 0, 0, 0, 0),
  23102. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  23103. "Primary TDM3 Hostless Playback",
  23104. 0, 0, 0, 0),
  23105. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  23106. "Primary TDM3 Hostless Capture",
  23107. 0, 0, 0, 0),
  23108. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  23109. "Primary TDM4 Hostless Playback",
  23110. 0, 0, 0, 0),
  23111. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  23112. "Primary TDM4 Hostless Capture",
  23113. 0, 0, 0, 0),
  23114. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  23115. "Primary TDM5 Hostless Playback",
  23116. 0, 0, 0, 0),
  23117. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  23118. "Primary TDM5 Hostless Capture",
  23119. 0, 0, 0, 0),
  23120. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  23121. "Primary TDM6 Hostless Playback",
  23122. 0, 0, 0, 0),
  23123. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  23124. "Primary TDM6 Hostless Capture",
  23125. 0, 0, 0, 0),
  23126. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  23127. "Primary TDM7 Hostless Playback",
  23128. 0, 0, 0, 0),
  23129. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  23130. "Primary TDM7 Hostless Capture",
  23131. 0, 0, 0, 0),
  23132. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  23133. "Secondary TDM0 Hostless Playback",
  23134. 0, 0, 0, 0),
  23135. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  23136. "Secondary TDM0 Hostless Capture",
  23137. 0, 0, 0, 0),
  23138. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  23139. "Secondary TDM1 Hostless Playback",
  23140. 0, 0, 0, 0),
  23141. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  23142. "Secondary TDM1 Hostless Capture",
  23143. 0, 0, 0, 0),
  23144. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  23145. "Secondary TDM2 Hostless Playback",
  23146. 0, 0, 0, 0),
  23147. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  23148. "Secondary TDM2 Hostless Capture",
  23149. 0, 0, 0, 0),
  23150. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  23151. "Secondary TDM3 Hostless Playback",
  23152. 0, 0, 0, 0),
  23153. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  23154. "Secondary TDM3 Hostless Capture",
  23155. 0, 0, 0, 0),
  23156. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  23157. "Secondary TDM4 Hostless Playback",
  23158. 0, 0, 0, 0),
  23159. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  23160. "Secondary TDM4 Hostless Capture",
  23161. 0, 0, 0, 0),
  23162. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  23163. "Secondary TDM5 Hostless Playback",
  23164. 0, 0, 0, 0),
  23165. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  23166. "Secondary TDM5 Hostless Capture",
  23167. 0, 0, 0, 0),
  23168. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  23169. "Secondary TDM6 Hostless Playback",
  23170. 0, 0, 0, 0),
  23171. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  23172. "Secondary TDM6 Hostless Capture",
  23173. 0, 0, 0, 0),
  23174. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  23175. "Secondary TDM7 Hostless Playback",
  23176. 0, 0, 0, 0),
  23177. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  23178. "Secondary TDM7 Hostless Capture",
  23179. 0, 0, 0, 0),
  23180. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  23181. "Tertiary TDM0 Hostless Playback",
  23182. 0, 0, 0, 0),
  23183. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  23184. "Tertiary TDM0 Hostless Capture",
  23185. 0, 0, 0, 0),
  23186. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  23187. "Tertiary TDM1 Hostless Playback",
  23188. 0, 0, 0, 0),
  23189. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  23190. "Tertiary TDM1 Hostless Capture",
  23191. 0, 0, 0, 0),
  23192. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  23193. "Tertiary TDM2 Hostless Playback",
  23194. 0, 0, 0, 0),
  23195. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  23196. "Tertiary TDM2 Hostless Capture",
  23197. 0, 0, 0, 0),
  23198. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  23199. "Tertiary TDM3 Hostless Playback",
  23200. 0, 0, 0, 0),
  23201. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  23202. "Tertiary TDM3 Hostless Capture",
  23203. 0, 0, 0, 0),
  23204. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  23205. "Tertiary TDM4 Hostless Playback",
  23206. 0, 0, 0, 0),
  23207. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  23208. "Tertiary TDM4 Hostless Capture",
  23209. 0, 0, 0, 0),
  23210. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  23211. "Tertiary TDM5 Hostless Playback",
  23212. 0, 0, 0, 0),
  23213. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  23214. "Tertiary TDM5 Hostless Capture",
  23215. 0, 0, 0, 0),
  23216. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  23217. "Tertiary TDM6 Hostless Playback",
  23218. 0, 0, 0, 0),
  23219. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  23220. "Tertiary TDM6 Hostless Capture",
  23221. 0, 0, 0, 0),
  23222. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  23223. "Tertiary TDM7 Hostless Playback",
  23224. 0, 0, 0, 0),
  23225. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  23226. "Tertiary TDM7 Hostless Capture",
  23227. 0, 0, 0, 0),
  23228. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  23229. "Quaternary TDM0 Hostless Playback",
  23230. 0, 0, 0, 0),
  23231. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  23232. "Quaternary TDM0 Hostless Capture",
  23233. 0, 0, 0, 0),
  23234. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  23235. "Quaternary TDM1 Hostless Playback",
  23236. 0, 0, 0, 0),
  23237. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  23238. "Quaternary TDM1 Hostless Capture",
  23239. 0, 0, 0, 0),
  23240. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  23241. "Quaternary TDM2 Hostless Playback",
  23242. 0, 0, 0, 0),
  23243. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  23244. "Quaternary TDM2 Hostless Capture",
  23245. 0, 0, 0, 0),
  23246. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  23247. "Quaternary TDM3 Hostless Playback",
  23248. 0, 0, 0, 0),
  23249. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  23250. "Quaternary TDM3 Hostless Capture",
  23251. 0, 0, 0, 0),
  23252. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  23253. "Quaternary TDM4 Hostless Playback",
  23254. 0, 0, 0, 0),
  23255. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  23256. "Quaternary TDM4 Hostless Capture",
  23257. 0, 0, 0, 0),
  23258. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  23259. "Quaternary TDM5 Hostless Playback",
  23260. 0, 0, 0, 0),
  23261. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  23262. "Quaternary TDM5 Hostless Capture",
  23263. 0, 0, 0, 0),
  23264. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  23265. "Quaternary TDM6 Hostless Playback",
  23266. 0, 0, 0, 0),
  23267. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  23268. "Quaternary TDM6 Hostless Capture",
  23269. 0, 0, 0, 0),
  23270. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  23271. "Quaternary TDM7 Hostless Playback",
  23272. 0, 0, 0, 0),
  23273. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  23274. "Quaternary TDM7 Hostless Capture",
  23275. 0, 0, 0, 0),
  23276. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  23277. "Quinary TDM0 Hostless Playback",
  23278. 0, 0, 0, 0),
  23279. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  23280. "Quinary TDM0 Hostless Capture",
  23281. 0, 0, 0, 0),
  23282. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  23283. "Quinary TDM1 Hostless Playback",
  23284. 0, 0, 0, 0),
  23285. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  23286. "Quinary TDM1 Hostless Capture",
  23287. 0, 0, 0, 0),
  23288. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  23289. "Quinary TDM2 Hostless Playback",
  23290. 0, 0, 0, 0),
  23291. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  23292. "Quinary TDM2 Hostless Capture",
  23293. 0, 0, 0, 0),
  23294. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  23295. "Quinary TDM3 Hostless Playback",
  23296. 0, 0, 0, 0),
  23297. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  23298. "Quinary TDM3 Hostless Capture",
  23299. 0, 0, 0, 0),
  23300. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  23301. "Quinary TDM4 Hostless Playback",
  23302. 0, 0, 0, 0),
  23303. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  23304. "Quinary TDM4 Hostless Capture",
  23305. 0, 0, 0, 0),
  23306. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  23307. "Quinary TDM5 Hostless Playback",
  23308. 0, 0, 0, 0),
  23309. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  23310. "Quinary TDM5 Hostless Capture",
  23311. 0, 0, 0, 0),
  23312. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  23313. "Quinary TDM6 Hostless Playback",
  23314. 0, 0, 0, 0),
  23315. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  23316. "Quinary TDM6 Hostless Capture",
  23317. 0, 0, 0, 0),
  23318. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  23319. "Quinary TDM7 Hostless Playback",
  23320. 0, 0, 0, 0),
  23321. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  23322. "Quinary TDM7 Hostless Capture",
  23323. 0, 0, 0, 0),
  23324. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  23325. "Senary TDM0 Hostless Playback",
  23326. 0, 0, 0, 0),
  23327. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  23328. "Senary TDM0 Hostless Capture",
  23329. 0, 0, 0, 0),
  23330. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  23331. "Senary TDM1 Hostless Playback",
  23332. 0, 0, 0, 0),
  23333. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  23334. "Senary TDM1 Hostless Capture",
  23335. 0, 0, 0, 0),
  23336. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  23337. "Senary TDM2 Hostless Playback",
  23338. 0, 0, 0, 0),
  23339. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  23340. "Senary TDM2 Hostless Capture",
  23341. 0, 0, 0, 0),
  23342. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  23343. "Senary TDM3 Hostless Playback",
  23344. 0, 0, 0, 0),
  23345. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  23346. "Senary TDM3 Hostless Capture",
  23347. 0, 0, 0, 0),
  23348. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  23349. "Senary TDM4 Hostless Playback",
  23350. 0, 0, 0, 0),
  23351. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  23352. "Senary TDM4 Hostless Capture",
  23353. 0, 0, 0, 0),
  23354. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  23355. "Senary TDM5 Hostless Playback",
  23356. 0, 0, 0, 0),
  23357. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  23358. "Senary TDM5 Hostless Capture",
  23359. 0, 0, 0, 0),
  23360. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  23361. "Senary TDM6 Hostless Playback",
  23362. 0, 0, 0, 0),
  23363. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  23364. "Senary TDM6 Hostless Capture",
  23365. 0, 0, 0, 0),
  23366. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  23367. "Senary TDM7 Hostless Playback",
  23368. 0, 0, 0, 0),
  23369. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  23370. "Senary TDM7 Hostless Capture",
  23371. 0, 0, 0, 0),
  23372. /* LSM */
  23373. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  23374. 0, 0, 0, 0),
  23375. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  23376. 0, 0, 0, 0),
  23377. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  23378. 0, 0, 0, 0),
  23379. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  23380. 0, 0, 0, 0),
  23381. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  23382. 0, 0, 0, 0),
  23383. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  23384. 0, 0, 0, 0),
  23385. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  23386. 0, 0, 0, 0),
  23387. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  23388. 0, 0, 0, 0),
  23389. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  23390. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  23391. /* Backend AIF */
  23392. /* Stream name equals to backend dai link stream name */
  23393. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  23394. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  23395. 0, 0, 0, 0),
  23396. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  23397. 0, 0, 0, 0),
  23398. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  23399. 0, 0, 0, 0),
  23400. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  23401. 0, 0, 0, 0),
  23402. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  23403. 0, 0, 0, 0),
  23404. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  23405. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  23406. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  23407. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  23408. SND_SOC_DAPM_AIF_OUT("HDMI_MS", "HDMI MS Playback", 0, 0, 0, 0),
  23409. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  23410. 0, 0, 0, 0),
  23411. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  23412. 0, 0, 0, 0),
  23413. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  23414. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  23415. 0, 0, 0, 0),
  23416. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  23417. 0, 0, 0, 0),
  23418. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  23419. 0, 0, 0, 0),
  23420. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  23421. "Secondary MI2S Playback SD1",
  23422. 0, 0, 0, 0),
  23423. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  23424. 0, 0, 0, 0),
  23425. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  23426. 0, 0, 0, 0),
  23427. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  23428. 0, 0, 0, 0),
  23429. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  23430. 0, 0, 0, 0),
  23431. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  23432. 0, 0, 0, 0),
  23433. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  23434. 0, 0, 0, 0),
  23435. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  23436. 0, 0, 0, 0),
  23437. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  23438. 0, 0, 0, 0),
  23439. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  23440. 0, 0, 0, 0),
  23441. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  23442. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  23443. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  23444. 0, 0, 0, 0),
  23445. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  23446. 0, 0, 0, 0),
  23447. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  23448. 0, 0, 0, 0),
  23449. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  23450. 0, 0, 0, 0),
  23451. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  23452. 0, 0, 0, 0),
  23453. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  23454. 0, 0, 0, 0),
  23455. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  23456. 0, 0, 0, 0),
  23457. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  23458. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  23459. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  23460. 0, 0, 0, 0),
  23461. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  23462. 0, 0, 0, 0),
  23463. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  23464. 0, 0, 0, 0),
  23465. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  23466. 0, 0, 0, 0),
  23467. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  23468. 0, 0, 0, 0),
  23469. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  23470. 0, 0, 0, 0),
  23471. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  23472. 0, 0, 0, 0),
  23473. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  23474. 0, 0, 0, 0),
  23475. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  23476. 0, 0, 0, 0),
  23477. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  23478. 0, 0, 0, 0),
  23479. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  23480. 0, 0, 0, 0),
  23481. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  23482. 0, 0, 0, 0),
  23483. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  23484. 0, 0, 0, 0),
  23485. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  23486. 0, 0, 0, 0),
  23487. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  23488. 0, 0, 0, 0),
  23489. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  23490. 0, 0, 0, 0),
  23491. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  23492. 0, 0, 0, 0),
  23493. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  23494. 0, 0, 0, 0),
  23495. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  23496. 0, 0, 0, 0),
  23497. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  23498. 0, 0, 0, 0),
  23499. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  23500. 0, 0, 0, 0),
  23501. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  23502. 0, 0, 0, 0),
  23503. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  23504. 0, 0, 0, 0),
  23505. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  23506. 0, 0, 0, 0),
  23507. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  23508. 0, 0, 0, 0),
  23509. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  23510. 0, 0, 0, 0),
  23511. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  23512. 0, 0, 0, 0),
  23513. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  23514. 0, 0, 0, 0),
  23515. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  23516. 0, 0, 0, 0),
  23517. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  23518. 0, 0, 0, 0),
  23519. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  23520. 0, 0, 0, 0),
  23521. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  23522. 0, 0, 0, 0),
  23523. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  23524. 0, 0, 0, 0),
  23525. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  23526. 0, 0, 0, 0),
  23527. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  23528. 0, 0, 0, 0),
  23529. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  23530. 0, 0, 0, 0),
  23531. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  23532. 0, 0, 0, 0),
  23533. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  23534. 0, 0, 0, 0),
  23535. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  23536. 0, 0, 0, 0),
  23537. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  23538. 0, 0, 0, 0),
  23539. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  23540. 0, 0, 0, 0),
  23541. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  23542. 0, 0, 0, 0),
  23543. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  23544. 0, 0, 0, 0),
  23545. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  23546. 0, 0, 0, 0),
  23547. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  23548. 0, 0, 0, 0),
  23549. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  23550. 0, 0, 0, 0),
  23551. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  23552. 0, 0, 0, 0),
  23553. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  23554. 0, 0, 0, 0),
  23555. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  23556. 0, 0, 0, 0),
  23557. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  23558. 0, 0, 0, 0),
  23559. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  23560. 0, 0, 0, 0),
  23561. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  23562. 0, 0, 0, 0),
  23563. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  23564. 0, 0, 0, 0),
  23565. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  23566. 0, 0, 0, 0),
  23567. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  23568. 0, 0, 0, 0),
  23569. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  23570. 0, 0, 0, 0),
  23571. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  23572. 0, 0, 0, 0),
  23573. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  23574. 0, 0, 0, 0),
  23575. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  23576. 0, 0, 0, 0),
  23577. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  23578. 0, 0, 0, 0),
  23579. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  23580. 0, 0, 0, 0),
  23581. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  23582. 0, 0, 0, 0),
  23583. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  23584. 0, 0, 0, 0),
  23585. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  23586. 0, 0, 0, 0),
  23587. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  23588. 0, 0, 0, 0),
  23589. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  23590. 0, 0, 0, 0),
  23591. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  23592. 0, 0, 0, 0),
  23593. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  23594. 0, 0, 0, 0),
  23595. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  23596. 0, 0, 0, 0),
  23597. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  23598. 0, 0, 0, 0),
  23599. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  23600. 0, 0, 0, 0),
  23601. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  23602. 0, 0, 0, 0),
  23603. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  23604. 0, 0, 0, 0),
  23605. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  23606. 0, 0, 0, 0),
  23607. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  23608. 0, 0, 0, 0),
  23609. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  23610. 0, 0, 0, 0),
  23611. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  23612. 0, 0, 0, 0),
  23613. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  23614. 0, 0, 0, 0),
  23615. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  23616. 0, 0, 0, 0),
  23617. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  23618. 0, 0, 0, 0),
  23619. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  23620. 0, 0, 0, 0),
  23621. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  23622. 0, 0, 0, 0),
  23623. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  23624. 0, 0, 0, 0),
  23625. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  23626. 0, 0, 0, 0),
  23627. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  23628. 0, 0, 0, 0),
  23629. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  23630. 0, 0, 0, 0),
  23631. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  23632. 0, 0, 0, 0),
  23633. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  23634. 0, 0, 0, 0),
  23635. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  23636. 0, 0, 0, 0),
  23637. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  23638. 0, 0, 0, 0),
  23639. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  23640. 0, 0, 0, 0),
  23641. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  23642. 0, 0, 0, 0),
  23643. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  23644. 0, 0, 0, 0),
  23645. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  23646. 0, 0, 0, 0),
  23647. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  23648. 0, 0, 0, 0),
  23649. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  23650. 0, 0, 0, 0),
  23651. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  23652. 0, 0, 0, 0),
  23653. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  23654. 0, 0, 0, 0),
  23655. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  23656. 0, 0, 0, 0),
  23657. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  23658. 0, 0, 0, 0),
  23659. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  23660. 0, 0, 0, 0),
  23661. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  23662. 0, 0, 0, 0),
  23663. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  23664. 0, 0, 0, 0),
  23665. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  23666. 0, 0, 0, 0),
  23667. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  23668. 0, 0, 0, 0),
  23669. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  23670. 0, 0, 0, 0),
  23671. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  23672. 0, 0, 0, 0),
  23673. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  23674. 0, 0, 0, 0),
  23675. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  23676. 0, 0, 0, 0),
  23677. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  23678. 0, 0, 0, 0),
  23679. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  23680. 0, 0, 0, 0),
  23681. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  23682. 0, 0, 0, 0),
  23683. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  23684. 0, 0, 0, 0),
  23685. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  23686. 0, 0, 0, 0),
  23687. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  23688. 0, 0, 0, 0),
  23689. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  23690. 0, 0, 0, 0),
  23691. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  23692. 0, 0, 0, 0),
  23693. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  23694. 0, 0, 0, 0),
  23695. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  23696. 0, 0, 0, 0),
  23697. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  23698. 0, 0, 0, 0),
  23699. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  23700. 0, 0, 0, 0),
  23701. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  23702. 0, 0, 0, 0),
  23703. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  23704. 0, 0, 0, 0),
  23705. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  23706. 0, 0, 0, 0),
  23707. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  23708. 0, 0, 0, 0),
  23709. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  23710. 0, 0, 0, 0),
  23711. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  23712. 0, 0, 0, 0),
  23713. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  23714. 0, 0, 0, 0),
  23715. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  23716. 0, 0, 0, 0),
  23717. /* incall */
  23718. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  23719. 0, 0, 0, 0),
  23720. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  23721. 0, 0, 0, 0),
  23722. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  23723. 0, 0, 0, 0),
  23724. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  23725. 0, 0, 0, 0),
  23726. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  23727. 0, 0, 0, 0),
  23728. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  23729. 0, 0, 0, 0),
  23730. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  23731. 0, 0, 0, 0),
  23732. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  23733. 0, 0, 0, 0),
  23734. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  23735. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  23736. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  23737. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  23738. 0, 0, 0, 0),
  23739. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  23740. 0, 0, 0, 0),
  23741. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  23742. 0, 0, 0, 0),
  23743. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  23744. 0, 0, 0, 0),
  23745. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  23746. 0, 0, 0, 0),
  23747. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  23748. 0, 0, 0, 0),
  23749. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  23750. 0, 0, 0, 0),
  23751. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  23752. 0, 0, 0, 0),
  23753. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  23754. 0, 0, 0, 0),
  23755. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  23756. 0, 0, 0, 0),
  23757. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  23758. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  23759. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  23760. 0, 0, 0, 0),
  23761. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  23762. 0, 0, 0, 0),
  23763. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  23764. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  23765. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  23766. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  23767. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  23768. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  23769. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  23770. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  23771. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  23772. /* In- call recording */
  23773. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  23774. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  23775. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  23776. 0, 0, 0, 0),
  23777. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  23778. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  23779. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  23780. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  23781. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  23782. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  23783. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  23784. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  23785. SND_SOC_DAPM_AIF_OUT("PROXY_RX", "Proxy Playback", 0, 0, 0, 0),
  23786. SND_SOC_DAPM_AIF_IN("PROXY_TX", "Proxy Capture", 0, 0, 0, 0),
  23787. /* Switch Definitions */
  23788. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  23789. &slim_fm_switch_mixer_controls),
  23790. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  23791. &slim1_fm_switch_mixer_controls),
  23792. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  23793. &slim3_fm_switch_mixer_controls),
  23794. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  23795. &slim4_fm_switch_mixer_controls),
  23796. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  23797. &slim6_fm_switch_mixer_controls),
  23798. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23799. &pcm_rx_switch_mixer_controls),
  23800. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23801. &int0_mi2s_rx_switch_mixer_controls),
  23802. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23803. &int4_mi2s_rx_switch_mixer_controls),
  23804. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23805. &pri_mi2s_rx_switch_mixer_controls),
  23806. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23807. &sec_mi2s_rx_switch_mixer_controls),
  23808. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23809. &tert_mi2s_rx_switch_mixer_controls),
  23810. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23811. &quat_mi2s_rx_switch_mixer_controls),
  23812. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23813. &quin_mi2s_rx_switch_mixer_controls),
  23814. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  23815. &sco_slim7_switch_mixer_controls),
  23816. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23817. &sen_mi2s_rx_switch_mixer_controls),
  23818. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23819. &hfp_pri_aux_switch_mixer_controls),
  23820. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23821. &hfp_aux_switch_mixer_controls),
  23822. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  23823. &hfp_int_switch_mixer_controls),
  23824. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23825. &hfp_slim7_switch_mixer_controls),
  23826. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  23827. &usb_switch_mixer_controls),
  23828. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23829. &a2dp_slim7_switch_mixer_controls),
  23830. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23831. &cdc_dma_wsa_switch_mixer_controls),
  23832. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23833. &cdc_dma_rx_switch_mixer_controls),
  23834. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_1_DL_HL", SND_SOC_NOPM, 0, 0,
  23835. &cdc_dma_rx_1_switch_mixer_controls),
  23836. /* Mixer definitions */
  23837. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23838. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  23839. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23840. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  23841. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23842. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  23843. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23844. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  23845. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23846. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  23847. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23848. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  23849. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23850. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  23851. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  23852. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  23853. SND_SOC_DAPM_MIXER("HDMI_MS Mixer", SND_SOC_NOPM, 0, 0,
  23854. hdmi_ms_mixer_controls, ARRAY_SIZE(hdmi_ms_mixer_controls)),
  23855. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  23856. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  23857. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  23858. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  23859. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23860. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  23861. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23862. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  23863. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23864. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  23865. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23866. quaternary_mi2s_rx_mixer_controls,
  23867. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  23868. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23869. tertiary_mi2s_rx_mixer_controls,
  23870. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  23871. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23872. secondary_mi2s_rx_mixer_controls,
  23873. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  23874. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23875. secondary_mi2s_rx2_mixer_controls,
  23876. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  23877. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23878. primary_mi2s_rx_mixer_controls,
  23879. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  23880. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23881. int0_mi2s_rx_mixer_controls,
  23882. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  23883. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23884. int4_mi2s_rx_mixer_controls,
  23885. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  23886. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23887. quinary_mi2s_rx_mixer_controls,
  23888. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  23889. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23890. senary_mi2s_rx_mixer_controls,
  23891. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  23892. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23893. pri_tdm_rx_0_mixer_controls,
  23894. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  23895. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23896. pri_tdm_rx_1_mixer_controls,
  23897. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  23898. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23899. pri_tdm_rx_2_mixer_controls,
  23900. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  23901. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23902. pri_tdm_rx_3_mixer_controls,
  23903. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  23904. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23905. pri_tdm_tx_0_mixer_controls,
  23906. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  23907. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23908. sec_tdm_rx_0_mixer_controls,
  23909. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  23910. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23911. sec_tdm_rx_1_mixer_controls,
  23912. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  23913. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23914. sec_tdm_rx_2_mixer_controls,
  23915. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  23916. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23917. sec_tdm_rx_3_mixer_controls,
  23918. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  23919. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23920. sec_tdm_tx_0_mixer_controls,
  23921. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  23922. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23923. tert_tdm_rx_0_mixer_controls,
  23924. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  23925. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23926. tert_tdm_tx_0_mixer_controls,
  23927. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  23928. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23929. tert_tdm_rx_1_mixer_controls,
  23930. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  23931. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23932. tert_tdm_rx_2_mixer_controls,
  23933. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  23934. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23935. tert_tdm_rx_3_mixer_controls,
  23936. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  23937. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23938. tert_tdm_rx_4_mixer_controls,
  23939. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  23940. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23941. quat_tdm_rx_0_mixer_controls,
  23942. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  23943. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23944. quat_tdm_tx_0_mixer_controls,
  23945. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  23946. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23947. quat_tdm_rx_1_mixer_controls,
  23948. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  23949. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23950. quat_tdm_rx_2_mixer_controls,
  23951. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  23952. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23953. quat_tdm_rx_3_mixer_controls,
  23954. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  23955. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23956. quin_tdm_rx_0_mixer_controls,
  23957. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  23958. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23959. quin_tdm_tx_0_mixer_controls,
  23960. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  23961. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23962. quin_tdm_rx_1_mixer_controls,
  23963. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  23964. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23965. quin_tdm_tx_1_mixer_controls,
  23966. ARRAY_SIZE(quin_tdm_tx_1_mixer_controls)),
  23967. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23968. quin_tdm_rx_2_mixer_controls,
  23969. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  23970. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23971. quin_tdm_tx_2_mixer_controls,
  23972. ARRAY_SIZE(quin_tdm_tx_2_mixer_controls)),
  23973. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23974. quin_tdm_rx_3_mixer_controls,
  23975. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  23976. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23977. quin_tdm_tx_3_mixer_controls,
  23978. ARRAY_SIZE(quin_tdm_tx_3_mixer_controls)),
  23979. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23980. sen_tdm_tx_0_mixer_controls,
  23981. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  23982. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23983. sen_tdm_rx_0_mixer_controls,
  23984. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  23985. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23986. sen_tdm_rx_1_mixer_controls,
  23987. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  23988. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23989. sen_tdm_rx_2_mixer_controls,
  23990. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  23991. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23992. sen_tdm_rx_3_mixer_controls,
  23993. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  23994. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23995. pri_meta_mi2s_rx_mixer_controls,
  23996. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  23997. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23998. sec_meta_mi2s_rx_mixer_controls,
  23999. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  24000. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24001. wsa_cdc_dma_rx_0_mixer_controls,
  24002. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  24003. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24004. wsa_cdc_dma_rx_1_mixer_controls,
  24005. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  24006. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24007. rx_cdc_dma_rx_0_mixer_controls,
  24008. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  24009. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24010. rx_cdc_dma_rx_1_mixer_controls,
  24011. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  24012. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24013. rx_cdc_dma_rx_2_mixer_controls,
  24014. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  24015. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24016. rx_cdc_dma_rx_3_mixer_controls,
  24017. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  24018. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24019. rx_cdc_dma_rx_4_mixer_controls,
  24020. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  24021. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24022. rx_cdc_dma_rx_5_mixer_controls,
  24023. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  24024. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24025. rx_cdc_dma_rx_6_mixer_controls,
  24026. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  24027. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24028. rx_cdc_dma_rx_7_mixer_controls,
  24029. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  24030. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  24031. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  24032. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  24033. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  24034. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  24035. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  24036. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  24037. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  24038. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  24039. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  24040. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  24041. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  24042. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  24043. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  24044. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  24045. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  24046. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  24047. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  24048. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  24049. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  24050. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  24051. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  24052. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  24053. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  24054. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  24055. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  24056. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  24057. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  24058. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  24059. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  24060. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  24061. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  24062. SND_SOC_DAPM_MIXER("MultiMedia23 Mixer", SND_SOC_NOPM, 0, 0,
  24063. mmul23_mixer_controls, ARRAY_SIZE(mmul23_mixer_controls)),
  24064. SND_SOC_DAPM_MIXER("MultiMedia24 Mixer", SND_SOC_NOPM, 0, 0,
  24065. mmul24_mixer_controls, ARRAY_SIZE(mmul24_mixer_controls)),
  24066. SND_SOC_DAPM_MIXER("MultiMedia25 Mixer", SND_SOC_NOPM, 0, 0,
  24067. mmul25_mixer_controls, ARRAY_SIZE(mmul25_mixer_controls)),
  24068. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  24069. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  24070. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  24071. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  24072. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  24073. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  24074. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  24075. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  24076. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24077. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  24078. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24079. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  24080. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24081. tert_auxpcm_rx_mixer_controls,
  24082. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  24083. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24084. quat_auxpcm_rx_mixer_controls,
  24085. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  24086. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24087. quin_auxpcm_rx_mixer_controls,
  24088. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  24089. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24090. sen_auxpcm_rx_mixer_controls,
  24091. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  24092. /* incall */
  24093. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  24094. incall_music_delivery_mixer_controls,
  24095. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  24096. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24097. incall_music2_delivery_mixer_controls,
  24098. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  24099. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24100. slimbus_4_rx_mixer_controls,
  24101. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  24102. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24103. slimbus_6_rx_mixer_controls,
  24104. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  24105. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24106. usb_audio_rx_mixer_controls,
  24107. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  24108. /* Voice Mixer */
  24109. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  24110. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  24111. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  24112. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  24113. SND_SOC_NOPM, 0, 0,
  24114. sec_i2s_rx_voice_mixer_controls,
  24115. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  24116. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  24117. SND_SOC_NOPM, 0, 0,
  24118. sec_mi2s_rx_voice_mixer_controls,
  24119. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  24120. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  24121. SND_SOC_NOPM, 0, 0,
  24122. slimbus_rx_voice_mixer_controls,
  24123. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  24124. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  24125. SND_SOC_NOPM, 0, 0,
  24126. bt_sco_rx_voice_mixer_controls,
  24127. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  24128. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  24129. SND_SOC_NOPM, 0, 0,
  24130. afe_pcm_rx_voice_mixer_controls,
  24131. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  24132. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  24133. SND_SOC_NOPM, 0, 0,
  24134. aux_pcm_rx_voice_mixer_controls,
  24135. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  24136. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  24137. SND_SOC_NOPM, 0, 0,
  24138. sec_aux_pcm_rx_voice_mixer_controls,
  24139. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  24140. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  24141. SND_SOC_NOPM, 0, 0,
  24142. tert_aux_pcm_rx_voice_mixer_controls,
  24143. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  24144. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  24145. SND_SOC_NOPM, 0, 0,
  24146. quat_aux_pcm_rx_voice_mixer_controls,
  24147. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  24148. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  24149. SND_SOC_NOPM, 0, 0,
  24150. quin_aux_pcm_rx_voice_mixer_controls,
  24151. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  24152. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  24153. SND_SOC_NOPM, 0, 0,
  24154. sen_aux_pcm_rx_voice_mixer_controls,
  24155. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  24156. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  24157. SND_SOC_NOPM, 0, 0,
  24158. hdmi_rx_voice_mixer_controls,
  24159. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  24160. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  24161. SND_SOC_NOPM, 0, 0,
  24162. mi2s_rx_voice_mixer_controls,
  24163. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  24164. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  24165. SND_SOC_NOPM, 0, 0,
  24166. pri_mi2s_rx_voice_mixer_controls,
  24167. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  24168. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  24169. SND_SOC_NOPM, 0, 0,
  24170. int0_mi2s_rx_voice_mixer_controls,
  24171. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  24172. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  24173. SND_SOC_NOPM, 0, 0,
  24174. int4_mi2s_rx_voice_mixer_controls,
  24175. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  24176. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  24177. SND_SOC_NOPM, 0, 0,
  24178. tert_mi2s_rx_voice_mixer_controls,
  24179. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  24180. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  24181. SND_SOC_NOPM, 0, 0,
  24182. quat_mi2s_rx_voice_mixer_controls,
  24183. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  24184. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  24185. SND_SOC_NOPM, 0, 0,
  24186. quin_mi2s_rx_voice_mixer_controls,
  24187. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  24188. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  24189. SND_SOC_NOPM, 0, 0,
  24190. pri_tdm_rx_0_voice_mixer_controls,
  24191. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  24192. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  24193. SND_SOC_NOPM, 0, 0,
  24194. pri_tdm_rx_1_voice_mixer_controls,
  24195. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  24196. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  24197. SND_SOC_NOPM, 0, 0,
  24198. pri_tdm_rx_2_voice_mixer_controls,
  24199. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  24200. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  24201. SND_SOC_NOPM, 0, 0,
  24202. pri_tdm_rx_3_voice_mixer_controls,
  24203. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  24204. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  24205. SND_SOC_NOPM, 0, 0,
  24206. sen_mi2s_rx_voice_mixer_controls,
  24207. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  24208. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  24209. SND_SOC_NOPM, 0, 0,
  24210. quat_tdm_rx_2_voice_mixer_controls,
  24211. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  24212. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2_Voice Mixer",
  24213. SND_SOC_NOPM, 0, 0,
  24214. quin_tdm_rx_2_voice_mixer_controls,
  24215. ARRAY_SIZE(quin_tdm_rx_2_voice_mixer_controls)),
  24216. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  24217. SND_SOC_NOPM, 0, 0,
  24218. wsa_cdc_dma_rx_0_voice_mixer_controls,
  24219. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  24220. SND_SOC_DAPM_MIXER("PROXY_RX_Voice Mixer",
  24221. SND_SOC_NOPM, 0, 0,
  24222. proxy_rx_voice_mixer_controls,
  24223. ARRAY_SIZE(proxy_rx_voice_mixer_controls)),
  24224. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  24225. SND_SOC_NOPM, 0, 0,
  24226. rx_cdc_dma_rx_0_voice_mixer_controls,
  24227. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  24228. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1_Voice Mixer",
  24229. SND_SOC_NOPM, 0, 0,
  24230. rx_cdc_dma_rx_1_voice_mixer_controls,
  24231. ARRAY_SIZE(rx_cdc_dma_rx_1_voice_mixer_controls)),
  24232. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  24233. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  24234. ARRAY_SIZE(tx_voip_mixer_controls)),
  24235. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  24236. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  24237. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  24238. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  24239. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  24240. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  24241. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24242. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  24243. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24244. int_bt_a2dp_rx_mixer_controls,
  24245. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  24246. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24247. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  24248. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24249. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  24250. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24251. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  24252. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24253. tx_voice2_stub_mixer_controls,
  24254. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  24255. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24256. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  24257. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  24258. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  24259. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  24260. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  24261. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24262. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  24263. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  24264. SND_SOC_NOPM, 0, 0,
  24265. slimbus_6_rx_voice_mixer_controls,
  24266. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  24267. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24268. slimbus_7_rx_voice_mixer_controls,
  24269. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  24270. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24271. slimbus_8_rx_voice_mixer_controls,
  24272. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  24273. /* port mixer */
  24274. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  24275. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  24276. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  24277. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  24278. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  24279. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  24280. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  24281. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  24282. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  24283. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  24284. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  24285. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  24286. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  24287. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  24288. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  24289. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  24290. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  24291. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  24292. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  24293. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  24294. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  24295. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24296. sbus_1_rx_port_mixer_controls,
  24297. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  24298. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24299. bt_sco_rx_port_mixer_controls,
  24300. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  24301. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  24302. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  24303. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  24304. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  24305. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  24306. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  24307. SND_SOC_DAPM_MIXER("HDMI_RX_MS Port Mixer",
  24308. SND_SOC_NOPM, 0, 0, hdmi_rx_ms_port_mixer_controls,
  24309. ARRAY_SIZE(hdmi_rx_ms_port_mixer_controls)),
  24310. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  24311. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  24312. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  24313. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  24314. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  24315. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  24316. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  24317. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  24318. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  24319. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  24320. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  24321. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  24322. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  24323. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  24324. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  24325. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24326. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  24327. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24328. primary_mi2s_rx_port_mixer_controls,
  24329. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  24330. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24331. sec_mi2s_rx_port_mixer_controls,
  24332. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  24333. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24334. tert_mi2s_rx_port_mixer_controls,
  24335. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  24336. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24337. quat_mi2s_rx_port_mixer_controls,
  24338. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  24339. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24340. quin_mi2s_rx_port_mixer_controls,
  24341. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  24342. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24343. sen_mi2s_rx_port_mixer_controls,
  24344. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  24345. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24346. pri_tdm_rx_0_port_mixer_controls,
  24347. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  24348. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24349. pri_tdm_rx_1_port_mixer_controls,
  24350. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  24351. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24352. pri_tdm_rx_2_port_mixer_controls,
  24353. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  24354. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24355. pri_tdm_rx_3_port_mixer_controls,
  24356. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  24357. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24358. sec_tdm_rx_0_port_mixer_controls,
  24359. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  24360. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24361. sec_tdm_rx_1_port_mixer_controls,
  24362. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  24363. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24364. sec_tdm_rx_2_port_mixer_controls,
  24365. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  24366. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24367. sec_tdm_rx_3_port_mixer_controls,
  24368. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  24369. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24370. sec_tdm_rx_7_port_mixer_controls,
  24371. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  24372. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24373. tert_tdm_rx_0_port_mixer_controls,
  24374. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  24375. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24376. tert_tdm_rx_1_port_mixer_controls,
  24377. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  24378. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24379. tert_tdm_rx_2_port_mixer_controls,
  24380. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  24381. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24382. tert_tdm_rx_3_port_mixer_controls,
  24383. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  24384. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24385. quat_tdm_rx_0_port_mixer_controls,
  24386. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  24387. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24388. quat_tdm_rx_1_port_mixer_controls,
  24389. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  24390. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24391. quat_tdm_rx_2_port_mixer_controls,
  24392. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  24393. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24394. quat_tdm_rx_3_port_mixer_controls,
  24395. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  24396. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24397. quat_tdm_rx_7_port_mixer_controls,
  24398. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  24399. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24400. quin_tdm_rx_0_port_mixer_controls,
  24401. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  24402. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24403. quin_tdm_rx_1_port_mixer_controls,
  24404. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  24405. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24406. quin_tdm_rx_2_port_mixer_controls,
  24407. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  24408. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24409. quin_tdm_rx_3_port_mixer_controls,
  24410. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  24411. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24412. quin_tdm_rx_7_port_mixer_controls,
  24413. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  24414. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24415. sen_tdm_rx_0_port_mixer_controls,
  24416. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  24417. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24418. sen_tdm_rx_1_port_mixer_controls,
  24419. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  24420. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24421. sen_tdm_rx_2_port_mixer_controls,
  24422. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  24423. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24424. sen_tdm_rx_3_port_mixer_controls,
  24425. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  24426. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24427. int0_mi2s_rx_port_mixer_controls,
  24428. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  24429. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24430. int4_mi2s_rx_port_mixer_controls,
  24431. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  24432. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24433. wsa_cdc_dma_rx_0_port_mixer_controls,
  24434. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  24435. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24436. rx_cdc_dma_rx_0_port_mixer_controls,
  24437. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  24438. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24439. rx_cdc_dma_rx_1_port_mixer_controls,
  24440. ARRAY_SIZE(rx_cdc_dma_rx_1_port_mixer_controls)),
  24441. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  24442. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  24443. ARRAY_SIZE(tx_qchat_mixer_controls)),
  24444. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  24445. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  24446. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  24447. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  24448. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  24449. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  24450. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  24451. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  24452. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  24453. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  24454. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  24455. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  24456. /* lsm mixer definitions */
  24457. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  24458. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  24459. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  24460. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  24461. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  24462. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  24463. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  24464. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  24465. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  24466. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  24467. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  24468. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  24469. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  24470. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  24471. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  24472. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  24473. /* Virtual Pins to force backends ON atm */
  24474. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  24475. SND_SOC_DAPM_INPUT("BE_IN"),
  24476. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24477. &slim0_rx_vi_fb_lch_mux),
  24478. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24479. &slim0_rx_vi_fb_rch_mux),
  24480. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24481. &wsa_rx_0_vi_fb_lch_mux),
  24482. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24483. &wsa_rx_0_vi_fb_rch_mux),
  24484. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  24485. &mi2s_rx_vi_fb_mux),
  24486. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24487. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  24488. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24489. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  24490. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  24491. &voc_ext_ec_mux),
  24492. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  24493. &ext_ec_ref_mux_ul1),
  24494. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  24495. &ext_ec_ref_mux_ul2),
  24496. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  24497. &ext_ec_ref_mux_ul3),
  24498. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  24499. &ext_ec_ref_mux_ul4),
  24500. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  24501. &ext_ec_ref_mux_ul5),
  24502. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  24503. &ext_ec_ref_mux_ul6),
  24504. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  24505. &ext_ec_ref_mux_ul8),
  24506. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  24507. &ext_ec_ref_mux_ul9),
  24508. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  24509. &ext_ec_ref_mux_ul10),
  24510. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  24511. &ext_ec_ref_mux_ul16),
  24512. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  24513. &ext_ec_ref_mux_ul17),
  24514. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  24515. &ext_ec_ref_mux_ul18),
  24516. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  24517. &ext_ec_ref_mux_ul19),
  24518. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  24519. &ext_ec_ref_mux_ul28),
  24520. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  24521. &ext_ec_ref_mux_ul29),
  24522. };
  24523. static const struct snd_soc_dapm_route intercon[] = {
  24524. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24525. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24526. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24527. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24528. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24529. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24530. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24531. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24532. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24533. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24534. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24535. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24536. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24537. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24538. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24539. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24540. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24541. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  24542. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24543. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24544. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24545. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24546. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24547. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24548. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24549. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24550. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24551. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24552. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24553. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24554. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24555. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24556. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24557. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24558. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24559. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  24560. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24561. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24562. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24563. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24564. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24565. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24566. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24567. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24568. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24569. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24570. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24571. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24572. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24573. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24574. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24575. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24576. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24577. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  24578. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24579. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24580. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24581. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24582. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24583. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24584. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24585. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24586. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24587. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24588. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24589. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24590. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24591. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24592. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24593. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24594. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24595. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  24596. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24597. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24598. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24599. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24600. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24601. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24602. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24603. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24604. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24605. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24606. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24607. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24608. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24609. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24610. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24611. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24612. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24613. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  24614. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24615. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24616. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24617. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24618. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24619. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24620. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24621. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24622. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24623. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24624. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24625. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24626. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24627. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24628. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24629. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24630. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24631. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24632. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24633. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  24634. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24635. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24636. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24637. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24638. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24639. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24640. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24641. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24642. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24643. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24644. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24645. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24646. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24647. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24648. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24649. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24650. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24651. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24652. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24653. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  24654. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24655. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24656. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24657. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24658. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24659. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24660. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24661. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24662. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24663. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24664. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24665. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24666. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24667. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24668. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24669. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24670. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24671. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24672. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24673. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  24674. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24675. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24676. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24677. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24678. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24679. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24680. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24681. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24682. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24683. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24684. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24685. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24686. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24687. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24688. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24689. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24690. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24691. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24692. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24693. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  24694. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24695. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24696. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24697. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24698. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24699. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24700. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24701. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24702. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24703. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24704. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24705. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24706. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24707. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24708. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24709. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24710. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24711. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24712. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24713. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  24714. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24715. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24716. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24717. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24718. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24719. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24720. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24721. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24722. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24723. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24724. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24725. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24726. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24727. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24728. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24729. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24730. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24731. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24732. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24733. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  24734. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24735. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24736. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24737. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24738. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24739. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24740. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24741. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24742. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24743. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24744. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24745. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24746. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24747. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24748. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24749. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24750. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24751. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24752. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24753. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  24754. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24755. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24756. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24757. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24758. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24759. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24760. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24761. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24762. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24763. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24764. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24765. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24766. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24767. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24768. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24769. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24770. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24771. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24772. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24773. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  24774. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24775. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24776. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24777. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24778. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24779. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24780. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24781. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24782. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24783. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24784. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24785. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24786. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24787. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24788. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24789. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24790. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24791. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24792. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24793. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  24794. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24795. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24796. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24797. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24798. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24799. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24800. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24801. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24802. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24803. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24804. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24805. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24806. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24807. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24808. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24809. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24810. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24811. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24812. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24813. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  24814. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  24815. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  24816. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  24817. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  24818. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  24819. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  24820. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  24821. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  24822. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  24823. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  24824. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  24825. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  24826. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  24827. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  24828. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  24829. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  24830. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  24831. {"HDMI", NULL, "HDMI Mixer"},
  24832. {"HDMI_MS Mixer", "MultiMedia1", "MM_DL1"},
  24833. {"HDMI_MS Mixer", "MultiMedia2", "MM_DL2"},
  24834. {"HDMI_MS Mixer", "MultiMedia3", "MM_DL3"},
  24835. {"HDMI_MS Mixer", "MultiMedia4", "MM_DL4"},
  24836. {"HDMI_MS Mixer", "MultiMedia5", "MM_DL5"},
  24837. {"HDMI_MS Mixer", "MultiMedia6", "MM_DL6"},
  24838. {"HDMI_MS Mixer", "MultiMedia7", "MM_DL7"},
  24839. {"HDMI_MS Mixer", "MultiMedia8", "MM_DL8"},
  24840. {"HDMI_MS Mixer", "MultiMedia9", "MM_DL9"},
  24841. {"HDMI_MS Mixer", "MultiMedia10", "MM_DL10"},
  24842. {"HDMI_MS Mixer", "MultiMedia11", "MM_DL11"},
  24843. {"HDMI_MS Mixer", "MultiMedia12", "MM_DL12"},
  24844. {"HDMI_MS Mixer", "MultiMedia13", "MM_DL13"},
  24845. {"HDMI_MS Mixer", "MultiMedia14", "MM_DL14"},
  24846. {"HDMI_MS Mixer", "MultiMedia15", "MM_DL15"},
  24847. {"HDMI_MS Mixer", "MultiMedia16", "MM_DL16"},
  24848. {"HDMI_MS Mixer", "MultiMedia26", "MM_DL26"},
  24849. {"HDMI_MS", NULL, "HDMI_MS Mixer"},
  24850. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  24851. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  24852. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  24853. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  24854. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  24855. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  24856. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  24857. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  24858. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  24859. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  24860. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  24861. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  24862. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  24863. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  24864. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  24865. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  24866. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  24867. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  24868. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  24869. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  24870. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  24871. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  24872. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  24873. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  24874. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  24875. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  24876. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  24877. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  24878. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  24879. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  24880. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  24881. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  24882. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  24883. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  24884. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  24885. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  24886. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24887. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24888. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24889. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24890. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24891. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24892. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24893. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24894. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24895. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24896. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24897. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24898. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24899. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24900. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24901. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24902. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24903. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  24904. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24905. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24906. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24907. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24908. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24909. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24910. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24911. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24912. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24913. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24914. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24915. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24916. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24917. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24918. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24919. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24920. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24921. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  24922. /* incall */
  24923. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  24924. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  24925. {"Incall_Music Audio Mixer", "MultiMedia4", "MM_DL4"},
  24926. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  24927. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  24928. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  24929. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24930. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24931. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24932. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24933. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  24934. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24935. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24936. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24937. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24938. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  24939. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24940. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24941. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24942. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24943. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24944. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24945. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24946. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24947. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24948. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24949. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24950. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24951. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24952. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24953. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24954. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24955. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24956. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  24957. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24958. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24959. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24960. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24961. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24962. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24963. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24964. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24965. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24966. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24967. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24968. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24969. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24970. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24971. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24972. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24973. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24974. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  24975. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24976. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24977. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24978. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24979. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24980. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24981. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24982. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24983. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24984. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24985. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24986. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24987. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24988. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24989. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24990. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24991. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24992. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  24993. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24994. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24995. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24996. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24997. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24998. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24999. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25000. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25001. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25002. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25003. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25004. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25005. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25006. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25007. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25008. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25009. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25010. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  25011. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25012. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25013. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25014. {"MultiMedia9 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25015. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25016. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25017. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25018. {"MultiMedia9 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25019. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  25020. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25021. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25022. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25023. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25024. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25025. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25026. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25027. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25028. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25029. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25030. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25031. {"MultiMedia17 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25032. {"MultiMedia17 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25033. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25034. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25035. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25036. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25037. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25038. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25039. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25040. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25041. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25042. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25043. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25044. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25045. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25046. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25047. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25048. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25049. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25050. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25051. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25052. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25053. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25054. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25055. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25056. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25057. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25058. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25059. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25060. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25061. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25062. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25063. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25064. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25065. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25066. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25067. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25068. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25069. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25070. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25071. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25072. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25073. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25074. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25075. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25076. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25077. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25078. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25079. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25080. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25081. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25082. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25083. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25084. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25085. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25086. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25087. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25088. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25089. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25090. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25091. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25092. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25093. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25094. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25095. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25096. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25097. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25098. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25099. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25100. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25101. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25102. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25103. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25104. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25105. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25106. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25107. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25108. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25109. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25110. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25111. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25112. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  25113. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25114. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25115. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25116. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25117. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25118. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25119. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25120. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25121. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25122. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25123. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25124. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25125. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25126. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25127. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25128. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25129. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25130. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  25131. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25132. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25133. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25134. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25135. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25136. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25137. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25138. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25139. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25140. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25141. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25142. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25143. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25144. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25145. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25146. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  25147. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25148. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25149. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25150. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25151. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25152. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25153. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25154. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25155. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25156. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25157. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25158. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25159. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25160. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25161. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25162. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  25163. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25164. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  25165. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25166. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25167. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25168. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25169. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25170. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25171. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25172. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25173. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25174. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25175. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25176. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25177. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25178. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25179. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25180. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25181. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25182. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25183. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25184. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  25185. {"PRI_MI2S_RX Audio Mixer", "DTMF", "DTMF_DL_HL"},
  25186. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25187. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25188. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25189. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25190. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25191. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25192. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25193. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25194. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25195. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25196. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25197. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25198. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25199. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25200. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25201. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  25202. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25203. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25204. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25205. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25206. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25207. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25208. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25209. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25210. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25211. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25212. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25213. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25214. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25215. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25216. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25217. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  25218. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25219. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25220. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25221. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25222. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25223. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25224. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25225. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25226. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25227. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25228. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25229. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25230. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25231. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25232. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25233. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25234. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25235. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  25236. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25237. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25238. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25239. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25240. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25241. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25242. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25243. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25244. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25245. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25246. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25247. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25248. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25249. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25250. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25251. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  25252. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25253. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25254. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25255. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25256. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25257. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25258. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25259. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25260. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25261. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25262. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25263. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25264. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25265. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25266. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25267. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25268. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25269. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  25270. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25271. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25272. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25273. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25274. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25275. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25276. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25277. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25278. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25279. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25280. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25281. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25282. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25283. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25284. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25285. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25286. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25287. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  25288. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25289. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25290. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25291. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25292. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25293. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25294. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25295. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25296. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25297. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25298. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25299. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25300. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25301. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25302. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25303. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25304. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25305. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25306. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25307. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25308. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25309. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  25310. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25311. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25312. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25313. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25314. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25315. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25316. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25317. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25318. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25319. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25320. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25321. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25322. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25323. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25324. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25325. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25326. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25327. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25328. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25329. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25330. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25331. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  25332. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25333. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25334. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25335. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25336. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25337. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25338. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25339. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25340. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25341. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25342. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25343. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25344. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25345. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25346. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25347. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25348. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25349. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25350. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25351. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25352. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25353. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  25354. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25355. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25356. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25357. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25358. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25359. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25360. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25361. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25362. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25363. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25364. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25365. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25366. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25367. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25368. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25369. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25370. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25371. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25372. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25373. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25374. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25375. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  25376. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25377. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25378. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25379. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25380. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25381. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25382. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25383. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25384. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25385. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25386. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25387. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25388. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25389. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25390. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25391. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25392. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25393. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25394. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25395. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  25396. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25397. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25398. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25399. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25400. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25401. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25402. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25403. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25404. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25405. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25406. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25407. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25408. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25409. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25410. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25411. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25412. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25413. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25414. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25415. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25416. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25417. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  25418. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25419. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25420. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25421. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25422. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25423. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25424. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25425. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25426. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25427. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25428. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25429. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25430. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25431. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25432. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25433. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25434. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25435. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25436. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25437. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25438. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25439. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  25440. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25441. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25442. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25443. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25444. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25445. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25446. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25447. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25448. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25449. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25450. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25451. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25452. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25453. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25454. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25455. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25456. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25457. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25458. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25459. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25460. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25461. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  25462. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25463. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25464. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25465. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25466. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25467. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25468. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25469. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25470. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25471. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25472. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25473. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25474. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25475. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25476. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25477. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25478. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25479. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25480. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25481. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25482. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25483. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  25484. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25485. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25486. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25487. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25488. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25489. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25490. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25491. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25492. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25493. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25494. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25495. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25496. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25497. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25498. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25499. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25500. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25501. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25502. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25503. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  25504. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25505. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25506. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25507. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25508. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25509. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25510. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25511. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25512. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25513. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25514. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25515. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25516. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25517. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25518. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25519. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25520. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25521. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25522. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25523. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25524. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25525. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  25526. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25527. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25528. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25529. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25530. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25531. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25532. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25533. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25534. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25535. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25536. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25537. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25538. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25539. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25540. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25541. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25542. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25543. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25544. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25545. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  25546. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25547. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25548. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25549. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25550. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25551. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25552. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25553. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25554. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25555. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25556. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25557. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25558. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25559. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25560. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25561. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25562. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25563. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25564. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25565. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25566. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25567. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  25568. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25569. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25570. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25571. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25572. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25573. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25574. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25575. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25576. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25577. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25578. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25579. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25580. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25581. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25582. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25583. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25584. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25585. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25586. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25587. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25588. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25589. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  25590. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25591. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25592. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25593. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25594. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25595. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25596. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25597. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25598. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25599. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25600. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25601. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25602. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25603. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25604. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25605. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25606. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25607. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25608. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25609. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25610. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25611. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  25612. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25613. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25614. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25615. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25616. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25617. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25618. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25619. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25620. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25621. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25622. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25623. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25624. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25625. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25626. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25627. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25628. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25629. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25630. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25631. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25632. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25633. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  25634. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25635. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25636. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25637. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25638. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25639. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25640. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25641. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25642. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25643. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25644. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25645. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25646. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25647. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25648. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25649. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25650. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25651. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25652. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25653. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25654. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25655. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25656. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  25657. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25658. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25659. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25660. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25661. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25662. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25663. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25664. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25665. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25666. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25667. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25668. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25669. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25670. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25671. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25672. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25673. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25674. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25675. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25676. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  25677. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25678. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25679. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25680. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25681. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25682. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25683. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25684. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25685. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25686. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25687. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25688. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25689. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25690. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25691. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25692. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25693. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25694. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25695. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25696. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25697. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25698. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25699. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  25700. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25701. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25702. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25703. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25704. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25705. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25706. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25707. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25708. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25709. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25710. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25711. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25712. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25713. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25714. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25715. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25716. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25717. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25718. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25719. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25720. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25721. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25722. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  25723. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25724. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25725. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25726. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25727. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25728. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25729. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25730. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25731. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25732. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25733. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25734. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25735. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25736. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25737. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25738. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25739. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25740. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25741. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25742. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25743. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25744. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25745. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  25746. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25747. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25748. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25749. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25750. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25751. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25752. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25753. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25754. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25755. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25756. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25757. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25758. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25759. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25760. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25761. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25762. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25763. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25764. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25765. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25766. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25767. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25768. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  25769. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25770. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25771. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25772. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25773. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25774. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25775. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25776. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25777. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25778. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25779. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25780. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25781. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25782. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25783. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25784. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25785. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25786. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25787. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25788. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  25789. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25790. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25791. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25792. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25793. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25794. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25795. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25796. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25797. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25798. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25799. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25800. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25801. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25802. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25803. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25804. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25805. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25806. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25807. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25808. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25809. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25810. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25811. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  25812. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25813. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25814. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25815. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25816. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25817. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25818. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25819. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25820. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25821. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25822. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25823. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25824. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25825. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25826. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25827. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25828. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25829. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25830. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25831. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25832. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25833. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25834. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  25835. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25836. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25837. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25838. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25839. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25840. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25841. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25842. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25843. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25844. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25845. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25846. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25847. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25848. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25849. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25850. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25851. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25852. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25853. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25854. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25855. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25856. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25857. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  25858. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25859. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25860. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25861. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25862. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25863. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25864. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25865. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25866. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25867. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25868. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25869. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25870. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25871. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25872. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25873. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25874. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25875. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25876. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  25877. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25878. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25879. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25880. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25881. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25882. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25883. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25884. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25885. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25886. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25887. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25888. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25889. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25890. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25891. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25892. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25893. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  25894. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25895. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25896. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25897. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25898. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25899. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25900. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25901. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25902. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25903. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25904. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25905. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25906. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25907. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25908. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25909. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25910. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25911. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25912. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  25913. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25914. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25915. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25916. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25917. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25918. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25919. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25920. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25921. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25922. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25923. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25924. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25925. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25926. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25927. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25928. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25929. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25930. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25931. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  25932. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25933. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25934. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25935. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25936. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25937. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25938. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25939. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25940. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25941. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25942. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25943. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25944. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25945. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25946. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25947. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25948. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25949. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25950. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  25951. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  25952. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  25953. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  25954. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  25955. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  25956. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  25957. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  25958. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25959. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25960. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25961. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25962. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25963. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25964. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25965. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25966. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25967. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25968. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25969. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25970. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25971. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25972. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25973. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25974. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25975. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25976. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25977. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25978. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25979. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25980. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25981. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25982. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25983. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25984. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  25985. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25986. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25987. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25988. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  25989. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25990. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25991. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25992. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25993. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  25994. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  25995. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  25996. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  25997. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  25998. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  25999. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26000. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  26001. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26002. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26003. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26004. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26005. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26006. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26007. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26008. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26009. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26010. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26011. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26012. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26013. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26014. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26015. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26016. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26017. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26018. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26019. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26020. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26021. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26022. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26023. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26024. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26025. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26026. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26027. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26028. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26029. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26030. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26031. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26032. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26033. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26034. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26035. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26036. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26037. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26038. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26039. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26040. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26041. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26042. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26043. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26044. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26045. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26046. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26047. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26048. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26049. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26050. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26051. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26052. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26053. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26054. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26055. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26056. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26057. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26058. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26059. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26060. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26061. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26062. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26063. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26064. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26065. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26066. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26067. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26068. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26069. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26070. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26071. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26072. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26073. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26074. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26075. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26076. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26077. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26078. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26079. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26080. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26081. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26082. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26083. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26084. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26085. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26086. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26087. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26088. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26089. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26090. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26091. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26092. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26093. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26094. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26095. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26096. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26097. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26098. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26099. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26100. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26101. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26102. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26103. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26104. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26105. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26106. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26107. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26108. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26109. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26110. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26111. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26112. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26113. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26114. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26115. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26116. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26117. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26118. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26119. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26120. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26121. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26122. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26123. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26124. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26125. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26126. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26127. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26128. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26129. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26130. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26131. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26132. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26133. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26134. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26135. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26136. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26137. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26138. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26139. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26140. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26141. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26142. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26143. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26144. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26145. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26146. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26147. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26148. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26149. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26150. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26151. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26152. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26153. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26154. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26155. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26156. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26157. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26158. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26159. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26160. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26161. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26162. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26163. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26164. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26165. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26166. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26167. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26168. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26169. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26170. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26171. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26172. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26173. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26174. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26175. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26176. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26177. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26178. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26179. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26180. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26181. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26182. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26183. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26184. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26185. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26186. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26187. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26188. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26189. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26190. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26191. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26192. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26193. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26194. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26195. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26196. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26197. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26198. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26199. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26200. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26201. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26202. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26203. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26204. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26205. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26206. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26207. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26208. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26209. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26210. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26211. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26212. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26213. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26214. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26215. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26216. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26217. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26218. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26219. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26220. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26221. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26222. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26223. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26224. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26225. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26226. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26227. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26228. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26229. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26230. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26231. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26232. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26233. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26234. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26235. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26236. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26237. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26238. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26239. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26240. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26241. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26242. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26243. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26244. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26245. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26246. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26247. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26248. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26249. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26250. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26251. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26252. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26253. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26254. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26255. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26256. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26257. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26258. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26259. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26260. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26261. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26262. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26263. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26264. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26265. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26266. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26267. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26268. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26269. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26270. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26271. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26272. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26273. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26274. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26275. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26276. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26277. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26278. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26279. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26280. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26281. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26282. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26283. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26284. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26285. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26286. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26287. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26288. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26289. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26290. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26291. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26292. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26293. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26294. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26295. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26296. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26297. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26298. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26299. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26300. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26301. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26302. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26303. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26304. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26305. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26306. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26307. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26308. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26309. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26310. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26311. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26312. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26313. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26314. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26315. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26316. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26317. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26318. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26319. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26320. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26321. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26322. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26323. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26324. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26325. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26326. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26327. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26328. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26329. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26330. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26331. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26332. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26333. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26334. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26335. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26336. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26337. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26338. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26339. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26340. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26341. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26342. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26343. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26344. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26345. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26346. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26347. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26348. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26349. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26350. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26351. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26352. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26353. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26354. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26355. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26356. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26357. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26358. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26359. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26360. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26361. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26362. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26363. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26364. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26365. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26366. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26367. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26368. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26369. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26370. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26371. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26372. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26373. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26374. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26375. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26376. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26377. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26378. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26379. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26380. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26381. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26382. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26383. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26384. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26385. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26386. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26387. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26388. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26389. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26390. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26391. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26392. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26393. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26394. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26395. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26396. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26397. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26398. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26399. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26400. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26401. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26402. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26403. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26404. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26405. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26406. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26407. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26408. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26409. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26410. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26411. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26412. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26413. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26414. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26415. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26416. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26417. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26418. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26419. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26420. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26421. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26422. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26423. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26424. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26425. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26426. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26427. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26428. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26429. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26430. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26431. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26432. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26433. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26434. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26435. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26436. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26437. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26438. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26439. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26440. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26441. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26442. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26443. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26444. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26445. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26446. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26447. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26448. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26449. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26450. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26451. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26452. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26453. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26454. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26455. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26456. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26457. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26458. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26459. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26460. {"MultiMedia23 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26461. {"MultiMedia23 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26462. {"MultiMedia23 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26463. {"MultiMedia23 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26464. {"MultiMedia23 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26465. {"MultiMedia23 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26466. {"MultiMedia23 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26467. {"MultiMedia23 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26468. {"MultiMedia23 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26469. {"MultiMedia23 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26470. {"MultiMedia23 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26471. {"MultiMedia23 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26472. {"MultiMedia23 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26473. {"MultiMedia23 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26474. {"MultiMedia23 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26475. {"MultiMedia23 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26476. {"MultiMedia23 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26477. {"MultiMedia23 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26478. {"MultiMedia23 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26479. {"MultiMedia23 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26480. {"MultiMedia24 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26481. {"MultiMedia24 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26482. {"MultiMedia24 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26483. {"MultiMedia24 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26484. {"MultiMedia24 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26485. {"MultiMedia24 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26486. {"MultiMedia24 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26487. {"MultiMedia24 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26488. {"MultiMedia24 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26489. {"MultiMedia24 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26490. {"MultiMedia24 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26491. {"MultiMedia24 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26492. {"MultiMedia24 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26493. {"MultiMedia24 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26494. {"MultiMedia24 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26495. {"MultiMedia24 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26496. {"MultiMedia24 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26497. {"MultiMedia24 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26498. {"MultiMedia24 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26499. {"MultiMedia24 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26500. {"MultiMedia25 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26501. {"MultiMedia25 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26502. {"MultiMedia25 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26503. {"MultiMedia25 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26504. {"MultiMedia25 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26505. {"MultiMedia25 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26506. {"MultiMedia25 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26507. {"MultiMedia25 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26508. {"MultiMedia25 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26509. {"MultiMedia25 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26510. {"MultiMedia25 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26511. {"MultiMedia25 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26512. {"MultiMedia25 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26513. {"MultiMedia25 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26514. {"MultiMedia25 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26515. {"MultiMedia25 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26516. {"MultiMedia25 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26517. {"MultiMedia25 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26518. {"MultiMedia25 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26519. {"MultiMedia25 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26520. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26521. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26522. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  26523. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26524. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26525. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26526. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26527. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26528. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26529. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26530. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26531. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26532. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26533. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26534. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26535. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26536. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26537. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26538. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26539. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26540. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26541. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26542. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26543. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26544. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26545. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26546. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26547. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26548. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26549. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26550. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26551. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26552. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26553. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26554. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26555. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26556. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26557. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26558. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26559. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26560. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26561. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26562. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26563. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26564. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26565. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26566. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26567. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26568. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26569. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26570. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26571. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26572. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26573. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26574. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26575. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26576. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26577. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26578. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26579. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26580. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26581. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26582. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26583. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26584. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26585. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26586. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26587. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26588. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26589. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26590. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26591. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26592. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26593. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26594. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26595. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26596. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26597. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26598. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26599. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26600. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26601. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26602. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26603. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26604. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26605. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26606. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26607. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26608. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26609. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26610. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26611. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26612. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26613. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26614. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26615. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26616. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26617. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26618. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26619. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26620. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26621. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26622. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26623. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26624. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26625. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26626. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26627. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26628. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26629. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26630. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26631. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26632. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26633. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26634. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26635. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26636. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26637. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26638. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26639. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26640. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26641. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26642. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  26643. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26644. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26645. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26646. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26647. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26648. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26649. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26650. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26651. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26652. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26653. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26654. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26655. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26656. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26657. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26658. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26659. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26660. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  26661. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26662. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26663. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26664. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26665. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26666. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26667. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26668. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26669. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26670. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26671. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26672. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26673. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26674. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26675. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26676. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26677. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  26678. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26679. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26680. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26681. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26682. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26683. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26684. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26685. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26686. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26687. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26688. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26689. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26690. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26691. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26692. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26693. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26694. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  26695. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26696. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26697. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26698. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26699. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26700. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26701. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26702. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26703. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26704. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26705. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26706. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26707. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26708. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26709. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26710. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26711. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26712. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26713. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26714. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26715. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26716. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26717. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26718. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26719. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26720. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26721. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26722. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26723. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26724. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26725. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26726. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26727. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26728. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26729. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26730. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26731. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26732. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26733. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  26734. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26735. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  26736. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  26737. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  26738. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  26739. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  26740. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  26741. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  26742. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  26743. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  26744. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  26745. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  26746. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  26747. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  26748. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  26749. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  26750. {"MM_UL23", NULL, "MultiMedia23 Mixer"},
  26751. {"MM_UL24", NULL, "MultiMedia24 Mixer"},
  26752. {"MM_UL25", NULL, "MultiMedia25 Mixer"},
  26753. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  26754. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  26755. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  26756. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  26757. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26758. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26759. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26760. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26761. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26762. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26763. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26764. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26765. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26766. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26767. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26768. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26769. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26770. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26771. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26772. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26773. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26774. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  26775. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26776. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26777. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26778. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26779. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26780. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26781. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26782. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26783. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26784. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26785. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26786. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26787. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26788. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26789. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26790. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26791. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26792. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  26793. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26794. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26795. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26796. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26797. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26798. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26799. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26800. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26801. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26802. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26803. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26804. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26805. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26806. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26807. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26808. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26809. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  26810. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26811. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26812. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26813. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26814. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26815. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26816. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26817. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26818. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26819. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26820. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26821. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26822. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26823. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26824. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26825. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26826. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  26827. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26828. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26829. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26830. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26831. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26832. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26833. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26834. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26835. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26836. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26837. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26838. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26839. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26840. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26841. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26842. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26843. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  26844. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26845. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26846. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26847. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26848. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26849. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26850. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26851. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26852. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26853. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26854. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26855. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26856. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26857. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26858. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26859. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26860. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  26861. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26862. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26863. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26864. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26865. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26866. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  26867. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26868. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26869. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26870. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  26871. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26872. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26873. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26874. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26875. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26876. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26877. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26878. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  26879. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26880. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26881. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26882. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26883. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26884. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  26885. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26886. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26887. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26888. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26889. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26890. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  26891. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26892. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26893. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26894. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26895. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26896. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  26897. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26898. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26899. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26900. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26901. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26902. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  26903. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  26904. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26905. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26906. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26907. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26908. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  26909. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26910. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26911. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26912. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26913. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26914. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  26915. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26916. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26917. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26918. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26919. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26920. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  26921. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26922. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26923. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26924. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26925. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26926. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  26927. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26928. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26929. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26930. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26931. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26932. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  26933. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26934. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26935. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26936. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26937. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26938. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  26939. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26940. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26941. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26942. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26943. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26944. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  26945. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26946. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26947. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26948. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26949. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26950. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  26951. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26952. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26953. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26954. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26955. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26956. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  26957. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26958. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26959. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26960. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26961. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26962. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  26963. {"HDMI", NULL, "HDMI_DL_HL"},
  26964. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26965. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26966. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26967. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26968. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26969. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26970. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26971. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  26972. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26973. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26974. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26975. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26976. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26977. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26978. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26979. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  26980. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26981. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26982. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26983. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26984. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26985. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  26986. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26987. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26988. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26989. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26990. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26991. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  26992. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26993. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26994. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26995. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26996. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26997. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26998. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26999. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  27000. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27001. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27002. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27003. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27004. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27005. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27006. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  27007. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27008. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27009. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27010. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27011. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27012. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27013. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  27014. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  27015. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27016. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27017. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27018. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27019. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27020. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27021. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27022. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  27023. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  27024. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27025. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27026. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27027. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27028. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27029. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27030. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27031. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  27032. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  27033. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27034. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27035. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27036. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27037. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27038. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27039. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27040. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  27041. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  27042. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27043. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27044. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27045. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27046. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27047. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27048. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27049. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  27050. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27051. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27052. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27053. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27054. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  27055. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27056. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  27057. {"QUIN_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27058. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_Voice Mixer"},
  27059. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  27060. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27061. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27062. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  27063. {"PROXY_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27064. {"PROXY_RX", NULL, "PROXY_RX_Voice Mixer"},
  27065. {"PROXY_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27066. {"PROXY_RX", NULL, "PROXY_RX_Voice Mixer"},
  27067. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  27068. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27069. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27070. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  27071. {"RX_CDC_DMA_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  27072. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27073. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27074. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_Voice Mixer"},
  27075. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27076. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27077. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27078. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27079. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27080. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27081. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  27082. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  27083. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  27084. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  27085. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  27086. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27087. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27088. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27089. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27090. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27091. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27092. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  27093. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  27094. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  27095. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27096. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  27097. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27098. {"AUDIO_REF_EC_UL1 MUX", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27099. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27100. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27101. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27102. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27103. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27104. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27105. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27106. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27107. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27108. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27109. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27110. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27111. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27112. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27113. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27114. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27115. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27116. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27117. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27118. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27119. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27120. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27121. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27122. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27123. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27124. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27125. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27126. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27127. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27128. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27129. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27130. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27131. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27132. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27133. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  27134. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  27135. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  27136. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27137. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  27138. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27139. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27140. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27141. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27142. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27143. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27144. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27145. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27146. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27147. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27148. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27149. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27150. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27151. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27152. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27153. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27154. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27155. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27156. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27157. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27158. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27159. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27160. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27161. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27162. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27163. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27164. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27165. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27166. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27167. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27168. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27169. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27170. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27171. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27172. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  27173. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  27174. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  27175. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  27176. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  27177. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  27178. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  27179. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  27180. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  27181. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  27182. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  27183. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  27184. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  27185. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  27186. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  27187. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  27188. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  27189. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  27190. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  27191. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  27192. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  27193. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  27194. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  27195. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  27196. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  27197. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  27198. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  27199. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  27200. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  27201. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  27202. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  27203. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  27204. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  27205. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  27206. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  27207. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  27208. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  27209. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  27210. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  27211. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  27212. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  27213. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  27214. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  27215. {"VoiceMMode1_Tx Mixer", "PROXY_TX_MMode1", "PROXY_TX"},
  27216. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  27217. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  27218. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  27219. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  27220. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  27221. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  27222. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  27223. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  27224. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  27225. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  27226. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  27227. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  27228. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  27229. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  27230. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  27231. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  27232. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  27233. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  27234. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  27235. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  27236. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  27237. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  27238. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  27239. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  27240. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  27241. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  27242. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  27243. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  27244. {"VoiceMMode2_Tx Mixer", "PROXY_TX_MMode2", "PROXY_TX"},
  27245. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  27246. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  27247. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  27248. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  27249. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  27250. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  27251. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  27252. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  27253. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  27254. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  27255. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  27256. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  27257. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  27258. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  27259. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  27260. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  27261. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  27262. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  27263. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  27264. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  27265. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  27266. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  27267. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  27268. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  27269. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  27270. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  27271. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  27272. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  27273. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  27274. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  27275. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  27276. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  27277. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  27278. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  27279. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  27280. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  27281. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  27282. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  27283. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  27284. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  27285. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  27286. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  27287. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  27288. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  27289. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27290. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  27291. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  27292. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27293. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  27294. {"RX_CDC_DMA_RX_1_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27295. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_DL_HL"},
  27296. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  27297. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27298. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27299. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27300. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27301. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27302. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27303. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27304. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27305. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27306. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27307. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27308. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27309. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27310. {"LSM1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27311. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  27312. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27313. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27314. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27315. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27316. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27317. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27318. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27319. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27320. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27321. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27322. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27323. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27324. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27325. {"LSM2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27326. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  27327. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27328. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27329. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27330. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27331. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27332. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27333. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27334. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27335. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27336. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27337. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27338. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27339. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27340. {"LSM3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27341. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  27342. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27343. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27344. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27345. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27346. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27347. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27348. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27349. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27350. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27351. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27352. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27353. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27354. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27355. {"LSM4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27356. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  27357. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27358. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27359. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27360. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27361. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27362. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27363. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27364. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27365. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27366. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27367. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27368. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27369. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27370. {"LSM5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27371. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  27372. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27373. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27374. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27375. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27376. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27377. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27378. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27379. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27380. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27381. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27382. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27383. {"LSM6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27384. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  27385. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27386. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27387. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27388. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27389. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27390. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27391. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27392. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27393. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27394. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27395. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27396. {"LSM7 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27397. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  27398. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27399. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27400. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27401. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27402. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27403. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27404. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27405. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27406. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27407. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27408. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27409. {"LSM8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27410. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  27411. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  27412. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  27413. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  27414. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  27415. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  27416. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  27417. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  27418. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  27419. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  27420. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  27421. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  27422. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  27423. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  27424. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  27425. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  27426. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  27427. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  27428. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  27429. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  27430. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  27431. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  27432. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  27433. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  27434. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  27435. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  27436. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  27437. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  27438. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  27439. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27440. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  27441. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  27442. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  27443. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27444. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  27445. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  27446. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  27447. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  27448. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  27449. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  27450. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  27451. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  27452. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27453. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  27454. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27455. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  27456. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  27457. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  27458. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  27459. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  27460. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  27461. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  27462. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  27463. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  27464. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  27465. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  27466. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  27467. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  27468. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27469. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  27470. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27471. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  27472. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  27473. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  27474. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  27475. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  27476. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  27477. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  27478. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  27479. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  27480. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  27481. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  27482. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  27483. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  27484. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  27485. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  27486. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  27487. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  27488. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  27489. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  27490. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  27491. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  27492. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  27493. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  27494. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  27495. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  27496. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  27497. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  27498. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  27499. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  27500. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  27501. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  27502. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  27503. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  27504. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  27505. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  27506. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  27507. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  27508. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  27509. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  27510. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  27511. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  27512. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  27513. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  27514. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  27515. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  27516. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  27517. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  27518. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  27519. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  27520. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  27521. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  27522. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  27523. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  27524. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  27525. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  27526. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  27527. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  27528. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  27529. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  27530. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  27531. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  27532. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27533. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27534. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27535. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27536. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27537. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27538. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27539. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27540. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27541. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27542. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27543. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27544. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27545. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27546. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27547. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27548. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27549. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27550. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27551. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27552. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27553. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27554. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27555. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27556. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  27557. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27558. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27559. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27560. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27561. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27562. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27563. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27564. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27565. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27566. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27567. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27568. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27569. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27570. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27571. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27572. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27573. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27574. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27575. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27576. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27577. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27578. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27579. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27580. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27581. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  27582. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27583. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27584. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27585. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27586. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27587. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27588. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27589. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27590. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27591. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27592. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27593. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27594. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27595. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27596. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27597. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27598. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27599. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27600. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27601. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27602. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27603. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27604. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27605. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27606. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  27607. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27608. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27609. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27610. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27611. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27612. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27613. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27614. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27615. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27616. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27617. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27618. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27619. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27620. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27621. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27622. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27623. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27624. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27625. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27626. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27627. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27628. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27629. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27630. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27631. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  27632. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27633. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27634. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27635. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27636. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27637. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27638. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27639. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27640. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27641. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27642. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27643. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27644. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27645. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27646. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27647. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27648. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27649. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27650. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27651. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27652. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27653. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27654. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27655. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27656. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  27657. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27658. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27659. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27660. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27661. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27662. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27663. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27664. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27665. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27666. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27667. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27668. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27669. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27670. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27671. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27672. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27673. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27674. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27675. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27676. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27677. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27678. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27679. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27680. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27681. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  27682. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27683. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27684. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27685. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27686. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27687. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27688. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27689. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27690. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27691. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27692. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27693. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27694. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27695. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27696. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27697. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27698. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27699. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27700. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27701. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27702. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27703. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27704. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27705. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27706. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  27707. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27708. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27709. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27710. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27711. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27712. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27713. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27714. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27715. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27716. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27717. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27718. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27719. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27720. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27721. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27722. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27723. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27724. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27725. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27726. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27727. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27728. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27729. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27730. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27731. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  27732. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  27733. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  27734. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27735. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27736. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27737. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27738. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27739. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27740. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27741. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27742. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27743. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27744. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27745. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27746. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27747. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27748. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27749. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27750. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27751. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27752. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27753. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27754. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27755. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27756. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27757. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27758. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  27759. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27760. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27761. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27762. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27763. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27764. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27765. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27766. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27767. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27768. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27769. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27770. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27771. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27772. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27773. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27774. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27775. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27776. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27777. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27778. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27779. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27780. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27781. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27782. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27783. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  27784. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27785. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27786. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27787. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27788. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27789. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27790. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27791. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27792. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27793. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27794. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27795. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27796. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27797. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27798. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27799. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27800. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27801. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27802. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27803. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27804. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27805. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27806. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27807. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27808. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  27809. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27810. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27811. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27812. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27813. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27814. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27815. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27816. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27817. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27818. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27819. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27820. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27821. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27822. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27823. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27824. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27825. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27826. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27827. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27828. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27829. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27830. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27831. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27832. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27833. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  27834. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27835. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27836. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27837. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27838. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27839. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27840. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27841. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27842. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27843. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27844. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27845. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27846. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27847. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27848. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27849. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27850. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27851. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27852. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27853. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27854. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27855. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27856. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27857. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27858. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  27859. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27860. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27861. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27862. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27863. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27864. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27865. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27866. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27867. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27868. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27869. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27870. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27871. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27872. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27873. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27874. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27875. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27876. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27877. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27878. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27879. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27880. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27881. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27882. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27883. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  27884. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27885. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27886. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27887. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27888. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27889. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27890. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27891. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27892. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27893. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27894. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27895. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27896. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27897. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27898. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27899. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27900. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27901. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27902. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27903. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27904. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27905. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27906. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27907. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27908. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  27909. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27910. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27911. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27912. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27913. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27914. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27915. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27916. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27917. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27918. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27919. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27920. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27921. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27922. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27923. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27924. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27925. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27926. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27927. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27928. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27929. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27930. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27931. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27932. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27933. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  27934. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  27935. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  27936. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  27937. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27938. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27939. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27940. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27941. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27942. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27943. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27944. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27945. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27946. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27947. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27948. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27949. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27950. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27951. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27952. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27953. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27954. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27955. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27956. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27957. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27958. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27959. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27960. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27961. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  27962. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27963. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27964. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27965. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27966. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27967. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27968. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27969. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27970. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27971. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27972. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27973. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27974. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27975. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27976. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27977. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27978. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27979. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27980. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27981. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27982. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27983. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27984. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27985. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27986. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  27987. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27988. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27989. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27990. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27991. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27992. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27993. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27994. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27995. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27996. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27997. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27998. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27999. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28000. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28001. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28002. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28003. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28004. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28005. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28006. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28007. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28008. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28009. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28010. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28011. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  28012. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28013. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28014. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28015. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28016. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28017. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28018. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28019. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28020. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28021. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28022. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28023. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28024. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28025. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28026. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28027. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28028. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28029. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28030. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28031. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28032. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28033. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28034. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28035. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28036. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  28037. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  28038. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  28039. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  28040. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  28041. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28042. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28043. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28044. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28045. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28046. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28047. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28048. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28049. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28050. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28051. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28052. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28053. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28054. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28055. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28056. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28057. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28058. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28059. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28060. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28061. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  28062. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28063. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28064. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28065. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28066. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28067. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28068. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28069. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28070. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28071. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28072. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28073. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28074. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28075. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28076. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28077. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28078. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28079. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28080. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28081. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28082. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  28083. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28084. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28085. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28086. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28087. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28088. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28089. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28090. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28091. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28092. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28093. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28094. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28095. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28096. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28097. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28098. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28099. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28100. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28101. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28102. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28103. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  28104. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28105. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28106. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28107. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28108. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28109. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28110. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28111. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28112. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28113. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28114. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28115. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28116. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28117. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28118. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28119. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28120. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28121. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28122. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28123. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28124. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  28125. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28126. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28127. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28128. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28129. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28130. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28131. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28132. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28133. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28134. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28135. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28136. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28137. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  28138. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28139. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28140. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28141. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28142. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28143. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28144. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28145. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28146. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28147. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28148. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28149. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28150. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  28151. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  28152. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28153. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28154. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28155. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  28156. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28157. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28158. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28159. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  28160. {"RX_CDC_DMA_RX_1 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  28161. {"RX_CDC_DMA_RX_1 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28162. {"RX_CDC_DMA_RX_1 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28163. {"RX_CDC_DMA_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28164. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Port Mixer"},
  28165. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28166. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28167. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28168. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28169. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28170. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28171. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28172. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28173. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28174. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28175. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28176. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  28177. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28178. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28179. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28180. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28181. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28182. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28183. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28184. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28185. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  28186. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28187. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28188. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  28189. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  28190. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  28191. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  28192. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  28193. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  28194. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28195. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28196. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28197. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28198. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28199. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28200. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28201. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  28202. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28203. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28204. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28205. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28206. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  28207. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28208. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28209. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28210. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  28211. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28212. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28213. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28214. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  28215. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28216. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28217. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28218. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  28219. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28220. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28221. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28222. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28223. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28224. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28225. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28226. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28227. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28228. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  28229. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  28230. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28231. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28232. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28233. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28234. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28235. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28236. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28237. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28238. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28239. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  28240. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28241. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28242. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28243. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28244. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28245. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28246. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28247. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28248. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28249. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28250. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28251. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  28252. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28253. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28254. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28255. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28256. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28257. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28258. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28259. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28260. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28261. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28262. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28263. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28264. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  28265. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28266. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28267. {"STUB_RX", NULL, "STUB_RX Mixer"},
  28268. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28269. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28270. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  28271. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28272. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28273. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  28274. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28275. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28276. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28277. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28278. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28279. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  28280. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28281. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28282. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28283. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28284. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28285. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  28286. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28287. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28288. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28289. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  28290. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28291. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28292. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  28293. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  28294. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28295. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  28296. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  28297. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  28298. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  28299. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28300. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28301. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28302. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28303. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28304. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28305. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28306. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28307. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28308. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28309. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28310. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28311. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28312. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  28313. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28314. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  28315. {"HDMI_RX_MS Port Mixer", "MI2S_TX", "MI2S_TX"},
  28316. {"HDMI_MS", NULL, "HDMI_RX_MS Port Mixer"},
  28317. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28318. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  28319. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  28320. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  28321. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28322. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  28323. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28324. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28325. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  28326. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28327. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28328. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28329. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28330. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28331. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28332. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28333. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28334. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28335. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28336. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28337. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  28338. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28339. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28340. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28341. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28342. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28343. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28344. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28345. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28346. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28347. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28348. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  28349. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28350. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28351. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28352. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28353. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28354. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28355. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28356. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28357. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  28358. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28359. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28360. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28361. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28362. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28363. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28364. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28365. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28366. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28367. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28368. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  28369. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28370. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28371. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28372. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28373. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28374. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28375. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28376. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28377. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  28378. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28379. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28380. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28381. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28382. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28383. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28384. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28385. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  28386. /* Backend Enablement */
  28387. {"BE_OUT", NULL, "PRI_I2S_RX"},
  28388. {"BE_OUT", NULL, "SEC_I2S_RX"},
  28389. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  28390. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  28391. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  28392. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28393. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  28394. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  28395. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  28396. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  28397. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  28398. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  28399. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  28400. {"BE_OUT", NULL, "HDMI"},
  28401. {"BE_OUT", NULL, "HDMI_MS"},
  28402. {"BE_OUT", NULL, "DISPLAY_PORT"},
  28403. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  28404. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  28405. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  28406. {"BE_OUT", NULL, "MI2S_RX"},
  28407. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  28408. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  28409. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  28410. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  28411. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  28412. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  28413. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  28414. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  28415. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  28416. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  28417. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  28418. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  28419. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28420. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  28421. {"BE_OUT", NULL, "INT_FM_RX"},
  28422. {"BE_OUT", NULL, "PCM_RX"},
  28423. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28424. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28425. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  28426. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  28427. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  28428. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  28429. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  28430. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28431. {"BE_OUT", NULL, "INT_FM_RX"},
  28432. {"BE_OUT", NULL, "PCM_RX"},
  28433. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28434. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  28435. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  28436. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  28437. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  28438. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  28439. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  28440. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  28441. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  28442. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  28443. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  28444. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  28445. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  28446. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  28447. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  28448. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  28449. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  28450. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  28451. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  28452. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  28453. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  28454. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  28455. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  28456. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  28457. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  28458. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  28459. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  28460. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  28461. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  28462. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  28463. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  28464. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  28465. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  28466. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  28467. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  28468. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  28469. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  28470. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  28471. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  28472. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  28473. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  28474. {"BE_OUT", NULL, "PROXY_RX"},
  28475. {"PRI_I2S_TX", NULL, "BE_IN"},
  28476. {"MI2S_TX", NULL, "BE_IN"},
  28477. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  28478. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  28479. {"PRI_MI2S_TX", NULL, "BE_IN"},
  28480. {"TERT_MI2S_TX", NULL, "BE_IN"},
  28481. {"INT0_MI2S_TX", NULL, "BE_IN"},
  28482. {"INT2_MI2S_TX", NULL, "BE_IN"},
  28483. {"INT3_MI2S_TX", NULL, "BE_IN"},
  28484. {"INT4_MI2S_TX", NULL, "BE_IN"},
  28485. {"INT5_MI2S_TX", NULL, "BE_IN"},
  28486. {"SEC_MI2S_TX", NULL, "BE_IN"},
  28487. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  28488. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  28489. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  28490. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  28491. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  28492. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  28493. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  28494. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  28495. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  28496. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  28497. {"USB_AUDIO_TX", NULL, "BE_IN" },
  28498. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  28499. {"INT_FM_TX", NULL, "BE_IN"},
  28500. {"PCM_TX", NULL, "BE_IN"},
  28501. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28502. {"BE_OUT", NULL, "STUB_RX"},
  28503. {"STUB_TX", NULL, "BE_IN"},
  28504. {"STUB_1_TX", NULL, "BE_IN"},
  28505. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28506. {"AUX_PCM_TX", NULL, "BE_IN"},
  28507. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  28508. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  28509. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  28510. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  28511. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  28512. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  28513. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  28514. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28515. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28516. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28517. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28518. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  28519. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28520. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28521. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  28522. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  28523. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  28524. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  28525. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  28526. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  28527. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  28528. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  28529. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  28530. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  28531. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  28532. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  28533. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  28534. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  28535. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  28536. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  28537. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  28538. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  28539. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  28540. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  28541. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  28542. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  28543. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  28544. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  28545. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  28546. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  28547. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  28548. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  28549. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  28550. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  28551. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  28552. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  28553. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  28554. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  28555. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  28556. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28557. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28558. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28559. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28560. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28561. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28562. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  28563. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  28564. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  28565. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  28566. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  28567. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  28568. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  28569. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  28570. {"PROXY_TX", NULL, "BE_IN"},
  28571. };
  28572. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  28573. struct snd_pcm_hw_params *params)
  28574. {
  28575. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28576. unsigned int be_id = rtd->dai_link->id;
  28577. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28578. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28579. return -EINVAL;
  28580. }
  28581. mutex_lock(&routing_lock);
  28582. msm_bedais[be_id].sample_rate = params_rate(params);
  28583. msm_bedais[be_id].channel = params_channels(params);
  28584. msm_bedais[be_id].format = params_format(params);
  28585. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  28586. __func__, msm_bedais[be_id].sample_rate,
  28587. msm_bedais[be_id].format, be_id);
  28588. mutex_unlock(&routing_lock);
  28589. return 0;
  28590. }
  28591. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  28592. {
  28593. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28594. unsigned int be_id = rtd->dai_link->id;
  28595. int i, session_type, path_type, topology;
  28596. struct msm_pcm_routing_bdai_data *bedai;
  28597. struct msm_pcm_routing_fdai_data *fdai;
  28598. pr_debug("%s: substream->pcm->id:%s\n",
  28599. __func__, substream->pcm->id);
  28600. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28601. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28602. return -EINVAL;
  28603. }
  28604. bedai = &msm_bedais[be_id];
  28605. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  28606. 0 : 1);
  28607. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28608. path_type = ADM_PATH_PLAYBACK;
  28609. else
  28610. path_type = ADM_PATH_LIVE_REC;
  28611. mutex_lock(&routing_lock);
  28612. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28613. if (!is_mm_lsm_fe_id(i))
  28614. continue;
  28615. fdai = &fe_dai_map[i][session_type];
  28616. if (fdai->strm_id != INVALID_SESSION) {
  28617. int idx;
  28618. int port_id;
  28619. unsigned long copp =
  28620. session_copp_map[i][session_type][be_id];
  28621. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  28622. if (test_bit(idx, &copp))
  28623. break;
  28624. if (idx >= MAX_COPPS_PER_PORT) {
  28625. pr_debug("%s: copp idx is invalid, exiting\n",
  28626. __func__);
  28627. continue;
  28628. }
  28629. fdai->be_srate = bedai->sample_rate;
  28630. port_id = get_port_id(bedai->port_id);
  28631. topology = adm_get_topology_for_port_copp_idx(port_id,
  28632. idx);
  28633. msm_routing_unload_topology(topology);
  28634. adm_close(port_id, fdai->perf_mode, idx);
  28635. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  28636. __func__, copp, i, session_type, be_id,
  28637. topology);
  28638. clear_bit(idx,
  28639. &session_copp_map[i][session_type][be_id]);
  28640. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28641. (fdai->passthr_mode == LEGACY_PCM))
  28642. msm_pcm_routing_deinit_pp(port_id,
  28643. topology);
  28644. }
  28645. }
  28646. bedai->active = 0;
  28647. bedai->sample_rate = 0;
  28648. bedai->channel = 0;
  28649. mutex_unlock(&routing_lock);
  28650. return 0;
  28651. }
  28652. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  28653. {
  28654. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28655. unsigned int be_id = rtd->dai_link->id;
  28656. int i, path_type, topology;
  28657. int session_type = INVALID_SESSION;
  28658. struct msm_pcm_routing_bdai_data *bedai;
  28659. u32 channels, sample_rate;
  28660. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  28661. struct msm_pcm_routing_fdai_data *fdai;
  28662. u32 session_id;
  28663. struct media_format_info voc_be_media_format;
  28664. bool is_lsm;
  28665. pr_debug("%s: substream->pcm->id:%s\n",
  28666. __func__, substream->pcm->id);
  28667. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28668. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28669. return -EINVAL;
  28670. }
  28671. bedai = &msm_bedais[be_id];
  28672. mutex_lock(&routing_lock);
  28673. if (bedai->active == 1)
  28674. goto done; /* Ignore prepare if back-end already active */
  28675. /* AFE port is not active at this point. However, still
  28676. * go ahead setting active flag under the notion that
  28677. * QDSP6 is able to handle ADM starting before AFE port
  28678. * is started.
  28679. */
  28680. bedai->active = 1;
  28681. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28682. if (!(is_mm_lsm_fe_id(i) &&
  28683. route_check_fe_id_adm_support(i)))
  28684. continue;
  28685. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  28686. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28687. fdai = &fe_dai_map[i][session_type];
  28688. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  28689. if (fdai->passthr_mode != LEGACY_PCM)
  28690. path_type = ADM_PATH_COMPRESSED_RX;
  28691. else
  28692. path_type = ADM_PATH_PLAYBACK;
  28693. } else {
  28694. if ((fdai->passthr_mode != LEGACY_PCM) &&
  28695. (fdai->passthr_mode != LISTEN))
  28696. path_type = ADM_PATH_COMPRESSED_TX;
  28697. else
  28698. path_type = ADM_PATH_LIVE_REC;
  28699. }
  28700. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  28701. (i <= MSM_FRONTEND_DAI_LSM8);
  28702. if (fdai->strm_id != INVALID_SESSION) {
  28703. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  28704. int port_id = get_port_id(bedai->port_id);
  28705. if (session_type == SESSION_TYPE_TX &&
  28706. fdai->be_srate &&
  28707. (fdai->be_srate != bedai->sample_rate)) {
  28708. pr_debug("%s: flush strm %d diff BE rates\n",
  28709. __func__,
  28710. fdai->strm_id);
  28711. if (fdai->event_info.event_func)
  28712. fdai->event_info.event_func(
  28713. MSM_PCM_RT_EVT_BUF_RECFG,
  28714. fdai->event_info.priv_data);
  28715. fdai->be_srate = 0; /* might not need it */
  28716. }
  28717. bits_per_sample = msm_routing_get_bit_width(
  28718. bedai->format);
  28719. app_type =
  28720. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  28721. if (app_type && is_lsm) {
  28722. app_type_idx =
  28723. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  28724. sample_rate =
  28725. fe_dai_app_type_cfg[i][session_type][be_id]
  28726. .sample_rate;
  28727. bits_per_sample =
  28728. lsm_app_type_cfg[app_type_idx].bit_width;
  28729. } else if (app_type) {
  28730. app_type_idx =
  28731. msm_pcm_routing_get_app_type_idx(app_type);
  28732. sample_rate =
  28733. fe_dai_app_type_cfg[i][session_type]
  28734. [be_id].sample_rate;
  28735. bits_per_sample =
  28736. app_type_cfg[app_type_idx].bit_width;
  28737. } else
  28738. sample_rate = bedai->sample_rate;
  28739. /*
  28740. * check if ADM needs to be configured with different
  28741. * channel mapping than backend
  28742. */
  28743. if (!bedai->adm_override_ch)
  28744. channels = bedai->channel;
  28745. else
  28746. channels = bedai->adm_override_ch;
  28747. acdb_dev_id =
  28748. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  28749. topology = msm_routing_get_adm_topology(i, session_type,
  28750. be_id);
  28751. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  28752. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  28753. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  28754. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  28755. be_bit_width = msm_routing_get_bit_width(
  28756. bedai->format);
  28757. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  28758. || bedai->sample_rate == 352800) &&
  28759. be_bit_width == 32)
  28760. bits_per_sample = msm_routing_get_bit_width(
  28761. SNDRV_PCM_FORMAT_S32_LE);
  28762. copp_idx = adm_open(port_id, path_type,
  28763. sample_rate, channels, topology,
  28764. fdai->perf_mode, bits_per_sample,
  28765. app_type, acdb_dev_id,
  28766. session_type);
  28767. if ((copp_idx < 0) ||
  28768. (copp_idx >= MAX_COPPS_PER_PORT)) {
  28769. pr_err("%s: adm open failed\n", __func__);
  28770. mutex_unlock(&routing_lock);
  28771. return -EINVAL;
  28772. }
  28773. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  28774. __func__, i, session_type, be_id);
  28775. set_bit(copp_idx,
  28776. &session_copp_map[i][session_type][be_id]);
  28777. if (msm_is_resample_needed(
  28778. sample_rate,
  28779. bedai->sample_rate))
  28780. adm_copp_mfc_cfg(port_id, copp_idx,
  28781. bedai->sample_rate);
  28782. msm_pcm_routing_build_matrix(i, session_type, path_type,
  28783. fdai->perf_mode, fdai->passthr_mode);
  28784. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28785. (fdai->passthr_mode == LEGACY_PCM))
  28786. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  28787. topology, channels);
  28788. }
  28789. }
  28790. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28791. session_id = msm_pcm_routing_get_voc_sessionid(i);
  28792. if (session_id) {
  28793. pr_debug("%s voice session_id: 0x%x\n", __func__,
  28794. session_id);
  28795. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28796. voc_path_type = RX_PATH;
  28797. else
  28798. voc_path_type = TX_PATH;
  28799. voc_set_route_flag(session_id, voc_path_type, 1);
  28800. memset(&voc_be_media_format, 0,
  28801. sizeof(struct media_format_info));
  28802. voc_be_media_format.port_id = bedai->port_id;
  28803. voc_be_media_format.num_channels = bedai->channel;
  28804. voc_be_media_format.sample_rate = bedai->sample_rate;
  28805. voc_be_media_format.bits_per_sample = bedai->format;
  28806. /* Defaulting this to 1 for voice call usecases */
  28807. voc_be_media_format.channel_mapping[0] = 1;
  28808. voc_set_device_config(session_id, voc_path_type,
  28809. &voc_be_media_format);
  28810. if (voc_get_route_flag(session_id, RX_PATH) &&
  28811. voc_get_route_flag(session_id, TX_PATH))
  28812. voc_enable_device(session_id);
  28813. }
  28814. }
  28815. /* Check if backend is an external ec ref port and set as needed */
  28816. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  28817. memset(&voc_be_media_format, 0,
  28818. sizeof(struct media_format_info));
  28819. /* Get format info for ec ref port from msm_bedais[] */
  28820. voc_be_media_format.port_id = bedai->port_id;
  28821. voc_be_media_format.num_channels = bedai->channel;
  28822. voc_be_media_format.bits_per_sample = bedai->format;
  28823. voc_be_media_format.sample_rate = bedai->sample_rate;
  28824. /* Defaulting this to 1 for voice call usecases */
  28825. voc_be_media_format.channel_mapping[0] = 1;
  28826. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  28827. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  28828. __func__, voc_be_media_format.port_id,
  28829. voc_be_media_format.num_channels,
  28830. voc_be_media_format.bits_per_sample,
  28831. voc_be_media_format.sample_rate);
  28832. }
  28833. done:
  28834. mutex_unlock(&routing_lock);
  28835. return 0;
  28836. }
  28837. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  28838. int fe_id)
  28839. {
  28840. int index, topo_id, be_idx;
  28841. unsigned long pp_config = 0;
  28842. bool mute_on;
  28843. int latency, session_type;
  28844. bool compr_passthr_mode = true;
  28845. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  28846. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX
  28847. && port_id != HDMI_RX_MS) {
  28848. pr_err("%s: Device pp params on invalid port %d, copp_idx %d, fe_id %d\n",
  28849. __func__, port_id, copp_idx, fe_id);
  28850. return -EINVAL;
  28851. }
  28852. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  28853. if (port_id == msm_bedais[be_idx].port_id)
  28854. break;
  28855. }
  28856. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28857. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  28858. return -EINVAL;
  28859. }
  28860. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  28861. if (msm_bedais_pp_params[index].port_id == port_id)
  28862. break;
  28863. }
  28864. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  28865. pr_err("%s: Invalid backend pp params index %d\n",
  28866. __func__, index);
  28867. return -EINVAL;
  28868. }
  28869. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  28870. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  28871. pr_err("%s: Invalid passthrough topology 0x%x\n",
  28872. __func__, topo_id);
  28873. return -EINVAL;
  28874. }
  28875. session_type =
  28876. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  28877. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28878. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  28879. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  28880. compr_passthr_mode = false;
  28881. pp_config = msm_bedais_pp_params[index].pp_params_config;
  28882. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  28883. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  28884. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  28885. mute_on = msm_bedais_pp_params[index].mute_on;
  28886. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28887. adm_send_compressed_device_mute(port_id,
  28888. copp_idx,
  28889. mute_on);
  28890. }
  28891. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  28892. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  28893. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  28894. &pp_config);
  28895. latency = msm_bedais_pp_params[index].latency;
  28896. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28897. adm_send_compressed_device_latency(port_id,
  28898. copp_idx,
  28899. latency);
  28900. }
  28901. return 0;
  28902. }
  28903. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  28904. {
  28905. uint32_t topology = NULL_COPP_TOPOLOGY;
  28906. void *cal_info = NULL;
  28907. uint32_t size = 0;
  28908. /* Retrieve cal_info size from cal data*/
  28909. if (data_size < sizeof(struct audio_cal_type_basic) +
  28910. sizeof(struct audio_cal_info_adm_top)) {
  28911. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  28912. goto done;
  28913. }
  28914. size = data_size - sizeof(struct audio_cal_type_basic);
  28915. cal_info = kzalloc(size, GFP_KERNEL);
  28916. if (!cal_info)
  28917. goto done;
  28918. memcpy(cal_info,
  28919. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  28920. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  28921. kfree(cal_info);
  28922. cal_info = NULL;
  28923. done:
  28924. pr_debug("%s: Using topology %d\n", __func__, topology);
  28925. return topology;
  28926. }
  28927. static void msm_routing_load_topology(size_t data_size, void *data)
  28928. {
  28929. uint32_t topology_id;
  28930. int ret = -EINVAL;
  28931. topology_id = msm_routing_get_topology(data_size, data);
  28932. if (topology_id != NULL_COPP_TOPOLOGY)
  28933. ret = q6core_load_unload_topo_modules(topology_id,
  28934. CORE_LOAD_TOPOLOGY);
  28935. if (ret < 0)
  28936. pr_debug("%s %d load topology failed\n",
  28937. __func__, topology_id);
  28938. }
  28939. static void msm_routing_unload_topology(uint32_t topology_id)
  28940. {
  28941. int ret = -EINVAL;
  28942. if (topology_id != NULL_COPP_TOPOLOGY)
  28943. ret = q6core_load_unload_topo_modules(topology_id,
  28944. CORE_UNLOAD_TOPOLOGY);
  28945. if (ret < 0)
  28946. pr_debug("%s %d unload topology failed\n",
  28947. __func__, topology_id);
  28948. }
  28949. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  28950. struct snd_ctl_elem_value *ucontrol)
  28951. {
  28952. int pp_id = ucontrol->value.integer.value[0];
  28953. int port_id = 0;
  28954. int index, be_idx, i, topo_id, idx;
  28955. bool mute;
  28956. int latency, session_type;
  28957. bool compr_passthr_mode = true;
  28958. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  28959. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  28960. port_id = msm_bedais[be_idx].port_id;
  28961. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX
  28962. || port_id == HDMI_RX_MS)
  28963. break;
  28964. }
  28965. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28966. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  28967. return -EINVAL;
  28968. }
  28969. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  28970. if (msm_bedais_pp_params[index].port_id == port_id)
  28971. break;
  28972. }
  28973. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  28974. pr_err("%s: Invalid pp params backend index %d\n",
  28975. __func__, index);
  28976. return -EINVAL;
  28977. }
  28978. session_type =
  28979. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  28980. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28981. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  28982. MSM_FRONTEND_DAI_MM_SIZE) {
  28983. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  28984. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  28985. compr_passthr_mode = false;
  28986. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  28987. unsigned long copp =
  28988. session_copp_map[i]
  28989. [SESSION_TYPE_RX][be_idx];
  28990. if (!test_bit(idx, &copp))
  28991. continue;
  28992. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  28993. idx);
  28994. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  28995. continue;
  28996. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  28997. __func__, port_id, copp, msm_bedais[be_idx].active,
  28998. fe_dai_map[i][session_type].passthr_mode);
  28999. switch (pp_id) {
  29000. case ADM_PP_PARAM_MUTE_ID:
  29001. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  29002. mute = ucontrol->value.integer.value[1] ? true : false;
  29003. msm_bedais_pp_params[index].mute_on = mute;
  29004. set_bit(ADM_PP_PARAM_MUTE_BIT,
  29005. &msm_bedais_pp_params[index].pp_params_config);
  29006. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29007. adm_send_compressed_device_mute(port_id,
  29008. idx, mute);
  29009. break;
  29010. case ADM_PP_PARAM_LATENCY_ID:
  29011. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  29012. msm_bedais_pp_params[index].latency =
  29013. ucontrol->value.integer.value[1];
  29014. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  29015. &msm_bedais_pp_params[index].pp_params_config);
  29016. latency = msm_bedais_pp_params[index].latency =
  29017. ucontrol->value.integer.value[1];
  29018. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29019. adm_send_compressed_device_latency(port_id,
  29020. idx, latency);
  29021. break;
  29022. default:
  29023. pr_info("%s, device pp param %d not supported\n",
  29024. __func__, pp_id);
  29025. break;
  29026. }
  29027. }
  29028. }
  29029. return 0;
  29030. }
  29031. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  29032. struct snd_ctl_elem_value *ucontrol)
  29033. {
  29034. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  29035. return 0;
  29036. }
  29037. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  29038. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  29039. 0, 3, msm_routing_get_device_pp_params_mixer,
  29040. msm_routing_put_device_pp_params_mixer),
  29041. };
  29042. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  29043. struct snd_ctl_elem_value *ucontrol)
  29044. {
  29045. ucontrol->value.integer.value[0] =
  29046. core_get_license_status(ASM_MEDIA_FMT_APTX);
  29047. pr_debug("%s: status %ld\n", __func__,
  29048. ucontrol->value.integer.value[0]);
  29049. return 0;
  29050. }
  29051. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  29052. struct snd_ctl_elem_value *ucontrol)
  29053. {
  29054. int32_t status = 0;
  29055. status = core_set_license(ucontrol->value.integer.value[0],
  29056. APTX_CLASSIC_DEC_LICENSE_ID);
  29057. pr_debug("%s: status %d\n", __func__, status);
  29058. return status;
  29059. }
  29060. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  29061. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  29062. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  29063. msm_aptx_dec_license_control_put),
  29064. };
  29065. static int msm_routing_get_pll_clk_drift(struct snd_kcontrol *kcontrol,
  29066. struct snd_ctl_elem_value *ucontrol)
  29067. {
  29068. return 0;
  29069. }
  29070. static int msm_routing_put_pll_clk_drift(struct snd_kcontrol *kcontrol,
  29071. struct snd_ctl_elem_value *ucontrol)
  29072. {
  29073. u16 port_id = 0;
  29074. int32_t clk_drift = 0;
  29075. uint32_t clk_reset = 0;
  29076. int be_idx, ret = -EINVAL;
  29077. be_idx = ucontrol->value.integer.value[0];
  29078. clk_drift = ucontrol->value.integer.value[1];
  29079. clk_reset = ucontrol->value.integer.value[2];
  29080. if (be_idx < 0 && be_idx >= MSM_BACKEND_DAI_MAX) {
  29081. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  29082. return -EINVAL;
  29083. }
  29084. if (!msm_bedais[be_idx].active && !clk_reset) {
  29085. pr_err("%s:BE is not active %d, cannot set clock drift\n",
  29086. __func__, be_idx);
  29087. return -EINVAL;
  29088. }
  29089. port_id = msm_bedais[be_idx].port_id;
  29090. pr_debug("%s: clk drift %d be idx %d clk reset %d port id 0x%x\n",
  29091. __func__, clk_drift, be_idx, clk_reset, port_id);
  29092. ret = afe_set_pll_clk_drift(port_id, clk_drift, clk_reset);
  29093. if (ret < 0)
  29094. pr_err("%s: failed to set pll clk drift\n", __func__);
  29095. return ret;
  29096. }
  29097. static const struct snd_kcontrol_new pll_clk_drift_controls[] = {
  29098. SOC_SINGLE_MULTI_EXT("PLL config data", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  29099. 0, 128, msm_routing_get_pll_clk_drift, msm_routing_put_pll_clk_drift),
  29100. };
  29101. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  29102. struct snd_ctl_elem_value *ucontrol)
  29103. {
  29104. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  29105. uint32_t be_idx = ucontrol->value.integer.value[0];
  29106. int i;
  29107. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  29108. pr_err("%s: Invalid Backend index %d\n", __func__, be_idx);
  29109. return -EINVAL;
  29110. }
  29111. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  29112. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  29113. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  29114. pr_err("%s: Invalid channel map %d\n",
  29115. __func__, channel_map[i]);
  29116. return -EINVAL;
  29117. }
  29118. }
  29119. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  29120. return 0;
  29121. }
  29122. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  29123. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  29124. MSM_BACKEND_DAI_MAX, 0,
  29125. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  29126. msm_routing_put_port_chmap_mixer),
  29127. };
  29128. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  29129. struct snd_ctl_elem_info *uinfo)
  29130. {
  29131. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  29132. uinfo->count = sizeof(be_dai_name_table);
  29133. return 0;
  29134. }
  29135. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  29136. unsigned int __user *bytes,
  29137. unsigned int size)
  29138. {
  29139. int i;
  29140. int ret = 0;
  29141. if (size < sizeof(be_dai_name_table)) {
  29142. pr_err("%s: invalid size %d requested, returning\n",
  29143. __func__, size);
  29144. ret = -EINVAL;
  29145. goto done;
  29146. }
  29147. /*
  29148. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  29149. * needed when adding new backends
  29150. */
  29151. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  29152. be_dai_name_table[i].be_id = i;
  29153. strlcpy(be_dai_name_table[i].be_name,
  29154. msm_bedais[i].name,
  29155. LPASS_BE_NAME_MAX_LENGTH);
  29156. }
  29157. ret = copy_to_user(bytes, &be_dai_name_table,
  29158. sizeof(be_dai_name_table));
  29159. if (ret) {
  29160. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  29161. ret = -EFAULT;
  29162. }
  29163. done:
  29164. return ret;
  29165. }
  29166. static const struct snd_kcontrol_new
  29167. msm_routing_be_dai_name_table_mixer_controls[] = {
  29168. {
  29169. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  29170. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  29171. .info = msm_routing_be_dai_name_table_info,
  29172. .name = "Backend DAI Name Table",
  29173. .tlv.c = snd_soc_bytes_tlv_callback,
  29174. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  29175. .max = sizeof(be_dai_name_table),
  29176. .get = msm_routing_be_dai_name_table_tlv_get,
  29177. }
  29178. },
  29179. };
  29180. static int msm_routing_stereo_channel_reverse_control_get(
  29181. struct snd_kcontrol *kcontrol,
  29182. struct snd_ctl_elem_value *ucontrol)
  29183. {
  29184. ucontrol->value.integer.value[0] = swap_ch;
  29185. pr_debug("%s: Swap channel value: %ld\n", __func__,
  29186. ucontrol->value.integer.value[0]);
  29187. return 0;
  29188. }
  29189. static int msm_routing_stereo_channel_reverse_control_put(
  29190. struct snd_kcontrol *kcontrol,
  29191. struct snd_ctl_elem_value *ucontrol)
  29192. {
  29193. int i, idx, be_index, port_id;
  29194. int ret = 0;
  29195. unsigned long copp;
  29196. pr_debug("%s Swap channel value:%ld\n", __func__,
  29197. ucontrol->value.integer.value[0]);
  29198. swap_ch = ucontrol->value.integer.value[0];
  29199. mutex_lock(&routing_lock);
  29200. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  29201. port_id = msm_bedais[be_index].port_id;
  29202. if (!msm_bedais[be_index].active)
  29203. continue;
  29204. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  29205. MSM_FRONTEND_DAI_MM_SIZE) {
  29206. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  29207. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  29208. if (!test_bit(idx, &copp))
  29209. continue;
  29210. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  29211. __func__, port_id, idx);
  29212. ret = adm_swap_speaker_channels(
  29213. port_id, idx,
  29214. msm_bedais[be_index].sample_rate,
  29215. swap_ch);
  29216. if (ret) {
  29217. pr_err("%s:Swap_channel failed, err=%d\n",
  29218. __func__, ret);
  29219. goto done;
  29220. }
  29221. }
  29222. }
  29223. }
  29224. done:
  29225. mutex_unlock(&routing_lock);
  29226. return ret;
  29227. }
  29228. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  29229. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  29230. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  29231. msm_routing_stereo_channel_reverse_control_put),
  29232. };
  29233. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  29234. struct snd_ctl_elem_info *uinfo)
  29235. {
  29236. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  29237. uinfo->count = 1;
  29238. return 0;
  29239. }
  29240. static int msm_routing_instance_id_support_put(
  29241. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  29242. {
  29243. bool supported = ucontrol->value.integer.value[0] ? true : false;
  29244. q6common_update_instance_id_support(supported);
  29245. return 0;
  29246. }
  29247. static int msm_routing_instance_id_support_get(
  29248. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  29249. {
  29250. bool supported = false;
  29251. supported = q6common_is_instance_id_supported();
  29252. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  29253. return 0;
  29254. }
  29255. static const struct snd_kcontrol_new
  29256. msm_routing_feature_support_mixer_controls[] = {
  29257. {
  29258. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  29259. SNDRV_CTL_ELEM_ACCESS_WRITE,
  29260. .info = msm_routing_instance_id_support_info,
  29261. .name = "Instance ID Support",
  29262. .put = msm_routing_instance_id_support_put,
  29263. .get = msm_routing_instance_id_support_get,
  29264. },
  29265. };
  29266. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  29267. .hw_params = msm_pcm_routing_hw_params,
  29268. .close = msm_pcm_routing_close,
  29269. .prepare = msm_pcm_routing_prepare,
  29270. };
  29271. #ifdef CONFIG_DOA_PARAMS_ENABLED
  29272. void msm_routing_add_doa_control(struct snd_soc_component *component)
  29273. {
  29274. snd_soc_add_component_controls(component,
  29275. msm_source_doa_tracking_controls,
  29276. ARRAY_SIZE(msm_source_doa_tracking_controls));
  29277. }
  29278. #else
  29279. void msm_routing_add_doa_control(struct snd_soc_component *component)
  29280. {
  29281. return;
  29282. }
  29283. #endif
  29284. /* Not used but frame seems to require it */
  29285. static int msm_routing_probe(struct snd_soc_component *component)
  29286. {
  29287. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  29288. ARRAY_SIZE(msm_qdsp6_widgets));
  29289. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  29290. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  29291. snd_soc_dapm_add_routes(&component->dapm, intercon,
  29292. ARRAY_SIZE(intercon));
  29293. snd_soc_dapm_new_widgets(component->dapm.card);
  29294. snd_soc_add_component_controls(component, lsm_controls,
  29295. ARRAY_SIZE(lsm_controls));
  29296. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  29297. ARRAY_SIZE(aanc_slim_0_rx_mux));
  29298. snd_soc_add_component_controls(component, aanc_noise_level,
  29299. ARRAY_SIZE(aanc_noise_level));
  29300. snd_soc_add_component_controls(component, msm_voc_session_controls,
  29301. ARRAY_SIZE(msm_voc_session_controls));
  29302. snd_soc_add_component_controls(component, app_type_cfg_controls,
  29303. ARRAY_SIZE(app_type_cfg_controls));
  29304. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  29305. ARRAY_SIZE(lsm_app_type_cfg_controls));
  29306. snd_soc_add_component_controls(component, module_cfg_controls,
  29307. ARRAY_SIZE(module_cfg_controls));
  29308. snd_soc_add_component_controls(component,
  29309. stereo_to_custom_stereo_controls,
  29310. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  29311. snd_soc_add_component_controls(component, ec_ref_param_controls,
  29312. ARRAY_SIZE(ec_ref_param_controls));
  29313. snd_soc_add_component_controls(component, channel_mixer_controls,
  29314. ARRAY_SIZE(channel_mixer_controls));
  29315. msm_qti_pp_add_controls(component);
  29316. msm_dts_srs_tm_add_controls(component);
  29317. msm_dolby_dap_add_controls(component);
  29318. snd_soc_add_component_controls(component,
  29319. use_ds1_or_ds2_controls,
  29320. ARRAY_SIZE(use_ds1_or_ds2_controls));
  29321. snd_soc_add_component_controls(component,
  29322. hifi_filter_controls,
  29323. ARRAY_SIZE(hifi_filter_controls));
  29324. snd_soc_add_component_controls(component,
  29325. use_ffecns_freeze_event_controls,
  29326. ARRAY_SIZE(use_ffecns_freeze_event_controls));
  29327. snd_soc_add_component_controls(component,
  29328. device_pp_params_mixer_controls,
  29329. ARRAY_SIZE(device_pp_params_mixer_controls));
  29330. snd_soc_add_component_controls(component,
  29331. msm_routing_be_dai_name_table_mixer_controls,
  29332. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  29333. /* Add doa control based on config */
  29334. msm_routing_add_doa_control(component);
  29335. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  29336. ARRAY_SIZE(msm_source_tracking_controls));
  29337. snd_soc_add_component_controls(component, adm_channel_config_controls,
  29338. ARRAY_SIZE(adm_channel_config_controls));
  29339. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  29340. ARRAY_SIZE(aptx_dec_license_controls));
  29341. snd_soc_add_component_controls(component,
  29342. stereo_channel_reverse_control,
  29343. ARRAY_SIZE(stereo_channel_reverse_control));
  29344. snd_soc_add_component_controls(
  29345. component, msm_routing_feature_support_mixer_controls,
  29346. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  29347. snd_soc_add_component_controls(component,
  29348. port_multi_channel_map_mixer_controls,
  29349. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  29350. snd_soc_add_component_controls(component, pll_clk_drift_controls,
  29351. ARRAY_SIZE(pll_clk_drift_controls));
  29352. return 0;
  29353. }
  29354. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  29355. {
  29356. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  29357. }
  29358. void msm_routing_pcm_free(struct snd_pcm *pcm)
  29359. {
  29360. msm_pcm_routing_hwdep_free(pcm);
  29361. }
  29362. static struct snd_soc_component_driver msm_soc_routing_component = {
  29363. .name = DRV_NAME,
  29364. .ops = &msm_routing_pcm_ops,
  29365. .probe = msm_routing_probe,
  29366. .pcm_new = msm_routing_pcm_new,
  29367. .pcm_free = msm_routing_pcm_free,
  29368. };
  29369. static int msm_routing_pcm_probe(struct platform_device *pdev)
  29370. {
  29371. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  29372. return snd_soc_register_component(&pdev->dev,
  29373. &msm_soc_routing_component,
  29374. NULL, 0);
  29375. }
  29376. static int msm_routing_pcm_remove(struct platform_device *pdev)
  29377. {
  29378. snd_soc_unregister_component(&pdev->dev);
  29379. return 0;
  29380. }
  29381. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  29382. {.compatible = "qcom,msm-pcm-routing"},
  29383. {}
  29384. };
  29385. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  29386. static struct platform_driver msm_routing_pcm_driver = {
  29387. .driver = {
  29388. .name = "msm-pcm-routing",
  29389. .owner = THIS_MODULE,
  29390. .of_match_table = msm_pcm_routing_dt_match,
  29391. .suppress_bind_attrs = true,
  29392. },
  29393. .probe = msm_routing_pcm_probe,
  29394. .remove = msm_routing_pcm_remove,
  29395. };
  29396. int msm_routing_check_backend_enabled(int fedai_id)
  29397. {
  29398. int i;
  29399. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  29400. /* bad ID assigned in machine driver */
  29401. pr_err("%s: bad MM ID\n", __func__);
  29402. return 0;
  29403. }
  29404. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  29405. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  29406. return msm_bedais[i].active;
  29407. }
  29408. return 0;
  29409. }
  29410. static int get_cal_type_index(int32_t cal_type)
  29411. {
  29412. int ret = -EINVAL;
  29413. switch (cal_type) {
  29414. case ADM_TOPOLOGY_CAL_TYPE:
  29415. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  29416. break;
  29417. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  29418. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  29419. break;
  29420. default:
  29421. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  29422. }
  29423. return ret;
  29424. }
  29425. static int msm_routing_set_cal(int32_t cal_type,
  29426. size_t data_size, void *data)
  29427. {
  29428. int ret = 0;
  29429. int cal_index;
  29430. pr_debug("%s\n", __func__);
  29431. cal_index = get_cal_type_index(cal_type);
  29432. if (cal_index < 0) {
  29433. pr_err("%s: Could not get cal index %d\n",
  29434. __func__, cal_index);
  29435. ret = -EINVAL;
  29436. goto done;
  29437. }
  29438. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  29439. if (ret < 0) {
  29440. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  29441. __func__, ret, cal_type);
  29442. ret = -EINVAL;
  29443. goto done;
  29444. }
  29445. /* Pre-load if it is ADM topology */
  29446. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  29447. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  29448. msm_routing_load_topology(data_size, data);
  29449. }
  29450. done:
  29451. return ret;
  29452. }
  29453. static void msm_routing_delete_cal_data(void)
  29454. {
  29455. pr_debug("%s\n", __func__);
  29456. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  29457. }
  29458. static int msm_routing_init_cal_data(void)
  29459. {
  29460. int ret = 0;
  29461. struct cal_type_info cal_type_info[] = {
  29462. {{ADM_TOPOLOGY_CAL_TYPE,
  29463. {NULL, NULL, NULL,
  29464. msm_routing_set_cal, NULL, NULL} },
  29465. {NULL, NULL, cal_utils_match_buf_num} },
  29466. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  29467. {NULL, NULL, NULL,
  29468. msm_routing_set_cal, NULL, NULL} },
  29469. {NULL, NULL, cal_utils_match_buf_num} },
  29470. };
  29471. pr_debug("%s\n", __func__);
  29472. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  29473. &cal_type_info[0]);
  29474. if (ret < 0) {
  29475. pr_err("%s: could not create cal type!\n",
  29476. __func__);
  29477. ret = -EINVAL;
  29478. goto err;
  29479. }
  29480. return ret;
  29481. err:
  29482. msm_routing_delete_cal_data();
  29483. return ret;
  29484. }
  29485. int __init msm_soc_routing_platform_init(void)
  29486. {
  29487. mutex_init(&routing_lock);
  29488. if (msm_routing_init_cal_data())
  29489. pr_err("%s: could not init cal data!\n", __func__);
  29490. afe_set_routing_callback(
  29491. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  29492. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29493. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  29494. return platform_driver_register(&msm_routing_pcm_driver);
  29495. }
  29496. void msm_soc_routing_platform_exit(void)
  29497. {
  29498. msm_routing_delete_cal_data();
  29499. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29500. mutex_destroy(&routing_lock);
  29501. platform_driver_unregister(&msm_routing_pcm_driver);
  29502. }
  29503. MODULE_DESCRIPTION("MSM routing platform driver");
  29504. MODULE_LICENSE("GPL v2");