msm-pcm-routing-v2.c 1.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041
  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. #define STRING_LENGTH_OF_INT 12
  47. #define MAX_USR_CTRL_CNT 128
  48. static struct mutex routing_lock;
  49. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  50. static int fm_switch_enable;
  51. static int hfp_switch_enable;
  52. static int a2dp_switch_enable;
  53. static int sco_switch_enable;
  54. static int int0_mi2s_switch_enable;
  55. static int int4_mi2s_switch_enable;
  56. static int pri_mi2s_switch_enable;
  57. static int sec_mi2s_switch_enable;
  58. static int tert_mi2s_switch_enable;
  59. static int quat_mi2s_switch_enable;
  60. static int quin_mi2s_switch_enable;
  61. static int sen_mi2s_switch_enable;
  62. static int fm_pcmrx_switch_enable;
  63. static int usb_switch_enable;
  64. static int lsm_port_index[MAX_LSM_SESSIONS];
  65. static int slim0_rx_aanc_fb_port;
  66. static int msm_route_ec_ref_rx;
  67. static int msm_ec_ref_ch = 4;
  68. static int msm_ec_ref_ch_downmixed = 4;
  69. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  70. static int msm_ec_ref_sampling_rate = 48000;
  71. static uint32_t voc_session_id = ALL_SESSION_VSID;
  72. static int msm_route_ext_ec_ref;
  73. static bool is_custom_stereo_on;
  74. static bool is_ds2_on;
  75. static bool ffecns_freeze_event;
  76. static bool swap_ch;
  77. static bool hifi_filter_enabled;
  78. static int aanc_level;
  79. static int num_app_cfg_types;
  80. static int msm_ec_ref_port_id;
  81. static int afe_loopback_tx_port_index;
  82. static int afe_loopback_tx_port_id = -1;
  83. #define WEIGHT_0_DB 0x4000
  84. /* all the FEs which can support channel mixer */
  85. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  86. /* all the FES which can support channel mixer for bidirection */
  87. static struct msm_pcm_channel_mixer
  88. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  89. /* input BE for each FE */
  90. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  91. enum {
  92. MADNONE,
  93. MADAUDIO,
  94. MADBEACON,
  95. MADULTRASOUND,
  96. MADSWAUDIO,
  97. };
  98. #define ADM_LSM_PORT_INDEX 9
  99. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  100. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  101. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  102. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  103. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  104. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  105. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  106. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  107. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  108. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  109. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  110. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  111. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  112. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  113. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  114. #define TERT_TDM_TX_TEXT "TERT_TDM_TX_0"
  115. #define LSM_FUNCTION_TEXT "LSM Function"
  116. static const char * const lsm_port_text[] = {
  117. "None",
  118. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  119. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  120. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  121. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  122. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT,
  123. TERT_TDM_TX_TEXT
  124. };
  125. struct msm_pcm_route_bdai_pp_params {
  126. u16 port_id; /* AFE port ID */
  127. unsigned long pp_params_config;
  128. bool mute_on;
  129. int latency;
  130. };
  131. static struct msm_pcm_route_bdai_pp_params
  132. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  133. {HDMI_RX, 0, 0, 0},
  134. {HDMI_RX_MS, 0, 0, 0},
  135. {DISPLAY_PORT_RX, 0, 0, 0},
  136. };
  137. /*
  138. * The be_dai_name_table is passed to HAL so that it can specify the
  139. * BE ID for the BE it wants to enable based on the name. Thus there
  140. * is a matching table and structure in HAL that need to be updated
  141. * if any changes to these are made.
  142. */
  143. struct msm_pcm_route_bdai_name {
  144. unsigned int be_id;
  145. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  146. };
  147. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  148. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  149. int fe_id);
  150. static void msm_routing_load_topology(size_t data_size, void *data);
  151. static void msm_routing_unload_topology(uint32_t topology_id);
  152. #ifndef SND_PCM_ADD_VOLUME_CTL
  153. static int pcm_volume_ctl_info(struct snd_kcontrol *kcontrol,
  154. struct snd_ctl_elem_info *uinfo)
  155. {
  156. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  157. uinfo->count = 1;
  158. uinfo->value.integer.min = 0;
  159. uinfo->value.integer.max = 0x2000;
  160. return 0;
  161. }
  162. static void pcm_volume_ctl_private_free(struct snd_kcontrol *kcontrol)
  163. {
  164. struct snd_pcm_volume *info = snd_kcontrol_chip(kcontrol);
  165. kfree(info);
  166. }
  167. /**
  168. * snd_pcm_add_volume_ctls - create volume control elements
  169. * @pcm: the assigned PCM instance
  170. * @stream: stream direction
  171. * @max_length: the max length of the volume parameter of stream
  172. * @private_value: the value passed to each kcontrol's private_value field
  173. * @info_ret: store struct snd_pcm_volume instance if non-NULL
  174. *
  175. * Create volume control elements assigned to the given PCM stream(s).
  176. * Returns zero if succeed, or a negative error value.
  177. */
  178. int snd_pcm_add_volume_ctls(struct snd_pcm *pcm, int stream,
  179. const struct snd_pcm_volume_elem *volume,
  180. int max_length,
  181. unsigned long private_value,
  182. struct snd_pcm_volume **info_ret)
  183. {
  184. int err = 0;
  185. int size = 0;
  186. struct snd_pcm_volume *info;
  187. struct snd_kcontrol_new knew = {
  188. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  189. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  190. SNDRV_CTL_ELEM_ACCESS_READWRITE,
  191. .info = pcm_volume_ctl_info,
  192. };
  193. info = kzalloc(sizeof(*info), GFP_KERNEL);
  194. if (!info)
  195. return -ENOMEM;
  196. info->pcm = pcm;
  197. info->stream = stream;
  198. info->volume = volume;
  199. info->max_length = max_length;
  200. size = sizeof("Playback ") + sizeof(" Volume") +
  201. STRING_LENGTH_OF_INT*sizeof(char) + 1;
  202. knew.name = kzalloc(size, GFP_KERNEL);
  203. if (!knew.name) {
  204. kfree(info);
  205. return -ENOMEM;
  206. }
  207. if (stream == SNDRV_PCM_STREAM_PLAYBACK)
  208. snprintf((char *)knew.name, size, "%s %d %s",
  209. "Playback", pcm->device, "Volume");
  210. else
  211. snprintf((char *)knew.name, size, "%s %d %s",
  212. "Capture", pcm->device, "Volume");
  213. knew.device = pcm->device;
  214. knew.count = pcm->streams[stream].substream_count;
  215. knew.private_value = private_value;
  216. info->kctl = snd_ctl_new1(&knew, info);
  217. if (!info->kctl) {
  218. kfree(info);
  219. kfree(knew.name);
  220. return -ENOMEM;
  221. }
  222. info->kctl->private_free = pcm_volume_ctl_private_free;
  223. err = snd_ctl_add(pcm->card, info->kctl);
  224. if (err < 0) {
  225. kfree(info);
  226. kfree(knew.name);
  227. return -ENOMEM;
  228. }
  229. if (info_ret)
  230. *info_ret = info;
  231. kfree(knew.name);
  232. return 0;
  233. }
  234. EXPORT_SYMBOL(snd_pcm_add_volume_ctls);
  235. #endif
  236. #ifndef SND_PCM_ADD_USR_CTL
  237. static int pcm_usr_ctl_info(struct snd_kcontrol *kcontrol,
  238. struct snd_ctl_elem_info *uinfo)
  239. {
  240. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  241. uinfo->count = MAX_USR_CTRL_CNT;
  242. uinfo->value.integer.min = 0;
  243. uinfo->value.integer.max = INT_MAX;
  244. return 0;
  245. }
  246. static void pcm_usr_ctl_private_free(struct snd_kcontrol *kcontrol)
  247. {
  248. struct snd_pcm_usr *info = snd_kcontrol_chip(kcontrol);
  249. kfree(info);
  250. }
  251. /**
  252. * snd_pcm_add_usr_ctls - create user control elements
  253. * @pcm: the assigned PCM instance
  254. * @stream: stream direction
  255. * @max_length: the max length of the user parameter of stream
  256. * @private_value: the value passed to each kcontrol's private_value field
  257. * @info_ret: store struct snd_pcm_usr instance if non-NULL
  258. *
  259. * Create usr control elements assigned to the given PCM stream(s).
  260. * Returns zero if succeed, or a negative error value.
  261. */
  262. int snd_pcm_add_usr_ctls(struct snd_pcm *pcm, int stream,
  263. const struct snd_pcm_usr_elem *usr,
  264. int max_length, int max_kctrl_str_len,
  265. unsigned long private_value,
  266. struct snd_pcm_usr **info_ret)
  267. {
  268. int err = 0;
  269. char *buf = NULL;
  270. struct snd_pcm_usr *info;
  271. struct snd_kcontrol_new knew = {
  272. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  273. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  274. .info = pcm_usr_ctl_info,
  275. };
  276. info = kzalloc(sizeof(*info), GFP_KERNEL);
  277. if (!info)
  278. return -ENOMEM;
  279. info->pcm = pcm;
  280. info->stream = stream;
  281. info->usr = usr;
  282. info->max_length = max_length;
  283. buf = kzalloc(max_kctrl_str_len, GFP_KERNEL);
  284. if (!buf) {
  285. pr_err("%s: buffer allocation failed\n", __func__);
  286. kfree(info);
  287. return -ENOMEM;
  288. }
  289. knew.name = buf;
  290. if (stream == SNDRV_PCM_STREAM_PLAYBACK)
  291. snprintf(buf, max_kctrl_str_len, "%s %d %s",
  292. "Playback", pcm->device, "User kcontrol");
  293. else
  294. snprintf(buf, max_kctrl_str_len, "%s %d %s",
  295. "Capture", pcm->device, "User kcontrol");
  296. knew.device = pcm->device;
  297. knew.count = pcm->streams[stream].substream_count;
  298. knew.private_value = private_value;
  299. info->kctl = snd_ctl_new1(&knew, info);
  300. if (!info->kctl) {
  301. kfree(info);
  302. kfree(knew.name);
  303. pr_err("%s: snd_ctl_new failed\n", __func__);
  304. return -ENOMEM;
  305. }
  306. info->kctl->private_free = pcm_usr_ctl_private_free;
  307. err = snd_ctl_add(pcm->card, info->kctl);
  308. if (err < 0) {
  309. kfree(info);
  310. kfree(knew.name);
  311. pr_err("%s: snd_ctl_add failed:%d\n", __func__,
  312. err);
  313. return -ENOMEM;
  314. }
  315. if (info_ret)
  316. *info_ret = info;
  317. kfree(knew.name);
  318. return 0;
  319. }
  320. EXPORT_SYMBOL(snd_pcm_add_usr_ctls);
  321. #endif
  322. static int msm_routing_get_bit_width(unsigned int format)
  323. {
  324. int bit_width;
  325. switch (format) {
  326. case SNDRV_PCM_FORMAT_S32_LE:
  327. bit_width = 32;
  328. break;
  329. case SNDRV_PCM_FORMAT_S24_LE:
  330. case SNDRV_PCM_FORMAT_S24_3LE:
  331. bit_width = 24;
  332. break;
  333. case SNDRV_PCM_FORMAT_S16_LE:
  334. default:
  335. bit_width = 16;
  336. }
  337. return bit_width;
  338. }
  339. static bool msm_is_resample_needed(int input_sr, int output_sr)
  340. {
  341. bool rc = false;
  342. if (input_sr != output_sr)
  343. rc = true;
  344. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  345. (rc ? "oh yes" : "not really"),
  346. input_sr, output_sr);
  347. return rc;
  348. }
  349. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  350. int channels)
  351. {
  352. int rc = 0;
  353. switch (topology) {
  354. case SRS_TRUMEDIA_TOPOLOGY_ID:
  355. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  356. msm_dts_srs_tm_init(port_id, copp_idx);
  357. break;
  358. case DS2_ADM_COPP_TOPOLOGY_ID:
  359. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  360. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  361. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  362. is_custom_stereo_on);
  363. if (rc < 0)
  364. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  365. __func__, topology, port_id,
  366. is_custom_stereo_on, rc);
  367. break;
  368. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  369. if (is_ds2_on) {
  370. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  371. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  372. is_custom_stereo_on);
  373. if (rc < 0)
  374. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  375. __func__, topology, port_id, rc);
  376. } else {
  377. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  378. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  379. is_custom_stereo_on);
  380. if (rc < 0)
  381. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  382. __func__, topology, port_id, rc);
  383. }
  384. break;
  385. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  386. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  387. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  388. if (rc < 0)
  389. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  390. __func__, topology, port_id, copp_idx, rc);
  391. break;
  392. default:
  393. /* custom topology specific feature param handlers */
  394. break;
  395. }
  396. }
  397. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  398. {
  399. switch (topology) {
  400. case SRS_TRUMEDIA_TOPOLOGY_ID:
  401. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  402. msm_dts_srs_tm_deinit(port_id);
  403. break;
  404. case DS2_ADM_COPP_TOPOLOGY_ID:
  405. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  406. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  407. msm_ds2_dap_deinit(port_id);
  408. break;
  409. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  410. if (is_ds2_on) {
  411. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  412. msm_ds2_dap_deinit(port_id);
  413. } else {
  414. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  415. msm_dolby_dap_deinit(port_id);
  416. }
  417. break;
  418. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  419. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  420. msm_qti_pp_asphere_deinit(port_id);
  421. break;
  422. default:
  423. /* custom topology specific feature deinit handlers */
  424. break;
  425. }
  426. }
  427. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  428. int path_type, int perf_mode)
  429. {
  430. int itr = 0, rc = 0;
  431. if ((path_type == ADM_PATH_PLAYBACK) &&
  432. (perf_mode == LEGACY_PCM_MODE) &&
  433. is_custom_stereo_on) {
  434. for (itr = 0; itr < payload.num_copps; itr++) {
  435. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  436. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  437. continue;
  438. }
  439. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  440. payload.port_id[itr],
  441. payload.copp_idx[itr],
  442. payload.session_id,
  443. Q14_GAIN_ZERO_POINT_FIVE,
  444. Q14_GAIN_ZERO_POINT_FIVE,
  445. Q14_GAIN_ZERO_POINT_FIVE,
  446. Q14_GAIN_ZERO_POINT_FIVE);
  447. if (rc < 0)
  448. pr_err("%s: err setting custom stereo\n",
  449. __func__);
  450. }
  451. }
  452. }
  453. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  454. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  455. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  456. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  457. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  458. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  459. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  460. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  461. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  462. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  463. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  464. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  465. LPASS_BE_AFE_PCM_RX},
  466. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  467. LPASS_BE_AFE_PCM_TX},
  468. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  469. LPASS_BE_AUXPCM_RX},
  470. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  471. LPASS_BE_AUXPCM_TX},
  472. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  473. LPASS_BE_VOICE_PLAYBACK_TX},
  474. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  475. LPASS_BE_VOICE2_PLAYBACK_TX},
  476. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  477. LPASS_BE_INCALL_RECORD_RX},
  478. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  479. LPASS_BE_INCALL_RECORD_TX},
  480. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  481. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  482. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  483. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  484. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  485. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  486. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  487. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  488. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  489. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  490. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  491. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  492. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  493. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  494. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  495. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  496. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  497. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  498. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  499. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  500. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  501. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  502. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  503. LPASS_BE_QUAT_MI2S_RX},
  504. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  505. LPASS_BE_QUAT_MI2S_TX},
  506. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  507. LPASS_BE_SEC_MI2S_RX},
  508. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  509. LPASS_BE_SEC_MI2S_TX},
  510. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  511. LPASS_BE_PRI_MI2S_RX},
  512. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  513. LPASS_BE_PRI_MI2S_TX},
  514. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  515. LPASS_BE_TERT_MI2S_RX},
  516. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  517. LPASS_BE_TERT_MI2S_TX},
  518. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  519. LPASS_BE_AUDIO_I2S_RX},
  520. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  521. LPASS_BE_SEC_AUXPCM_RX},
  522. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  523. LPASS_BE_SEC_AUXPCM_TX},
  524. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  525. LPASS_BE_PRI_SPDIF_RX},
  526. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  527. LPASS_BE_SEC_MI2S_RX_SD1},
  528. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  529. LPASS_BE_QUIN_MI2S_RX},
  530. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  531. LPASS_BE_QUIN_MI2S_TX},
  532. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  533. LPASS_BE_SENARY_MI2S_TX},
  534. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  535. LPASS_BE_PRI_TDM_RX_0},
  536. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  537. LPASS_BE_PRI_TDM_TX_0},
  538. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  539. LPASS_BE_PRI_TDM_RX_1},
  540. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  541. LPASS_BE_PRI_TDM_TX_1},
  542. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  543. LPASS_BE_PRI_TDM_RX_2},
  544. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  545. LPASS_BE_PRI_TDM_TX_2},
  546. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  547. LPASS_BE_PRI_TDM_RX_3},
  548. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  549. LPASS_BE_PRI_TDM_TX_3},
  550. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  551. LPASS_BE_PRI_TDM_RX_4},
  552. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  553. LPASS_BE_PRI_TDM_TX_4},
  554. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  555. LPASS_BE_PRI_TDM_RX_5},
  556. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  557. LPASS_BE_PRI_TDM_TX_5},
  558. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  559. LPASS_BE_PRI_TDM_RX_6},
  560. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  561. LPASS_BE_PRI_TDM_TX_6},
  562. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  563. LPASS_BE_PRI_TDM_RX_7},
  564. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  565. LPASS_BE_PRI_TDM_TX_7},
  566. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  567. LPASS_BE_SEC_TDM_RX_0},
  568. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  569. LPASS_BE_SEC_TDM_TX_0},
  570. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  571. LPASS_BE_SEC_TDM_RX_1},
  572. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  573. LPASS_BE_SEC_TDM_TX_1},
  574. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  575. LPASS_BE_SEC_TDM_RX_2},
  576. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  577. LPASS_BE_SEC_TDM_TX_2},
  578. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  579. LPASS_BE_SEC_TDM_RX_3},
  580. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  581. LPASS_BE_SEC_TDM_TX_3},
  582. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  583. LPASS_BE_SEC_TDM_RX_4},
  584. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  585. LPASS_BE_SEC_TDM_TX_4},
  586. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  587. LPASS_BE_SEC_TDM_RX_5},
  588. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  589. LPASS_BE_SEC_TDM_TX_5},
  590. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  591. LPASS_BE_SEC_TDM_RX_6},
  592. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  593. LPASS_BE_SEC_TDM_TX_6},
  594. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  595. LPASS_BE_SEC_TDM_RX_7},
  596. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  597. LPASS_BE_SEC_TDM_TX_7},
  598. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  599. LPASS_BE_TERT_TDM_RX_0},
  600. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  601. LPASS_BE_TERT_TDM_TX_0},
  602. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  603. LPASS_BE_TERT_TDM_RX_1},
  604. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  605. LPASS_BE_TERT_TDM_TX_1},
  606. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  607. LPASS_BE_TERT_TDM_RX_2},
  608. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  609. LPASS_BE_TERT_TDM_TX_2},
  610. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  611. LPASS_BE_TERT_TDM_RX_3},
  612. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  613. LPASS_BE_TERT_TDM_TX_3},
  614. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  615. LPASS_BE_TERT_TDM_RX_4},
  616. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  617. LPASS_BE_TERT_TDM_TX_4},
  618. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  619. LPASS_BE_TERT_TDM_RX_5},
  620. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  621. LPASS_BE_TERT_TDM_TX_5},
  622. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  623. LPASS_BE_TERT_TDM_RX_6},
  624. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  625. LPASS_BE_TERT_TDM_TX_6},
  626. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  627. LPASS_BE_TERT_TDM_RX_7},
  628. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  629. LPASS_BE_TERT_TDM_TX_7},
  630. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  631. LPASS_BE_QUAT_TDM_RX_0},
  632. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  633. LPASS_BE_QUAT_TDM_TX_0},
  634. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  635. LPASS_BE_QUAT_TDM_RX_1},
  636. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  637. LPASS_BE_QUAT_TDM_TX_1},
  638. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  639. LPASS_BE_QUAT_TDM_RX_2},
  640. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  641. LPASS_BE_QUAT_TDM_TX_2},
  642. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  643. LPASS_BE_QUAT_TDM_RX_3},
  644. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  645. LPASS_BE_QUAT_TDM_TX_3},
  646. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  647. LPASS_BE_QUAT_TDM_RX_4},
  648. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  649. LPASS_BE_QUAT_TDM_TX_4},
  650. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  651. LPASS_BE_QUAT_TDM_RX_5},
  652. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  653. LPASS_BE_QUAT_TDM_TX_5},
  654. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  655. LPASS_BE_QUAT_TDM_RX_6},
  656. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  657. LPASS_BE_QUAT_TDM_TX_6},
  658. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  659. LPASS_BE_QUAT_TDM_RX_7},
  660. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  661. LPASS_BE_QUAT_TDM_TX_7},
  662. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  663. LPASS_BE_QUIN_TDM_RX_0},
  664. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  665. LPASS_BE_QUIN_TDM_TX_0},
  666. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  667. LPASS_BE_QUIN_TDM_RX_1},
  668. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  669. LPASS_BE_QUIN_TDM_TX_1},
  670. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  671. LPASS_BE_QUIN_TDM_RX_2},
  672. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  673. LPASS_BE_QUIN_TDM_TX_2},
  674. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  675. LPASS_BE_QUIN_TDM_RX_3},
  676. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  677. LPASS_BE_QUIN_TDM_TX_3},
  678. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  679. LPASS_BE_QUIN_TDM_RX_4},
  680. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  681. LPASS_BE_QUIN_TDM_TX_4},
  682. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  683. LPASS_BE_QUIN_TDM_RX_5},
  684. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  685. LPASS_BE_QUIN_TDM_TX_5},
  686. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  687. LPASS_BE_QUIN_TDM_RX_6},
  688. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  689. LPASS_BE_QUIN_TDM_TX_6},
  690. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  691. LPASS_BE_QUIN_TDM_RX_7},
  692. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  693. LPASS_BE_QUIN_TDM_TX_7},
  694. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  695. LPASS_BE_SEN_TDM_RX_0},
  696. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  697. LPASS_BE_SEN_TDM_TX_0},
  698. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  699. LPASS_BE_SEN_TDM_RX_1},
  700. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  701. LPASS_BE_SEN_TDM_TX_1},
  702. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  703. LPASS_BE_SEN_TDM_RX_2},
  704. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  705. LPASS_BE_SEN_TDM_TX_2},
  706. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  707. LPASS_BE_SEN_TDM_RX_3},
  708. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  709. LPASS_BE_SEN_TDM_TX_3},
  710. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  711. LPASS_BE_SEN_TDM_RX_4},
  712. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  713. LPASS_BE_SEN_TDM_TX_4},
  714. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  715. LPASS_BE_SEN_TDM_RX_5},
  716. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  717. LPASS_BE_SEN_TDM_TX_5},
  718. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  719. LPASS_BE_SEN_TDM_RX_6},
  720. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  721. LPASS_BE_SEN_TDM_TX_6},
  722. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  723. LPASS_BE_SEN_TDM_RX_7},
  724. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  725. LPASS_BE_SEN_TDM_TX_7},
  726. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  727. LPASS_BE_INT_BT_A2DP_RX},
  728. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  729. LPASS_BE_USB_AUDIO_RX},
  730. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  731. LPASS_BE_USB_AUDIO_TX},
  732. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  733. LPASS_BE_DISPLAY_PORT},
  734. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  735. LPASS_BE_DISPLAY_PORT1},
  736. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  737. LPASS_BE_TERT_AUXPCM_RX},
  738. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  739. LPASS_BE_TERT_AUXPCM_TX},
  740. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  741. LPASS_BE_QUAT_AUXPCM_RX},
  742. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  743. LPASS_BE_QUAT_AUXPCM_TX},
  744. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  745. LPASS_BE_QUIN_AUXPCM_RX},
  746. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  747. LPASS_BE_QUIN_AUXPCM_TX},
  748. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  749. LPASS_BE_INT0_MI2S_RX},
  750. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  751. LPASS_BE_INT0_MI2S_TX},
  752. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  753. LPASS_BE_INT1_MI2S_RX},
  754. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  755. LPASS_BE_INT1_MI2S_TX},
  756. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  757. LPASS_BE_INT2_MI2S_RX},
  758. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  759. LPASS_BE_INT2_MI2S_TX},
  760. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  761. LPASS_BE_INT3_MI2S_RX},
  762. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  763. LPASS_BE_INT3_MI2S_TX},
  764. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  765. LPASS_BE_INT4_MI2S_RX},
  766. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  767. LPASS_BE_INT4_MI2S_TX},
  768. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  769. LPASS_BE_INT5_MI2S_RX},
  770. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  771. LPASS_BE_INT5_MI2S_TX},
  772. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  773. LPASS_BE_INT6_MI2S_RX},
  774. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  775. LPASS_BE_INT6_MI2S_TX},
  776. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  777. LPASS_BE_SEN_AUXPCM_RX},
  778. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  779. LPASS_BE_SEN_AUXPCM_TX},
  780. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  781. LPASS_BE_SENARY_MI2S_RX},
  782. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  783. LPASS_BE_WSA_CDC_DMA_RX_0},
  784. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  785. LPASS_BE_WSA_CDC_DMA_TX_0},
  786. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  787. LPASS_BE_WSA_CDC_DMA_RX_1},
  788. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  789. LPASS_BE_WSA_CDC_DMA_TX_1},
  790. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  791. LPASS_BE_WSA_CDC_DMA_TX_2},
  792. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  793. LPASS_BE_VA_CDC_DMA_TX_0},
  794. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  795. LPASS_BE_VA_CDC_DMA_TX_1},
  796. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  797. LPASS_BE_VA_CDC_DMA_TX_2},
  798. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  799. LPASS_BE_RX_CDC_DMA_RX_0},
  800. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  801. LPASS_BE_TX_CDC_DMA_TX_0},
  802. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  803. LPASS_BE_RX_CDC_DMA_RX_1},
  804. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  805. LPASS_BE_TX_CDC_DMA_TX_1},
  806. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  807. LPASS_BE_RX_CDC_DMA_RX_2},
  808. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  809. LPASS_BE_TX_CDC_DMA_TX_2},
  810. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  811. LPASS_BE_RX_CDC_DMA_RX_3},
  812. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  813. LPASS_BE_TX_CDC_DMA_TX_3},
  814. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  815. LPASS_BE_RX_CDC_DMA_RX_4},
  816. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  817. LPASS_BE_TX_CDC_DMA_TX_4},
  818. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  819. LPASS_BE_RX_CDC_DMA_RX_5},
  820. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  821. LPASS_BE_TX_CDC_DMA_TX_5},
  822. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  823. LPASS_BE_RX_CDC_DMA_RX_6},
  824. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  825. LPASS_BE_RX_CDC_DMA_RX_7},
  826. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  827. LPASS_BE_PRI_SPDIF_TX},
  828. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  829. LPASS_BE_SEC_SPDIF_RX},
  830. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  831. LPASS_BE_SEC_SPDIF_TX},
  832. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  833. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  834. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  835. { AFE_PORT_ID_PRIMARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  836. LPASS_BE_PRI_META_MI2S_RX},
  837. { AFE_PORT_ID_SECONDARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  838. LPASS_BE_SEC_META_MI2S_RX},
  839. { RT_PROXY_PORT_002_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PROXY_RX},
  840. { RT_PROXY_PORT_002_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PROXY_TX},
  841. { HDMI_RX_MS, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI_MS},
  842. };
  843. /* Track ASM playback & capture sessions of DAI
  844. * Track LSM listen sessions
  845. */
  846. static struct msm_pcm_routing_fdai_data
  847. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  848. /* MULTIMEDIA1 */
  849. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  850. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  851. /* MULTIMEDIA2 */
  852. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  853. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  854. /* MULTIMEDIA3 */
  855. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  856. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  857. /* MULTIMEDIA4 */
  858. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  859. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  860. /* MULTIMEDIA5 */
  861. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  862. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  863. /* MULTIMEDIA6 */
  864. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  865. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  866. /* MULTIMEDIA7*/
  867. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  868. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  869. /* MULTIMEDIA8 */
  870. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  871. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  872. /* MULTIMEDIA9 */
  873. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  874. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  875. /* MULTIMEDIA10 */
  876. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  877. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  878. /* MULTIMEDIA11 */
  879. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  880. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  881. /* MULTIMEDIA12 */
  882. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  883. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  884. /* MULTIMEDIA13 */
  885. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  886. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  887. /* MULTIMEDIA14 */
  888. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  889. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  890. /* MULTIMEDIA15 */
  891. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  892. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  893. /* MULTIMEDIA16 */
  894. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  895. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  896. /* MULTIMEDIA17 */
  897. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  898. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  899. /* MULTIMEDIA18 */
  900. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  901. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  902. /* MULTIMEDIA19 */
  903. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  904. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  905. /* MULTIMEDIA20 */
  906. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  907. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  908. /* MULTIMEDIA21 */
  909. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  910. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  911. /* MULTIMEDIA22 */
  912. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  913. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  914. /* MULTIMEDIA23 */
  915. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  916. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  917. /* MULTIMEDIA24 */
  918. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  919. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  920. /* MULTIMEDIA25 */
  921. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  922. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  923. /* MULTIMEDIA26 */
  924. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  925. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  926. /* MULTIMEDIA27 */
  927. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  928. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  929. /* MULTIMEDIA28 */
  930. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  931. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  932. /* MULTIMEDIA29 */
  933. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  934. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  935. /* MULTIMEDIA30 */
  936. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  937. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  938. /* VOIP */
  939. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  940. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  941. /* AFE_RX */
  942. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  943. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  944. /* AFE_TX */
  945. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  946. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  947. /* VOICE_STUB */
  948. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  949. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  950. /* DTMF_RX */
  951. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  952. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  953. /* QCHAT */
  954. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  955. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  956. /* VOLTE_STUB */
  957. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  958. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  959. /* LSM1 */
  960. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  961. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  962. /* LSM2 */
  963. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  964. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  965. /* LSM3 */
  966. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  967. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  968. /* LSM4 */
  969. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  970. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  971. /* LSM5 */
  972. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  973. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  974. /* LSM6 */
  975. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  976. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  977. /* LSM7 */
  978. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  979. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  980. /* LSM8 */
  981. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  982. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  983. /* VOICE2_STUB */
  984. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  985. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  986. /* VOICEMMODE1 */
  987. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  988. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  989. /* VOICEMMODE2 */
  990. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  991. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  992. };
  993. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  994. [MSM_BACKEND_DAI_MAX];
  995. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  996. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  997. static struct msm_pcm_stream_app_type_cfg
  998. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  999. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  1000. /* The caller of this should acquire routing lock */
  1001. void msm_pcm_routing_get_bedai_info(int be_idx,
  1002. struct msm_pcm_routing_bdai_data *be_dai)
  1003. {
  1004. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  1005. memcpy(be_dai, &msm_bedais[be_idx],
  1006. sizeof(struct msm_pcm_routing_bdai_data));
  1007. }
  1008. /* The caller of this should acquire routing lock */
  1009. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  1010. struct msm_pcm_routing_fdai_data *fe_dai)
  1011. {
  1012. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  1013. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  1014. sizeof(struct msm_pcm_routing_fdai_data));
  1015. }
  1016. void msm_pcm_routing_acquire_lock(void)
  1017. {
  1018. mutex_lock(&routing_lock);
  1019. }
  1020. void msm_pcm_routing_release_lock(void)
  1021. {
  1022. mutex_unlock(&routing_lock);
  1023. }
  1024. static int msm_pcm_routing_get_app_type_idx(int app_type)
  1025. {
  1026. int idx;
  1027. pr_debug("%s: app_type: %d\n", __func__, app_type);
  1028. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  1029. if (app_type_cfg[idx].app_type == app_type)
  1030. return idx;
  1031. }
  1032. pr_info("%s: App type not available, fallback to default\n", __func__);
  1033. return 0;
  1034. }
  1035. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  1036. {
  1037. int idx;
  1038. pr_debug("%s: app_type: %d\n", __func__, app_type);
  1039. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  1040. if (lsm_app_type_cfg[idx].app_type == app_type)
  1041. return idx;
  1042. }
  1043. pr_debug("%s: App type not available, fallback to default\n", __func__);
  1044. return 0;
  1045. }
  1046. static int get_port_id(int port_id)
  1047. {
  1048. int ret = port_id;
  1049. if (port_id == AFE_LOOPBACK_TX) {
  1050. /*
  1051. * Return afe_loopback_tx_port_id if set. Else return
  1052. * msm_ec_ref_port_id to maintain backward compatibility.
  1053. */
  1054. if (afe_loopback_tx_port_id != -1)
  1055. ret = afe_loopback_tx_port_id;
  1056. else
  1057. ret = msm_ec_ref_port_id;
  1058. }
  1059. return ret;
  1060. }
  1061. static bool is_mm_lsm_fe_id(int fe_id)
  1062. {
  1063. bool rc = true;
  1064. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  1065. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  1066. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  1067. rc = false;
  1068. }
  1069. return rc;
  1070. }
  1071. /*
  1072. * msm_pcm_routing_send_chmix_cfg:
  1073. * send the channel mixer command to mix the input channels
  1074. * into output channels.
  1075. *
  1076. * @fe_id: front end id
  1077. * @ip_channel_cnt: input channel count
  1078. * @op_channel_cnt: output channel count
  1079. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  1080. * @session_type: indicates session is of type TX or RX
  1081. * @stream_type: indicates either Audio or Listen stream type
  1082. */
  1083. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  1084. int op_channel_cnt, int *ch_wght_coeff,
  1085. int session_type, int stream_type)
  1086. {
  1087. int rc = 0, idx = 0;
  1088. int be_index = 0, port_id;
  1089. unsigned int session_id = 0;
  1090. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  1091. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  1092. stream_type);
  1093. if (!is_mm_lsm_fe_id(fe_id)) {
  1094. /* bad ID assigned in machine driver */
  1095. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1096. return -EINVAL;
  1097. }
  1098. if (ch_wght_coeff == NULL) {
  1099. pr_err("%s: Null channel weightage coefficients passed\n",
  1100. __func__);
  1101. return -EINVAL;
  1102. }
  1103. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  1104. port_id = msm_bedais[be_index].port_id;
  1105. if (!msm_bedais[be_index].active ||
  1106. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  1107. continue;
  1108. session_id = fe_dai_map[fe_id][session_type].strm_id;
  1109. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  1110. unsigned long copp =
  1111. session_copp_map[fe_id][session_type][be_index];
  1112. if (!test_bit(idx, &copp))
  1113. continue;
  1114. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  1115. session_id, ip_channel_cnt,
  1116. op_channel_cnt, ch_wght_coeff,
  1117. session_type, stream_type);
  1118. if (rc < 0)
  1119. pr_err("%s: err setting channel mix config\n",
  1120. __func__);
  1121. }
  1122. }
  1123. return 0;
  1124. }
  1125. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  1126. /**
  1127. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  1128. * setting before use case start.
  1129. *
  1130. * @fe_id: frontend idx
  1131. * @type: stream direction type
  1132. * @params: parameters of channel mixer setting
  1133. *
  1134. * Return 0 for success
  1135. */
  1136. int msm_pcm_routing_set_channel_mixer_cfg(
  1137. int fe_id, int type,
  1138. struct msm_pcm_channel_mixer *params)
  1139. {
  1140. int i, j = 0;
  1141. channel_mixer_v2[fe_id][type].enable = params->enable;
  1142. channel_mixer_v2[fe_id][type].rule = params->rule;
  1143. channel_mixer_v2[fe_id][type].input_channel =
  1144. params->input_channel;
  1145. channel_mixer_v2[fe_id][type].output_channel =
  1146. params->output_channel;
  1147. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  1148. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  1149. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  1150. params->in_ch_map[i];
  1151. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  1152. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  1153. params->out_ch_map[i];
  1154. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  1155. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  1156. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  1157. params->channel_weight[i][j];
  1158. channel_mixer_v2[fe_id][type].override_in_ch_map =
  1159. params->override_in_ch_map;
  1160. channel_mixer_v2[fe_id][type].override_out_ch_map =
  1161. params->override_out_ch_map;
  1162. return 0;
  1163. }
  1164. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  1165. int msm_pcm_routing_reg_stream_app_type_cfg(
  1166. int fedai_id, int session_type, int be_id,
  1167. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1168. {
  1169. int ret = 0;
  1170. if (cfg_data == NULL) {
  1171. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  1172. ret = -EINVAL;
  1173. goto done;
  1174. }
  1175. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d copp_token %d\n",
  1176. __func__, fedai_id, session_type, be_id,
  1177. cfg_data->app_type, cfg_data->acdb_dev_id,
  1178. cfg_data->sample_rate, cfg_data->copp_token);
  1179. if (!is_mm_lsm_fe_id(fedai_id)) {
  1180. pr_err("%s: Invalid machine driver ID %d\n",
  1181. __func__, fedai_id);
  1182. ret = -EINVAL;
  1183. goto done;
  1184. }
  1185. if (session_type != SESSION_TYPE_RX &&
  1186. session_type != SESSION_TYPE_TX) {
  1187. pr_err("%s: Invalid session type %d\n",
  1188. __func__, session_type);
  1189. ret = -EINVAL;
  1190. goto done;
  1191. }
  1192. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1193. pr_err("%s: Received out of bounds be_id %d\n",
  1194. __func__, be_id);
  1195. ret = -EINVAL;
  1196. goto done;
  1197. }
  1198. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1199. /*
  1200. * Store the BE ID of the configuration information set as the latest so
  1201. * the get mixer control knows what to return.
  1202. */
  1203. last_be_id_configured[fedai_id][session_type] = be_id;
  1204. done:
  1205. return ret;
  1206. }
  1207. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1208. /**
  1209. * msm_pcm_routing_get_stream_app_type_cfg
  1210. *
  1211. * Receives fedai_id, session_type, be_id, and populates app_type,
  1212. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1213. * -EINVAL and does not alter passed values.
  1214. *
  1215. * fedai_id - Passed value, front end ID for which app type config is wanted
  1216. * session_type - Passed value, session type for which app type config
  1217. * is wanted
  1218. * be_id - Returned value, back end device id the app type config data is for
  1219. * cfg_data - Returned value, configuration data used by app type config
  1220. */
  1221. int msm_pcm_routing_get_stream_app_type_cfg(
  1222. int fedai_id, int session_type, int *bedai_id,
  1223. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1224. {
  1225. int be_id;
  1226. int ret = 0;
  1227. if (bedai_id == NULL) {
  1228. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1229. ret = -EINVAL;
  1230. goto done;
  1231. } else if (cfg_data == NULL) {
  1232. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1233. ret = -EINVAL;
  1234. goto done;
  1235. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1236. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1237. ret = -EINVAL;
  1238. goto done;
  1239. } else if (session_type != SESSION_TYPE_RX &&
  1240. session_type != SESSION_TYPE_TX) {
  1241. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1242. ret = -EINVAL;
  1243. goto done;
  1244. }
  1245. be_id = last_be_id_configured[fedai_id][session_type];
  1246. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1247. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1248. ret = -EINVAL;
  1249. goto done;
  1250. }
  1251. *bedai_id = be_id;
  1252. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1253. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d copp_token %d\n",
  1254. __func__, fedai_id, session_type, *bedai_id,
  1255. cfg_data->app_type, cfg_data->acdb_dev_id,
  1256. cfg_data->sample_rate, cfg_data->copp_token);
  1257. done:
  1258. return ret;
  1259. }
  1260. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1261. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1262. int cal_index)
  1263. {
  1264. struct list_head *ptr, *next;
  1265. struct cal_block_data *cal_block = NULL;
  1266. pr_debug("%s\n", __func__);
  1267. list_for_each_safe(ptr, next,
  1268. &cal_data[cal_index]->cal_blocks) {
  1269. cal_block = list_entry(ptr,
  1270. struct cal_block_data, list);
  1271. if (cal_utils_is_cal_stale(cal_block))
  1272. continue;
  1273. if (((struct audio_cal_info_adm_top *)cal_block
  1274. ->cal_info)->path == path) {
  1275. return cal_block;
  1276. }
  1277. }
  1278. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1279. return NULL;
  1280. }
  1281. static struct cal_block_data *msm_routing_find_topology(int path,
  1282. int app_type,
  1283. int acdb_id,
  1284. int cal_index,
  1285. bool exact)
  1286. {
  1287. struct list_head *ptr, *next;
  1288. struct cal_block_data *cal_block = NULL;
  1289. struct audio_cal_info_adm_top *cal_info;
  1290. pr_debug("%s\n", __func__);
  1291. list_for_each_safe(ptr, next,
  1292. &cal_data[cal_index]->cal_blocks) {
  1293. cal_block = list_entry(ptr,
  1294. struct cal_block_data, list);
  1295. if (cal_utils_is_cal_stale(cal_block))
  1296. continue;
  1297. cal_info = (struct audio_cal_info_adm_top *)
  1298. cal_block->cal_info;
  1299. if ((cal_info->path == path) &&
  1300. (cal_info->app_type == app_type) &&
  1301. (cal_info->acdb_id == acdb_id)) {
  1302. return cal_block;
  1303. }
  1304. }
  1305. pr_debug("%s: Can't find topology for path %d, app %d, "
  1306. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1307. exact ? "fail" : "defaulting to search by path");
  1308. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1309. cal_index);
  1310. }
  1311. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1312. int acdb_dev_id, int idx,
  1313. bool exact)
  1314. {
  1315. int topology = -EINVAL;
  1316. struct cal_block_data *cal_block = NULL;
  1317. mutex_lock(&cal_data[idx]->lock);
  1318. cal_block = msm_routing_find_topology(session_type, app_type,
  1319. acdb_dev_id, idx, exact);
  1320. if (cal_block != NULL) {
  1321. topology = ((struct audio_cal_info_adm_top *)
  1322. cal_block->cal_info)->topology;
  1323. }
  1324. mutex_unlock(&cal_data[idx]->lock);
  1325. return topology;
  1326. }
  1327. /*
  1328. * Retrieving cal_block will mark cal_block as stale.
  1329. * Hence it cannot be reused or resent unless the flag
  1330. * is reset.
  1331. */
  1332. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1333. int be_id)
  1334. {
  1335. int topology = NULL_COPP_TOPOLOGY;
  1336. int app_type = 0, acdb_dev_id = 0;
  1337. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1338. __func__, fedai_id, session_type, be_id);
  1339. if (cal_data == NULL)
  1340. goto done;
  1341. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1342. acdb_dev_id =
  1343. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1344. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1345. topology = msm_routing_find_topology_on_index(session_type,
  1346. app_type,
  1347. acdb_dev_id,
  1348. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1349. true /*exact*/);
  1350. if (topology < 0) {
  1351. pr_debug("%s: Check for compatible topology\n", __func__);
  1352. topology = msm_routing_find_topology_on_index(session_type,
  1353. app_type,
  1354. acdb_dev_id,
  1355. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1356. false /*exact*/);
  1357. if (topology < 0)
  1358. topology = NULL_COPP_TOPOLOGY;
  1359. }
  1360. done:
  1361. pr_debug("%s: Using topology %d\n", __func__, topology);
  1362. return topology;
  1363. }
  1364. static uint8_t is_be_dai_extproc(int be_dai)
  1365. {
  1366. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1367. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1368. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1369. return 1;
  1370. else
  1371. return 0;
  1372. }
  1373. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1374. int path_type, int perf_mode,
  1375. uint32_t passthr_mode)
  1376. {
  1377. int i, port_type, j, num_copps = 0;
  1378. struct route_payload payload;
  1379. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1380. path_type == ADM_PATH_COMPRESSED_RX) ?
  1381. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1382. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1383. if (!is_be_dai_extproc(i) &&
  1384. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1385. (msm_bedais[i].active) &&
  1386. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1387. int port_id = get_port_id(msm_bedais[i].port_id);
  1388. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1389. unsigned long copp =
  1390. session_copp_map[fedai_id][sess_type][i];
  1391. if (test_bit(j, &copp)) {
  1392. payload.port_id[num_copps] = port_id;
  1393. payload.copp_idx[num_copps] = j;
  1394. payload.app_type[num_copps] =
  1395. fe_dai_app_type_cfg
  1396. [fedai_id][sess_type][i]
  1397. .app_type;
  1398. payload.acdb_dev_id[num_copps] =
  1399. fe_dai_app_type_cfg
  1400. [fedai_id][sess_type][i]
  1401. .acdb_dev_id;
  1402. payload.sample_rate[num_copps] =
  1403. fe_dai_app_type_cfg
  1404. [fedai_id][sess_type][i]
  1405. .sample_rate;
  1406. num_copps++;
  1407. }
  1408. }
  1409. }
  1410. }
  1411. if (num_copps) {
  1412. payload.num_copps = num_copps;
  1413. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1414. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1415. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1416. }
  1417. }
  1418. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1419. int stream_type)
  1420. {
  1421. int i, session_type, path_type, port_type;
  1422. u32 mode = 0;
  1423. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1424. /* bad ID assigned in machine driver */
  1425. pr_err("%s: bad MM ID\n", __func__);
  1426. return;
  1427. }
  1428. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1429. session_type = SESSION_TYPE_RX;
  1430. path_type = ADM_PATH_PLAYBACK;
  1431. port_type = MSM_AFE_PORT_TYPE_RX;
  1432. } else {
  1433. session_type = SESSION_TYPE_TX;
  1434. path_type = ADM_PATH_LIVE_REC;
  1435. port_type = MSM_AFE_PORT_TYPE_TX;
  1436. }
  1437. mutex_lock(&routing_lock);
  1438. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1439. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1440. if (!is_be_dai_extproc(i) &&
  1441. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1442. (msm_bedais[i].active) &&
  1443. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1444. mode = afe_get_port_type(msm_bedais[i].port_id);
  1445. adm_connect_afe_port(mode, dspst_id,
  1446. msm_bedais[i].port_id);
  1447. break;
  1448. }
  1449. }
  1450. mutex_unlock(&routing_lock);
  1451. }
  1452. static bool route_check_fe_id_adm_support(int fe_id)
  1453. {
  1454. bool rc = true;
  1455. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1456. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1457. /* fe id is listen while port is set to afe */
  1458. if (lsm_port_index[fe_id - MSM_FRONTEND_DAI_LSM1] !=
  1459. ADM_LSM_PORT_INDEX) {
  1460. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1461. __func__, fe_id,
  1462. lsm_port_index[fe_id - MSM_FRONTEND_DAI_LSM1]);
  1463. rc = false;
  1464. }
  1465. }
  1466. return rc;
  1467. }
  1468. /*
  1469. * msm_pcm_routing_get_pp_ch_cnt:
  1470. * Read the processed channel count
  1471. *
  1472. * @fe_id: Front end ID
  1473. * @session_type: Inidicates RX or TX session type
  1474. */
  1475. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1476. {
  1477. struct msm_pcm_stream_app_type_cfg cfg_data;
  1478. int be_id = 0, app_type_idx = 0, app_type = 0;
  1479. int ret = -EINVAL;
  1480. memset(&cfg_data, 0, sizeof(cfg_data));
  1481. if (!is_mm_lsm_fe_id(fe_id)) {
  1482. pr_err("%s: bad MM ID\n", __func__);
  1483. return -EINVAL;
  1484. }
  1485. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1486. &be_id, &cfg_data);
  1487. if (ret) {
  1488. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1489. return ret;
  1490. }
  1491. app_type = cfg_data.app_type;
  1492. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1493. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1494. }
  1495. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1496. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1497. int dspst_id, int stream_type,
  1498. uint32_t passthr_mode)
  1499. {
  1500. int i, j, session_type, path_type, port_type, topology;
  1501. int num_copps = 0;
  1502. struct route_payload payload;
  1503. u32 channels, sample_rate;
  1504. u16 bit_width = 16, be_bit_width;
  1505. bool is_lsm;
  1506. uint32_t copp_token = 0;
  1507. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1508. __func__, fe_id, perf_mode, dspst_id,
  1509. stream_type, passthr_mode);
  1510. if (!is_mm_lsm_fe_id(fe_id)) {
  1511. /* bad ID assigned in machine driver */
  1512. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1513. return -EINVAL;
  1514. }
  1515. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1516. session_type = SESSION_TYPE_RX;
  1517. if (passthr_mode != LEGACY_PCM)
  1518. path_type = ADM_PATH_COMPRESSED_RX;
  1519. else
  1520. path_type = ADM_PATH_PLAYBACK;
  1521. port_type = MSM_AFE_PORT_TYPE_RX;
  1522. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1523. session_type = SESSION_TYPE_TX;
  1524. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1525. path_type = ADM_PATH_COMPRESSED_TX;
  1526. else
  1527. path_type = ADM_PATH_LIVE_REC;
  1528. port_type = MSM_AFE_PORT_TYPE_TX;
  1529. } else {
  1530. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1531. return -EINVAL;
  1532. }
  1533. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1534. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1535. mutex_lock(&routing_lock);
  1536. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1537. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1538. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1539. if (!route_check_fe_id_adm_support(fe_id)) {
  1540. /* ignore adm open if not supported for fe_id */
  1541. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1542. mutex_unlock(&routing_lock);
  1543. return 0;
  1544. }
  1545. payload.num_copps = 0; /* only RX needs to use payload */
  1546. /* re-enable EQ if active */
  1547. msm_qti_pp_send_eq_values(fe_id);
  1548. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1549. if (!is_be_dai_extproc(i) &&
  1550. (afe_get_port_type(msm_bedais[i].port_id) ==
  1551. port_type) &&
  1552. (msm_bedais[i].active) &&
  1553. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1554. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1555. int port_id = get_port_id(msm_bedais[i].port_id);
  1556. /*
  1557. * check if ADM needs to be configured with different
  1558. * channel mapping than backend
  1559. */
  1560. if (!msm_bedais[i].adm_override_ch)
  1561. channels = msm_bedais[i].channel;
  1562. else
  1563. channels = msm_bedais[i].adm_override_ch;
  1564. bit_width = msm_routing_get_bit_width(
  1565. msm_bedais[i].format);
  1566. app_type =
  1567. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1568. if (app_type && is_lsm) {
  1569. app_type_idx =
  1570. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1571. sample_rate =
  1572. fe_dai_app_type_cfg[fe_id][session_type][i]
  1573. .sample_rate;
  1574. bit_width =
  1575. lsm_app_type_cfg[app_type_idx].bit_width;
  1576. } else if (app_type) {
  1577. app_type_idx =
  1578. msm_pcm_routing_get_app_type_idx(
  1579. app_type);
  1580. sample_rate =
  1581. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1582. bit_width =
  1583. app_type_cfg[app_type_idx].bit_width;
  1584. copp_token =
  1585. fe_dai_app_type_cfg[fe_id][session_type][i].copp_token;
  1586. } else {
  1587. sample_rate = msm_bedais[i].sample_rate;
  1588. }
  1589. acdb_dev_id =
  1590. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1591. topology = msm_routing_get_adm_topology(fe_id,
  1592. session_type,
  1593. i);
  1594. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1595. || (passthr_mode ==
  1596. COMPRESSED_PASSTHROUGH_GEN)
  1597. || (passthr_mode ==
  1598. COMPRESSED_PASSTHROUGH_IEC61937))
  1599. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1600. pr_debug("%s: Before adm open topology %d\n", __func__,
  1601. topology);
  1602. be_bit_width = msm_routing_get_bit_width(
  1603. msm_bedais[i].format);
  1604. if (hifi_filter_enabled && (msm_bedais[i].sample_rate
  1605. == 384000 || msm_bedais[i].sample_rate ==
  1606. 352800) && be_bit_width == 32)
  1607. bit_width = msm_routing_get_bit_width(
  1608. SNDRV_PCM_FORMAT_S32_LE);
  1609. copp_idx =
  1610. adm_open(port_id, path_type, sample_rate,
  1611. channels, topology, perf_mode,
  1612. bit_width, app_type, acdb_dev_id,
  1613. session_type, passthr_mode, copp_token);
  1614. if ((copp_idx < 0) ||
  1615. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1616. pr_err("%s:adm open failed coppid:%d\n",
  1617. __func__, copp_idx);
  1618. mutex_unlock(&routing_lock);
  1619. return -EINVAL;
  1620. }
  1621. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1622. __func__, fe_id, session_type, i);
  1623. set_bit(copp_idx,
  1624. &session_copp_map[fe_id][session_type][i]);
  1625. if (msm_is_resample_needed(
  1626. sample_rate,
  1627. msm_bedais[i].sample_rate))
  1628. adm_copp_mfc_cfg(port_id, copp_idx,
  1629. msm_bedais[i].sample_rate);
  1630. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1631. unsigned long copp =
  1632. session_copp_map[fe_id][session_type][i];
  1633. if (test_bit(j, &copp)) {
  1634. payload.port_id[num_copps] = port_id;
  1635. payload.copp_idx[num_copps] = j;
  1636. payload.app_type[num_copps] =
  1637. fe_dai_app_type_cfg
  1638. [fe_id][session_type][i]
  1639. .app_type;
  1640. payload.acdb_dev_id[num_copps] =
  1641. fe_dai_app_type_cfg
  1642. [fe_id][session_type][i]
  1643. .acdb_dev_id;
  1644. payload.sample_rate[num_copps] =
  1645. fe_dai_app_type_cfg
  1646. [fe_id][session_type][i]
  1647. .sample_rate;
  1648. num_copps++;
  1649. }
  1650. }
  1651. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1652. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1653. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1654. msm_routing_send_device_pp_params(port_id,
  1655. copp_idx, fe_id);
  1656. }
  1657. }
  1658. if (num_copps) {
  1659. payload.num_copps = num_copps;
  1660. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1661. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1662. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1663. }
  1664. mutex_unlock(&routing_lock);
  1665. return 0;
  1666. }
  1667. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1668. {
  1669. u32 session_id;
  1670. switch (val) {
  1671. case MSM_FRONTEND_DAI_QCHAT:
  1672. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1673. break;
  1674. case MSM_FRONTEND_DAI_VOIP:
  1675. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1676. break;
  1677. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1678. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1679. break;
  1680. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1681. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1682. break;
  1683. default:
  1684. session_id = 0;
  1685. }
  1686. pr_debug("%s session_id 0x%x", __func__, session_id);
  1687. return session_id;
  1688. }
  1689. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1690. int dspst_id, int stream_type)
  1691. {
  1692. int copp_idx = 0;
  1693. int sess_type = 0;
  1694. int j = 0, be_id = 0;
  1695. int ret = 0;
  1696. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1697. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1698. return 0;
  1699. }
  1700. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1701. sess_type = SESSION_TYPE_RX;
  1702. else
  1703. sess_type = SESSION_TYPE_TX;
  1704. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1705. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1706. __func__, fe_id, sess_type);
  1707. return 0;
  1708. }
  1709. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1710. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1711. channel_mixer_v2[fe_id][sess_type].input_channel;
  1712. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1713. __func__, sess_type, fe_id,
  1714. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1715. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1716. msm_bedais[be_id].active);
  1717. if ((msm_bedais[be_id].active) &&
  1718. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1719. unsigned long copp =
  1720. session_copp_map[fe_id][sess_type][be_id];
  1721. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1722. if (test_bit(j, &copp)) {
  1723. copp_idx = j;
  1724. break;
  1725. }
  1726. }
  1727. ret = adm_programable_channel_mixer(
  1728. msm_bedais[be_id].port_id,
  1729. copp_idx, dspst_id, sess_type,
  1730. &channel_mixer_v2[fe_id][sess_type], 0);
  1731. }
  1732. return ret;
  1733. }
  1734. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1735. int dspst_id, int stream_type)
  1736. {
  1737. int copp_idx = 0;
  1738. int sess_type = 0;
  1739. int i = 0, j = 0, be_id;
  1740. int ret = 0;
  1741. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1742. dspst_id, stream_type);
  1743. if (ret) {
  1744. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1745. fe_id);
  1746. return ret;
  1747. }
  1748. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1749. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1750. return 0;
  1751. }
  1752. if (!(channel_mixer[fe_id].enable)) {
  1753. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1754. __func__, fe_id);
  1755. return 0;
  1756. }
  1757. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1758. sess_type = SESSION_TYPE_RX;
  1759. else
  1760. sess_type = SESSION_TYPE_TX;
  1761. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1762. ++i) {
  1763. be_id = channel_input[fe_id][i] - 1;
  1764. channel_mixer[fe_id].input_channels[i] =
  1765. msm_bedais[be_id].channel;
  1766. if ((msm_bedais[be_id].active) &&
  1767. test_bit(fe_id,
  1768. &msm_bedais[be_id].fe_sessions[0])) {
  1769. unsigned long copp =
  1770. session_copp_map[fe_id][sess_type][be_id];
  1771. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1772. if (test_bit(j, &copp)) {
  1773. copp_idx = j;
  1774. break;
  1775. }
  1776. }
  1777. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1778. __func__,
  1779. fe_id, be_id, msm_bedais[be_id].channel,
  1780. copp_idx);
  1781. ret = adm_programable_channel_mixer(
  1782. get_port_id(msm_bedais[be_id].port_id),
  1783. copp_idx, dspst_id, sess_type,
  1784. channel_mixer + fe_id, i);
  1785. }
  1786. }
  1787. return ret;
  1788. }
  1789. /**
  1790. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1791. * setting during runtime.
  1792. *
  1793. * @be_id: backend index
  1794. * @session_id: session index
  1795. * @session_type: session type
  1796. * @params: parameters for channel mixer
  1797. *
  1798. * Retuen: 0 for success, else error
  1799. */
  1800. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1801. int session_type,
  1802. struct msm_pcm_channel_mixer *params)
  1803. {
  1804. int rc = 0;
  1805. int port_id, copp_idx = 0;
  1806. be_id--;
  1807. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1808. pr_err("%s: invalid backend id %d\n", __func__,
  1809. be_id);
  1810. return -EINVAL;
  1811. }
  1812. port_id = msm_bedais[be_id].port_id;
  1813. copp_idx = adm_get_default_copp_idx(port_id);
  1814. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1815. __func__, port_id, copp_idx, session_id);
  1816. if ((params->input_channel < 0) ||
  1817. (params->input_channel > ADM_MAX_CHANNELS)) {
  1818. pr_err("%s: invalid input channel %d\n", __func__,
  1819. params->input_channel);
  1820. return -EINVAL;
  1821. }
  1822. if ((params->output_channel < 0) ||
  1823. (params->output_channel > ADM_MAX_CHANNELS)) {
  1824. pr_err("%s: invalid output channel %d\n", __func__,
  1825. params->output_channel);
  1826. return -EINVAL;
  1827. }
  1828. params->input_channels[0] = params->input_channel;
  1829. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1830. __func__, session_type,
  1831. params->override_in_ch_map,
  1832. params->override_out_ch_map,
  1833. msm_bedais[be_id].active);
  1834. rc = adm_programable_channel_mixer(port_id,
  1835. copp_idx,
  1836. session_id,
  1837. session_type,
  1838. params,
  1839. 0);
  1840. if (rc) {
  1841. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1842. rc = -EINVAL;
  1843. }
  1844. return rc;
  1845. }
  1846. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1847. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1848. int dspst_id, int stream_type)
  1849. {
  1850. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1851. struct route_payload payload;
  1852. u32 channels, sample_rate;
  1853. uint16_t bits_per_sample = 16, be_bit_width;
  1854. uint32_t passthr_mode = LEGACY_PCM;
  1855. int ret = 0;
  1856. uint32_t copp_token = 0;
  1857. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1858. /* bad ID assigned in machine driver */
  1859. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1860. return -EINVAL;
  1861. }
  1862. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1863. session_type = SESSION_TYPE_RX;
  1864. path_type = ADM_PATH_PLAYBACK;
  1865. port_type = MSM_AFE_PORT_TYPE_RX;
  1866. } else {
  1867. session_type = SESSION_TYPE_TX;
  1868. path_type = ADM_PATH_LIVE_REC;
  1869. port_type = MSM_AFE_PORT_TYPE_TX;
  1870. }
  1871. mutex_lock(&routing_lock);
  1872. payload.num_copps = 0; /* only RX needs to use payload */
  1873. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1874. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1875. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1876. /* re-enable EQ if active */
  1877. msm_qti_pp_send_eq_values(fedai_id);
  1878. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1879. if (!is_be_dai_extproc(i) &&
  1880. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1881. (msm_bedais[i].active) &&
  1882. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1883. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1884. int port_id = get_port_id(msm_bedais[i].port_id);
  1885. /*
  1886. * check if ADM needs to be configured with different
  1887. * channel mapping than backend
  1888. */
  1889. if (!msm_bedais[i].adm_override_ch)
  1890. channels = msm_bedais[i].channel;
  1891. else
  1892. channels = msm_bedais[i].adm_override_ch;
  1893. bits_per_sample = msm_routing_get_bit_width(
  1894. msm_bedais[i].format);
  1895. app_type =
  1896. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1897. if (app_type) {
  1898. app_type_idx =
  1899. msm_pcm_routing_get_app_type_idx(app_type);
  1900. sample_rate =
  1901. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1902. .sample_rate;
  1903. bits_per_sample =
  1904. app_type_cfg[app_type_idx].bit_width;
  1905. copp_token =
  1906. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1907. .copp_token;
  1908. } else
  1909. sample_rate = msm_bedais[i].sample_rate;
  1910. acdb_dev_id =
  1911. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1912. .acdb_dev_id;
  1913. topology = msm_routing_get_adm_topology(fedai_id,
  1914. session_type,
  1915. i);
  1916. be_bit_width = msm_routing_get_bit_width(
  1917. msm_bedais[i].format);
  1918. if (hifi_filter_enabled && (msm_bedais[i].sample_rate ==
  1919. 384000 ||msm_bedais[i].sample_rate == 352800)
  1920. && be_bit_width == 32)
  1921. bits_per_sample = msm_routing_get_bit_width(
  1922. SNDRV_PCM_FORMAT_S32_LE);
  1923. copp_idx = adm_open(port_id, path_type,
  1924. sample_rate, channels, topology,
  1925. perf_mode, bits_per_sample,
  1926. app_type, acdb_dev_id,
  1927. session_type, passthr_mode, copp_token);
  1928. if ((copp_idx < 0) ||
  1929. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1930. pr_err("%s: adm open failed copp_idx:%d\n",
  1931. __func__, copp_idx);
  1932. mutex_unlock(&routing_lock);
  1933. return -EINVAL;
  1934. }
  1935. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1936. __func__, fedai_id, session_type, i);
  1937. set_bit(copp_idx,
  1938. &session_copp_map[fedai_id][session_type][i]);
  1939. if (msm_is_resample_needed(
  1940. sample_rate,
  1941. msm_bedais[i].sample_rate))
  1942. adm_copp_mfc_cfg(port_id, copp_idx,
  1943. msm_bedais[i].sample_rate);
  1944. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1945. unsigned long copp =
  1946. session_copp_map[fedai_id][session_type][i];
  1947. if (test_bit(j, &copp)) {
  1948. payload.port_id[num_copps] = port_id;
  1949. payload.copp_idx[num_copps] = j;
  1950. payload.app_type[num_copps] =
  1951. fe_dai_app_type_cfg
  1952. [fedai_id][session_type]
  1953. [i].app_type;
  1954. payload.acdb_dev_id[num_copps] =
  1955. fe_dai_app_type_cfg
  1956. [fedai_id][session_type]
  1957. [i].acdb_dev_id;
  1958. payload.sample_rate[num_copps] =
  1959. fe_dai_app_type_cfg
  1960. [fedai_id][session_type]
  1961. [i].sample_rate;
  1962. num_copps++;
  1963. }
  1964. }
  1965. if (perf_mode == LEGACY_PCM_MODE)
  1966. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1967. topology, channels);
  1968. }
  1969. }
  1970. if (num_copps) {
  1971. payload.num_copps = num_copps;
  1972. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1973. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1974. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1975. }
  1976. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1977. dspst_id, stream_type);
  1978. mutex_unlock(&routing_lock);
  1979. return ret;
  1980. }
  1981. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1982. int dspst_id, int stream_type,
  1983. struct msm_pcm_routing_evt event_info)
  1984. {
  1985. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1986. stream_type)) {
  1987. pr_err("%s: failed to reg phy stream\n", __func__);
  1988. return -EINVAL;
  1989. }
  1990. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1991. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1992. else
  1993. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1994. return 0;
  1995. }
  1996. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1997. {
  1998. int i, port_type, session_type, path_type, topology, port_id;
  1999. struct msm_pcm_routing_fdai_data *fdai;
  2000. if (!is_mm_lsm_fe_id(fedai_id)) {
  2001. /* bad ID assigned in machine driver */
  2002. pr_err("%s: bad MM ID\n", __func__);
  2003. return;
  2004. }
  2005. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  2006. port_type = MSM_AFE_PORT_TYPE_RX;
  2007. session_type = SESSION_TYPE_RX;
  2008. path_type = ADM_PATH_PLAYBACK;
  2009. } else {
  2010. port_type = MSM_AFE_PORT_TYPE_TX;
  2011. session_type = SESSION_TYPE_TX;
  2012. path_type = ADM_PATH_LIVE_REC;
  2013. }
  2014. mutex_lock(&routing_lock);
  2015. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2016. if (!is_be_dai_extproc(i) &&
  2017. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  2018. (msm_bedais[i].active) &&
  2019. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  2020. int idx;
  2021. unsigned long copp =
  2022. session_copp_map[fedai_id][session_type][i];
  2023. fdai = &fe_dai_map[fedai_id][session_type];
  2024. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2025. if (test_bit(idx, &copp))
  2026. break;
  2027. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  2028. pr_debug("%s: copp idx is invalid, exiting\n",
  2029. __func__);
  2030. continue;
  2031. }
  2032. port_id = get_port_id(msm_bedais[i].port_id);
  2033. topology = adm_get_topology_for_port_copp_idx(
  2034. port_id, idx);
  2035. msm_routing_unload_topology(topology);
  2036. adm_close(port_id, fdai->perf_mode, idx);
  2037. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  2038. __func__, copp, fedai_id, session_type, i);
  2039. clear_bit(idx,
  2040. &session_copp_map[fedai_id][session_type][i]);
  2041. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2042. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2043. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2044. (fdai->passthr_mode == LEGACY_PCM))
  2045. msm_pcm_routing_deinit_pp(port_id, topology);
  2046. }
  2047. }
  2048. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  2049. fe_dai_map[fedai_id][session_type].be_srate = 0;
  2050. mutex_unlock(&routing_lock);
  2051. }
  2052. /* Check if FE/BE route is set */
  2053. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  2054. {
  2055. bool rc = false;
  2056. if (!is_mm_lsm_fe_id(fe_id)) {
  2057. /* recheck FE ID in the mixer control defined in this file */
  2058. pr_err("%s: bad MM ID\n", __func__);
  2059. return rc;
  2060. }
  2061. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  2062. rc = true;
  2063. return rc;
  2064. }
  2065. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  2066. {
  2067. int session_type, path_type, topology;
  2068. u32 channels, sample_rate;
  2069. uint16_t bits_per_sample = 16, be_bit_width;
  2070. struct msm_pcm_routing_fdai_data *fdai;
  2071. uint32_t passthr_mode;
  2072. bool is_lsm;
  2073. uint32_t copp_token = 0;
  2074. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2075. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2076. afe_get_port_type(msm_bedais[reg].port_id) ==
  2077. MSM_AFE_PORT_TYPE_RX) {
  2078. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2079. __func__, set, msm_bedais[reg].port_id);
  2080. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2081. } else if (!is_mm_lsm_fe_id(val)) {
  2082. /* recheck FE ID in the mixer control defined in this file */
  2083. pr_err("%s: bad MM ID\n", __func__);
  2084. return;
  2085. }
  2086. if (!route_check_fe_id_adm_support(val)) {
  2087. /* ignore adm open if not supported for fe_id */
  2088. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  2089. if (set)
  2090. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2091. else
  2092. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2093. return;
  2094. }
  2095. session_type =
  2096. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  2097. SESSION_TYPE_RX : SESSION_TYPE_TX;
  2098. fdai = &fe_dai_map[val][session_type];
  2099. passthr_mode = fdai->passthr_mode;
  2100. if (session_type == SESSION_TYPE_RX) {
  2101. if (passthr_mode != LEGACY_PCM)
  2102. path_type = ADM_PATH_COMPRESSED_RX;
  2103. else
  2104. path_type = ADM_PATH_PLAYBACK;
  2105. } else {
  2106. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  2107. path_type = ADM_PATH_COMPRESSED_TX;
  2108. else
  2109. path_type = ADM_PATH_LIVE_REC;
  2110. }
  2111. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  2112. (val <= MSM_FRONTEND_DAI_LSM8);
  2113. mutex_lock(&routing_lock);
  2114. if (set) {
  2115. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2116. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2117. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2118. voc_start_playback(set, msm_bedais[reg].port_id);
  2119. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2120. if (msm_bedais[reg].active && fdai->strm_id !=
  2121. INVALID_SESSION) {
  2122. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  2123. int port_id = get_port_id(msm_bedais[reg].port_id);
  2124. /*
  2125. * check if ADM needs to be configured with different
  2126. * channel mapping than backend
  2127. */
  2128. if (!msm_bedais[reg].adm_override_ch)
  2129. channels = msm_bedais[reg].channel;
  2130. else
  2131. channels = msm_bedais[reg].adm_override_ch;
  2132. if (session_type == SESSION_TYPE_TX &&
  2133. fdai->be_srate &&
  2134. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  2135. pr_debug("%s: flush strm %d diff BE rates\n",
  2136. __func__, fdai->strm_id);
  2137. if (fdai->event_info.event_func)
  2138. fdai->event_info.event_func(
  2139. MSM_PCM_RT_EVT_BUF_RECFG,
  2140. fdai->event_info.priv_data);
  2141. fdai->be_srate = 0; /* might not need it */
  2142. }
  2143. bits_per_sample = msm_routing_get_bit_width(
  2144. msm_bedais[reg].format);
  2145. app_type =
  2146. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  2147. if (app_type && is_lsm) {
  2148. app_type_idx =
  2149. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  2150. sample_rate =
  2151. fe_dai_app_type_cfg[val][session_type][reg]
  2152. .sample_rate;
  2153. bits_per_sample =
  2154. lsm_app_type_cfg[app_type_idx].bit_width;
  2155. } else if (app_type) {
  2156. app_type_idx =
  2157. msm_pcm_routing_get_app_type_idx(app_type);
  2158. sample_rate =
  2159. fe_dai_app_type_cfg[val][session_type][reg]
  2160. .sample_rate;
  2161. bits_per_sample =
  2162. app_type_cfg[app_type_idx].bit_width;
  2163. copp_token =
  2164. fe_dai_app_type_cfg[val][session_type][reg]
  2165. .copp_token;
  2166. } else
  2167. sample_rate = msm_bedais[reg].sample_rate;
  2168. topology = msm_routing_get_adm_topology(val,
  2169. session_type,
  2170. reg);
  2171. acdb_dev_id =
  2172. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  2173. be_bit_width = msm_routing_get_bit_width(
  2174. msm_bedais[reg].format);
  2175. if (hifi_filter_enabled && (msm_bedais[reg].sample_rate
  2176. == 384000 ||msm_bedais[reg].sample_rate ==
  2177. 352800) && be_bit_width == 32)
  2178. bits_per_sample = msm_routing_get_bit_width(
  2179. SNDRV_PCM_FORMAT_S32_LE);
  2180. copp_idx = adm_open(port_id, path_type,
  2181. sample_rate, channels, topology,
  2182. fdai->perf_mode, bits_per_sample,
  2183. app_type, acdb_dev_id,
  2184. session_type, passthr_mode, copp_token);
  2185. if ((copp_idx < 0) ||
  2186. (copp_idx >= MAX_COPPS_PER_PORT)) {
  2187. pr_err("%s: adm open failed\n", __func__);
  2188. mutex_unlock(&routing_lock);
  2189. return;
  2190. }
  2191. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  2192. __func__, val, session_type, reg);
  2193. set_bit(copp_idx,
  2194. &session_copp_map[val][session_type][reg]);
  2195. if (msm_is_resample_needed(
  2196. sample_rate,
  2197. msm_bedais[reg].sample_rate))
  2198. adm_copp_mfc_cfg(port_id, copp_idx,
  2199. msm_bedais[reg].sample_rate);
  2200. if (session_type == SESSION_TYPE_RX &&
  2201. fdai->event_info.event_func)
  2202. fdai->event_info.event_func(
  2203. MSM_PCM_RT_EVT_DEVSWITCH,
  2204. fdai->event_info.priv_data);
  2205. msm_pcm_routing_build_matrix(val, session_type,
  2206. path_type,
  2207. fdai->perf_mode,
  2208. passthr_mode);
  2209. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  2210. (passthr_mode == LEGACY_PCM))
  2211. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  2212. topology, channels);
  2213. }
  2214. } else {
  2215. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2216. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2217. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2218. voc_start_playback(set, msm_bedais[reg].port_id);
  2219. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2220. if (msm_bedais[reg].active && fdai->strm_id !=
  2221. INVALID_SESSION) {
  2222. int idx;
  2223. int port_id;
  2224. unsigned long copp =
  2225. session_copp_map[val][session_type][reg];
  2226. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2227. if (test_bit(idx, &copp))
  2228. break;
  2229. if (idx >= MAX_COPPS_PER_PORT) {
  2230. pr_debug("%s: copp idx is invalid, exiting\n",
  2231. __func__);
  2232. mutex_unlock(&routing_lock);
  2233. return;
  2234. }
  2235. port_id = get_port_id(msm_bedais[reg].port_id);
  2236. topology = adm_get_topology_for_port_copp_idx(port_id,
  2237. idx);
  2238. msm_routing_unload_topology(topology);
  2239. adm_close(port_id, fdai->perf_mode, idx);
  2240. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2241. __func__, copp, val, session_type, reg,
  2242. topology);
  2243. clear_bit(idx,
  2244. &session_copp_map[val][session_type][reg]);
  2245. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2246. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2247. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2248. (passthr_mode == LEGACY_PCM))
  2249. msm_pcm_routing_deinit_pp(port_id, topology);
  2250. msm_pcm_routing_build_matrix(val, session_type,
  2251. path_type,
  2252. fdai->perf_mode,
  2253. passthr_mode);
  2254. }
  2255. }
  2256. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2257. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2258. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2259. mutex_unlock(&routing_lock);
  2260. }
  2261. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2262. struct snd_ctl_elem_value *ucontrol)
  2263. {
  2264. struct soc_mixer_control *mc =
  2265. (struct soc_mixer_control *)kcontrol->private_value;
  2266. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2267. ucontrol->value.integer.value[0] = 1;
  2268. else
  2269. ucontrol->value.integer.value[0] = 0;
  2270. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2271. ucontrol->value.integer.value[0]);
  2272. return 0;
  2273. }
  2274. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2275. struct snd_ctl_elem_value *ucontrol)
  2276. {
  2277. struct snd_soc_dapm_widget *widget =
  2278. snd_soc_dapm_kcontrol_widget(kcontrol);
  2279. struct soc_mixer_control *mc =
  2280. (struct soc_mixer_control *)kcontrol->private_value;
  2281. struct snd_soc_dapm_update *update = NULL;
  2282. if (ucontrol->value.integer.value[0] &&
  2283. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2284. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2285. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2286. update);
  2287. } else if (!ucontrol->value.integer.value[0] &&
  2288. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2289. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2290. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2291. update);
  2292. }
  2293. return 1;
  2294. }
  2295. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2296. struct snd_ctl_elem_value *ucontrol)
  2297. {
  2298. struct soc_mixer_control *mc =
  2299. (struct soc_mixer_control *)kcontrol->private_value;
  2300. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2301. ucontrol->value.integer.value[0] = 1;
  2302. else
  2303. ucontrol->value.integer.value[0] = 0;
  2304. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2305. ucontrol->value.integer.value[0]);
  2306. return 0;
  2307. }
  2308. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2309. struct snd_ctl_elem_value *ucontrol)
  2310. {
  2311. struct snd_soc_dapm_widget *widget =
  2312. snd_soc_dapm_kcontrol_widget(kcontrol);
  2313. struct soc_mixer_control *mc =
  2314. (struct soc_mixer_control *)kcontrol->private_value;
  2315. struct snd_soc_dapm_update *update = NULL;
  2316. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2317. ucontrol->value.integer.value[0]);
  2318. if (ucontrol->value.integer.value[0]) {
  2319. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2320. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2321. snd_soc_dapm_mixer_update_power(widget->dapm,
  2322. kcontrol, 1, update);
  2323. } else if (!ucontrol->value.integer.value[0]) {
  2324. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2325. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2326. snd_soc_dapm_mixer_update_power(widget->dapm,
  2327. kcontrol, 0, update);
  2328. }
  2329. return 1;
  2330. }
  2331. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2332. {
  2333. u32 session_id = 0;
  2334. u16 path_type;
  2335. struct media_format_info voc_be_media_format;
  2336. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2337. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2338. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2339. __func__, val, session_id);
  2340. mutex_lock(&routing_lock);
  2341. if (set)
  2342. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2343. else
  2344. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2345. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2346. afe_get_port_type(msm_bedais[reg].port_id) ==
  2347. MSM_AFE_PORT_TYPE_RX) {
  2348. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2349. __func__, set, msm_bedais[reg].port_id);
  2350. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2351. }
  2352. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2353. MSM_AFE_PORT_TYPE_RX)
  2354. path_type = RX_PATH;
  2355. else
  2356. path_type = TX_PATH;
  2357. if (set) {
  2358. if (msm_bedais[reg].active) {
  2359. voc_set_route_flag(session_id, path_type, 1);
  2360. memset(&voc_be_media_format, 0,
  2361. sizeof(struct media_format_info));
  2362. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2363. voc_be_media_format.num_channels =
  2364. msm_bedais[reg].channel;
  2365. voc_be_media_format.sample_rate =
  2366. msm_bedais[reg].sample_rate;
  2367. voc_be_media_format.bits_per_sample =
  2368. msm_bedais[reg].format;
  2369. /* Defaulting this to 1 for voice call usecases */
  2370. voc_be_media_format.channel_mapping[0] = 1;
  2371. voc_set_device_config(session_id, path_type,
  2372. &voc_be_media_format);
  2373. if (voc_get_route_flag(session_id, TX_PATH) &&
  2374. voc_get_route_flag(session_id, RX_PATH))
  2375. voc_enable_device(session_id);
  2376. } else {
  2377. pr_debug("%s BE is not active\n", __func__);
  2378. }
  2379. } else {
  2380. voc_set_route_flag(session_id, path_type, 0);
  2381. voc_disable_device(session_id);
  2382. }
  2383. mutex_unlock(&routing_lock);
  2384. }
  2385. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2386. struct snd_ctl_elem_value *ucontrol)
  2387. {
  2388. struct soc_mixer_control *mc =
  2389. (struct soc_mixer_control *)kcontrol->private_value;
  2390. mutex_lock(&routing_lock);
  2391. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2392. ucontrol->value.integer.value[0] = 1;
  2393. else
  2394. ucontrol->value.integer.value[0] = 0;
  2395. mutex_unlock(&routing_lock);
  2396. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2397. ucontrol->value.integer.value[0]);
  2398. return 0;
  2399. }
  2400. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2401. struct snd_ctl_elem_value *ucontrol)
  2402. {
  2403. struct snd_soc_dapm_widget *widget =
  2404. snd_soc_dapm_kcontrol_widget(kcontrol);
  2405. struct soc_mixer_control *mc =
  2406. (struct soc_mixer_control *)kcontrol->private_value;
  2407. struct snd_soc_dapm_update *update = NULL;
  2408. if (ucontrol->value.integer.value[0]) {
  2409. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2410. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2411. update);
  2412. } else {
  2413. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2414. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2415. update);
  2416. }
  2417. return 1;
  2418. }
  2419. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2420. struct snd_ctl_elem_value *ucontrol)
  2421. {
  2422. struct soc_mixer_control *mc =
  2423. (struct soc_mixer_control *)kcontrol->private_value;
  2424. mutex_lock(&routing_lock);
  2425. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2426. ucontrol->value.integer.value[0] = 1;
  2427. else
  2428. ucontrol->value.integer.value[0] = 0;
  2429. mutex_unlock(&routing_lock);
  2430. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2431. ucontrol->value.integer.value[0]);
  2432. return 0;
  2433. }
  2434. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2435. struct snd_ctl_elem_value *ucontrol)
  2436. {
  2437. struct snd_soc_dapm_widget *widget =
  2438. snd_soc_dapm_kcontrol_widget(kcontrol);
  2439. struct soc_mixer_control *mc =
  2440. (struct soc_mixer_control *)kcontrol->private_value;
  2441. struct snd_soc_dapm_update *update = NULL;
  2442. if (ucontrol->value.integer.value[0]) {
  2443. mutex_lock(&routing_lock);
  2444. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2445. mutex_unlock(&routing_lock);
  2446. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2447. update);
  2448. } else {
  2449. mutex_lock(&routing_lock);
  2450. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2451. mutex_unlock(&routing_lock);
  2452. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2453. update);
  2454. }
  2455. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2456. ucontrol->value.integer.value[0]);
  2457. return 1;
  2458. }
  2459. /*
  2460. * Return the mapping between port ID and backend ID to enable the AFE callback
  2461. * to determine the acdb_dev_id from the port id
  2462. */
  2463. int msm_pcm_get_be_id_from_port_id(int port_id)
  2464. {
  2465. int i;
  2466. int be_id = -EINVAL;
  2467. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2468. if (msm_bedais[i].port_id == port_id) {
  2469. be_id = i;
  2470. break;
  2471. }
  2472. }
  2473. return be_id;
  2474. }
  2475. /*
  2476. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2477. * correct AFE calibration information by comparing the header information.
  2478. */
  2479. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2480. {
  2481. int acdb_id = -EINVAL;
  2482. int i = 0;
  2483. int session;
  2484. int port_type = afe_get_port_type(port_id);
  2485. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2486. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2487. __func__, port_id, be_id, port_type);
  2488. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2489. session = SESSION_TYPE_TX;
  2490. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2491. session = SESSION_TYPE_RX;
  2492. } else {
  2493. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2494. acdb_id = -EINVAL;
  2495. goto exit;
  2496. }
  2497. if (be_id < 0) {
  2498. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2499. goto exit;
  2500. }
  2501. mutex_lock(&routing_lock);
  2502. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2503. MSM_FRONTEND_DAI_MAX);
  2504. if (i < MSM_FRONTEND_DAI_MAX)
  2505. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2506. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2507. __func__, i, session, be_id, acdb_id);
  2508. mutex_unlock(&routing_lock);
  2509. exit:
  2510. return acdb_id;
  2511. }
  2512. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2513. struct snd_ctl_elem_value *ucontrol)
  2514. {
  2515. ucontrol->value.integer.value[0] = fm_switch_enable;
  2516. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2517. ucontrol->value.integer.value[0]);
  2518. return 0;
  2519. }
  2520. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2521. struct snd_ctl_elem_value *ucontrol)
  2522. {
  2523. struct snd_soc_dapm_widget *widget =
  2524. snd_soc_dapm_kcontrol_widget(kcontrol);
  2525. struct snd_soc_dapm_update *update = NULL;
  2526. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2527. ucontrol->value.integer.value[0]);
  2528. if (ucontrol->value.integer.value[0])
  2529. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2530. update);
  2531. else
  2532. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2533. update);
  2534. fm_switch_enable = ucontrol->value.integer.value[0];
  2535. return 1;
  2536. }
  2537. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2538. struct snd_ctl_elem_value *ucontrol)
  2539. {
  2540. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2541. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2542. ucontrol->value.integer.value[0]);
  2543. return 0;
  2544. }
  2545. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2546. struct snd_ctl_elem_value *ucontrol)
  2547. {
  2548. struct snd_soc_dapm_widget *widget =
  2549. snd_soc_dapm_kcontrol_widget(kcontrol);
  2550. struct snd_soc_dapm_update *update = NULL;
  2551. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2552. ucontrol->value.integer.value[0]);
  2553. if (ucontrol->value.integer.value[0])
  2554. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2555. 1, update);
  2556. else
  2557. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2558. 0, update);
  2559. hfp_switch_enable = ucontrol->value.integer.value[0];
  2560. return 1;
  2561. }
  2562. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2563. struct snd_ctl_elem_value *ucontrol)
  2564. {
  2565. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2566. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2567. ucontrol->value.integer.value[0]);
  2568. return 0;
  2569. }
  2570. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2571. struct snd_ctl_elem_value *ucontrol)
  2572. {
  2573. struct snd_soc_dapm_widget *widget =
  2574. snd_soc_dapm_kcontrol_widget(kcontrol);
  2575. struct snd_soc_dapm_update *update = NULL;
  2576. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2577. ucontrol->value.integer.value[0]);
  2578. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2579. if (a2dp_switch_enable)
  2580. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2581. 1, update);
  2582. else
  2583. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2584. 0, update);
  2585. return 1;
  2586. }
  2587. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2588. struct snd_ctl_elem_value *ucontrol)
  2589. {
  2590. ucontrol->value.integer.value[0] = sco_switch_enable;
  2591. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2592. ucontrol->value.integer.value[0]);
  2593. return 0;
  2594. }
  2595. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2596. struct snd_ctl_elem_value *ucontrol)
  2597. {
  2598. struct snd_soc_dapm_widget *widget =
  2599. snd_soc_dapm_kcontrol_widget(kcontrol);
  2600. struct snd_soc_dapm_update *update = NULL;
  2601. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2602. ucontrol->value.integer.value[0]);
  2603. sco_switch_enable = ucontrol->value.integer.value[0];
  2604. if (sco_switch_enable)
  2605. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2606. 1, update);
  2607. else
  2608. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2609. 0, update);
  2610. return 1;
  2611. }
  2612. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2613. struct snd_ctl_elem_value *ucontrol)
  2614. {
  2615. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2616. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2617. ucontrol->value.integer.value[0]);
  2618. return 0;
  2619. }
  2620. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2621. struct snd_ctl_elem_value *ucontrol)
  2622. {
  2623. struct snd_soc_dapm_widget *widget =
  2624. snd_soc_dapm_kcontrol_widget(kcontrol);
  2625. struct snd_soc_dapm_update *update = NULL;
  2626. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2627. ucontrol->value.integer.value[0]);
  2628. if (ucontrol->value.integer.value[0])
  2629. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2630. update);
  2631. else
  2632. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2633. update);
  2634. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2635. return 1;
  2636. }
  2637. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2638. struct snd_ctl_elem_value *ucontrol)
  2639. {
  2640. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2641. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2642. ucontrol->value.integer.value[0]);
  2643. return 0;
  2644. }
  2645. static int msm_routing_put_int4_mi2s_switch_mixer(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: INT4 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. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2660. return 1;
  2661. }
  2662. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2663. struct snd_ctl_elem_value *ucontrol)
  2664. {
  2665. ucontrol->value.integer.value[0] = usb_switch_enable;
  2666. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2667. ucontrol->value.integer.value[0]);
  2668. return 0;
  2669. }
  2670. static int msm_routing_put_usb_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: USB 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,
  2680. 1, update);
  2681. else
  2682. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2683. 0, update);
  2684. usb_switch_enable = ucontrol->value.integer.value[0];
  2685. return 1;
  2686. }
  2687. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2688. struct snd_ctl_elem_value *ucontrol)
  2689. {
  2690. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2691. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2692. ucontrol->value.integer.value[0]);
  2693. return 0;
  2694. }
  2695. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2696. struct snd_ctl_elem_value *ucontrol)
  2697. {
  2698. struct snd_soc_dapm_widget *widget =
  2699. snd_soc_dapm_kcontrol_widget(kcontrol);
  2700. struct snd_soc_dapm_update *update = NULL;
  2701. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2702. ucontrol->value.integer.value[0]);
  2703. if (ucontrol->value.integer.value[0])
  2704. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2705. update);
  2706. else
  2707. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2708. update);
  2709. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2710. return 1;
  2711. }
  2712. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2713. struct snd_ctl_elem_value *ucontrol)
  2714. {
  2715. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2716. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2717. ucontrol->value.integer.value[0]);
  2718. return 0;
  2719. }
  2720. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2721. struct snd_ctl_elem_value *ucontrol)
  2722. {
  2723. struct snd_soc_dapm_widget *widget =
  2724. snd_soc_dapm_kcontrol_widget(kcontrol);
  2725. struct snd_soc_dapm_update *update = NULL;
  2726. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2727. ucontrol->value.integer.value[0]);
  2728. if (ucontrol->value.integer.value[0])
  2729. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2730. update);
  2731. else
  2732. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2733. update);
  2734. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2735. return 1;
  2736. }
  2737. static int msm_routing_get_tert_mi2s_switch_mixer(
  2738. struct snd_kcontrol *kcontrol,
  2739. struct snd_ctl_elem_value *ucontrol)
  2740. {
  2741. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2742. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2743. ucontrol->value.integer.value[0]);
  2744. return 0;
  2745. }
  2746. static int msm_routing_put_tert_mi2s_switch_mixer(
  2747. struct snd_kcontrol *kcontrol,
  2748. struct snd_ctl_elem_value *ucontrol)
  2749. {
  2750. struct snd_soc_dapm_widget *widget =
  2751. snd_soc_dapm_kcontrol_widget(kcontrol);
  2752. struct snd_soc_dapm_update *update = NULL;
  2753. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2754. ucontrol->value.integer.value[0]);
  2755. if (ucontrol->value.integer.value[0])
  2756. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2757. update);
  2758. else
  2759. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2760. update);
  2761. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2762. return 1;
  2763. }
  2764. static int msm_routing_get_quat_mi2s_switch_mixer(
  2765. struct snd_kcontrol *kcontrol,
  2766. struct snd_ctl_elem_value *ucontrol)
  2767. {
  2768. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2769. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2770. ucontrol->value.integer.value[0]);
  2771. return 0;
  2772. }
  2773. static int msm_routing_put_quat_mi2s_switch_mixer(
  2774. struct snd_kcontrol *kcontrol,
  2775. struct snd_ctl_elem_value *ucontrol)
  2776. {
  2777. struct snd_soc_dapm_widget *widget =
  2778. snd_soc_dapm_kcontrol_widget(kcontrol);
  2779. struct snd_soc_dapm_update *update = NULL;
  2780. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2781. ucontrol->value.integer.value[0]);
  2782. if (ucontrol->value.integer.value[0])
  2783. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2784. update);
  2785. else
  2786. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2787. update);
  2788. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2789. return 1;
  2790. }
  2791. static int msm_routing_get_quin_mi2s_switch_mixer(
  2792. struct snd_kcontrol *kcontrol,
  2793. struct snd_ctl_elem_value *ucontrol)
  2794. {
  2795. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2796. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2797. ucontrol->value.integer.value[0]);
  2798. return 0;
  2799. }
  2800. static int msm_routing_put_quin_mi2s_switch_mixer(
  2801. struct snd_kcontrol *kcontrol,
  2802. struct snd_ctl_elem_value *ucontrol)
  2803. {
  2804. struct snd_soc_dapm_widget *widget =
  2805. snd_soc_dapm_kcontrol_widget(kcontrol);
  2806. struct snd_soc_dapm_update *update = NULL;
  2807. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2808. ucontrol->value.integer.value[0]);
  2809. if (ucontrol->value.integer.value[0])
  2810. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2811. update);
  2812. else
  2813. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2814. update);
  2815. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2816. return 1;
  2817. }
  2818. static int msm_routing_get_sen_mi2s_switch_mixer(
  2819. struct snd_kcontrol *kcontrol,
  2820. struct snd_ctl_elem_value *ucontrol)
  2821. {
  2822. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2823. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2824. ucontrol->value.integer.value[0]);
  2825. return 0;
  2826. }
  2827. static int msm_routing_put_sen_mi2s_switch_mixer(
  2828. struct snd_kcontrol *kcontrol,
  2829. struct snd_ctl_elem_value *ucontrol)
  2830. {
  2831. struct snd_soc_dapm_widget *widget =
  2832. snd_soc_dapm_kcontrol_widget(kcontrol);
  2833. struct snd_soc_dapm_update *update = NULL;
  2834. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2835. ucontrol->value.integer.value[0]);
  2836. if (ucontrol->value.integer.value[0])
  2837. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2838. update);
  2839. else
  2840. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2841. update);
  2842. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2843. return 1;
  2844. }
  2845. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2846. struct snd_ctl_elem_value *ucontrol)
  2847. {
  2848. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2849. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2850. ucontrol->value.integer.value[0]);
  2851. return 0;
  2852. }
  2853. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2854. struct snd_ctl_elem_value *ucontrol)
  2855. {
  2856. struct snd_soc_dapm_widget *widget =
  2857. snd_soc_dapm_kcontrol_widget(kcontrol);
  2858. struct snd_soc_dapm_update *update = NULL;
  2859. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2860. ucontrol->value.integer.value[0]);
  2861. if (ucontrol->value.integer.value[0])
  2862. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2863. update);
  2864. else
  2865. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2866. update);
  2867. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2868. return 1;
  2869. }
  2870. static void msm_routing_get_lsm_fe_idx(struct snd_kcontrol *kcontrol,
  2871. u8 *fe_idx)
  2872. {
  2873. int fe_id = MSM_FRONTEND_DAI_LSM1;
  2874. if (strnstr(kcontrol->id.name, "LSM1", sizeof("LSM1"))) {
  2875. fe_id = MSM_FRONTEND_DAI_LSM1;
  2876. } else if (strnstr(kcontrol->id.name, "LSM2", sizeof("LSM2"))) {
  2877. fe_id = MSM_FRONTEND_DAI_LSM2;
  2878. } else if (strnstr(kcontrol->id.name, "LSM3", sizeof("LSM3"))) {
  2879. fe_id = MSM_FRONTEND_DAI_LSM3;
  2880. } else if (strnstr(kcontrol->id.name, "LSM4", sizeof("LSM4"))) {
  2881. fe_id = MSM_FRONTEND_DAI_LSM4;
  2882. } else if (strnstr(kcontrol->id.name, "LSM5", sizeof("LSM5"))) {
  2883. fe_id = MSM_FRONTEND_DAI_LSM5;
  2884. } else if (strnstr(kcontrol->id.name, "LSM6", sizeof("LSM6"))) {
  2885. fe_id = MSM_FRONTEND_DAI_LSM6;
  2886. } else if (strnstr(kcontrol->id.name, "LSM7", sizeof("LSM7"))) {
  2887. fe_id = MSM_FRONTEND_DAI_LSM7;
  2888. } else if (strnstr(kcontrol->id.name, "LSM8", sizeof("LSM8"))) {
  2889. fe_id = MSM_FRONTEND_DAI_LSM8;
  2890. } else {
  2891. pr_err("%s: Invalid kcontrol name:%s\n", __func__,
  2892. kcontrol->id.name);
  2893. return;
  2894. }
  2895. *fe_idx = fe_id - MSM_FRONTEND_DAI_LSM1;
  2896. pr_debug("%s: fe_id: %d, fe_idx:%d\n", __func__, fe_id, *fe_idx);
  2897. }
  2898. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2899. struct snd_ctl_elem_value *ucontrol)
  2900. {
  2901. u8 fe_idx = 0;
  2902. msm_routing_get_lsm_fe_idx(kcontrol, &fe_idx);
  2903. ucontrol->value.integer.value[0] = lsm_port_index[fe_idx];
  2904. return 0;
  2905. }
  2906. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2907. struct snd_ctl_elem_value *ucontrol)
  2908. {
  2909. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2910. int mux = ucontrol->value.enumerated.item[0];
  2911. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2912. u8 fe_idx = 0;
  2913. if (mux >= e->items) {
  2914. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2915. return -EINVAL;
  2916. }
  2917. pr_debug("%s: LSM enable %ld\n", __func__,
  2918. ucontrol->value.integer.value[0]);
  2919. switch (ucontrol->value.integer.value[0]) {
  2920. case 1:
  2921. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2922. break;
  2923. case 2:
  2924. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2925. break;
  2926. case 3:
  2927. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2928. break;
  2929. case 4:
  2930. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2931. break;
  2932. case 5:
  2933. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2934. break;
  2935. case 6:
  2936. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2937. break;
  2938. case 7:
  2939. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2940. break;
  2941. case 8:
  2942. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2943. break;
  2944. case 9:
  2945. lsm_port = ADM_LSM_PORT_ID;
  2946. break;
  2947. case 10:
  2948. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2949. break;
  2950. case 11:
  2951. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2952. break;
  2953. case 12:
  2954. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2955. break;
  2956. case 13:
  2957. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2958. break;
  2959. case 14:
  2960. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2961. break;
  2962. case 15:
  2963. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2964. break;
  2965. case 16:
  2966. lsm_port = AFE_PORT_ID_TERTIARY_TDM_TX;
  2967. break;
  2968. default:
  2969. pr_err("Default lsm port");
  2970. break;
  2971. }
  2972. set_lsm_port(lsm_port);
  2973. msm_routing_get_lsm_fe_idx(kcontrol, &fe_idx);
  2974. lsm_port_index[fe_idx] = ucontrol->value.integer.value[0];
  2975. return 0;
  2976. }
  2977. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2978. struct snd_ctl_elem_value *ucontrol)
  2979. {
  2980. int i;
  2981. u16 port_id;
  2982. enum afe_mad_type mad_type;
  2983. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2984. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2985. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2986. strlen(lsm_port_text[i])))
  2987. break;
  2988. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2989. pr_warn("%s: Invalid id name %s\n", __func__,
  2990. kcontrol->id.name);
  2991. return -EINVAL;
  2992. }
  2993. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2994. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2995. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2996. strlen(lsm_port_text[7])))
  2997. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2998. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2999. strlen(lsm_port_text[8])))
  3000. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3001. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  3002. strlen(lsm_port_text[10])))
  3003. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3004. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  3005. strlen(lsm_port_text[14])))
  3006. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  3007. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  3008. strlen(lsm_port_text[15])))
  3009. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  3010. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  3011. strlen(lsm_port_text[16])))
  3012. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3013. mad_type = afe_port_get_mad_type(port_id);
  3014. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  3015. mad_type);
  3016. switch (mad_type) {
  3017. case MAD_HW_NONE:
  3018. ucontrol->value.integer.value[0] = MADNONE;
  3019. break;
  3020. case MAD_HW_AUDIO:
  3021. ucontrol->value.integer.value[0] = MADAUDIO;
  3022. break;
  3023. case MAD_HW_BEACON:
  3024. ucontrol->value.integer.value[0] = MADBEACON;
  3025. break;
  3026. case MAD_HW_ULTRASOUND:
  3027. ucontrol->value.integer.value[0] = MADULTRASOUND;
  3028. break;
  3029. case MAD_SW_AUDIO:
  3030. ucontrol->value.integer.value[0] = MADSWAUDIO;
  3031. break;
  3032. default:
  3033. pr_warn("%s: Unknown\n", __func__);
  3034. return -EINVAL;
  3035. }
  3036. return 0;
  3037. }
  3038. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  3039. struct snd_ctl_elem_value *ucontrol)
  3040. {
  3041. int i;
  3042. u16 port_id;
  3043. enum afe_mad_type mad_type;
  3044. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  3045. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  3046. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  3047. strlen(lsm_port_text[i])))
  3048. break;
  3049. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  3050. pr_warn("%s: Invalid id name %s\n", __func__,
  3051. kcontrol->id.name);
  3052. return -EINVAL;
  3053. }
  3054. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  3055. switch (ucontrol->value.integer.value[0]) {
  3056. case MADNONE:
  3057. mad_type = MAD_HW_NONE;
  3058. break;
  3059. case MADAUDIO:
  3060. mad_type = MAD_HW_AUDIO;
  3061. break;
  3062. case MADBEACON:
  3063. mad_type = MAD_HW_BEACON;
  3064. break;
  3065. case MADULTRASOUND:
  3066. mad_type = MAD_HW_ULTRASOUND;
  3067. break;
  3068. case MADSWAUDIO:
  3069. mad_type = MAD_SW_AUDIO;
  3070. break;
  3071. default:
  3072. pr_warn("%s: Unknown\n", __func__);
  3073. return -EINVAL;
  3074. }
  3075. /*Check for Tertiary/Quaternary/INT3 TX port*/
  3076. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  3077. strlen(lsm_port_text[7])))
  3078. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3079. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  3080. strlen(lsm_port_text[8])))
  3081. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3082. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  3083. strlen(lsm_port_text[10])))
  3084. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3085. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  3086. strlen(lsm_port_text[14])))
  3087. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  3088. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  3089. strlen(lsm_port_text[15])))
  3090. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  3091. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  3092. strlen(lsm_port_text[16])))
  3093. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3094. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  3095. mad_type);
  3096. return afe_port_set_mad_type(port_id, mad_type);
  3097. }
  3098. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  3099. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  3100. adm_override_chs_text);
  3101. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  3102. {
  3103. int backend_id;
  3104. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  3105. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  3106. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  3107. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  3108. } else {
  3109. pr_err("%s: unsupported backend id: %s",
  3110. __func__, kcontrol->id.name);
  3111. return -EINVAL;
  3112. }
  3113. return backend_id;
  3114. }
  3115. static int msm_routing_adm_channel_config_get(
  3116. struct snd_kcontrol *kcontrol,
  3117. struct snd_ctl_elem_value *ucontrol)
  3118. {
  3119. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  3120. if (backend_id >= 0) {
  3121. mutex_lock(&routing_lock);
  3122. ucontrol->value.integer.value[0] =
  3123. msm_bedais[backend_id].adm_override_ch;
  3124. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  3125. ucontrol->value.integer.value[0], backend_id);
  3126. mutex_unlock(&routing_lock);
  3127. }
  3128. return 0;
  3129. }
  3130. static int msm_routing_adm_channel_config_put(
  3131. struct snd_kcontrol *kcontrol,
  3132. struct snd_ctl_elem_value *ucontrol)
  3133. {
  3134. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  3135. if (backend_id >= 0) {
  3136. mutex_lock(&routing_lock);
  3137. msm_bedais[backend_id].adm_override_ch =
  3138. ucontrol->value.integer.value[0];
  3139. pr_debug("%s:updating BE :%d adm channels: %d\n",
  3140. __func__, backend_id,
  3141. msm_bedais[backend_id].adm_override_ch);
  3142. mutex_unlock(&routing_lock);
  3143. }
  3144. return 0;
  3145. }
  3146. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  3147. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  3148. msm_routing_adm_channel_config_get,
  3149. msm_routing_adm_channel_config_put),
  3150. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  3151. msm_routing_adm_channel_config_get,
  3152. msm_routing_adm_channel_config_put),
  3153. };
  3154. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  3155. struct snd_ctl_elem_value *ucontrol)
  3156. {
  3157. mutex_lock(&routing_lock);
  3158. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  3159. mutex_unlock(&routing_lock);
  3160. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  3161. ucontrol->value.integer.value[0]);
  3162. return 0;
  3163. };
  3164. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  3165. struct snd_ctl_elem_value *ucontrol)
  3166. {
  3167. struct aanc_data aanc_info;
  3168. mutex_lock(&routing_lock);
  3169. memset(&aanc_info, 0x00, sizeof(aanc_info));
  3170. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  3171. ucontrol->value.integer.value[0]);
  3172. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  3173. if (ucontrol->value.integer.value[0] == 0) {
  3174. aanc_info.aanc_active = false;
  3175. aanc_info.aanc_tx_port = 0;
  3176. aanc_info.aanc_rx_port = 0;
  3177. } else {
  3178. aanc_info.aanc_active = true;
  3179. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  3180. aanc_info.aanc_tx_port =
  3181. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  3182. }
  3183. afe_set_aanc_info(&aanc_info);
  3184. mutex_unlock(&routing_lock);
  3185. return 0;
  3186. };
  3187. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  3188. struct snd_ctl_elem_value *ucontrol)
  3189. {
  3190. int idx = 0, shift = 0;
  3191. struct soc_mixer_control *mc =
  3192. (struct soc_mixer_control *)kcontrol->private_value;
  3193. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3194. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3195. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  3196. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  3197. return -EINVAL;
  3198. }
  3199. if (test_bit(shift,
  3200. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  3201. ucontrol->value.integer.value[0] = 1;
  3202. else
  3203. ucontrol->value.integer.value[0] = 0;
  3204. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  3205. ucontrol->value.integer.value[0]);
  3206. return 0;
  3207. }
  3208. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  3209. struct snd_ctl_elem_value *ucontrol)
  3210. {
  3211. int idx = 0, shift = 0;
  3212. struct soc_mixer_control *mc =
  3213. (struct soc_mixer_control *)kcontrol->private_value;
  3214. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3215. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3216. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  3217. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  3218. return -EINVAL;
  3219. }
  3220. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  3221. __func__, mc->shift, mc->rshift,
  3222. ucontrol->value.integer.value[0], idx, shift);
  3223. if (ucontrol->value.integer.value[0]) {
  3224. afe_loopback(1, msm_bedais[mc->shift].port_id,
  3225. msm_bedais[mc->rshift].port_id);
  3226. set_bit(shift,
  3227. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3228. } else {
  3229. afe_loopback(0, msm_bedais[mc->shift].port_id,
  3230. msm_bedais[mc->rshift].port_id);
  3231. clear_bit(shift,
  3232. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3233. }
  3234. return 1;
  3235. }
  3236. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  3237. struct snd_ctl_elem_value *ucontrol)
  3238. {
  3239. u16 fe_id = 0;
  3240. fe_id = ((struct soc_mixer_control *)
  3241. kcontrol->private_value)->shift;
  3242. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3243. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3244. return -EINVAL;
  3245. }
  3246. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  3247. return 0;
  3248. }
  3249. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  3250. struct snd_ctl_elem_value *ucontrol)
  3251. {
  3252. u16 fe_id = 0;
  3253. fe_id = ((struct soc_mixer_control *)
  3254. kcontrol->private_value)->shift;
  3255. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3256. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3257. return -EINVAL;
  3258. }
  3259. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3260. return 1;
  3261. }
  3262. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3263. struct snd_ctl_elem_value *ucontrol)
  3264. {
  3265. u16 fe_id = 0;
  3266. fe_id = ((struct soc_multi_mixer_control *)
  3267. kcontrol->private_value)->shift;
  3268. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3269. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3270. return -EINVAL;
  3271. }
  3272. ucontrol->value.integer.value[0] =
  3273. channel_mixer[fe_id].output_channel;
  3274. return 0;
  3275. }
  3276. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3277. struct snd_ctl_elem_value *ucontrol)
  3278. {
  3279. u16 fe_id = 0;
  3280. fe_id = ((struct soc_multi_mixer_control *)
  3281. kcontrol->private_value)->shift;
  3282. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3283. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3284. return -EINVAL;
  3285. }
  3286. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3287. fe_id,
  3288. (unsigned int)(ucontrol->value.integer.value[0]));
  3289. channel_mixer[fe_id].output_channel =
  3290. (unsigned int)(ucontrol->value.integer.value[0]);
  3291. return 1;
  3292. }
  3293. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3294. /* If new backend is added, need update this array */
  3295. static const char *const be_name[] = {
  3296. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3297. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3298. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3299. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3300. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3301. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3302. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3303. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3304. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3305. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3306. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3307. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3308. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3309. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3310. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3311. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3312. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3313. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3314. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3315. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3316. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3317. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3318. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3319. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3320. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3321. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3322. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3323. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3324. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3325. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3326. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3327. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3328. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3329. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3330. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3331. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3332. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3333. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3334. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3335. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3336. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3337. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3338. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3339. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3340. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3341. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3342. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3343. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3344. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3345. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3346. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3347. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3348. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3349. "SEC_META_MI2S_RX", "PROXY_RX", "PROXY_TX", "HDMI_RX_MS"
  3350. };
  3351. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3352. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3353. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3354. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3355. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3356. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3357. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3358. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3359. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3360. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3361. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3362. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3363. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3364. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3365. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3366. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3367. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3368. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3369. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3370. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3371. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3372. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3373. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3374. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3375. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3376. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3377. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3378. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3379. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3380. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3381. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3382. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3383. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3384. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3385. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3386. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3387. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3388. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3389. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3390. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3391. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3392. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3393. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3394. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3395. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3396. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3397. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3398. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3399. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3400. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3401. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3402. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3403. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3404. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3405. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3406. unsigned int channels,
  3407. unsigned int items, const char *const names[])
  3408. {
  3409. if (uinfo->value.enumerated.item >= items)
  3410. uinfo->value.enumerated.item = items - 1;
  3411. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3412. sizeof(uinfo->value.enumerated.name),
  3413. "ALSA: too long item name '%s'\n",
  3414. names[uinfo->value.enumerated.item]);
  3415. strlcpy(uinfo->value.enumerated.name,
  3416. names[uinfo->value.enumerated.item],
  3417. sizeof(uinfo->value.enumerated.name));
  3418. return 0;
  3419. }
  3420. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3421. struct snd_ctl_elem_info *uinfo)
  3422. {
  3423. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3424. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3425. uinfo->count = 1;
  3426. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3427. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3428. return 0;
  3429. }
  3430. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3431. struct snd_ctl_elem_value *ucontrol)
  3432. {
  3433. u16 fe_id = 0;
  3434. fe_id = ((struct soc_enum *)
  3435. kcontrol->private_value)->shift_l;
  3436. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3437. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3438. return -EINVAL;
  3439. }
  3440. pr_debug("%s: FE %d %s\n", __func__,
  3441. fe_id,
  3442. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3443. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3444. return 0;
  3445. }
  3446. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3447. struct snd_ctl_elem_value *ucontrol)
  3448. {
  3449. u16 fe_id = 0;
  3450. fe_id = ((struct soc_enum *)
  3451. kcontrol->private_value)->shift_l;
  3452. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3453. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3454. return -EINVAL;
  3455. }
  3456. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3457. pr_debug("%s: %s FE %d\n", __func__,
  3458. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3459. fe_id);
  3460. return 0;
  3461. }
  3462. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3463. struct snd_ctl_elem_info *uinfo)
  3464. {
  3465. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3466. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3467. uinfo->count = 1;
  3468. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3469. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3470. return 0;
  3471. }
  3472. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3473. struct snd_ctl_elem_value *ucontrol)
  3474. {
  3475. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3476. u16 fe_id = 0, in_ch = 0;
  3477. fe_id = e->shift_l;
  3478. in_ch = e->shift_r;
  3479. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3480. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3481. return -EINVAL;
  3482. }
  3483. if (in_ch >= ADM_MAX_CHANNELS) {
  3484. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3485. return -EINVAL;
  3486. }
  3487. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3488. return 1;
  3489. }
  3490. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3491. struct snd_ctl_elem_value *ucontrol)
  3492. {
  3493. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3494. u16 fe_id = 0, in_ch = 0;
  3495. fe_id = e->shift_l;
  3496. in_ch = e->shift_r;
  3497. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3498. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3499. return -EINVAL;
  3500. }
  3501. if (in_ch >= ADM_MAX_CHANNELS) {
  3502. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3503. return -EINVAL;
  3504. }
  3505. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3506. return 1;
  3507. }
  3508. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3509. struct snd_ctl_elem_info *uinfo)
  3510. {
  3511. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3512. uinfo->count = ADM_MAX_CHANNELS;
  3513. uinfo->value.integer.min = 0;
  3514. uinfo->value.integer.max = WEIGHT_0_DB;
  3515. return 0;
  3516. }
  3517. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3518. struct snd_ctl_elem_value *ucontrol)
  3519. {
  3520. u16 fe_id = 0, out_ch = 0;
  3521. int i, weight;
  3522. fe_id = ((struct soc_multi_mixer_control *)
  3523. kcontrol->private_value)->shift;
  3524. out_ch = ((struct soc_multi_mixer_control *)
  3525. kcontrol->private_value)->rshift;
  3526. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3527. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3528. return -EINVAL;
  3529. }
  3530. if (out_ch >= ADM_MAX_CHANNELS) {
  3531. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3532. return -EINVAL;
  3533. }
  3534. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3535. __func__, fe_id,
  3536. ucontrol->value.integer.value[0],
  3537. ucontrol->value.integer.value[1],
  3538. ucontrol->value.integer.value[2],
  3539. ucontrol->value.integer.value[3],
  3540. ucontrol->value.integer.value[4],
  3541. ucontrol->value.integer.value[5],
  3542. ucontrol->value.integer.value[6],
  3543. ucontrol->value.integer.value[7]);
  3544. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3545. weight = ucontrol->value.integer.value[i];
  3546. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3547. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3548. __func__, fe_id, out_ch, i,
  3549. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3550. }
  3551. return 0;
  3552. }
  3553. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3554. struct snd_ctl_elem_value *ucontrol)
  3555. {
  3556. u16 fe_id = 0, out_ch = 0;
  3557. int i;
  3558. fe_id = ((struct soc_multi_mixer_control *)
  3559. kcontrol->private_value)->shift;
  3560. out_ch = ((struct soc_multi_mixer_control *)
  3561. kcontrol->private_value)->rshift;
  3562. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3563. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3564. return -EINVAL;
  3565. }
  3566. if (out_ch >= ADM_MAX_CHANNELS) {
  3567. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3568. return -EINVAL;
  3569. }
  3570. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3571. ucontrol->value.integer.value[i] =
  3572. channel_mixer[fe_id].channel_weight[out_ch][i];
  3573. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3574. __func__, fe_id,
  3575. ucontrol->value.integer.value[0],
  3576. ucontrol->value.integer.value[1],
  3577. ucontrol->value.integer.value[2],
  3578. ucontrol->value.integer.value[3],
  3579. ucontrol->value.integer.value[4],
  3580. ucontrol->value.integer.value[5],
  3581. ucontrol->value.integer.value[6],
  3582. ucontrol->value.integer.value[7]);
  3583. return 0;
  3584. }
  3585. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3586. struct snd_ctl_elem_info *uinfo)
  3587. {
  3588. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3589. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3590. /* Valid channel map value ranges from 1 to 64 */
  3591. uinfo->value.integer.min = 0;
  3592. uinfo->value.integer.max = 64;
  3593. return 0;
  3594. }
  3595. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3596. struct snd_ctl_elem_value *ucontrol)
  3597. {
  3598. u16 fe_id = 0;
  3599. int i, ch_map;
  3600. fe_id = ((struct soc_multi_mixer_control *)
  3601. kcontrol->private_value)->shift;
  3602. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3603. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3604. return -EINVAL;
  3605. }
  3606. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3607. ch_map = ucontrol->value.integer.value[i];
  3608. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3609. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3610. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3611. }
  3612. /* Make override_out_ch_map false if ch map is reset */
  3613. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3614. channel_mixer[fe_id].override_out_ch_map = false;
  3615. else
  3616. channel_mixer[fe_id].override_out_ch_map = true;
  3617. return 0;
  3618. }
  3619. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3620. struct snd_ctl_elem_value *ucontrol)
  3621. {
  3622. u16 fe_id = 0;
  3623. int i;
  3624. fe_id = ((struct soc_multi_mixer_control *)
  3625. kcontrol->private_value)->shift;
  3626. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3627. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3628. return -EINVAL;
  3629. }
  3630. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3631. ucontrol->value.integer.value[i] =
  3632. channel_mixer[fe_id].out_ch_map[i];
  3633. return 0;
  3634. }
  3635. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3636. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3637. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3638. msm_pcm_get_channel_rule_index,
  3639. msm_pcm_put_channel_rule_index),
  3640. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3641. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3642. msm_pcm_get_channel_rule_index,
  3643. msm_pcm_put_channel_rule_index),
  3644. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3645. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3646. msm_pcm_get_channel_rule_index,
  3647. msm_pcm_put_channel_rule_index),
  3648. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3649. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3650. msm_pcm_get_channel_rule_index,
  3651. msm_pcm_put_channel_rule_index),
  3652. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3653. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3654. msm_pcm_get_channel_rule_index,
  3655. msm_pcm_put_channel_rule_index),
  3656. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3657. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3658. msm_pcm_get_channel_rule_index,
  3659. msm_pcm_put_channel_rule_index),
  3660. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3661. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3662. msm_pcm_get_channel_rule_index,
  3663. msm_pcm_put_channel_rule_index),
  3664. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3665. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3666. msm_pcm_get_channel_rule_index,
  3667. msm_pcm_put_channel_rule_index),
  3668. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3669. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3670. msm_pcm_get_channel_rule_index,
  3671. msm_pcm_put_channel_rule_index),
  3672. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3673. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3674. msm_pcm_get_channel_rule_index,
  3675. msm_pcm_put_channel_rule_index),
  3676. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3677. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3678. msm_pcm_get_channel_rule_index,
  3679. msm_pcm_put_channel_rule_index),
  3680. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3681. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3682. msm_pcm_get_out_chs,
  3683. msm_pcm_put_out_chs),
  3684. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3685. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3686. msm_pcm_get_out_chs,
  3687. msm_pcm_put_out_chs),
  3688. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3689. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3690. msm_pcm_get_out_chs,
  3691. msm_pcm_put_out_chs),
  3692. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3693. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3694. msm_pcm_get_out_chs,
  3695. msm_pcm_put_out_chs),
  3696. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3697. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3698. msm_pcm_get_out_chs,
  3699. msm_pcm_put_out_chs),
  3700. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3701. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3702. msm_pcm_get_out_chs,
  3703. msm_pcm_put_out_chs),
  3704. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3705. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3706. msm_pcm_get_out_chs,
  3707. msm_pcm_put_out_chs),
  3708. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3709. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3710. msm_pcm_get_out_chs,
  3711. msm_pcm_put_out_chs),
  3712. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3713. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3714. msm_pcm_get_out_chs,
  3715. msm_pcm_put_out_chs),
  3716. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3717. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3718. msm_pcm_get_out_chs,
  3719. msm_pcm_put_out_chs),
  3720. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3721. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3722. msm_pcm_get_out_chs,
  3723. msm_pcm_put_out_chs),
  3724. {
  3725. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3726. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3727. .name = "MultiMedia1 Channel Mixer",
  3728. .info = msm_pcm_channel_mixer_info,
  3729. .get = msm_pcm_channel_mixer_get,
  3730. .put = msm_pcm_channel_mixer_put,
  3731. .private_value = (unsigned long)&(mm1_channel_mux)
  3732. },
  3733. {
  3734. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3735. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3736. .name = "MultiMedia2 Channel Mixer",
  3737. .info = msm_pcm_channel_mixer_info,
  3738. .get = msm_pcm_channel_mixer_get,
  3739. .put = msm_pcm_channel_mixer_put,
  3740. .private_value = (unsigned long)&(mm2_channel_mux)
  3741. },
  3742. {
  3743. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3744. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3745. .name = "MultiMedia3 Channel Mixer",
  3746. .info = msm_pcm_channel_mixer_info,
  3747. .get = msm_pcm_channel_mixer_get,
  3748. .put = msm_pcm_channel_mixer_put,
  3749. .private_value = (unsigned long)&(mm3_channel_mux)
  3750. },
  3751. {
  3752. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3753. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3754. .name = "MultiMedia4 Channel Mixer",
  3755. .info = msm_pcm_channel_mixer_info,
  3756. .get = msm_pcm_channel_mixer_get,
  3757. .put = msm_pcm_channel_mixer_put,
  3758. .private_value = (unsigned long)&(mm4_channel_mux)
  3759. },
  3760. {
  3761. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3762. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3763. .name = "MultiMedia18 Channel Mixer",
  3764. .info = msm_pcm_channel_mixer_info,
  3765. .get = msm_pcm_channel_mixer_get,
  3766. .put = msm_pcm_channel_mixer_put,
  3767. .private_value = (unsigned long)&(mm18_channel_mux)
  3768. },
  3769. {
  3770. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3771. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3772. .name = "MultiMedia19 Channel Mixer",
  3773. .info = msm_pcm_channel_mixer_info,
  3774. .get = msm_pcm_channel_mixer_get,
  3775. .put = msm_pcm_channel_mixer_put,
  3776. .private_value = (unsigned long)&(mm19_channel_mux)
  3777. },
  3778. {
  3779. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3780. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3781. .name = "MultiMedia28 Channel Mixer",
  3782. .info = msm_pcm_channel_mixer_info,
  3783. .get = msm_pcm_channel_mixer_get,
  3784. .put = msm_pcm_channel_mixer_put,
  3785. .private_value = (unsigned long)&(mm28_channel_mux)
  3786. },
  3787. {
  3788. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3789. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3790. .name = "MultiMedia29 Channel Mixer",
  3791. .info = msm_pcm_channel_mixer_info,
  3792. .get = msm_pcm_channel_mixer_get,
  3793. .put = msm_pcm_channel_mixer_put,
  3794. .private_value = (unsigned long)&(mm29_channel_mux)
  3795. },
  3796. {
  3797. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3798. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3799. .name = "MultiMedia30 Channel Mixer",
  3800. .info = msm_pcm_channel_mixer_info,
  3801. .get = msm_pcm_channel_mixer_get,
  3802. .put = msm_pcm_channel_mixer_put,
  3803. .private_value = (unsigned long)&(mm30_channel_mux)
  3804. },
  3805. {
  3806. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3807. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3808. .name = "MultiMedia1 Output Channel1",
  3809. .info = msm_pcm_channel_weight_info,
  3810. .get = msm_pcm_channel_weight_get,
  3811. .put = msm_pcm_channel_weight_put,
  3812. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3813. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3814. },
  3815. {
  3816. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3817. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3818. .name = "MultiMedia1 Output Channel2",
  3819. .info = msm_pcm_channel_weight_info,
  3820. .get = msm_pcm_channel_weight_get,
  3821. .put = msm_pcm_channel_weight_put,
  3822. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3823. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3824. },
  3825. {
  3826. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3827. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3828. .name = "MultiMedia1 Output Channel3",
  3829. .info = msm_pcm_channel_weight_info,
  3830. .get = msm_pcm_channel_weight_get,
  3831. .put = msm_pcm_channel_weight_put,
  3832. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3833. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3834. },
  3835. {
  3836. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3837. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3838. .name = "MultiMedia1 Output Channel4",
  3839. .info = msm_pcm_channel_weight_info,
  3840. .get = msm_pcm_channel_weight_get,
  3841. .put = msm_pcm_channel_weight_put,
  3842. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3843. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3844. },
  3845. {
  3846. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3847. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3848. .name = "MultiMedia1 Output Channel5",
  3849. .info = msm_pcm_channel_weight_info,
  3850. .get = msm_pcm_channel_weight_get,
  3851. .put = msm_pcm_channel_weight_put,
  3852. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3853. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3854. },
  3855. {
  3856. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3857. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3858. .name = "MultiMedia1 Output Channel6",
  3859. .info = msm_pcm_channel_weight_info,
  3860. .get = msm_pcm_channel_weight_get,
  3861. .put = msm_pcm_channel_weight_put,
  3862. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3863. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3864. },
  3865. {
  3866. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3867. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3868. .name = "MultiMedia1 Output Channel7",
  3869. .info = msm_pcm_channel_weight_info,
  3870. .get = msm_pcm_channel_weight_get,
  3871. .put = msm_pcm_channel_weight_put,
  3872. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3873. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3874. },
  3875. {
  3876. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3877. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3878. .name = "MultiMedia1 Output Channel8",
  3879. .info = msm_pcm_channel_weight_info,
  3880. .get = msm_pcm_channel_weight_get,
  3881. .put = msm_pcm_channel_weight_put,
  3882. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3883. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3884. },
  3885. {
  3886. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3887. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3888. .name = "MultiMedia1 Output Channel9",
  3889. .info = msm_pcm_channel_weight_info,
  3890. .get = msm_pcm_channel_weight_get,
  3891. .put = msm_pcm_channel_weight_put,
  3892. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3893. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3894. },
  3895. {
  3896. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3897. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3898. .name = "MultiMedia1 Output Channel10",
  3899. .info = msm_pcm_channel_weight_info,
  3900. .get = msm_pcm_channel_weight_get,
  3901. .put = msm_pcm_channel_weight_put,
  3902. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3903. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3904. },
  3905. {
  3906. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3907. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3908. .name = "MultiMedia1 Output Channel11",
  3909. .info = msm_pcm_channel_weight_info,
  3910. .get = msm_pcm_channel_weight_get,
  3911. .put = msm_pcm_channel_weight_put,
  3912. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3913. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3914. },
  3915. {
  3916. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3917. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3918. .name = "MultiMedia1 Output Channel12",
  3919. .info = msm_pcm_channel_weight_info,
  3920. .get = msm_pcm_channel_weight_get,
  3921. .put = msm_pcm_channel_weight_put,
  3922. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3923. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3924. },
  3925. {
  3926. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3927. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3928. .name = "MultiMedia1 Output Channel13",
  3929. .info = msm_pcm_channel_weight_info,
  3930. .get = msm_pcm_channel_weight_get,
  3931. .put = msm_pcm_channel_weight_put,
  3932. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3933. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3934. },
  3935. {
  3936. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3937. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3938. .name = "MultiMedia1 Output Channel14",
  3939. .info = msm_pcm_channel_weight_info,
  3940. .get = msm_pcm_channel_weight_get,
  3941. .put = msm_pcm_channel_weight_put,
  3942. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3943. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3944. },
  3945. {
  3946. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3947. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3948. .name = "MultiMedia2 Output Channel1",
  3949. .info = msm_pcm_channel_weight_info,
  3950. .get = msm_pcm_channel_weight_get,
  3951. .put = msm_pcm_channel_weight_put,
  3952. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3953. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3954. },
  3955. {
  3956. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3957. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3958. .name = "MultiMedia2 Output Channel2",
  3959. .info = msm_pcm_channel_weight_info,
  3960. .get = msm_pcm_channel_weight_get,
  3961. .put = msm_pcm_channel_weight_put,
  3962. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3963. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3964. },
  3965. {
  3966. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3967. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3968. .name = "MultiMedia2 Output Channel3",
  3969. .info = msm_pcm_channel_weight_info,
  3970. .get = msm_pcm_channel_weight_get,
  3971. .put = msm_pcm_channel_weight_put,
  3972. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3973. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3974. },
  3975. {
  3976. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3977. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3978. .name = "MultiMedia3 Output Channel1",
  3979. .info = msm_pcm_channel_weight_info,
  3980. .get = msm_pcm_channel_weight_get,
  3981. .put = msm_pcm_channel_weight_put,
  3982. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3983. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3984. },
  3985. {
  3986. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3987. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3988. .name = "MultiMedia3 Output Channel2",
  3989. .info = msm_pcm_channel_weight_info,
  3990. .get = msm_pcm_channel_weight_get,
  3991. .put = msm_pcm_channel_weight_put,
  3992. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3993. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3994. },
  3995. {
  3996. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3997. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3998. .name = "MultiMedia18 Output Channel1",
  3999. .info = msm_pcm_channel_weight_info,
  4000. .get = msm_pcm_channel_weight_get,
  4001. .put = msm_pcm_channel_weight_put,
  4002. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4003. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  4004. },
  4005. {
  4006. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4007. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4008. .name = "MultiMedia18 Output Channel2",
  4009. .info = msm_pcm_channel_weight_info,
  4010. .get = msm_pcm_channel_weight_get,
  4011. .put = msm_pcm_channel_weight_put,
  4012. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4013. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  4014. },
  4015. {
  4016. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4017. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4018. .name = "MultiMedia18 Output Channel3",
  4019. .info = msm_pcm_channel_weight_info,
  4020. .get = msm_pcm_channel_weight_get,
  4021. .put = msm_pcm_channel_weight_put,
  4022. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4023. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  4024. },
  4025. {
  4026. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4027. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4028. .name = "MultiMedia18 Output Channel4",
  4029. .info = msm_pcm_channel_weight_info,
  4030. .get = msm_pcm_channel_weight_get,
  4031. .put = msm_pcm_channel_weight_put,
  4032. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4033. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  4034. },
  4035. {
  4036. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4037. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4038. .name = "MultiMedia18 Output Channel5",
  4039. .info = msm_pcm_channel_weight_info,
  4040. .get = msm_pcm_channel_weight_get,
  4041. .put = msm_pcm_channel_weight_put,
  4042. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4043. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  4044. },
  4045. {
  4046. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4047. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4048. .name = "MultiMedia18 Output Channel6",
  4049. .info = msm_pcm_channel_weight_info,
  4050. .get = msm_pcm_channel_weight_get,
  4051. .put = msm_pcm_channel_weight_put,
  4052. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4053. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  4054. },
  4055. {
  4056. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4057. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4058. .name = "MultiMedia18 Output Channel7",
  4059. .info = msm_pcm_channel_weight_info,
  4060. .get = msm_pcm_channel_weight_get,
  4061. .put = msm_pcm_channel_weight_put,
  4062. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4063. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  4064. },
  4065. {
  4066. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4067. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4068. .name = "MultiMedia18 Output Channel8",
  4069. .info = msm_pcm_channel_weight_info,
  4070. .get = msm_pcm_channel_weight_get,
  4071. .put = msm_pcm_channel_weight_put,
  4072. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4073. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  4074. },
  4075. {
  4076. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4077. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4078. .name = "MultiMedia18 Output Channel9",
  4079. .info = msm_pcm_channel_weight_info,
  4080. .get = msm_pcm_channel_weight_get,
  4081. .put = msm_pcm_channel_weight_put,
  4082. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4083. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  4084. },
  4085. {
  4086. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4087. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4088. .name = "MultiMedia18 Output Channel10",
  4089. .info = msm_pcm_channel_weight_info,
  4090. .get = msm_pcm_channel_weight_get,
  4091. .put = msm_pcm_channel_weight_put,
  4092. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4093. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 9,}
  4094. },
  4095. {
  4096. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4097. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4098. .name = "MultiMedia18 Output Channel11",
  4099. .info = msm_pcm_channel_weight_info,
  4100. .get = msm_pcm_channel_weight_get,
  4101. .put = msm_pcm_channel_weight_put,
  4102. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4103. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 10,}
  4104. },
  4105. {
  4106. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4107. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4108. .name = "MultiMedia18 Output Channel12",
  4109. .info = msm_pcm_channel_weight_info,
  4110. .get = msm_pcm_channel_weight_get,
  4111. .put = msm_pcm_channel_weight_put,
  4112. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4113. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 11,}
  4114. },
  4115. {
  4116. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4117. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4118. .name = "MultiMedia18 Output Channel13",
  4119. .info = msm_pcm_channel_weight_info,
  4120. .get = msm_pcm_channel_weight_get,
  4121. .put = msm_pcm_channel_weight_put,
  4122. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4123. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 12,}
  4124. },
  4125. {
  4126. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4127. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4128. .name = "MultiMedia18 Output Channel14",
  4129. .info = msm_pcm_channel_weight_info,
  4130. .get = msm_pcm_channel_weight_get,
  4131. .put = msm_pcm_channel_weight_put,
  4132. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4133. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 13,}
  4134. },
  4135. {
  4136. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4137. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4138. .name = "MultiMedia19 Output Channel1",
  4139. .info = msm_pcm_channel_weight_info,
  4140. .get = msm_pcm_channel_weight_get,
  4141. .put = msm_pcm_channel_weight_put,
  4142. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4143. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 0,}
  4144. },
  4145. {
  4146. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4147. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4148. .name = "MultiMedia19 Output Channel2",
  4149. .info = msm_pcm_channel_weight_info,
  4150. .get = msm_pcm_channel_weight_get,
  4151. .put = msm_pcm_channel_weight_put,
  4152. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4153. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 1, }
  4154. },
  4155. {
  4156. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4157. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4158. .name = "MultiMedia19 Output Channel3",
  4159. .info = msm_pcm_channel_weight_info,
  4160. .get = msm_pcm_channel_weight_get,
  4161. .put = msm_pcm_channel_weight_put,
  4162. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4163. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 2,}
  4164. },
  4165. {
  4166. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4167. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4168. .name = "MultiMedia19 Output Channel4",
  4169. .info = msm_pcm_channel_weight_info,
  4170. .get = msm_pcm_channel_weight_get,
  4171. .put = msm_pcm_channel_weight_put,
  4172. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4173. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  4174. },
  4175. {
  4176. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4177. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4178. .name = "MultiMedia19 Output Channel5",
  4179. .info = msm_pcm_channel_weight_info,
  4180. .get = msm_pcm_channel_weight_get,
  4181. .put = msm_pcm_channel_weight_put,
  4182. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4183. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  4184. },
  4185. {
  4186. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4187. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4188. .name = "MultiMedia19 Output Channel6",
  4189. .info = msm_pcm_channel_weight_info,
  4190. .get = msm_pcm_channel_weight_get,
  4191. .put = msm_pcm_channel_weight_put,
  4192. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4193. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  4194. },
  4195. {
  4196. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4197. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4198. .name = "MultiMedia19 Output Channel7",
  4199. .info = msm_pcm_channel_weight_info,
  4200. .get = msm_pcm_channel_weight_get,
  4201. .put = msm_pcm_channel_weight_put,
  4202. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4203. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  4204. },
  4205. {
  4206. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4207. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4208. .name = "MultiMedia19 Output Channel8",
  4209. .info = msm_pcm_channel_weight_info,
  4210. .get = msm_pcm_channel_weight_get,
  4211. .put = msm_pcm_channel_weight_put,
  4212. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4213. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  4214. },
  4215. {
  4216. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4217. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4218. .name = "MultiMedia19 Output Channel9",
  4219. .info = msm_pcm_channel_weight_info,
  4220. .get = msm_pcm_channel_weight_get,
  4221. .put = msm_pcm_channel_weight_put,
  4222. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4223. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  4224. },
  4225. {
  4226. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4227. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4228. .name = "MultiMedia19 Output Channel10",
  4229. .info = msm_pcm_channel_weight_info,
  4230. .get = msm_pcm_channel_weight_get,
  4231. .put = msm_pcm_channel_weight_put,
  4232. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4233. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 9,}
  4234. },
  4235. {
  4236. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4237. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4238. .name = "MultiMedia19 Output Channel11",
  4239. .info = msm_pcm_channel_weight_info,
  4240. .get = msm_pcm_channel_weight_get,
  4241. .put = msm_pcm_channel_weight_put,
  4242. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4243. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 10,}
  4244. },
  4245. {
  4246. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4247. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4248. .name = "MultiMedia19 Output Channel12",
  4249. .info = msm_pcm_channel_weight_info,
  4250. .get = msm_pcm_channel_weight_get,
  4251. .put = msm_pcm_channel_weight_put,
  4252. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4253. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 11,}
  4254. },
  4255. {
  4256. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4257. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4258. .name = "MultiMedia19 Output Channel13",
  4259. .info = msm_pcm_channel_weight_info,
  4260. .get = msm_pcm_channel_weight_get,
  4261. .put = msm_pcm_channel_weight_put,
  4262. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4263. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 12,}
  4264. },
  4265. {
  4266. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4267. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4268. .name = "MultiMedia19 Output Channel14",
  4269. .info = msm_pcm_channel_weight_info,
  4270. .get = msm_pcm_channel_weight_get,
  4271. .put = msm_pcm_channel_weight_put,
  4272. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4273. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 13,}
  4274. },
  4275. {
  4276. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4277. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4278. .name = "MultiMedia28 Output Channel1",
  4279. .info = msm_pcm_channel_weight_info,
  4280. .get = msm_pcm_channel_weight_get,
  4281. .put = msm_pcm_channel_weight_put,
  4282. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4283. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 0,}
  4284. },
  4285. {
  4286. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4287. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4288. .name = "MultiMedia28 Output Channel2",
  4289. .info = msm_pcm_channel_weight_info,
  4290. .get = msm_pcm_channel_weight_get,
  4291. .put = msm_pcm_channel_weight_put,
  4292. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4293. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 1, }
  4294. },
  4295. {
  4296. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4297. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4298. .name = "MultiMedia28 Output Channel3",
  4299. .info = msm_pcm_channel_weight_info,
  4300. .get = msm_pcm_channel_weight_get,
  4301. .put = msm_pcm_channel_weight_put,
  4302. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4303. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 2,}
  4304. },
  4305. {
  4306. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4307. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4308. .name = "MultiMedia28 Output Channel4",
  4309. .info = msm_pcm_channel_weight_info,
  4310. .get = msm_pcm_channel_weight_get,
  4311. .put = msm_pcm_channel_weight_put,
  4312. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4313. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4314. },
  4315. {
  4316. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4317. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4318. .name = "MultiMedia28 Output Channel5",
  4319. .info = msm_pcm_channel_weight_info,
  4320. .get = msm_pcm_channel_weight_get,
  4321. .put = msm_pcm_channel_weight_put,
  4322. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4323. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4324. },
  4325. {
  4326. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4327. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4328. .name = "MultiMedia28 Output Channel6",
  4329. .info = msm_pcm_channel_weight_info,
  4330. .get = msm_pcm_channel_weight_get,
  4331. .put = msm_pcm_channel_weight_put,
  4332. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4333. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4334. },
  4335. {
  4336. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4337. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4338. .name = "MultiMedia28 Output Channel7",
  4339. .info = msm_pcm_channel_weight_info,
  4340. .get = msm_pcm_channel_weight_get,
  4341. .put = msm_pcm_channel_weight_put,
  4342. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4343. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4344. },
  4345. {
  4346. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4347. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4348. .name = "MultiMedia28 Output Channel8",
  4349. .info = msm_pcm_channel_weight_info,
  4350. .get = msm_pcm_channel_weight_get,
  4351. .put = msm_pcm_channel_weight_put,
  4352. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4353. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4354. },
  4355. {
  4356. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4357. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4358. .name = "MultiMedia28 Output Channel9",
  4359. .info = msm_pcm_channel_weight_info,
  4360. .get = msm_pcm_channel_weight_get,
  4361. .put = msm_pcm_channel_weight_put,
  4362. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4363. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4364. },
  4365. {
  4366. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4367. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4368. .name = "MultiMedia28 Output Channel10",
  4369. .info = msm_pcm_channel_weight_info,
  4370. .get = msm_pcm_channel_weight_get,
  4371. .put = msm_pcm_channel_weight_put,
  4372. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4373. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 9,}
  4374. },
  4375. {
  4376. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4377. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4378. .name = "MultiMedia28 Output Channel11",
  4379. .info = msm_pcm_channel_weight_info,
  4380. .get = msm_pcm_channel_weight_get,
  4381. .put = msm_pcm_channel_weight_put,
  4382. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4383. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 10,}
  4384. },
  4385. {
  4386. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4387. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4388. .name = "MultiMedia28 Output Channel12",
  4389. .info = msm_pcm_channel_weight_info,
  4390. .get = msm_pcm_channel_weight_get,
  4391. .put = msm_pcm_channel_weight_put,
  4392. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4393. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 11,}
  4394. },
  4395. {
  4396. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4397. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4398. .name = "MultiMedia28 Output Channel13",
  4399. .info = msm_pcm_channel_weight_info,
  4400. .get = msm_pcm_channel_weight_get,
  4401. .put = msm_pcm_channel_weight_put,
  4402. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4403. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 12,}
  4404. },
  4405. {
  4406. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4407. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4408. .name = "MultiMedia28 Output Channel14",
  4409. .info = msm_pcm_channel_weight_info,
  4410. .get = msm_pcm_channel_weight_get,
  4411. .put = msm_pcm_channel_weight_put,
  4412. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4413. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 13,}
  4414. },
  4415. {
  4416. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4417. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4418. .name = "MultiMedia29 Output Channel1",
  4419. .info = msm_pcm_channel_weight_info,
  4420. .get = msm_pcm_channel_weight_get,
  4421. .put = msm_pcm_channel_weight_put,
  4422. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4423. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 0,}
  4424. },
  4425. {
  4426. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4427. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4428. .name = "MultiMedia29 Output Channel2",
  4429. .info = msm_pcm_channel_weight_info,
  4430. .get = msm_pcm_channel_weight_get,
  4431. .put = msm_pcm_channel_weight_put,
  4432. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4433. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 1, }
  4434. },
  4435. {
  4436. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4437. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4438. .name = "MultiMedia29 Output Channel3",
  4439. .info = msm_pcm_channel_weight_info,
  4440. .get = msm_pcm_channel_weight_get,
  4441. .put = msm_pcm_channel_weight_put,
  4442. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4443. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 2,}
  4444. },
  4445. {
  4446. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4447. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4448. .name = "MultiMedia29 Output Channel4",
  4449. .info = msm_pcm_channel_weight_info,
  4450. .get = msm_pcm_channel_weight_get,
  4451. .put = msm_pcm_channel_weight_put,
  4452. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4453. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4454. },
  4455. {
  4456. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4457. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4458. .name = "MultiMedia29 Output Channel5",
  4459. .info = msm_pcm_channel_weight_info,
  4460. .get = msm_pcm_channel_weight_get,
  4461. .put = msm_pcm_channel_weight_put,
  4462. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4463. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4464. },
  4465. {
  4466. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4467. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4468. .name = "MultiMedia29 Output Channel6",
  4469. .info = msm_pcm_channel_weight_info,
  4470. .get = msm_pcm_channel_weight_get,
  4471. .put = msm_pcm_channel_weight_put,
  4472. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4473. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4474. },
  4475. {
  4476. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4477. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4478. .name = "MultiMedia29 Output Channel7",
  4479. .info = msm_pcm_channel_weight_info,
  4480. .get = msm_pcm_channel_weight_get,
  4481. .put = msm_pcm_channel_weight_put,
  4482. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4483. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4484. },
  4485. {
  4486. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4487. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4488. .name = "MultiMedia29 Output Channel8",
  4489. .info = msm_pcm_channel_weight_info,
  4490. .get = msm_pcm_channel_weight_get,
  4491. .put = msm_pcm_channel_weight_put,
  4492. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4493. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4494. },
  4495. {
  4496. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4497. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4498. .name = "MultiMedia29 Output Channel9",
  4499. .info = msm_pcm_channel_weight_info,
  4500. .get = msm_pcm_channel_weight_get,
  4501. .put = msm_pcm_channel_weight_put,
  4502. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4503. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4504. },
  4505. {
  4506. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4507. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4508. .name = "MultiMedia29 Output Channel10",
  4509. .info = msm_pcm_channel_weight_info,
  4510. .get = msm_pcm_channel_weight_get,
  4511. .put = msm_pcm_channel_weight_put,
  4512. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4513. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 9,}
  4514. },
  4515. {
  4516. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4517. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4518. .name = "MultiMedia29 Output Channel11",
  4519. .info = msm_pcm_channel_weight_info,
  4520. .get = msm_pcm_channel_weight_get,
  4521. .put = msm_pcm_channel_weight_put,
  4522. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4523. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 10,}
  4524. },
  4525. {
  4526. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4527. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4528. .name = "MultiMedia29 Output Channel12",
  4529. .info = msm_pcm_channel_weight_info,
  4530. .get = msm_pcm_channel_weight_get,
  4531. .put = msm_pcm_channel_weight_put,
  4532. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4533. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 11,}
  4534. },
  4535. {
  4536. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4537. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4538. .name = "MultiMedia29 Output Channel13",
  4539. .info = msm_pcm_channel_weight_info,
  4540. .get = msm_pcm_channel_weight_get,
  4541. .put = msm_pcm_channel_weight_put,
  4542. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4543. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 12,}
  4544. },
  4545. {
  4546. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4547. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4548. .name = "MultiMedia29 Output Channel14",
  4549. .info = msm_pcm_channel_weight_info,
  4550. .get = msm_pcm_channel_weight_get,
  4551. .put = msm_pcm_channel_weight_put,
  4552. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4553. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 13,}
  4554. },
  4555. {
  4556. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4557. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4558. .name = "MultiMedia30 Output Channel1",
  4559. .info = msm_pcm_channel_weight_info,
  4560. .get = msm_pcm_channel_weight_get,
  4561. .put = msm_pcm_channel_weight_put,
  4562. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4563. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 0,}
  4564. },
  4565. {
  4566. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4567. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4568. .name = "MultiMedia30 Output Channel2",
  4569. .info = msm_pcm_channel_weight_info,
  4570. .get = msm_pcm_channel_weight_get,
  4571. .put = msm_pcm_channel_weight_put,
  4572. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4573. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 1, }
  4574. },
  4575. {
  4576. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4577. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4578. .name = "MultiMedia30 Output Channel3",
  4579. .info = msm_pcm_channel_weight_info,
  4580. .get = msm_pcm_channel_weight_get,
  4581. .put = msm_pcm_channel_weight_put,
  4582. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4583. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 2,}
  4584. },
  4585. {
  4586. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4587. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4588. .name = "MultiMedia30 Output Channel4",
  4589. .info = msm_pcm_channel_weight_info,
  4590. .get = msm_pcm_channel_weight_get,
  4591. .put = msm_pcm_channel_weight_put,
  4592. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4593. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 3,}
  4594. },
  4595. {
  4596. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4597. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4598. .name = "MultiMedia30 Output Channel5",
  4599. .info = msm_pcm_channel_weight_info,
  4600. .get = msm_pcm_channel_weight_get,
  4601. .put = msm_pcm_channel_weight_put,
  4602. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4603. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 4,}
  4604. },
  4605. {
  4606. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4607. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4608. .name = "MultiMedia30 Output Channel6",
  4609. .info = msm_pcm_channel_weight_info,
  4610. .get = msm_pcm_channel_weight_get,
  4611. .put = msm_pcm_channel_weight_put,
  4612. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4613. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 5,}
  4614. },
  4615. {
  4616. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4617. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4618. .name = "MultiMedia30 Output Channel7",
  4619. .info = msm_pcm_channel_weight_info,
  4620. .get = msm_pcm_channel_weight_get,
  4621. .put = msm_pcm_channel_weight_put,
  4622. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4623. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 6,}
  4624. },
  4625. {
  4626. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4627. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4628. .name = "MultiMedia30 Output Channel8",
  4629. .info = msm_pcm_channel_weight_info,
  4630. .get = msm_pcm_channel_weight_get,
  4631. .put = msm_pcm_channel_weight_put,
  4632. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4633. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 7,}
  4634. },
  4635. {
  4636. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4637. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4638. .name = "MultiMedia30 Output Channel9",
  4639. .info = msm_pcm_channel_weight_info,
  4640. .get = msm_pcm_channel_weight_get,
  4641. .put = msm_pcm_channel_weight_put,
  4642. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4643. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 8,}
  4644. },
  4645. {
  4646. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4647. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4648. .name = "MultiMedia30 Output Channel10",
  4649. .info = msm_pcm_channel_weight_info,
  4650. .get = msm_pcm_channel_weight_get,
  4651. .put = msm_pcm_channel_weight_put,
  4652. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4653. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 9,}
  4654. },
  4655. {
  4656. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4657. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4658. .name = "MultiMedia30 Output Channel11",
  4659. .info = msm_pcm_channel_weight_info,
  4660. .get = msm_pcm_channel_weight_get,
  4661. .put = msm_pcm_channel_weight_put,
  4662. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4663. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 10,}
  4664. },
  4665. {
  4666. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4667. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4668. .name = "MultiMedia30 Output Channel12",
  4669. .info = msm_pcm_channel_weight_info,
  4670. .get = msm_pcm_channel_weight_get,
  4671. .put = msm_pcm_channel_weight_put,
  4672. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4673. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4674. },
  4675. {
  4676. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4677. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4678. .name = "MultiMedia30 Output Channel13",
  4679. .info = msm_pcm_channel_weight_info,
  4680. .get = msm_pcm_channel_weight_get,
  4681. .put = msm_pcm_channel_weight_put,
  4682. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4683. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4684. },
  4685. {
  4686. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4687. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4688. .name = "MultiMedia30 Output Channel14",
  4689. .info = msm_pcm_channel_weight_info,
  4690. .get = msm_pcm_channel_weight_get,
  4691. .put = msm_pcm_channel_weight_put,
  4692. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4693. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4694. },
  4695. {
  4696. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4697. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4698. .name = "MultiMedia1 Channel1",
  4699. .info = msm_pcm_channel_input_be_info,
  4700. .get = msm_pcm_channel_input_be_get,
  4701. .put = msm_pcm_channel_input_be_put,
  4702. .private_value = (unsigned long)&(mm1_ch1_enum)
  4703. },
  4704. {
  4705. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4706. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4707. .name = "MultiMedia1 Channel2",
  4708. .info = msm_pcm_channel_input_be_info,
  4709. .get = msm_pcm_channel_input_be_get,
  4710. .put = msm_pcm_channel_input_be_put,
  4711. .private_value = (unsigned long)&(mm1_ch2_enum)
  4712. },
  4713. {
  4714. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4715. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4716. .name = "MultiMedia1 Channel3",
  4717. .info = msm_pcm_channel_input_be_info,
  4718. .get = msm_pcm_channel_input_be_get,
  4719. .put = msm_pcm_channel_input_be_put,
  4720. .private_value = (unsigned long)&(mm1_ch3_enum)
  4721. },
  4722. {
  4723. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4724. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4725. .name = "MultiMedia1 Channel4",
  4726. .info = msm_pcm_channel_input_be_info,
  4727. .get = msm_pcm_channel_input_be_get,
  4728. .put = msm_pcm_channel_input_be_put,
  4729. .private_value = (unsigned long)&(mm1_ch4_enum)
  4730. },
  4731. {
  4732. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4733. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4734. .name = "MultiMedia1 Channel5",
  4735. .info = msm_pcm_channel_input_be_info,
  4736. .get = msm_pcm_channel_input_be_get,
  4737. .put = msm_pcm_channel_input_be_put,
  4738. .private_value = (unsigned long)&(mm1_ch5_enum)
  4739. },
  4740. {
  4741. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4742. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4743. .name = "MultiMedia1 Channel6",
  4744. .info = msm_pcm_channel_input_be_info,
  4745. .get = msm_pcm_channel_input_be_get,
  4746. .put = msm_pcm_channel_input_be_put,
  4747. .private_value = (unsigned long)&(mm1_ch6_enum)
  4748. },
  4749. {
  4750. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4751. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4752. .name = "MultiMedia1 Channel7",
  4753. .info = msm_pcm_channel_input_be_info,
  4754. .get = msm_pcm_channel_input_be_get,
  4755. .put = msm_pcm_channel_input_be_put,
  4756. .private_value = (unsigned long)&(mm1_ch7_enum)
  4757. },
  4758. {
  4759. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4760. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4761. .name = "MultiMedia1 Channel8",
  4762. .info = msm_pcm_channel_input_be_info,
  4763. .get = msm_pcm_channel_input_be_get,
  4764. .put = msm_pcm_channel_input_be_put,
  4765. .private_value = (unsigned long)&(mm1_ch8_enum)
  4766. },
  4767. {
  4768. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4769. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4770. .name = "MultiMedia18 Channel1",
  4771. .info = msm_pcm_channel_input_be_info,
  4772. .get = msm_pcm_channel_input_be_get,
  4773. .put = msm_pcm_channel_input_be_put,
  4774. .private_value = (unsigned long)&(mm18_ch1_enum)
  4775. },
  4776. {
  4777. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4778. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4779. .name = "MultiMedia18 Channel2",
  4780. .info = msm_pcm_channel_input_be_info,
  4781. .get = msm_pcm_channel_input_be_get,
  4782. .put = msm_pcm_channel_input_be_put,
  4783. .private_value = (unsigned long)&(mm18_ch2_enum)
  4784. },
  4785. {
  4786. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4787. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4788. .name = "MultiMedia19 Channel1",
  4789. .info = msm_pcm_channel_input_be_info,
  4790. .get = msm_pcm_channel_input_be_get,
  4791. .put = msm_pcm_channel_input_be_put,
  4792. .private_value = (unsigned long)&(mm19_ch1_enum)
  4793. },
  4794. {
  4795. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4796. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4797. .name = "MultiMedia19 Channel2",
  4798. .info = msm_pcm_channel_input_be_info,
  4799. .get = msm_pcm_channel_input_be_get,
  4800. .put = msm_pcm_channel_input_be_put,
  4801. .private_value = (unsigned long)&(mm19_ch2_enum)
  4802. },
  4803. {
  4804. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4805. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4806. .name = "MultiMedia28 Channel1",
  4807. .info = msm_pcm_channel_input_be_info,
  4808. .get = msm_pcm_channel_input_be_get,
  4809. .put = msm_pcm_channel_input_be_put,
  4810. .private_value = (unsigned long)&(mm28_ch1_enum)
  4811. },
  4812. {
  4813. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4814. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4815. .name = "MultiMedia28 Channel2",
  4816. .info = msm_pcm_channel_input_be_info,
  4817. .get = msm_pcm_channel_input_be_get,
  4818. .put = msm_pcm_channel_input_be_put,
  4819. .private_value = (unsigned long)&(mm28_ch2_enum)
  4820. },
  4821. {
  4822. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4823. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4824. .name = "MultiMedia29 Channel1",
  4825. .info = msm_pcm_channel_input_be_info,
  4826. .get = msm_pcm_channel_input_be_get,
  4827. .put = msm_pcm_channel_input_be_put,
  4828. .private_value = (unsigned long)&(mm29_ch1_enum)
  4829. },
  4830. {
  4831. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4832. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4833. .name = "MultiMedia29 Channel2",
  4834. .info = msm_pcm_channel_input_be_info,
  4835. .get = msm_pcm_channel_input_be_get,
  4836. .put = msm_pcm_channel_input_be_put,
  4837. .private_value = (unsigned long)&(mm29_ch2_enum)
  4838. },
  4839. {
  4840. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4841. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4842. .name = "MultiMedia30 Channel1",
  4843. .info = msm_pcm_channel_input_be_info,
  4844. .get = msm_pcm_channel_input_be_get,
  4845. .put = msm_pcm_channel_input_be_put,
  4846. .private_value = (unsigned long)&(mm30_ch1_enum)
  4847. },
  4848. {
  4849. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4850. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4851. .name = "MultiMedia30 Channel2",
  4852. .info = msm_pcm_channel_input_be_info,
  4853. .get = msm_pcm_channel_input_be_get,
  4854. .put = msm_pcm_channel_input_be_put,
  4855. .private_value = (unsigned long)&(mm30_ch2_enum)
  4856. },
  4857. {
  4858. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4859. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4860. .name = "MultiMedia1 Output Channel Map",
  4861. .info = msm_pcm_channel_output_map_info,
  4862. .get = msm_pcm_channel_output_map_get,
  4863. .put = msm_pcm_channel_output_map_put,
  4864. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4865. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4866. },
  4867. {
  4868. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4869. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4870. .name = "MultiMedia2 Output Channel Map",
  4871. .info = msm_pcm_channel_output_map_info,
  4872. .get = msm_pcm_channel_output_map_get,
  4873. .put = msm_pcm_channel_output_map_put,
  4874. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4875. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4876. },
  4877. {
  4878. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4879. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4880. .name = "MultiMedia3 Output Channel Map",
  4881. .info = msm_pcm_channel_output_map_info,
  4882. .get = msm_pcm_channel_output_map_get,
  4883. .put = msm_pcm_channel_output_map_put,
  4884. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4885. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4886. },
  4887. {
  4888. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4889. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4890. .name = "MultiMedia4 Output Channel Map",
  4891. .info = msm_pcm_channel_output_map_info,
  4892. .get = msm_pcm_channel_output_map_get,
  4893. .put = msm_pcm_channel_output_map_put,
  4894. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4895. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4896. },
  4897. {
  4898. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4899. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4900. .name = "MultiMedia5 Output Channel Map",
  4901. .info = msm_pcm_channel_output_map_info,
  4902. .get = msm_pcm_channel_output_map_get,
  4903. .put = msm_pcm_channel_output_map_put,
  4904. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4905. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4906. },
  4907. {
  4908. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4909. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4910. .name = "MultiMedia6 Output Channel Map",
  4911. .info = msm_pcm_channel_output_map_info,
  4912. .get = msm_pcm_channel_output_map_get,
  4913. .put = msm_pcm_channel_output_map_put,
  4914. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4915. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4916. },
  4917. {
  4918. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4919. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4920. .name = "MultiMedia18 Output Channel Map",
  4921. .info = msm_pcm_channel_output_map_info,
  4922. .get = msm_pcm_channel_output_map_get,
  4923. .put = msm_pcm_channel_output_map_put,
  4924. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4925. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4926. },
  4927. {
  4928. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4929. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4930. .name = "MultiMedia19 Output Channel Map",
  4931. .info = msm_pcm_channel_output_map_info,
  4932. .get = msm_pcm_channel_output_map_get,
  4933. .put = msm_pcm_channel_output_map_put,
  4934. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4935. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4936. },
  4937. {
  4938. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4939. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4940. .name = "MultiMedia28 Output Channel Map",
  4941. .info = msm_pcm_channel_output_map_info,
  4942. .get = msm_pcm_channel_output_map_get,
  4943. .put = msm_pcm_channel_output_map_put,
  4944. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4945. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4946. },
  4947. {
  4948. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4949. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4950. .name = "MultiMedia29 Output Channel Map",
  4951. .info = msm_pcm_channel_output_map_info,
  4952. .get = msm_pcm_channel_output_map_get,
  4953. .put = msm_pcm_channel_output_map_put,
  4954. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4955. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4956. },
  4957. {
  4958. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4959. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4960. .name = "MultiMedia30 Output Channel Map",
  4961. .info = msm_pcm_channel_output_map_info,
  4962. .get = msm_pcm_channel_output_map_get,
  4963. .put = msm_pcm_channel_output_map_put,
  4964. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4965. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4966. },
  4967. };
  4968. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4969. struct snd_ctl_elem_value *ucontrol)
  4970. {
  4971. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4972. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4973. ucontrol->value.integer.value[0]);
  4974. return 0;
  4975. }
  4976. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4977. struct snd_ctl_elem_value *ucontrol)
  4978. {
  4979. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4980. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4981. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4982. return 0;
  4983. }
  4984. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4985. struct snd_ctl_elem_value *ucontrol)
  4986. {
  4987. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4988. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4989. ucontrol->value.integer.value[0]);
  4990. return 0;
  4991. }
  4992. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4993. struct snd_ctl_elem_value *ucontrol)
  4994. {
  4995. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4996. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4997. __func__, msm_ec_ref_ch_downmixed);
  4998. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4999. return 0;
  5000. }
  5001. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  5002. struct snd_ctl_elem_value *ucontrol)
  5003. {
  5004. int i = 0, ret = 0;
  5005. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  5006. int out_channel_idx = ((struct soc_multi_mixer_control *)
  5007. kcontrol->private_value)->shift;
  5008. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  5009. weights[i] = ucontrol->value.integer.value[i];
  5010. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  5011. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  5012. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  5013. return ret;
  5014. }
  5015. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  5016. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  5017. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  5018. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  5019. struct snd_ctl_elem_value *ucontrol)
  5020. {
  5021. switch (msm_ec_ref_bit_format) {
  5022. case SNDRV_PCM_FORMAT_S24_LE:
  5023. ucontrol->value.integer.value[0] = 2;
  5024. break;
  5025. case SNDRV_PCM_FORMAT_S16_LE:
  5026. ucontrol->value.integer.value[0] = 1;
  5027. break;
  5028. default:
  5029. ucontrol->value.integer.value[0] = 0;
  5030. break;
  5031. }
  5032. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  5033. __func__, ucontrol->value.integer.value[0]);
  5034. return 0;
  5035. }
  5036. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  5037. struct snd_ctl_elem_value *ucontrol)
  5038. {
  5039. u16 bit_width = 0;
  5040. switch (ucontrol->value.integer.value[0]) {
  5041. case 2:
  5042. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  5043. break;
  5044. case 1:
  5045. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  5046. break;
  5047. default:
  5048. msm_ec_ref_bit_format = 0;
  5049. break;
  5050. }
  5051. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  5052. bit_width = 16;
  5053. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  5054. bit_width = 24;
  5055. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  5056. __func__, msm_ec_ref_bit_format);
  5057. adm_ec_ref_rx_bit_width(bit_width);
  5058. return 0;
  5059. }
  5060. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  5061. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  5062. struct snd_ctl_elem_value *ucontrol)
  5063. {
  5064. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  5065. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  5066. __func__, ucontrol->value.integer.value[0]);
  5067. return 0;
  5068. }
  5069. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  5070. struct snd_ctl_elem_value *ucontrol)
  5071. {
  5072. switch (ucontrol->value.integer.value[0]) {
  5073. case 0:
  5074. msm_ec_ref_sampling_rate = 0;
  5075. break;
  5076. case 1:
  5077. msm_ec_ref_sampling_rate = 8000;
  5078. break;
  5079. case 2:
  5080. msm_ec_ref_sampling_rate = 16000;
  5081. break;
  5082. case 3:
  5083. msm_ec_ref_sampling_rate = 32000;
  5084. break;
  5085. case 4:
  5086. msm_ec_ref_sampling_rate = 44100;
  5087. break;
  5088. case 5:
  5089. msm_ec_ref_sampling_rate = 48000;
  5090. break;
  5091. case 6:
  5092. msm_ec_ref_sampling_rate = 96000;
  5093. break;
  5094. case 7:
  5095. msm_ec_ref_sampling_rate = 192000;
  5096. break;
  5097. case 8:
  5098. msm_ec_ref_sampling_rate = 384000;
  5099. break;
  5100. default:
  5101. msm_ec_ref_sampling_rate = 48000;
  5102. break;
  5103. }
  5104. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  5105. __func__, msm_ec_ref_sampling_rate);
  5106. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  5107. return 0;
  5108. }
  5109. static int get_ec_ref_port_id(int value, int *index)
  5110. {
  5111. int port_id;
  5112. switch (value) {
  5113. case 0:
  5114. *index = 0;
  5115. port_id = AFE_PORT_INVALID;
  5116. break;
  5117. case 1:
  5118. *index = 1;
  5119. port_id = SLIMBUS_0_RX;
  5120. break;
  5121. case 2:
  5122. *index = 2;
  5123. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  5124. break;
  5125. case 3:
  5126. *index = 3;
  5127. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5128. break;
  5129. case 4:
  5130. *index = 4;
  5131. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5132. break;
  5133. case 5:
  5134. *index = 5;
  5135. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5136. break;
  5137. case 6:
  5138. *index = 6;
  5139. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5140. break;
  5141. case 7:
  5142. *index = 7;
  5143. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  5144. break;
  5145. case 9:
  5146. *index = 9;
  5147. port_id = SLIMBUS_5_RX;
  5148. break;
  5149. case 10:
  5150. *index = 10;
  5151. port_id = SLIMBUS_1_TX;
  5152. break;
  5153. case 11:
  5154. *index = 11;
  5155. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  5156. break;
  5157. case 12:
  5158. *index = 12;
  5159. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  5160. break;
  5161. case 13:
  5162. *index = 13;
  5163. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  5164. break;
  5165. case 14:
  5166. *index = 14;
  5167. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  5168. break;
  5169. case 15:
  5170. *index = 15;
  5171. port_id = SLIMBUS_6_RX;
  5172. break;
  5173. case 16:
  5174. *index = 16;
  5175. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  5176. break;
  5177. case 17:
  5178. *index = 17;
  5179. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  5180. break;
  5181. case 18:
  5182. *index = 18;
  5183. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  5184. break;
  5185. case 19:
  5186. *index = 19;
  5187. port_id = AFE_PORT_ID_USB_RX;
  5188. break;
  5189. case 20:
  5190. *index = 20;
  5191. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  5192. break;
  5193. case 21:
  5194. *index = 21;
  5195. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  5196. break;
  5197. case 22:
  5198. *index = 22;
  5199. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  5200. break;
  5201. case 23:
  5202. *index = 23;
  5203. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5204. break;
  5205. case 24:
  5206. *index = 24;
  5207. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  5208. break;
  5209. case 25:
  5210. *index = 25;
  5211. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  5212. break;
  5213. case 26:
  5214. *index = 26;
  5215. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  5216. break;
  5217. case 27:
  5218. *index = 27;
  5219. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  5220. break;
  5221. case 28:
  5222. *index = 28;
  5223. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  5224. break;
  5225. case 29:
  5226. *index = 29;
  5227. port_id = SLIMBUS_7_RX;
  5228. break;
  5229. case 30:
  5230. *index = 30;
  5231. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  5232. break;
  5233. case 31:
  5234. *index = 31;
  5235. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  5236. break;
  5237. case 32:
  5238. *index = 32;
  5239. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  5240. break;
  5241. case 33:
  5242. *index = 33;
  5243. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  5244. break;
  5245. case 34:
  5246. *index = 34;
  5247. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  5248. break;
  5249. case 35:
  5250. *index = 35;
  5251. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  5252. break;
  5253. case 36:
  5254. *index = 36;
  5255. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5256. break;
  5257. case 37:
  5258. *index = 37;
  5259. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5260. break;
  5261. case 38:
  5262. *index = 38;
  5263. port_id = AFE_PORT_ID_SENARY_MI2S_RX;
  5264. break;
  5265. case 39:
  5266. *index = 39;
  5267. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  5268. break;
  5269. case 40:
  5270. *index = 40;
  5271. port_id = AFE_PORT_ID_SENARY_MI2S_TX;
  5272. break;
  5273. default:
  5274. *index = 0; /* NONE */
  5275. pr_err("%s: Invalid value %d\n", __func__, value);
  5276. port_id = AFE_PORT_INVALID;
  5277. break;
  5278. }
  5279. return port_id;
  5280. }
  5281. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5282. struct snd_ctl_elem_value *ucontrol)
  5283. {
  5284. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5285. mutex_lock(&routing_lock);
  5286. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5287. mutex_unlock(&routing_lock);
  5288. return 0;
  5289. }
  5290. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5291. struct snd_ctl_elem_value *ucontrol)
  5292. {
  5293. int value = ucontrol->value.integer.value[0];
  5294. mutex_lock(&routing_lock);
  5295. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5296. &afe_loopback_tx_port_index);
  5297. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5298. __func__, afe_loopback_tx_port_index);
  5299. mutex_unlock(&routing_lock);
  5300. return 0;
  5301. }
  5302. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5303. "32000", "44100", "48000", "96000", "192000", "384000"};
  5304. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5305. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5306. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5307. ec_ref_bit_format_text),
  5308. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5309. };
  5310. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5311. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5312. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5313. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5314. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5315. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5316. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5317. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5318. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5319. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5320. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5321. "DISPLAY_PORT1", "SEN_MI2S_RX", "QUIN_TDM_TX_0", "SENARY_MI2S_TX",
  5322. };
  5323. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5324. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5325. };
  5326. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5327. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5328. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5329. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5330. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5331. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5332. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5333. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5334. msm_route_ec_ref_params_enum[0],
  5335. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5336. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5337. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5338. msm_ec_ref_chmixer_weights_put),
  5339. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5340. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5341. msm_ec_ref_chmixer_weights_put),
  5342. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5343. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5344. msm_ec_ref_chmixer_weights_put),
  5345. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5346. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5347. msm_ec_ref_chmixer_weights_put),
  5348. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5349. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5350. msm_ec_ref_chmixer_weights_put),
  5351. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5352. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5353. msm_ec_ref_chmixer_weights_put),
  5354. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch7", SND_SOC_NOPM,
  5355. 6, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5356. msm_ec_ref_chmixer_weights_put),
  5357. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch8", SND_SOC_NOPM,
  5358. 7, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5359. msm_ec_ref_chmixer_weights_put),
  5360. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5361. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5362. };
  5363. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5364. struct snd_ctl_elem_value *ucontrol)
  5365. {
  5366. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5367. mutex_lock(&routing_lock);
  5368. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5369. mutex_unlock(&routing_lock);
  5370. return 0;
  5371. }
  5372. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5373. struct snd_ctl_elem_value *ucontrol)
  5374. {
  5375. int value = ucontrol->value.integer.value[0];
  5376. struct snd_soc_dapm_widget *widget =
  5377. snd_soc_dapm_kcontrol_widget(kcontrol);
  5378. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5379. struct snd_soc_dapm_update *update = NULL;
  5380. mutex_lock(&routing_lock);
  5381. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5382. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5383. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5384. __func__, msm_route_ec_ref_rx);
  5385. mutex_unlock(&routing_lock);
  5386. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5387. msm_route_ec_ref_rx, e, update);
  5388. return 0;
  5389. }
  5390. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5391. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5392. msm_route_ec_ref_rx_enum[0],
  5393. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5394. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5395. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5396. msm_route_ec_ref_rx_enum[0],
  5397. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5398. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5399. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5400. msm_route_ec_ref_rx_enum[0],
  5401. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5402. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5403. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5404. msm_route_ec_ref_rx_enum[0],
  5405. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5406. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5407. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5408. msm_route_ec_ref_rx_enum[0],
  5409. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5410. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5411. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5412. msm_route_ec_ref_rx_enum[0],
  5413. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5414. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5415. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5416. msm_route_ec_ref_rx_enum[0],
  5417. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5418. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5419. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5420. msm_route_ec_ref_rx_enum[0],
  5421. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5422. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5423. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5424. msm_route_ec_ref_rx_enum[0],
  5425. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5426. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5427. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5428. msm_route_ec_ref_rx_enum[0],
  5429. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5430. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5431. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5432. msm_route_ec_ref_rx_enum[0],
  5433. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5434. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5435. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5436. msm_route_ec_ref_rx_enum[0],
  5437. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5438. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5439. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5440. msm_route_ec_ref_rx_enum[0],
  5441. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5442. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5443. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5444. msm_route_ec_ref_rx_enum[0],
  5445. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5446. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5447. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5448. msm_route_ec_ref_rx_enum[0],
  5449. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5450. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5451. struct snd_ctl_elem_value *ucontrol)
  5452. {
  5453. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5454. mutex_lock(&routing_lock);
  5455. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5456. mutex_unlock(&routing_lock);
  5457. return 0;
  5458. }
  5459. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5460. struct snd_ctl_elem_value *ucontrol)
  5461. {
  5462. struct snd_soc_dapm_widget *widget =
  5463. snd_soc_dapm_kcontrol_widget(kcontrol);
  5464. int mux = ucontrol->value.enumerated.item[0];
  5465. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5466. int ret = 1;
  5467. bool state = true;
  5468. uint16_t ext_ec_ref_port_id;
  5469. struct snd_soc_dapm_update *update = NULL;
  5470. if (mux >= e->items) {
  5471. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5472. return -EINVAL;
  5473. }
  5474. mutex_lock(&routing_lock);
  5475. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5476. switch (msm_route_ext_ec_ref) {
  5477. case EXT_EC_REF_PRI_MI2S_TX:
  5478. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5479. break;
  5480. case EXT_EC_REF_SEC_MI2S_TX:
  5481. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5482. break;
  5483. case EXT_EC_REF_TERT_MI2S_TX:
  5484. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5485. break;
  5486. case EXT_EC_REF_QUAT_MI2S_TX:
  5487. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5488. break;
  5489. case EXT_EC_REF_QUIN_MI2S_TX:
  5490. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5491. break;
  5492. case EXT_EC_REF_SLIM_1_TX:
  5493. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5494. break;
  5495. case EXT_EC_REF_PRI_TDM_TX:
  5496. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5497. break;
  5498. case EXT_EC_REF_SEC_TDM_TX:
  5499. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5500. break;
  5501. case EXT_EC_REF_NONE:
  5502. default:
  5503. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5504. state = false;
  5505. break;
  5506. }
  5507. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5508. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5509. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5510. mutex_unlock(&routing_lock);
  5511. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5512. update);
  5513. } else {
  5514. ret = -EINVAL;
  5515. mutex_unlock(&routing_lock);
  5516. }
  5517. return ret;
  5518. }
  5519. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5520. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5521. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5522. "SLIM_1_TX", "PRI_TDM_TX",
  5523. "SEC_TDM_TX", "SENARY_MI2S_TX"};
  5524. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5525. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5526. };
  5527. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5528. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5529. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5530. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5531. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5532. MSM_BACKEND_DAI_PRI_I2S_RX,
  5533. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5534. msm_routing_put_audio_mixer),
  5535. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5536. MSM_BACKEND_DAI_PRI_I2S_RX,
  5537. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5538. msm_routing_put_audio_mixer),
  5539. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5540. MSM_BACKEND_DAI_PRI_I2S_RX,
  5541. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5542. msm_routing_put_audio_mixer),
  5543. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5544. MSM_BACKEND_DAI_PRI_I2S_RX,
  5545. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5546. msm_routing_put_audio_mixer),
  5547. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5548. MSM_BACKEND_DAI_PRI_I2S_RX,
  5549. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5550. msm_routing_put_audio_mixer),
  5551. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5552. MSM_BACKEND_DAI_PRI_I2S_RX,
  5553. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5554. msm_routing_put_audio_mixer),
  5555. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5556. MSM_BACKEND_DAI_PRI_I2S_RX,
  5557. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5558. msm_routing_put_audio_mixer),
  5559. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5560. MSM_BACKEND_DAI_PRI_I2S_RX,
  5561. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5562. msm_routing_put_audio_mixer),
  5563. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5564. MSM_BACKEND_DAI_PRI_I2S_RX,
  5565. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5566. msm_routing_put_audio_mixer),
  5567. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5568. MSM_BACKEND_DAI_PRI_I2S_RX,
  5569. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5570. msm_routing_put_audio_mixer),
  5571. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5572. MSM_BACKEND_DAI_PRI_I2S_RX,
  5573. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5574. msm_routing_put_audio_mixer),
  5575. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5576. MSM_BACKEND_DAI_PRI_I2S_RX,
  5577. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5578. msm_routing_put_audio_mixer),
  5579. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5580. MSM_BACKEND_DAI_PRI_I2S_RX,
  5581. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5582. msm_routing_put_audio_mixer),
  5583. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5584. MSM_BACKEND_DAI_PRI_I2S_RX,
  5585. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5586. msm_routing_put_audio_mixer),
  5587. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5588. MSM_BACKEND_DAI_PRI_I2S_RX,
  5589. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5590. msm_routing_put_audio_mixer),
  5591. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5592. MSM_BACKEND_DAI_PRI_I2S_RX,
  5593. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5594. msm_routing_put_audio_mixer),
  5595. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5596. MSM_BACKEND_DAI_PRI_I2S_RX,
  5597. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5598. msm_routing_put_audio_mixer),
  5599. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5600. MSM_BACKEND_DAI_PRI_I2S_RX,
  5601. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5602. msm_routing_put_audio_mixer),
  5603. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5604. MSM_BACKEND_DAI_PRI_I2S_RX,
  5605. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5606. msm_routing_put_audio_mixer),
  5607. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5608. MSM_BACKEND_DAI_PRI_I2S_RX,
  5609. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5610. msm_routing_put_audio_mixer),
  5611. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5612. MSM_BACKEND_DAI_PRI_I2S_RX,
  5613. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5614. msm_routing_put_audio_mixer),
  5615. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5616. MSM_BACKEND_DAI_PRI_I2S_RX,
  5617. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5618. msm_routing_put_audio_mixer),
  5619. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5620. MSM_BACKEND_DAI_PRI_I2S_RX,
  5621. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5622. msm_routing_put_audio_mixer),
  5623. };
  5624. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5625. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5626. MSM_BACKEND_DAI_SEC_I2S_RX,
  5627. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5628. msm_routing_put_audio_mixer),
  5629. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5630. MSM_BACKEND_DAI_SEC_I2S_RX,
  5631. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5632. msm_routing_put_audio_mixer),
  5633. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5634. MSM_BACKEND_DAI_SEC_I2S_RX,
  5635. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5636. msm_routing_put_audio_mixer),
  5637. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5638. MSM_BACKEND_DAI_SEC_I2S_RX,
  5639. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5640. msm_routing_put_audio_mixer),
  5641. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5642. MSM_BACKEND_DAI_SEC_I2S_RX,
  5643. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5644. msm_routing_put_audio_mixer),
  5645. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5646. MSM_BACKEND_DAI_SEC_I2S_RX,
  5647. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5648. msm_routing_put_audio_mixer),
  5649. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5650. MSM_BACKEND_DAI_SEC_I2S_RX,
  5651. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5652. msm_routing_put_audio_mixer),
  5653. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5654. MSM_BACKEND_DAI_SEC_I2S_RX,
  5655. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5656. msm_routing_put_audio_mixer),
  5657. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5658. MSM_BACKEND_DAI_SEC_I2S_RX,
  5659. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5660. msm_routing_put_audio_mixer),
  5661. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5662. MSM_BACKEND_DAI_SEC_I2S_RX,
  5663. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5664. msm_routing_put_audio_mixer),
  5665. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5666. MSM_BACKEND_DAI_SEC_I2S_RX,
  5667. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5668. msm_routing_put_audio_mixer),
  5669. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5670. MSM_BACKEND_DAI_SEC_I2S_RX,
  5671. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5672. msm_routing_put_audio_mixer),
  5673. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5674. MSM_BACKEND_DAI_SEC_I2S_RX,
  5675. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5676. msm_routing_put_audio_mixer),
  5677. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5678. MSM_BACKEND_DAI_SEC_I2S_RX,
  5679. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5680. msm_routing_put_audio_mixer),
  5681. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5682. MSM_BACKEND_DAI_SEC_I2S_RX,
  5683. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5684. msm_routing_put_audio_mixer),
  5685. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5686. MSM_BACKEND_DAI_SEC_I2S_RX,
  5687. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5688. msm_routing_put_audio_mixer),
  5689. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5690. MSM_BACKEND_DAI_SEC_I2S_RX,
  5691. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5692. msm_routing_put_audio_mixer),
  5693. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5694. MSM_BACKEND_DAI_SEC_I2S_RX,
  5695. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5696. msm_routing_put_audio_mixer),
  5697. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5698. MSM_BACKEND_DAI_SEC_I2S_RX,
  5699. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5700. msm_routing_put_audio_mixer),
  5701. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5702. MSM_BACKEND_DAI_SEC_I2S_RX,
  5703. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5704. msm_routing_put_audio_mixer),
  5705. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5706. MSM_BACKEND_DAI_SEC_I2S_RX,
  5707. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5708. msm_routing_put_audio_mixer),
  5709. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5710. MSM_BACKEND_DAI_SEC_I2S_RX,
  5711. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5712. msm_routing_put_audio_mixer),
  5713. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5714. MSM_BACKEND_DAI_SEC_I2S_RX,
  5715. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5716. msm_routing_put_audio_mixer),
  5717. };
  5718. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5719. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5720. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5721. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5722. msm_routing_put_audio_mixer),
  5723. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5724. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5725. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5726. msm_routing_put_audio_mixer),
  5727. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5728. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5729. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5730. msm_routing_put_audio_mixer),
  5731. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5732. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5733. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5734. msm_routing_put_audio_mixer),
  5735. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5736. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5737. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5738. msm_routing_put_audio_mixer),
  5739. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5740. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5741. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5742. msm_routing_put_audio_mixer),
  5743. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5744. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5745. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5746. msm_routing_put_audio_mixer),
  5747. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5748. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5749. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5750. msm_routing_put_audio_mixer),
  5751. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5752. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5753. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5754. msm_routing_put_audio_mixer),
  5755. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5756. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5757. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5758. msm_routing_put_audio_mixer),
  5759. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5760. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5761. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5762. msm_routing_put_audio_mixer),
  5763. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5764. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5765. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5766. msm_routing_put_audio_mixer),
  5767. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5768. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5769. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5770. msm_routing_put_audio_mixer),
  5771. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5772. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5773. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5774. msm_routing_put_audio_mixer),
  5775. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5776. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5777. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5778. msm_routing_put_audio_mixer),
  5779. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5780. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5781. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5782. msm_routing_put_audio_mixer),
  5783. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5784. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5785. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5786. msm_routing_put_audio_mixer),
  5787. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5788. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5789. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5790. msm_routing_put_audio_mixer),
  5791. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5792. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5793. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5794. msm_routing_put_audio_mixer),
  5795. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5796. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5797. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5798. msm_routing_put_audio_mixer),
  5799. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5800. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5801. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5802. msm_routing_put_audio_mixer),
  5803. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5804. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5805. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5806. msm_routing_put_audio_mixer),
  5807. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5808. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5809. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5810. msm_routing_put_audio_mixer),
  5811. };
  5812. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5813. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5814. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5815. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5816. msm_routing_put_audio_mixer),
  5817. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5818. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5819. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5820. msm_routing_put_audio_mixer),
  5821. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5822. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5823. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5824. msm_routing_put_audio_mixer),
  5825. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5826. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5827. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5828. msm_routing_put_audio_mixer),
  5829. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5830. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5831. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5832. msm_routing_put_audio_mixer),
  5833. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5834. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5835. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5836. msm_routing_put_audio_mixer),
  5837. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5838. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5839. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5840. msm_routing_put_audio_mixer),
  5841. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5842. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5843. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5844. msm_routing_put_audio_mixer),
  5845. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5846. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5847. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5848. msm_routing_put_audio_mixer),
  5849. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5850. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5851. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5852. msm_routing_put_audio_mixer),
  5853. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5854. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5855. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5856. msm_routing_put_audio_mixer),
  5857. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5858. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5859. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5860. msm_routing_put_audio_mixer),
  5861. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5862. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5863. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5864. msm_routing_put_audio_mixer),
  5865. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5866. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5867. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5868. msm_routing_put_audio_mixer),
  5869. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5870. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5871. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5872. msm_routing_put_audio_mixer),
  5873. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5874. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5875. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5876. msm_routing_put_audio_mixer),
  5877. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5878. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5879. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5880. msm_routing_put_audio_mixer),
  5881. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5882. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5883. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5884. msm_routing_put_audio_mixer),
  5885. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5886. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5887. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5888. msm_routing_put_audio_mixer),
  5889. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5890. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5891. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5892. msm_routing_put_audio_mixer),
  5893. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5894. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5895. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5896. msm_routing_put_audio_mixer),
  5897. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5898. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5899. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5900. msm_routing_put_audio_mixer),
  5901. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5902. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5903. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5904. msm_routing_put_audio_mixer),
  5905. };
  5906. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5907. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5908. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5909. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5910. msm_routing_put_audio_mixer),
  5911. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5912. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5913. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5914. msm_routing_put_audio_mixer),
  5915. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5916. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5917. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5918. msm_routing_put_audio_mixer),
  5919. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5920. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5921. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5922. msm_routing_put_audio_mixer),
  5923. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5924. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5925. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5926. msm_routing_put_audio_mixer),
  5927. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5928. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5929. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5930. msm_routing_put_audio_mixer),
  5931. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5932. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5933. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5934. msm_routing_put_audio_mixer),
  5935. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5936. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5937. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5938. msm_routing_put_audio_mixer),
  5939. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5940. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5941. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5942. msm_routing_put_audio_mixer),
  5943. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5944. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5945. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5946. msm_routing_put_audio_mixer),
  5947. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5948. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5949. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5950. msm_routing_put_audio_mixer),
  5951. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5952. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5953. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5954. msm_routing_put_audio_mixer),
  5955. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5956. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5957. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5958. msm_routing_put_audio_mixer),
  5959. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5960. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5961. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5962. msm_routing_put_audio_mixer),
  5963. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5964. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5965. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5966. msm_routing_put_audio_mixer),
  5967. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5968. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5969. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5970. msm_routing_put_audio_mixer),
  5971. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5972. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5973. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5974. msm_routing_put_audio_mixer),
  5975. };
  5976. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5977. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5978. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5979. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5980. msm_routing_put_audio_mixer),
  5981. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5982. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5983. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5984. msm_routing_put_audio_mixer),
  5985. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5986. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5987. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5988. msm_routing_put_audio_mixer),
  5989. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5990. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5991. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5992. msm_routing_put_audio_mixer),
  5993. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5994. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5995. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5996. msm_routing_put_audio_mixer),
  5997. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5998. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5999. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6000. msm_routing_put_audio_mixer),
  6001. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6002. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6003. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6004. msm_routing_put_audio_mixer),
  6005. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6006. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6007. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6008. msm_routing_put_audio_mixer),
  6009. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6010. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6011. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6012. msm_routing_put_audio_mixer),
  6013. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6014. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6015. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6016. msm_routing_put_audio_mixer),
  6017. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6018. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6019. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6020. msm_routing_put_audio_mixer),
  6021. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6022. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6023. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6024. msm_routing_put_audio_mixer),
  6025. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6026. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6027. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6028. msm_routing_put_audio_mixer),
  6029. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6030. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6031. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6032. msm_routing_put_audio_mixer),
  6033. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6034. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6035. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6036. msm_routing_put_audio_mixer),
  6037. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6038. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6039. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6040. msm_routing_put_audio_mixer),
  6041. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6042. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6043. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6044. msm_routing_put_audio_mixer),
  6045. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6046. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6047. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6048. msm_routing_put_audio_mixer),
  6049. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6050. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6051. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6052. msm_routing_put_audio_mixer),
  6053. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6054. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6055. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6056. msm_routing_put_audio_mixer),
  6057. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6058. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6059. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6060. msm_routing_put_audio_mixer),
  6061. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6062. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6063. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6064. msm_routing_put_audio_mixer),
  6065. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6066. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6067. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6068. msm_routing_put_audio_mixer),
  6069. };
  6070. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  6071. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6072. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6073. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6074. msm_routing_put_audio_mixer),
  6075. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6076. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6077. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6078. msm_routing_put_audio_mixer),
  6079. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6080. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6081. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6082. msm_routing_put_audio_mixer),
  6083. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6084. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6085. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6086. msm_routing_put_audio_mixer),
  6087. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6088. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6089. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6090. msm_routing_put_audio_mixer),
  6091. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6092. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6093. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6094. msm_routing_put_audio_mixer),
  6095. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6096. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6097. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6098. msm_routing_put_audio_mixer),
  6099. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6100. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6101. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6102. msm_routing_put_audio_mixer),
  6103. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6104. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6105. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6106. msm_routing_put_audio_mixer),
  6107. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6108. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6109. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6110. msm_routing_put_audio_mixer),
  6111. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6112. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6113. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6114. msm_routing_put_audio_mixer),
  6115. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6116. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6117. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6118. msm_routing_put_audio_mixer),
  6119. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6120. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6121. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6122. msm_routing_put_audio_mixer),
  6123. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6124. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6125. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6126. msm_routing_put_audio_mixer),
  6127. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6128. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6129. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6130. msm_routing_put_audio_mixer),
  6131. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6132. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6133. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6134. msm_routing_put_audio_mixer),
  6135. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6136. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6137. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6138. msm_routing_put_audio_mixer),
  6139. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6140. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6141. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6142. msm_routing_put_audio_mixer),
  6143. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6144. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6145. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6146. msm_routing_put_audio_mixer),
  6147. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6148. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6149. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6150. msm_routing_put_audio_mixer),
  6151. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6152. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6153. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6154. msm_routing_put_audio_mixer),
  6155. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6156. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6157. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6158. msm_routing_put_audio_mixer),
  6159. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6160. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6161. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6162. msm_routing_put_audio_mixer),
  6163. };
  6164. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  6165. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6166. MSM_BACKEND_DAI_MI2S_RX,
  6167. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6168. msm_routing_put_audio_mixer),
  6169. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6170. MSM_BACKEND_DAI_MI2S_RX,
  6171. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6172. msm_routing_put_audio_mixer),
  6173. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6174. MSM_BACKEND_DAI_MI2S_RX,
  6175. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6176. msm_routing_put_audio_mixer),
  6177. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6178. MSM_BACKEND_DAI_MI2S_RX,
  6179. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6180. msm_routing_put_audio_mixer),
  6181. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6182. MSM_BACKEND_DAI_MI2S_RX,
  6183. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6184. msm_routing_put_audio_mixer),
  6185. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6186. MSM_BACKEND_DAI_MI2S_RX,
  6187. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6188. msm_routing_put_audio_mixer),
  6189. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6190. MSM_BACKEND_DAI_MI2S_RX,
  6191. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6192. msm_routing_put_audio_mixer),
  6193. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6194. MSM_BACKEND_DAI_MI2S_RX,
  6195. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6196. msm_routing_put_audio_mixer),
  6197. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6198. MSM_BACKEND_DAI_MI2S_RX,
  6199. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6200. msm_routing_put_audio_mixer),
  6201. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6202. MSM_BACKEND_DAI_MI2S_RX,
  6203. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6204. msm_routing_put_audio_mixer),
  6205. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6206. MSM_BACKEND_DAI_MI2S_RX,
  6207. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6208. msm_routing_put_audio_mixer),
  6209. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6210. MSM_BACKEND_DAI_MI2S_RX,
  6211. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6212. msm_routing_put_audio_mixer),
  6213. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6214. MSM_BACKEND_DAI_MI2S_RX,
  6215. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6216. msm_routing_put_audio_mixer),
  6217. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6218. MSM_BACKEND_DAI_MI2S_RX,
  6219. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6220. msm_routing_put_audio_mixer),
  6221. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6222. MSM_BACKEND_DAI_MI2S_RX,
  6223. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6224. msm_routing_put_audio_mixer),
  6225. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6226. MSM_BACKEND_DAI_MI2S_RX,
  6227. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6228. msm_routing_put_audio_mixer),
  6229. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6230. MSM_BACKEND_DAI_MI2S_RX,
  6231. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6232. msm_routing_put_audio_mixer),
  6233. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6234. MSM_BACKEND_DAI_MI2S_RX,
  6235. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6236. msm_routing_put_audio_mixer),
  6237. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6238. MSM_BACKEND_DAI_MI2S_RX,
  6239. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6240. msm_routing_put_audio_mixer),
  6241. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6242. MSM_BACKEND_DAI_MI2S_RX,
  6243. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6244. msm_routing_put_audio_mixer),
  6245. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6246. MSM_BACKEND_DAI_MI2S_RX,
  6247. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6248. msm_routing_put_audio_mixer),
  6249. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6250. MSM_BACKEND_DAI_MI2S_RX,
  6251. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6252. msm_routing_put_audio_mixer),
  6253. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6254. MSM_BACKEND_DAI_MI2S_RX,
  6255. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6256. msm_routing_put_audio_mixer),
  6257. };
  6258. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  6259. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6260. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6261. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6262. msm_routing_put_audio_mixer),
  6263. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6264. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6265. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6266. msm_routing_put_audio_mixer),
  6267. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6268. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6269. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6270. msm_routing_put_audio_mixer),
  6271. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6272. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6273. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6274. msm_routing_put_audio_mixer),
  6275. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6276. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6277. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6278. msm_routing_put_audio_mixer),
  6279. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6280. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6281. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6282. msm_routing_put_audio_mixer),
  6283. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6284. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6285. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6286. msm_routing_put_audio_mixer),
  6287. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6288. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6289. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6290. msm_routing_put_audio_mixer),
  6291. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6292. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6293. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6294. msm_routing_put_audio_mixer),
  6295. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6296. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6297. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6298. msm_routing_put_audio_mixer),
  6299. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6300. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6301. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6302. msm_routing_put_audio_mixer),
  6303. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6304. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6305. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6306. msm_routing_put_audio_mixer),
  6307. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6308. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6309. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6310. msm_routing_put_audio_mixer),
  6311. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6312. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6313. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6314. msm_routing_put_audio_mixer),
  6315. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6316. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6317. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6318. msm_routing_put_audio_mixer),
  6319. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6320. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6321. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6322. msm_routing_put_audio_mixer),
  6323. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6324. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6325. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6326. msm_routing_put_audio_mixer),
  6327. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6328. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6329. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6330. msm_routing_put_audio_mixer),
  6331. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6332. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6333. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6334. msm_routing_put_audio_mixer),
  6335. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6336. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6337. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6338. msm_routing_put_audio_mixer),
  6339. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6340. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6341. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6342. msm_routing_put_audio_mixer),
  6343. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6344. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6345. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6346. msm_routing_put_audio_mixer),
  6347. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6348. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6349. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6350. msm_routing_put_audio_mixer),
  6351. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6352. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6353. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6354. msm_routing_put_audio_mixer),
  6355. };
  6356. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6357. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6358. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6359. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6360. msm_routing_put_audio_mixer),
  6361. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6362. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6363. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6364. msm_routing_put_audio_mixer),
  6365. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6366. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6367. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6368. msm_routing_put_audio_mixer),
  6369. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6370. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6371. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6372. msm_routing_put_audio_mixer),
  6373. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6374. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6375. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6376. msm_routing_put_audio_mixer),
  6377. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6378. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6379. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6380. msm_routing_put_audio_mixer),
  6381. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6382. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6383. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6384. msm_routing_put_audio_mixer),
  6385. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6386. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6387. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6388. msm_routing_put_audio_mixer),
  6389. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6390. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6391. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6392. msm_routing_put_audio_mixer),
  6393. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6394. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6395. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6396. msm_routing_put_audio_mixer),
  6397. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6398. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6399. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6400. msm_routing_put_audio_mixer),
  6401. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6402. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6403. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6404. msm_routing_put_audio_mixer),
  6405. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6406. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6407. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6408. msm_routing_put_audio_mixer),
  6409. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6410. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6411. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6412. msm_routing_put_audio_mixer),
  6413. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6414. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6415. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6416. msm_routing_put_audio_mixer),
  6417. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6418. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6419. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6420. msm_routing_put_audio_mixer),
  6421. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6422. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6423. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6424. msm_routing_put_audio_mixer),
  6425. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6426. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6427. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6428. msm_routing_put_audio_mixer),
  6429. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6430. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6431. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6432. msm_routing_put_audio_mixer),
  6433. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6434. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6435. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6436. msm_routing_put_audio_mixer),
  6437. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6438. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6439. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6440. msm_routing_put_audio_mixer),
  6441. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6442. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6443. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6444. msm_routing_put_audio_mixer),
  6445. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6446. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6447. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6448. msm_routing_put_audio_mixer),
  6449. };
  6450. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6451. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6452. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6453. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6454. msm_routing_put_audio_mixer),
  6455. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6456. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6457. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6458. msm_routing_put_audio_mixer),
  6459. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6460. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6461. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6462. msm_routing_put_audio_mixer),
  6463. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6464. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6465. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6466. msm_routing_put_audio_mixer),
  6467. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6468. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6469. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6470. msm_routing_put_audio_mixer),
  6471. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6472. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6473. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6474. msm_routing_put_audio_mixer),
  6475. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6476. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6477. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6478. msm_routing_put_audio_mixer),
  6479. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6480. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6481. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6482. msm_routing_put_audio_mixer),
  6483. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6484. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6485. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6486. msm_routing_put_audio_mixer),
  6487. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6488. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6489. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6490. msm_routing_put_audio_mixer),
  6491. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6492. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6493. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6494. msm_routing_put_audio_mixer),
  6495. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6496. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6497. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6498. msm_routing_put_audio_mixer),
  6499. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6500. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6501. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6502. msm_routing_put_audio_mixer),
  6503. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6504. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6505. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6506. msm_routing_put_audio_mixer),
  6507. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6508. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6509. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6510. msm_routing_put_audio_mixer),
  6511. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6512. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6513. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6514. msm_routing_put_audio_mixer),
  6515. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6516. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6517. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6518. msm_routing_put_audio_mixer),
  6519. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6520. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6521. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6522. msm_routing_put_audio_mixer),
  6523. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6524. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6525. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6526. msm_routing_put_audio_mixer),
  6527. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6528. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6529. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6530. msm_routing_put_audio_mixer),
  6531. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6532. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6533. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6534. msm_routing_put_audio_mixer),
  6535. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6536. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6537. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6538. msm_routing_put_audio_mixer),
  6539. };
  6540. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6541. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6542. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6543. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6544. msm_routing_put_audio_mixer),
  6545. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6546. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6547. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6548. msm_routing_put_audio_mixer),
  6549. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6550. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6551. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6552. msm_routing_put_audio_mixer),
  6553. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6554. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6555. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6556. msm_routing_put_audio_mixer),
  6557. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6558. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6559. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6560. msm_routing_put_audio_mixer),
  6561. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6562. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6563. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6564. msm_routing_put_audio_mixer),
  6565. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6566. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6567. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6568. msm_routing_put_audio_mixer),
  6569. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6570. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6571. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6572. msm_routing_put_audio_mixer),
  6573. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6574. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6575. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6576. msm_routing_put_audio_mixer),
  6577. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6578. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6579. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6580. msm_routing_put_audio_mixer),
  6581. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6582. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6583. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6584. msm_routing_put_audio_mixer),
  6585. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6586. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6587. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6588. msm_routing_put_audio_mixer),
  6589. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6590. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6591. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6592. msm_routing_put_audio_mixer),
  6593. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6594. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6595. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6596. msm_routing_put_audio_mixer),
  6597. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6598. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6599. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6600. msm_routing_put_audio_mixer),
  6601. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6602. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6603. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6604. msm_routing_put_audio_mixer),
  6605. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6606. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6607. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6608. msm_routing_put_audio_mixer),
  6609. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6610. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6611. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6612. msm_routing_put_audio_mixer),
  6613. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6614. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6615. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6616. msm_routing_put_audio_mixer),
  6617. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6618. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6619. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6620. msm_routing_put_audio_mixer),
  6621. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6622. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6623. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6624. msm_routing_put_audio_mixer),
  6625. };
  6626. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6627. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6628. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6629. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6630. msm_routing_put_audio_mixer),
  6631. };
  6632. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6633. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6634. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6635. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6636. msm_routing_put_audio_mixer),
  6637. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6638. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6639. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6640. msm_routing_put_audio_mixer),
  6641. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6642. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6643. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6644. msm_routing_put_audio_mixer),
  6645. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6646. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6647. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6648. msm_routing_put_audio_mixer),
  6649. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6650. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6651. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6652. msm_routing_put_audio_mixer),
  6653. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6654. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6655. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6656. msm_routing_put_audio_mixer),
  6657. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6658. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6659. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6660. msm_routing_put_audio_mixer),
  6661. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6662. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6663. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6664. msm_routing_put_audio_mixer),
  6665. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6666. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6667. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6668. msm_routing_put_audio_mixer),
  6669. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6670. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6671. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6672. msm_routing_put_audio_mixer),
  6673. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6674. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6675. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6676. msm_routing_put_audio_mixer),
  6677. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6678. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6679. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6680. msm_routing_put_audio_mixer),
  6681. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6682. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6683. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6684. msm_routing_put_audio_mixer),
  6685. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6686. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6687. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6688. msm_routing_put_audio_mixer),
  6689. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6690. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6691. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6692. msm_routing_put_audio_mixer),
  6693. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6694. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6695. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6696. msm_routing_put_audio_mixer),
  6697. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6698. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6699. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6700. msm_routing_put_audio_mixer),
  6701. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6702. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6703. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6704. msm_routing_put_audio_mixer),
  6705. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6706. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6707. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6708. msm_routing_put_audio_mixer),
  6709. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6710. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6711. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6712. msm_routing_put_audio_mixer),
  6713. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6714. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6715. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6716. msm_routing_put_audio_mixer),
  6717. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6718. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6719. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6720. msm_routing_put_audio_mixer),
  6721. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6722. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6723. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6724. msm_routing_put_audio_mixer),
  6725. };
  6726. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6727. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6728. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6729. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6730. msm_routing_put_audio_mixer),
  6731. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6732. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6733. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6734. msm_routing_put_audio_mixer),
  6735. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6736. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6737. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6738. msm_routing_put_audio_mixer),
  6739. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6740. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6741. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6742. msm_routing_put_audio_mixer),
  6743. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6744. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6745. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6746. msm_routing_put_audio_mixer),
  6747. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6748. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6749. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6750. msm_routing_put_audio_mixer),
  6751. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6752. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6753. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6754. msm_routing_put_audio_mixer),
  6755. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6756. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6757. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6758. msm_routing_put_audio_mixer),
  6759. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6760. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6761. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6762. msm_routing_put_audio_mixer),
  6763. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6764. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6765. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6766. msm_routing_put_audio_mixer),
  6767. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6768. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6769. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6770. msm_routing_put_audio_mixer),
  6771. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6772. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6773. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6774. msm_routing_put_audio_mixer),
  6775. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6776. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6777. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6778. msm_routing_put_audio_mixer),
  6779. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6780. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6781. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6782. msm_routing_put_audio_mixer),
  6783. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6784. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6785. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6786. msm_routing_put_audio_mixer),
  6787. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6788. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6789. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6790. msm_routing_put_audio_mixer),
  6791. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6792. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6793. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6794. msm_routing_put_audio_mixer),
  6795. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6796. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6797. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6798. msm_routing_put_audio_mixer),
  6799. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6800. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6801. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6802. msm_routing_put_audio_mixer),
  6803. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6804. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6805. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6806. msm_routing_put_audio_mixer),
  6807. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6808. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6809. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6810. msm_routing_put_audio_mixer),
  6811. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6812. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6813. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6814. msm_routing_put_audio_mixer),
  6815. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6816. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6817. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6818. msm_routing_put_audio_mixer),
  6819. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  6820. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6821. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_audio_mixer,
  6822. msm_routing_put_audio_mixer),
  6823. };
  6824. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6825. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6826. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6827. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6828. msm_routing_put_audio_mixer),
  6829. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6830. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6831. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6832. msm_routing_put_audio_mixer),
  6833. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6834. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6835. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6836. msm_routing_put_audio_mixer),
  6837. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6838. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6839. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6840. msm_routing_put_audio_mixer),
  6841. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6842. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6843. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6844. msm_routing_put_audio_mixer),
  6845. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6846. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6847. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6848. msm_routing_put_audio_mixer),
  6849. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6850. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6851. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6852. msm_routing_put_audio_mixer),
  6853. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6854. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6855. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6856. msm_routing_put_audio_mixer),
  6857. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6858. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6859. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6860. msm_routing_put_audio_mixer),
  6861. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6862. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6863. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6864. msm_routing_put_audio_mixer),
  6865. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6866. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6867. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6868. msm_routing_put_audio_mixer),
  6869. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6870. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6871. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6872. msm_routing_put_audio_mixer),
  6873. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6874. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6875. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6876. msm_routing_put_audio_mixer),
  6877. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6878. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6879. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6880. msm_routing_put_audio_mixer),
  6881. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6882. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6883. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6884. msm_routing_put_audio_mixer),
  6885. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6886. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6887. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6888. msm_routing_put_audio_mixer),
  6889. };
  6890. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6891. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6892. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6893. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6894. msm_routing_put_audio_mixer),
  6895. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6896. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6897. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6898. msm_routing_put_audio_mixer),
  6899. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6900. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6901. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6902. msm_routing_put_audio_mixer),
  6903. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6904. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6905. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6906. msm_routing_put_audio_mixer),
  6907. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6908. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6909. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6910. msm_routing_put_audio_mixer),
  6911. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6912. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6913. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6914. msm_routing_put_audio_mixer),
  6915. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6916. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6917. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6918. msm_routing_put_audio_mixer),
  6919. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6920. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6921. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6922. msm_routing_put_audio_mixer),
  6923. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6924. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6925. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6926. msm_routing_put_audio_mixer),
  6927. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6928. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6929. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6930. msm_routing_put_audio_mixer),
  6931. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6932. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6933. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6934. msm_routing_put_audio_mixer),
  6935. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6936. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6937. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6938. msm_routing_put_audio_mixer),
  6939. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6940. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6941. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6942. msm_routing_put_audio_mixer),
  6943. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6944. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6945. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6946. msm_routing_put_audio_mixer),
  6947. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6948. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6949. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6950. msm_routing_put_audio_mixer),
  6951. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6952. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6953. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6954. msm_routing_put_audio_mixer),
  6955. };
  6956. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6957. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6958. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6959. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6960. msm_routing_put_audio_mixer),
  6961. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6962. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6963. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6964. msm_routing_put_audio_mixer),
  6965. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6966. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6967. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6968. msm_routing_put_audio_mixer),
  6969. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6970. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6971. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6972. msm_routing_put_audio_mixer),
  6973. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6974. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6975. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6976. msm_routing_put_audio_mixer),
  6977. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6978. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6979. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6980. msm_routing_put_audio_mixer),
  6981. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6982. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6983. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6984. msm_routing_put_audio_mixer),
  6985. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6986. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6987. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6988. msm_routing_put_audio_mixer),
  6989. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6990. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6991. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6992. msm_routing_put_audio_mixer),
  6993. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6994. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6995. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6996. msm_routing_put_audio_mixer),
  6997. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6998. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6999. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7000. msm_routing_put_audio_mixer),
  7001. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7002. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7003. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7004. msm_routing_put_audio_mixer),
  7005. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7006. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7007. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7008. msm_routing_put_audio_mixer),
  7009. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7010. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7011. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7012. msm_routing_put_audio_mixer),
  7013. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7014. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7015. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7016. msm_routing_put_audio_mixer),
  7017. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7018. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7019. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7020. msm_routing_put_audio_mixer),
  7021. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7022. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7023. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7024. msm_routing_put_audio_mixer),
  7025. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7026. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7027. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7028. msm_routing_put_audio_mixer),
  7029. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7030. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7031. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7032. msm_routing_put_audio_mixer),
  7033. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7034. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7035. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7036. msm_routing_put_audio_mixer),
  7037. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7038. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7039. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7040. msm_routing_put_audio_mixer),
  7041. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7042. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7043. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7044. msm_routing_put_audio_mixer),
  7045. };
  7046. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  7047. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7048. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7049. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7050. msm_routing_put_audio_mixer),
  7051. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7052. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7053. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7054. msm_routing_put_audio_mixer),
  7055. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7056. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7057. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7058. msm_routing_put_audio_mixer),
  7059. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7060. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7061. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7062. msm_routing_put_audio_mixer),
  7063. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7064. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7065. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7066. msm_routing_put_audio_mixer),
  7067. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7068. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7069. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7070. msm_routing_put_audio_mixer),
  7071. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7072. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7073. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7074. msm_routing_put_audio_mixer),
  7075. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7076. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7077. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7078. msm_routing_put_audio_mixer),
  7079. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7080. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7081. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7082. msm_routing_put_audio_mixer),
  7083. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7084. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7085. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7086. msm_routing_put_audio_mixer),
  7087. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7088. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7089. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7090. msm_routing_put_audio_mixer),
  7091. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7092. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7093. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7094. msm_routing_put_audio_mixer),
  7095. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7096. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7097. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7098. msm_routing_put_audio_mixer),
  7099. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7100. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7101. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7102. msm_routing_put_audio_mixer),
  7103. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7104. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7105. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7106. msm_routing_put_audio_mixer),
  7107. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7108. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7109. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7110. msm_routing_put_audio_mixer),
  7111. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7112. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7113. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7114. msm_routing_put_audio_mixer),
  7115. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7116. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7117. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7118. msm_routing_put_audio_mixer),
  7119. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7120. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7121. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7122. msm_routing_put_audio_mixer),
  7123. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7124. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7125. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7126. msm_routing_put_audio_mixer),
  7127. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7128. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7129. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7130. msm_routing_put_audio_mixer),
  7131. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7132. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7133. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7134. msm_routing_put_audio_mixer),
  7135. };
  7136. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  7137. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7138. MSM_BACKEND_DAI_HDMI_RX,
  7139. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7140. msm_routing_put_audio_mixer),
  7141. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7142. MSM_BACKEND_DAI_HDMI_RX,
  7143. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7144. msm_routing_put_audio_mixer),
  7145. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7146. MSM_BACKEND_DAI_HDMI_RX,
  7147. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7148. msm_routing_put_audio_mixer),
  7149. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7150. MSM_BACKEND_DAI_HDMI_RX,
  7151. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7152. msm_routing_put_audio_mixer),
  7153. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_HDMI_RX,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_HDMI_RX,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_HDMI_RX,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7166. MSM_BACKEND_DAI_HDMI_RX,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7170. MSM_BACKEND_DAI_HDMI_RX,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7174. MSM_BACKEND_DAI_HDMI_RX,
  7175. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7176. msm_routing_put_audio_mixer),
  7177. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7178. MSM_BACKEND_DAI_HDMI_RX,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7182. MSM_BACKEND_DAI_HDMI_RX,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7186. MSM_BACKEND_DAI_HDMI_RX,
  7187. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7188. msm_routing_put_audio_mixer),
  7189. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7190. MSM_BACKEND_DAI_HDMI_RX,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7194. MSM_BACKEND_DAI_HDMI_RX,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7198. MSM_BACKEND_DAI_HDMI_RX,
  7199. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7200. msm_routing_put_audio_mixer),
  7201. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7202. MSM_BACKEND_DAI_HDMI_RX,
  7203. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7204. msm_routing_put_audio_mixer),
  7205. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7206. MSM_BACKEND_DAI_HDMI_RX,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7210. MSM_BACKEND_DAI_HDMI_RX,
  7211. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7212. msm_routing_put_audio_mixer),
  7213. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7214. MSM_BACKEND_DAI_HDMI_RX,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7218. MSM_BACKEND_DAI_HDMI_RX,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7222. MSM_BACKEND_DAI_HDMI_RX,
  7223. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7224. msm_routing_put_audio_mixer),
  7225. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  7226. MSM_BACKEND_DAI_HDMI_RX,
  7227. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  7228. msm_routing_put_audio_mixer),
  7229. };
  7230. static const struct snd_kcontrol_new hdmi_ms_mixer_controls[] = {
  7231. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7232. MSM_BACKEND_DAI_HDMI_RX_MS,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7236. MSM_BACKEND_DAI_HDMI_RX_MS,
  7237. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7238. msm_routing_put_audio_mixer),
  7239. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7240. MSM_BACKEND_DAI_HDMI_RX_MS,
  7241. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7242. msm_routing_put_audio_mixer),
  7243. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7244. MSM_BACKEND_DAI_HDMI_RX_MS,
  7245. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7246. msm_routing_put_audio_mixer),
  7247. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7248. MSM_BACKEND_DAI_HDMI_RX_MS,
  7249. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7250. msm_routing_put_audio_mixer),
  7251. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7252. MSM_BACKEND_DAI_HDMI_RX_MS,
  7253. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7254. msm_routing_put_audio_mixer),
  7255. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7256. MSM_BACKEND_DAI_HDMI_RX_MS,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7260. MSM_BACKEND_DAI_HDMI_RX_MS,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7264. MSM_BACKEND_DAI_HDMI_RX_MS,
  7265. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7266. msm_routing_put_audio_mixer),
  7267. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7268. MSM_BACKEND_DAI_HDMI_RX_MS,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7272. MSM_BACKEND_DAI_HDMI_RX_MS,
  7273. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7274. msm_routing_put_audio_mixer),
  7275. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_HDMI_RX_MS,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7280. MSM_BACKEND_DAI_HDMI_RX_MS,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_HDMI_RX_MS,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7288. MSM_BACKEND_DAI_HDMI_RX_MS,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7292. MSM_BACKEND_DAI_HDMI_RX_MS,
  7293. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7294. msm_routing_put_audio_mixer),
  7295. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7296. MSM_BACKEND_DAI_HDMI_RX_MS,
  7297. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7298. msm_routing_put_audio_mixer),
  7299. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7300. MSM_BACKEND_DAI_HDMI_RX_MS,
  7301. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7302. msm_routing_put_audio_mixer),
  7303. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7304. MSM_BACKEND_DAI_HDMI_RX_MS,
  7305. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7306. msm_routing_put_audio_mixer),
  7307. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7308. MSM_BACKEND_DAI_HDMI_RX_MS,
  7309. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7310. msm_routing_put_audio_mixer),
  7311. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7312. MSM_BACKEND_DAI_HDMI_RX_MS,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7316. MSM_BACKEND_DAI_HDMI_RX_MS,
  7317. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7318. msm_routing_put_audio_mixer),
  7319. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  7320. MSM_BACKEND_DAI_HDMI_RX_MS,
  7321. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  7322. msm_routing_put_audio_mixer),
  7323. };
  7324. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  7325. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7326. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7327. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7328. msm_routing_put_audio_mixer),
  7329. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7330. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7331. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7332. msm_routing_put_audio_mixer),
  7333. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7334. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7335. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7336. msm_routing_put_audio_mixer),
  7337. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7338. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7339. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7340. msm_routing_put_audio_mixer),
  7341. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7342. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7350. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7358. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7362. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7363. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7364. msm_routing_put_audio_mixer),
  7365. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7366. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7367. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7368. msm_routing_put_audio_mixer),
  7369. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7370. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7371. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7372. msm_routing_put_audio_mixer),
  7373. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7374. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7378. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7379. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7380. msm_routing_put_audio_mixer),
  7381. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7382. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7386. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7390. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7391. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7392. msm_routing_put_audio_mixer),
  7393. };
  7394. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7395. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7396. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7397. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7398. msm_routing_put_audio_mixer),
  7399. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7400. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7404. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7405. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7406. msm_routing_put_audio_mixer),
  7407. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7408. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7409. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7410. msm_routing_put_audio_mixer),
  7411. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7412. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7413. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7414. msm_routing_put_audio_mixer),
  7415. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7416. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7420. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7424. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7425. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7426. msm_routing_put_audio_mixer),
  7427. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7428. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7429. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7430. msm_routing_put_audio_mixer),
  7431. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7432. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7433. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7434. msm_routing_put_audio_mixer),
  7435. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7436. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7437. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7438. msm_routing_put_audio_mixer),
  7439. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7440. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7441. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7442. msm_routing_put_audio_mixer),
  7443. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7444. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7445. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7446. msm_routing_put_audio_mixer),
  7447. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7448. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7449. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7450. msm_routing_put_audio_mixer),
  7451. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7452. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7456. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7460. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7461. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7462. msm_routing_put_audio_mixer),
  7463. };
  7464. /* incall music delivery mixer */
  7465. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7466. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7467. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7468. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7469. msm_routing_put_audio_mixer),
  7470. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7471. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7472. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7473. msm_routing_put_audio_mixer),
  7474. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7475. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7476. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7477. msm_routing_put_audio_mixer),
  7478. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7479. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7480. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7481. msm_routing_put_audio_mixer),
  7482. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7483. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7484. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7485. msm_routing_put_audio_mixer),
  7486. };
  7487. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7488. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7489. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7490. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7491. msm_routing_put_audio_mixer),
  7492. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7493. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7494. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7495. msm_routing_put_audio_mixer),
  7496. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7497. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7498. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7499. msm_routing_put_audio_mixer),
  7500. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7501. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7502. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7503. msm_routing_put_audio_mixer),
  7504. };
  7505. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7506. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7507. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7508. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7509. msm_routing_put_audio_mixer),
  7510. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7511. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7512. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7513. msm_routing_put_audio_mixer),
  7514. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7515. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7516. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7517. msm_routing_put_audio_mixer),
  7518. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7519. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7520. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7521. msm_routing_put_audio_mixer),
  7522. };
  7523. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7524. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7525. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7526. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7527. msm_routing_put_audio_mixer),
  7528. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7529. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7530. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7531. msm_routing_put_audio_mixer),
  7532. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7533. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7534. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7535. msm_routing_put_audio_mixer),
  7536. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7537. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7538. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7539. msm_routing_put_audio_mixer),
  7540. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7541. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7542. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7543. msm_routing_put_audio_mixer),
  7544. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7545. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7546. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7547. msm_routing_put_audio_mixer),
  7548. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7549. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7550. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7551. msm_routing_put_audio_mixer),
  7552. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7553. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7554. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7555. msm_routing_put_audio_mixer),
  7556. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7557. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7558. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7559. msm_routing_put_audio_mixer),
  7560. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7561. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7562. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7563. msm_routing_put_audio_mixer),
  7564. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7565. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7566. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7567. msm_routing_put_audio_mixer),
  7568. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7569. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7570. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7571. msm_routing_put_audio_mixer),
  7572. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7573. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7574. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7575. msm_routing_put_audio_mixer),
  7576. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7577. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7578. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7579. msm_routing_put_audio_mixer),
  7580. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7581. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7582. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7583. msm_routing_put_audio_mixer),
  7584. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7585. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7586. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7587. msm_routing_put_audio_mixer),
  7588. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7589. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7590. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7591. msm_routing_put_audio_mixer),
  7592. };
  7593. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7594. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7595. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7596. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7597. msm_routing_put_audio_mixer),
  7598. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7599. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7600. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7601. msm_routing_put_audio_mixer),
  7602. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7603. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7604. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7605. msm_routing_put_audio_mixer),
  7606. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7607. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7608. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7609. msm_routing_put_audio_mixer),
  7610. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7611. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7612. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7613. msm_routing_put_audio_mixer),
  7614. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7615. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7616. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7617. msm_routing_put_audio_mixer),
  7618. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7619. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7620. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7621. msm_routing_put_audio_mixer),
  7622. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7623. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7624. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7625. msm_routing_put_audio_mixer),
  7626. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7627. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7628. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7629. msm_routing_put_audio_mixer),
  7630. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7631. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7632. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7633. msm_routing_put_audio_mixer),
  7634. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7635. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7636. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7637. msm_routing_put_audio_mixer),
  7638. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7639. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7640. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7641. msm_routing_put_audio_mixer),
  7642. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7643. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7644. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7645. msm_routing_put_audio_mixer),
  7646. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7647. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7648. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7649. msm_routing_put_audio_mixer),
  7650. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7651. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7652. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7653. msm_routing_put_audio_mixer),
  7654. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7655. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7656. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7657. msm_routing_put_audio_mixer),
  7658. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7659. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7660. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7661. msm_routing_put_audio_mixer),
  7662. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7663. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7664. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7665. msm_routing_put_audio_mixer),
  7666. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7667. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7668. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7669. msm_routing_put_audio_mixer),
  7670. };
  7671. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7672. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7673. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7674. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7675. msm_routing_put_audio_mixer),
  7676. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7677. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7678. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7679. msm_routing_put_audio_mixer),
  7680. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7681. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7682. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7683. msm_routing_put_audio_mixer),
  7684. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7685. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7686. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7687. msm_routing_put_audio_mixer),
  7688. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7689. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7690. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7691. msm_routing_put_audio_mixer),
  7692. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7693. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7694. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7695. msm_routing_put_audio_mixer),
  7696. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7697. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7698. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7699. msm_routing_put_audio_mixer),
  7700. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7701. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7702. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7703. msm_routing_put_audio_mixer),
  7704. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7705. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7706. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7707. msm_routing_put_audio_mixer),
  7708. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7709. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7710. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7711. msm_routing_put_audio_mixer),
  7712. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7713. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7714. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7715. msm_routing_put_audio_mixer),
  7716. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7717. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7718. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7719. msm_routing_put_audio_mixer),
  7720. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7721. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7722. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7723. msm_routing_put_audio_mixer),
  7724. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7725. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7726. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7727. msm_routing_put_audio_mixer),
  7728. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7729. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7730. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7731. msm_routing_put_audio_mixer),
  7732. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7733. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7734. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7735. msm_routing_put_audio_mixer),
  7736. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7737. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7738. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7739. msm_routing_put_audio_mixer),
  7740. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7741. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7742. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7743. msm_routing_put_audio_mixer),
  7744. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7745. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7746. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7747. msm_routing_put_audio_mixer),
  7748. };
  7749. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7750. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7751. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7752. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7753. msm_routing_put_audio_mixer),
  7754. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7755. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7756. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7757. msm_routing_put_audio_mixer),
  7758. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7759. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7760. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7761. msm_routing_put_audio_mixer),
  7762. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7763. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7764. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7765. msm_routing_put_audio_mixer),
  7766. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7767. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7768. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7769. msm_routing_put_audio_mixer),
  7770. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7771. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7772. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7773. msm_routing_put_audio_mixer),
  7774. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7775. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7776. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7777. msm_routing_put_audio_mixer),
  7778. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7779. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7780. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7781. msm_routing_put_audio_mixer),
  7782. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7783. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7784. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7785. msm_routing_put_audio_mixer),
  7786. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7787. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7788. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7789. msm_routing_put_audio_mixer),
  7790. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7791. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7792. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7793. msm_routing_put_audio_mixer),
  7794. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7795. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7796. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7797. msm_routing_put_audio_mixer),
  7798. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7799. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7800. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7801. msm_routing_put_audio_mixer),
  7802. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7803. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7804. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7805. msm_routing_put_audio_mixer),
  7806. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7807. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7808. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7809. msm_routing_put_audio_mixer),
  7810. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7811. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7812. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7813. msm_routing_put_audio_mixer),
  7814. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7815. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7816. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7817. msm_routing_put_audio_mixer),
  7818. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7819. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7820. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7821. msm_routing_put_audio_mixer),
  7822. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7823. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7824. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7825. msm_routing_put_audio_mixer),
  7826. };
  7827. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7828. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7829. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7830. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7831. msm_routing_put_audio_mixer),
  7832. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7833. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7834. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7835. msm_routing_put_audio_mixer),
  7836. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7837. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7838. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7839. msm_routing_put_audio_mixer),
  7840. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7841. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7842. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7843. msm_routing_put_audio_mixer),
  7844. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7845. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7846. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7847. msm_routing_put_audio_mixer),
  7848. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7849. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7850. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7851. msm_routing_put_audio_mixer),
  7852. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7853. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7854. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7855. msm_routing_put_audio_mixer),
  7856. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7857. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7858. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7859. msm_routing_put_audio_mixer),
  7860. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7861. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7862. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7863. msm_routing_put_audio_mixer),
  7864. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7865. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7866. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7867. msm_routing_put_audio_mixer),
  7868. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7869. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7870. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7871. msm_routing_put_audio_mixer),
  7872. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7873. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7874. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7875. msm_routing_put_audio_mixer),
  7876. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7877. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7878. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7879. msm_routing_put_audio_mixer),
  7880. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7881. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7882. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7883. msm_routing_put_audio_mixer),
  7884. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7885. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7886. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7887. msm_routing_put_audio_mixer),
  7888. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7889. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7890. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7891. msm_routing_put_audio_mixer),
  7892. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7893. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7894. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7895. msm_routing_put_audio_mixer),
  7896. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7897. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7898. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7899. msm_routing_put_audio_mixer),
  7900. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7901. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7902. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7903. msm_routing_put_audio_mixer),
  7904. };
  7905. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7906. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7907. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7908. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7909. msm_routing_put_audio_mixer),
  7910. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7911. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7912. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7913. msm_routing_put_audio_mixer),
  7914. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7915. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7916. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7917. msm_routing_put_audio_mixer),
  7918. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7919. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7920. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7921. msm_routing_put_audio_mixer),
  7922. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7923. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7924. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7925. msm_routing_put_audio_mixer),
  7926. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7927. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7928. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7929. msm_routing_put_audio_mixer),
  7930. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7931. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7932. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7933. msm_routing_put_audio_mixer),
  7934. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7935. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7936. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7937. msm_routing_put_audio_mixer),
  7938. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7939. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7940. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7941. msm_routing_put_audio_mixer),
  7942. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7943. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7944. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7945. msm_routing_put_audio_mixer),
  7946. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7947. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7948. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7949. msm_routing_put_audio_mixer),
  7950. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7951. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7952. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7953. msm_routing_put_audio_mixer),
  7954. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7955. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7956. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7957. msm_routing_put_audio_mixer),
  7958. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7959. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7960. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7961. msm_routing_put_audio_mixer),
  7962. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7963. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7964. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7965. msm_routing_put_audio_mixer),
  7966. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7967. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7968. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7969. msm_routing_put_audio_mixer),
  7970. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7971. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7972. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7973. msm_routing_put_audio_mixer),
  7974. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7975. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7976. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7977. msm_routing_put_audio_mixer),
  7978. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7979. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7980. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7981. msm_routing_put_audio_mixer),
  7982. };
  7983. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7984. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7985. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7986. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7987. msm_routing_put_audio_mixer),
  7988. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7989. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7990. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7991. msm_routing_put_audio_mixer),
  7992. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7993. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7994. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7995. msm_routing_put_audio_mixer),
  7996. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7997. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7998. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7999. msm_routing_put_audio_mixer),
  8000. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8001. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8002. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8003. msm_routing_put_audio_mixer),
  8004. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8005. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8006. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8007. msm_routing_put_audio_mixer),
  8008. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8009. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8010. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8011. msm_routing_put_audio_mixer),
  8012. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8013. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8014. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8015. msm_routing_put_audio_mixer),
  8016. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8017. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8018. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8019. msm_routing_put_audio_mixer),
  8020. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8021. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8022. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8023. msm_routing_put_audio_mixer),
  8024. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8025. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8026. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8027. msm_routing_put_audio_mixer),
  8028. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8029. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8030. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8031. msm_routing_put_audio_mixer),
  8032. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8033. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8034. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8035. msm_routing_put_audio_mixer),
  8036. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8037. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8038. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8039. msm_routing_put_audio_mixer),
  8040. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8041. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8042. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8043. msm_routing_put_audio_mixer),
  8044. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8045. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8046. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8047. msm_routing_put_audio_mixer),
  8048. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8049. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8050. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8051. msm_routing_put_audio_mixer),
  8052. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8053. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8054. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8055. msm_routing_put_audio_mixer),
  8056. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8057. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8058. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8059. msm_routing_put_audio_mixer),
  8060. };
  8061. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  8062. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8063. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8064. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8065. msm_routing_put_audio_mixer),
  8066. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8067. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8068. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8069. msm_routing_put_audio_mixer),
  8070. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8071. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8072. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8073. msm_routing_put_audio_mixer),
  8074. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8075. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8076. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8077. msm_routing_put_audio_mixer),
  8078. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8079. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8080. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8081. msm_routing_put_audio_mixer),
  8082. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8083. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8084. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8085. msm_routing_put_audio_mixer),
  8086. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8087. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8088. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8089. msm_routing_put_audio_mixer),
  8090. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8091. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8092. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8093. msm_routing_put_audio_mixer),
  8094. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8095. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8096. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8097. msm_routing_put_audio_mixer),
  8098. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8099. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8100. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8101. msm_routing_put_audio_mixer),
  8102. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8103. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8104. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8105. msm_routing_put_audio_mixer),
  8106. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8107. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8108. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8109. msm_routing_put_audio_mixer),
  8110. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8111. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8112. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8113. msm_routing_put_audio_mixer),
  8114. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8115. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8116. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8117. msm_routing_put_audio_mixer),
  8118. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8119. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8120. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8121. msm_routing_put_audio_mixer),
  8122. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8123. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8124. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8125. msm_routing_put_audio_mixer),
  8126. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8127. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8128. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8129. msm_routing_put_audio_mixer),
  8130. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8131. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8132. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8133. msm_routing_put_audio_mixer),
  8134. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8135. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8136. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8137. msm_routing_put_audio_mixer),
  8138. };
  8139. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  8140. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8141. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8142. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8143. msm_routing_put_audio_mixer),
  8144. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8145. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8146. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8147. msm_routing_put_audio_mixer),
  8148. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8149. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8150. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8151. msm_routing_put_audio_mixer),
  8152. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8153. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8154. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8155. msm_routing_put_audio_mixer),
  8156. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8157. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8158. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8159. msm_routing_put_audio_mixer),
  8160. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8161. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8162. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8163. msm_routing_put_audio_mixer),
  8164. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8165. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8166. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8167. msm_routing_put_audio_mixer),
  8168. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8169. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8170. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8171. msm_routing_put_audio_mixer),
  8172. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8173. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8174. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8175. msm_routing_put_audio_mixer),
  8176. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8177. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8178. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8179. msm_routing_put_audio_mixer),
  8180. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8181. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8182. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8183. msm_routing_put_audio_mixer),
  8184. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8185. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8186. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8187. msm_routing_put_audio_mixer),
  8188. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8189. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8190. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8191. msm_routing_put_audio_mixer),
  8192. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8193. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8194. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8195. msm_routing_put_audio_mixer),
  8196. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8197. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8198. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8199. msm_routing_put_audio_mixer),
  8200. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8201. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8202. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8203. msm_routing_put_audio_mixer),
  8204. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8205. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8206. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8207. msm_routing_put_audio_mixer),
  8208. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8209. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8210. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8211. msm_routing_put_audio_mixer),
  8212. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8213. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8214. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8215. msm_routing_put_audio_mixer),
  8216. };
  8217. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  8218. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8219. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8220. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8221. msm_routing_put_audio_mixer),
  8222. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8223. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8224. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8225. msm_routing_put_audio_mixer),
  8226. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8227. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8228. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8229. msm_routing_put_audio_mixer),
  8230. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8231. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8232. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8233. msm_routing_put_audio_mixer),
  8234. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8235. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8236. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8237. msm_routing_put_audio_mixer),
  8238. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8239. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8240. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8241. msm_routing_put_audio_mixer),
  8242. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8243. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8244. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8245. msm_routing_put_audio_mixer),
  8246. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8247. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8248. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8249. msm_routing_put_audio_mixer),
  8250. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8251. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8252. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8253. msm_routing_put_audio_mixer),
  8254. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8255. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8256. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8257. msm_routing_put_audio_mixer),
  8258. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8259. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8260. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8261. msm_routing_put_audio_mixer),
  8262. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8263. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8264. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8265. msm_routing_put_audio_mixer),
  8266. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8267. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8268. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8269. msm_routing_put_audio_mixer),
  8270. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8271. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8272. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8273. msm_routing_put_audio_mixer),
  8274. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8275. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8276. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8277. msm_routing_put_audio_mixer),
  8278. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8279. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8280. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8281. msm_routing_put_audio_mixer),
  8282. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8283. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8284. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8285. msm_routing_put_audio_mixer),
  8286. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8287. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8288. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8289. msm_routing_put_audio_mixer),
  8290. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8291. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8292. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8293. msm_routing_put_audio_mixer),
  8294. };
  8295. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  8296. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8297. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8298. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8299. msm_routing_put_audio_mixer),
  8300. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8301. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8302. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8303. msm_routing_put_audio_mixer),
  8304. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8305. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8306. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8307. msm_routing_put_audio_mixer),
  8308. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8309. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8310. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8311. msm_routing_put_audio_mixer),
  8312. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8313. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8314. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8315. msm_routing_put_audio_mixer),
  8316. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8317. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8318. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8319. msm_routing_put_audio_mixer),
  8320. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8321. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8322. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8323. msm_routing_put_audio_mixer),
  8324. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8325. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8326. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8327. msm_routing_put_audio_mixer),
  8328. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8329. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8330. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8331. msm_routing_put_audio_mixer),
  8332. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8333. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8334. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8335. msm_routing_put_audio_mixer),
  8336. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8337. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8338. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8339. msm_routing_put_audio_mixer),
  8340. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8341. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8342. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8343. msm_routing_put_audio_mixer),
  8344. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8345. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8346. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8347. msm_routing_put_audio_mixer),
  8348. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8349. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8350. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8351. msm_routing_put_audio_mixer),
  8352. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8353. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8354. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8355. msm_routing_put_audio_mixer),
  8356. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8357. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8358. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8359. msm_routing_put_audio_mixer),
  8360. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8361. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8362. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8363. msm_routing_put_audio_mixer),
  8364. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8365. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8366. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8367. msm_routing_put_audio_mixer),
  8368. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8369. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8370. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8371. msm_routing_put_audio_mixer),
  8372. };
  8373. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  8374. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8375. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8376. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8377. msm_routing_put_audio_mixer),
  8378. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8379. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8380. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8381. msm_routing_put_audio_mixer),
  8382. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8383. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8384. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8385. msm_routing_put_audio_mixer),
  8386. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8387. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8388. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8389. msm_routing_put_audio_mixer),
  8390. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8391. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8392. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8393. msm_routing_put_audio_mixer),
  8394. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8395. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8396. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8397. msm_routing_put_audio_mixer),
  8398. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8399. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8400. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8401. msm_routing_put_audio_mixer),
  8402. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8403. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8404. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8405. msm_routing_put_audio_mixer),
  8406. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8407. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8408. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8409. msm_routing_put_audio_mixer),
  8410. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8411. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8412. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8413. msm_routing_put_audio_mixer),
  8414. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8415. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8416. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8417. msm_routing_put_audio_mixer),
  8418. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8419. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8420. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8421. msm_routing_put_audio_mixer),
  8422. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8423. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8424. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8425. msm_routing_put_audio_mixer),
  8426. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8427. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8428. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8429. msm_routing_put_audio_mixer),
  8430. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8431. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8432. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8433. msm_routing_put_audio_mixer),
  8434. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8435. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8436. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8437. msm_routing_put_audio_mixer),
  8438. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8439. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8440. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8441. msm_routing_put_audio_mixer),
  8442. };
  8443. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  8444. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8445. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8446. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8447. msm_routing_put_audio_mixer),
  8448. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8449. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8450. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8451. msm_routing_put_audio_mixer),
  8452. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8453. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8454. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8455. msm_routing_put_audio_mixer),
  8456. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8457. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8458. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8459. msm_routing_put_audio_mixer),
  8460. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8461. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8462. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8463. msm_routing_put_audio_mixer),
  8464. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8465. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8466. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8467. msm_routing_put_audio_mixer),
  8468. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8469. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8470. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8471. msm_routing_put_audio_mixer),
  8472. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8473. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8474. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8475. msm_routing_put_audio_mixer),
  8476. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8477. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8478. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8479. msm_routing_put_audio_mixer),
  8480. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8481. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8482. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8483. msm_routing_put_audio_mixer),
  8484. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8485. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8486. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8487. msm_routing_put_audio_mixer),
  8488. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8489. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8490. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8491. msm_routing_put_audio_mixer),
  8492. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8493. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8494. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8495. msm_routing_put_audio_mixer),
  8496. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8497. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8498. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8499. msm_routing_put_audio_mixer),
  8500. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8501. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8502. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8503. msm_routing_put_audio_mixer),
  8504. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8505. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8506. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8507. msm_routing_put_audio_mixer),
  8508. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8509. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8510. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8511. msm_routing_put_audio_mixer),
  8512. };
  8513. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8514. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8515. MSM_BACKEND_DAI_USB_RX,
  8516. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8517. msm_routing_put_audio_mixer),
  8518. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8519. MSM_BACKEND_DAI_USB_RX,
  8520. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8521. msm_routing_put_audio_mixer),
  8522. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8523. MSM_BACKEND_DAI_USB_RX,
  8524. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8525. msm_routing_put_audio_mixer),
  8526. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8527. MSM_BACKEND_DAI_USB_RX,
  8528. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8529. msm_routing_put_audio_mixer),
  8530. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8531. MSM_BACKEND_DAI_USB_RX,
  8532. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8533. msm_routing_put_audio_mixer),
  8534. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8535. MSM_BACKEND_DAI_USB_RX,
  8536. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8537. msm_routing_put_audio_mixer),
  8538. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8539. MSM_BACKEND_DAI_USB_RX,
  8540. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8541. msm_routing_put_audio_mixer),
  8542. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8543. MSM_BACKEND_DAI_USB_RX,
  8544. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8545. msm_routing_put_audio_mixer),
  8546. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8547. MSM_BACKEND_DAI_USB_RX,
  8548. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8549. msm_routing_put_audio_mixer),
  8550. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8551. MSM_BACKEND_DAI_USB_RX,
  8552. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8553. msm_routing_put_audio_mixer),
  8554. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8555. MSM_BACKEND_DAI_USB_RX,
  8556. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8557. msm_routing_put_audio_mixer),
  8558. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8559. MSM_BACKEND_DAI_USB_RX,
  8560. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8561. msm_routing_put_audio_mixer),
  8562. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8563. MSM_BACKEND_DAI_USB_RX,
  8564. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8565. msm_routing_put_audio_mixer),
  8566. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8567. MSM_BACKEND_DAI_USB_RX,
  8568. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8569. msm_routing_put_audio_mixer),
  8570. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8571. MSM_BACKEND_DAI_USB_RX,
  8572. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8573. msm_routing_put_audio_mixer),
  8574. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8575. MSM_BACKEND_DAI_USB_RX,
  8576. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8577. msm_routing_put_audio_mixer),
  8578. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8579. MSM_BACKEND_DAI_USB_RX,
  8580. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8581. msm_routing_put_audio_mixer),
  8582. };
  8583. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  8584. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8585. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8586. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8587. msm_routing_put_audio_mixer),
  8588. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8589. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8590. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8591. msm_routing_put_audio_mixer),
  8592. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8593. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8594. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8595. msm_routing_put_audio_mixer),
  8596. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8597. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8598. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8599. msm_routing_put_audio_mixer),
  8600. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8601. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8602. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8603. msm_routing_put_audio_mixer),
  8604. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8605. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8606. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8607. msm_routing_put_audio_mixer),
  8608. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8609. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8610. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8611. msm_routing_put_audio_mixer),
  8612. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8613. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8614. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8615. msm_routing_put_audio_mixer),
  8616. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8617. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8618. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8619. msm_routing_put_audio_mixer),
  8620. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8621. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8622. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8623. msm_routing_put_audio_mixer),
  8624. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8625. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8626. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8627. msm_routing_put_audio_mixer),
  8628. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8629. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8630. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8631. msm_routing_put_audio_mixer),
  8632. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8633. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8634. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8635. msm_routing_put_audio_mixer),
  8636. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8637. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8638. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8639. msm_routing_put_audio_mixer),
  8640. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8641. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8642. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8643. msm_routing_put_audio_mixer),
  8644. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8645. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8646. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8647. msm_routing_put_audio_mixer),
  8648. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8649. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8650. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8651. msm_routing_put_audio_mixer),
  8652. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8653. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8654. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8655. msm_routing_put_audio_mixer),
  8656. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8657. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8658. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8659. msm_routing_put_audio_mixer),
  8660. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8661. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8662. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8663. msm_routing_put_audio_mixer),
  8664. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8665. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8666. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8667. msm_routing_put_audio_mixer),
  8668. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8669. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8670. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8671. msm_routing_put_audio_mixer),
  8672. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8673. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8674. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8675. msm_routing_put_audio_mixer),
  8676. };
  8677. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8678. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8679. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8680. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8681. msm_routing_put_audio_mixer),
  8682. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8683. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8684. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8685. msm_routing_put_audio_mixer),
  8686. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8687. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8688. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8689. msm_routing_put_audio_mixer),
  8690. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8691. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8692. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8693. msm_routing_put_audio_mixer),
  8694. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8695. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8696. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8697. msm_routing_put_audio_mixer),
  8698. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8699. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8700. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8701. msm_routing_put_audio_mixer),
  8702. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8703. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8704. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8705. msm_routing_put_audio_mixer),
  8706. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8707. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8708. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8709. msm_routing_put_audio_mixer),
  8710. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8711. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8712. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8713. msm_routing_put_audio_mixer),
  8714. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8715. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8716. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8717. msm_routing_put_audio_mixer),
  8718. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8719. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8720. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8721. msm_routing_put_audio_mixer),
  8722. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8723. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8724. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8725. msm_routing_put_audio_mixer),
  8726. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8727. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8728. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8729. msm_routing_put_audio_mixer),
  8730. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8731. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8732. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8733. msm_routing_put_audio_mixer),
  8734. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8735. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8736. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8737. msm_routing_put_audio_mixer),
  8738. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8739. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8740. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8741. msm_routing_put_audio_mixer),
  8742. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8743. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8744. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8745. msm_routing_put_audio_mixer),
  8746. };
  8747. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8748. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8749. MSM_BACKEND_DAI_INT_FM_RX,
  8750. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8751. msm_routing_put_audio_mixer),
  8752. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8753. MSM_BACKEND_DAI_INT_FM_RX,
  8754. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8755. msm_routing_put_audio_mixer),
  8756. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8757. MSM_BACKEND_DAI_INT_FM_RX,
  8758. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8759. msm_routing_put_audio_mixer),
  8760. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8761. MSM_BACKEND_DAI_INT_FM_RX,
  8762. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8763. msm_routing_put_audio_mixer),
  8764. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8765. MSM_BACKEND_DAI_INT_FM_RX,
  8766. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8767. msm_routing_put_audio_mixer),
  8768. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8769. MSM_BACKEND_DAI_INT_FM_RX,
  8770. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8771. msm_routing_put_audio_mixer),
  8772. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8773. MSM_BACKEND_DAI_INT_FM_RX,
  8774. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8775. msm_routing_put_audio_mixer),
  8776. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8777. MSM_BACKEND_DAI_INT_FM_RX,
  8778. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8779. msm_routing_put_audio_mixer),
  8780. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8781. MSM_BACKEND_DAI_INT_FM_RX,
  8782. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8783. msm_routing_put_audio_mixer),
  8784. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8785. MSM_BACKEND_DAI_INT_FM_RX,
  8786. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8787. msm_routing_put_audio_mixer),
  8788. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8789. MSM_BACKEND_DAI_INT_FM_RX,
  8790. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8791. msm_routing_put_audio_mixer),
  8792. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8793. MSM_BACKEND_DAI_INT_FM_RX,
  8794. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8795. msm_routing_put_audio_mixer),
  8796. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8797. MSM_BACKEND_DAI_INT_FM_RX,
  8798. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8799. msm_routing_put_audio_mixer),
  8800. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8801. MSM_BACKEND_DAI_INT_FM_RX,
  8802. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8803. msm_routing_put_audio_mixer),
  8804. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8805. MSM_BACKEND_DAI_INT_FM_RX,
  8806. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8807. msm_routing_put_audio_mixer),
  8808. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8809. MSM_BACKEND_DAI_INT_FM_RX,
  8810. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8811. msm_routing_put_audio_mixer),
  8812. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8813. MSM_BACKEND_DAI_INT_FM_RX,
  8814. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8815. msm_routing_put_audio_mixer),
  8816. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8817. MSM_BACKEND_DAI_INT_FM_RX,
  8818. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8819. msm_routing_put_audio_mixer),
  8820. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8821. MSM_BACKEND_DAI_INT_FM_RX,
  8822. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8823. msm_routing_put_audio_mixer),
  8824. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8825. MSM_BACKEND_DAI_INT_FM_RX,
  8826. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8827. msm_routing_put_audio_mixer),
  8828. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8829. MSM_BACKEND_DAI_INT_FM_RX,
  8830. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8831. msm_routing_put_audio_mixer),
  8832. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8833. MSM_BACKEND_DAI_INT_FM_RX,
  8834. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8835. msm_routing_put_audio_mixer),
  8836. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8837. MSM_BACKEND_DAI_INT_FM_RX,
  8838. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8839. msm_routing_put_audio_mixer),
  8840. };
  8841. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8842. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8843. MSM_BACKEND_DAI_AFE_PCM_RX,
  8844. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8845. msm_routing_put_audio_mixer),
  8846. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8847. MSM_BACKEND_DAI_AFE_PCM_RX,
  8848. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8849. msm_routing_put_audio_mixer),
  8850. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8851. MSM_BACKEND_DAI_AFE_PCM_RX,
  8852. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8853. msm_routing_put_audio_mixer),
  8854. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8855. MSM_BACKEND_DAI_AFE_PCM_RX,
  8856. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8857. msm_routing_put_audio_mixer),
  8858. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8859. MSM_BACKEND_DAI_AFE_PCM_RX,
  8860. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8861. msm_routing_put_audio_mixer),
  8862. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8863. MSM_BACKEND_DAI_AFE_PCM_RX,
  8864. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8865. msm_routing_put_audio_mixer),
  8866. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8867. MSM_BACKEND_DAI_AFE_PCM_RX,
  8868. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8869. msm_routing_put_audio_mixer),
  8870. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8871. MSM_BACKEND_DAI_AFE_PCM_RX,
  8872. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8873. msm_routing_put_audio_mixer),
  8874. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8875. MSM_BACKEND_DAI_AFE_PCM_RX,
  8876. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8877. msm_routing_put_audio_mixer),
  8878. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8879. MSM_BACKEND_DAI_AFE_PCM_RX,
  8880. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8881. msm_routing_put_audio_mixer),
  8882. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8883. MSM_BACKEND_DAI_AFE_PCM_RX,
  8884. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8885. msm_routing_put_audio_mixer),
  8886. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8887. MSM_BACKEND_DAI_AFE_PCM_RX,
  8888. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8889. msm_routing_put_audio_mixer),
  8890. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8891. MSM_BACKEND_DAI_AFE_PCM_RX,
  8892. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8893. msm_routing_put_audio_mixer),
  8894. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8895. MSM_BACKEND_DAI_AFE_PCM_RX,
  8896. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8897. msm_routing_put_audio_mixer),
  8898. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8899. MSM_BACKEND_DAI_AFE_PCM_RX,
  8900. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8901. msm_routing_put_audio_mixer),
  8902. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8903. MSM_BACKEND_DAI_AFE_PCM_RX,
  8904. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8905. msm_routing_put_audio_mixer),
  8906. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8907. MSM_BACKEND_DAI_AFE_PCM_RX,
  8908. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8909. msm_routing_put_audio_mixer),
  8910. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8911. MSM_BACKEND_DAI_AFE_PCM_RX,
  8912. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8913. msm_routing_put_audio_mixer),
  8914. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8915. MSM_BACKEND_DAI_AFE_PCM_RX,
  8916. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8917. msm_routing_put_audio_mixer),
  8918. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8919. MSM_BACKEND_DAI_AFE_PCM_RX,
  8920. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8921. msm_routing_put_audio_mixer),
  8922. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8923. MSM_BACKEND_DAI_AFE_PCM_RX,
  8924. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8925. msm_routing_put_audio_mixer),
  8926. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8927. MSM_BACKEND_DAI_AFE_PCM_RX,
  8928. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8929. msm_routing_put_audio_mixer),
  8930. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8931. MSM_BACKEND_DAI_AFE_PCM_RX,
  8932. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8933. msm_routing_put_audio_mixer),
  8934. };
  8935. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8936. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8937. MSM_BACKEND_DAI_AUXPCM_RX,
  8938. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8939. msm_routing_put_audio_mixer),
  8940. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8941. MSM_BACKEND_DAI_AUXPCM_RX,
  8942. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8943. msm_routing_put_audio_mixer),
  8944. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8945. MSM_BACKEND_DAI_AUXPCM_RX,
  8946. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8947. msm_routing_put_audio_mixer),
  8948. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8949. MSM_BACKEND_DAI_AUXPCM_RX,
  8950. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8951. msm_routing_put_audio_mixer),
  8952. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8953. MSM_BACKEND_DAI_AUXPCM_RX,
  8954. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8955. msm_routing_put_audio_mixer),
  8956. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8957. MSM_BACKEND_DAI_AUXPCM_RX,
  8958. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8959. msm_routing_put_audio_mixer),
  8960. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8961. MSM_BACKEND_DAI_AUXPCM_RX,
  8962. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8963. msm_routing_put_audio_mixer),
  8964. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8965. MSM_BACKEND_DAI_AUXPCM_RX,
  8966. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8967. msm_routing_put_audio_mixer),
  8968. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8969. MSM_BACKEND_DAI_AUXPCM_RX,
  8970. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8971. msm_routing_put_audio_mixer),
  8972. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8973. MSM_BACKEND_DAI_AUXPCM_RX,
  8974. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8975. msm_routing_put_audio_mixer),
  8976. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8977. MSM_BACKEND_DAI_AUXPCM_RX,
  8978. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8979. msm_routing_put_audio_mixer),
  8980. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8981. MSM_BACKEND_DAI_AUXPCM_RX,
  8982. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8983. msm_routing_put_audio_mixer),
  8984. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8985. MSM_BACKEND_DAI_AUXPCM_RX,
  8986. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8987. msm_routing_put_audio_mixer),
  8988. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8989. MSM_BACKEND_DAI_AUXPCM_RX,
  8990. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8991. msm_routing_put_audio_mixer),
  8992. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8993. MSM_BACKEND_DAI_AUXPCM_RX,
  8994. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8995. msm_routing_put_audio_mixer),
  8996. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8997. MSM_BACKEND_DAI_AUXPCM_RX,
  8998. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8999. msm_routing_put_audio_mixer),
  9000. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  9001. MSM_BACKEND_DAI_AUXPCM_RX,
  9002. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9003. msm_routing_put_audio_mixer),
  9004. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  9005. MSM_BACKEND_DAI_AUXPCM_RX,
  9006. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9007. msm_routing_put_audio_mixer),
  9008. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  9009. MSM_BACKEND_DAI_AUXPCM_RX,
  9010. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9011. msm_routing_put_audio_mixer),
  9012. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9013. MSM_BACKEND_DAI_AUXPCM_RX,
  9014. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9015. msm_routing_put_audio_mixer),
  9016. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9017. MSM_BACKEND_DAI_AUXPCM_RX,
  9018. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9019. msm_routing_put_audio_mixer),
  9020. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  9021. MSM_BACKEND_DAI_AUXPCM_RX,
  9022. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9023. msm_routing_put_audio_mixer),
  9024. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  9025. MSM_BACKEND_DAI_AUXPCM_RX,
  9026. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9027. msm_routing_put_audio_mixer),
  9028. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  9029. MSM_BACKEND_DAI_AUXPCM_RX,
  9030. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  9031. msm_routing_put_audio_mixer),
  9032. };
  9033. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  9034. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9035. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9036. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9037. msm_routing_put_audio_mixer),
  9038. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9039. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9040. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9041. msm_routing_put_audio_mixer),
  9042. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9043. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9044. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9045. msm_routing_put_audio_mixer),
  9046. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9047. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9048. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9049. msm_routing_put_audio_mixer),
  9050. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9051. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9052. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9053. msm_routing_put_audio_mixer),
  9054. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9055. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9056. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9057. msm_routing_put_audio_mixer),
  9058. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9059. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9060. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9061. msm_routing_put_audio_mixer),
  9062. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9063. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9064. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9065. msm_routing_put_audio_mixer),
  9066. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9067. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9068. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9069. msm_routing_put_audio_mixer),
  9070. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9071. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9072. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9073. msm_routing_put_audio_mixer),
  9074. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9075. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9076. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9077. msm_routing_put_audio_mixer),
  9078. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9079. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9080. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9081. msm_routing_put_audio_mixer),
  9082. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9083. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9084. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9085. msm_routing_put_audio_mixer),
  9086. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9087. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9088. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9089. msm_routing_put_audio_mixer),
  9090. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9091. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9092. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9093. msm_routing_put_audio_mixer),
  9094. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9095. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9096. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9097. msm_routing_put_audio_mixer),
  9098. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  9099. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9100. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9101. msm_routing_put_audio_mixer),
  9102. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  9103. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9104. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9105. msm_routing_put_audio_mixer),
  9106. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  9107. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9108. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9109. msm_routing_put_audio_mixer),
  9110. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9111. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9112. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9113. msm_routing_put_audio_mixer),
  9114. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9115. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9116. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9117. msm_routing_put_audio_mixer),
  9118. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  9119. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9120. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9121. msm_routing_put_audio_mixer),
  9122. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  9123. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9124. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9125. msm_routing_put_audio_mixer),
  9126. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  9127. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9128. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  9129. msm_routing_put_audio_mixer),
  9130. };
  9131. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  9132. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9133. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9134. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9135. msm_routing_put_audio_mixer),
  9136. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9137. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9138. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9139. msm_routing_put_audio_mixer),
  9140. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9141. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9142. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9143. msm_routing_put_audio_mixer),
  9144. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9145. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9146. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9147. msm_routing_put_audio_mixer),
  9148. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9149. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9150. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9151. msm_routing_put_audio_mixer),
  9152. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9153. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9154. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9155. msm_routing_put_audio_mixer),
  9156. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9157. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9158. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9159. msm_routing_put_audio_mixer),
  9160. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9161. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9162. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9163. msm_routing_put_audio_mixer),
  9164. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9165. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9166. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9167. msm_routing_put_audio_mixer),
  9168. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9169. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9170. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9171. msm_routing_put_audio_mixer),
  9172. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9173. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9174. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9175. msm_routing_put_audio_mixer),
  9176. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9177. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9178. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9179. msm_routing_put_audio_mixer),
  9180. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9181. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9182. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9183. msm_routing_put_audio_mixer),
  9184. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9185. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9186. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9187. msm_routing_put_audio_mixer),
  9188. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9189. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9190. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9191. msm_routing_put_audio_mixer),
  9192. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9193. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9194. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9195. msm_routing_put_audio_mixer),
  9196. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9197. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9198. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9199. msm_routing_put_audio_mixer),
  9200. };
  9201. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  9202. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9203. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9204. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9205. msm_routing_put_audio_mixer),
  9206. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9207. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9208. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9209. msm_routing_put_audio_mixer),
  9210. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9211. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9212. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9213. msm_routing_put_audio_mixer),
  9214. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9215. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9216. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9217. msm_routing_put_audio_mixer),
  9218. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9219. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9220. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9221. msm_routing_put_audio_mixer),
  9222. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9223. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9224. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9225. msm_routing_put_audio_mixer),
  9226. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9227. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9228. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9229. msm_routing_put_audio_mixer),
  9230. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9231. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9232. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9233. msm_routing_put_audio_mixer),
  9234. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9235. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9236. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9237. msm_routing_put_audio_mixer),
  9238. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9239. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9240. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9241. msm_routing_put_audio_mixer),
  9242. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9243. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9244. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9245. msm_routing_put_audio_mixer),
  9246. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9247. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9248. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9249. msm_routing_put_audio_mixer),
  9250. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9251. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9252. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9253. msm_routing_put_audio_mixer),
  9254. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9255. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9256. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9257. msm_routing_put_audio_mixer),
  9258. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9259. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9260. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9261. msm_routing_put_audio_mixer),
  9262. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9263. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9264. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9265. msm_routing_put_audio_mixer),
  9266. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9267. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9268. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9269. msm_routing_put_audio_mixer),
  9270. };
  9271. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  9272. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9273. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9274. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9275. msm_routing_put_audio_mixer),
  9276. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9277. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9278. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9279. msm_routing_put_audio_mixer),
  9280. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9281. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9282. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9283. msm_routing_put_audio_mixer),
  9284. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9285. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9286. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9287. msm_routing_put_audio_mixer),
  9288. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9289. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9290. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9291. msm_routing_put_audio_mixer),
  9292. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9293. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9294. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9295. msm_routing_put_audio_mixer),
  9296. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9297. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9298. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9299. msm_routing_put_audio_mixer),
  9300. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9301. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9302. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9303. msm_routing_put_audio_mixer),
  9304. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9305. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9306. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9307. msm_routing_put_audio_mixer),
  9308. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9309. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9310. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9311. msm_routing_put_audio_mixer),
  9312. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9313. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9314. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9315. msm_routing_put_audio_mixer),
  9316. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9317. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9318. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9319. msm_routing_put_audio_mixer),
  9320. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9321. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9322. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9323. msm_routing_put_audio_mixer),
  9324. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9325. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9326. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9327. msm_routing_put_audio_mixer),
  9328. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9329. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9330. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9331. msm_routing_put_audio_mixer),
  9332. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9333. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9334. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9335. msm_routing_put_audio_mixer),
  9336. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9337. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9338. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9339. msm_routing_put_audio_mixer),
  9340. };
  9341. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  9342. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9343. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9344. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9345. msm_routing_put_audio_mixer),
  9346. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9347. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9348. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9349. msm_routing_put_audio_mixer),
  9350. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9351. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9352. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9353. msm_routing_put_audio_mixer),
  9354. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9355. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9356. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9357. msm_routing_put_audio_mixer),
  9358. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9359. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9360. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9361. msm_routing_put_audio_mixer),
  9362. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9363. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9364. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9365. msm_routing_put_audio_mixer),
  9366. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9367. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9368. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9369. msm_routing_put_audio_mixer),
  9370. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9371. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9372. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9373. msm_routing_put_audio_mixer),
  9374. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9375. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9376. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9377. msm_routing_put_audio_mixer),
  9378. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9379. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9380. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9381. msm_routing_put_audio_mixer),
  9382. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9383. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9384. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9385. msm_routing_put_audio_mixer),
  9386. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9387. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9388. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9389. msm_routing_put_audio_mixer),
  9390. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9391. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9392. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9393. msm_routing_put_audio_mixer),
  9394. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9395. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9396. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9397. msm_routing_put_audio_mixer),
  9398. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9399. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9400. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9401. msm_routing_put_audio_mixer),
  9402. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9403. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9404. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9405. msm_routing_put_audio_mixer),
  9406. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9407. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9408. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9409. msm_routing_put_audio_mixer),
  9410. };
  9411. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  9412. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9413. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9414. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9415. msm_routing_put_audio_mixer),
  9416. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9417. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9418. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9419. msm_routing_put_audio_mixer),
  9420. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9421. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9422. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9423. msm_routing_put_audio_mixer),
  9424. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9425. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9426. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9427. msm_routing_put_audio_mixer),
  9428. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9429. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9430. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9431. msm_routing_put_audio_mixer),
  9432. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9433. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9434. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9435. msm_routing_put_audio_mixer),
  9436. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9437. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9438. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9439. msm_routing_put_audio_mixer),
  9440. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9441. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9442. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9443. msm_routing_put_audio_mixer),
  9444. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9445. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9446. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9447. msm_routing_put_audio_mixer),
  9448. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9449. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9450. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9451. msm_routing_put_audio_mixer),
  9452. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9453. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9454. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9455. msm_routing_put_audio_mixer),
  9456. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9457. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9458. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9459. msm_routing_put_audio_mixer),
  9460. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9461. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9462. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9463. msm_routing_put_audio_mixer),
  9464. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9465. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9466. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9467. msm_routing_put_audio_mixer),
  9468. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9469. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9470. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9471. msm_routing_put_audio_mixer),
  9472. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9473. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9474. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9475. msm_routing_put_audio_mixer),
  9476. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9477. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9478. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9479. msm_routing_put_audio_mixer),
  9480. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9481. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9482. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9483. msm_routing_put_audio_mixer),
  9484. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9485. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9486. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9487. msm_routing_put_audio_mixer),
  9488. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9489. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9490. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9491. msm_routing_put_audio_mixer),
  9492. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9493. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9494. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9495. msm_routing_put_audio_mixer),
  9496. };
  9497. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9498. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9499. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9500. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9501. msm_routing_put_audio_mixer),
  9502. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9503. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9504. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9505. msm_routing_put_audio_mixer),
  9506. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9507. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9508. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9509. msm_routing_put_audio_mixer),
  9510. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9511. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9512. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9513. msm_routing_put_audio_mixer),
  9514. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9515. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9516. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9517. msm_routing_put_audio_mixer),
  9518. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9519. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9520. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9521. msm_routing_put_audio_mixer),
  9522. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9523. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9524. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9525. msm_routing_put_audio_mixer),
  9526. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9527. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9528. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9529. msm_routing_put_audio_mixer),
  9530. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9531. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9532. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9533. msm_routing_put_audio_mixer),
  9534. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9535. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9536. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9537. msm_routing_put_audio_mixer),
  9538. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9539. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9540. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9541. msm_routing_put_audio_mixer),
  9542. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9543. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9544. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9545. msm_routing_put_audio_mixer),
  9546. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9547. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9548. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9549. msm_routing_put_audio_mixer),
  9550. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9551. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9552. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9553. msm_routing_put_audio_mixer),
  9554. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9555. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9556. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9557. msm_routing_put_audio_mixer),
  9558. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9559. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9560. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9561. msm_routing_put_audio_mixer),
  9562. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9563. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9564. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9565. msm_routing_put_audio_mixer),
  9566. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9567. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9568. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9569. msm_routing_put_audio_mixer),
  9570. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9571. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9572. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9573. msm_routing_put_audio_mixer),
  9574. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9575. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9576. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9577. msm_routing_put_audio_mixer),
  9578. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9579. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9580. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9581. msm_routing_put_audio_mixer),
  9582. };
  9583. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  9584. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9585. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9586. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9587. msm_routing_put_audio_mixer),
  9588. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9589. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9590. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9591. msm_routing_put_audio_mixer),
  9592. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9593. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9594. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9595. msm_routing_put_audio_mixer),
  9596. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9597. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9598. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9599. msm_routing_put_audio_mixer),
  9600. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9601. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9602. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9603. msm_routing_put_audio_mixer),
  9604. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9605. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9606. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9607. msm_routing_put_audio_mixer),
  9608. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9609. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9610. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9611. msm_routing_put_audio_mixer),
  9612. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9613. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9614. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9615. msm_routing_put_audio_mixer),
  9616. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9617. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9618. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9619. msm_routing_put_audio_mixer),
  9620. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9621. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9622. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9623. msm_routing_put_audio_mixer),
  9624. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9625. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9626. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9627. msm_routing_put_audio_mixer),
  9628. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9629. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9630. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9631. msm_routing_put_audio_mixer),
  9632. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9633. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9634. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9635. msm_routing_put_audio_mixer),
  9636. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9637. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9638. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9639. msm_routing_put_audio_mixer),
  9640. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9641. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9642. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9643. msm_routing_put_audio_mixer),
  9644. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9645. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9646. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9647. msm_routing_put_audio_mixer),
  9648. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9649. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9650. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9651. msm_routing_put_audio_mixer),
  9652. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9653. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9654. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9655. msm_routing_put_audio_mixer),
  9656. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9657. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9658. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9659. msm_routing_put_audio_mixer),
  9660. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9661. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9662. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9663. msm_routing_put_audio_mixer),
  9664. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9665. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9666. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9667. msm_routing_put_audio_mixer),
  9668. };
  9669. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  9670. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9671. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9672. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9673. msm_routing_put_audio_mixer),
  9674. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9675. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9676. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9677. msm_routing_put_audio_mixer),
  9678. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9679. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9680. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9681. msm_routing_put_audio_mixer),
  9682. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9683. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9684. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9685. msm_routing_put_audio_mixer),
  9686. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9687. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9688. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9689. msm_routing_put_audio_mixer),
  9690. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9691. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9692. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9693. msm_routing_put_audio_mixer),
  9694. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9695. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9696. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9697. msm_routing_put_audio_mixer),
  9698. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9699. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9700. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9701. msm_routing_put_audio_mixer),
  9702. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9703. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9704. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9705. msm_routing_put_audio_mixer),
  9706. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9707. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9708. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9709. msm_routing_put_audio_mixer),
  9710. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9711. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9712. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9713. msm_routing_put_audio_mixer),
  9714. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9715. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9716. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9717. msm_routing_put_audio_mixer),
  9718. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9719. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9720. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9721. msm_routing_put_audio_mixer),
  9722. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9723. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9724. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9725. msm_routing_put_audio_mixer),
  9726. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9727. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9728. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9729. msm_routing_put_audio_mixer),
  9730. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9731. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9732. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9733. msm_routing_put_audio_mixer),
  9734. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9735. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9736. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9737. msm_routing_put_audio_mixer),
  9738. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9739. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9740. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9741. msm_routing_put_audio_mixer),
  9742. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9743. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9744. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9745. msm_routing_put_audio_mixer),
  9746. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9747. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9748. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9749. msm_routing_put_audio_mixer),
  9750. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9751. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9752. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9753. msm_routing_put_audio_mixer),
  9754. };
  9755. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9756. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9757. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9758. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9759. msm_routing_put_audio_mixer),
  9760. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9761. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9762. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9763. msm_routing_put_audio_mixer),
  9764. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9765. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9766. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9767. msm_routing_put_audio_mixer),
  9768. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9769. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9770. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9771. msm_routing_put_audio_mixer),
  9772. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9773. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9774. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9775. msm_routing_put_audio_mixer),
  9776. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9777. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9778. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9779. msm_routing_put_audio_mixer),
  9780. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9781. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9782. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9783. msm_routing_put_audio_mixer),
  9784. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9785. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9786. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9787. msm_routing_put_audio_mixer),
  9788. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9789. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9790. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9791. msm_routing_put_audio_mixer),
  9792. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9793. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9794. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9795. msm_routing_put_audio_mixer),
  9796. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9797. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9798. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9799. msm_routing_put_audio_mixer),
  9800. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9801. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9802. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9803. msm_routing_put_audio_mixer),
  9804. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9805. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9806. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9807. msm_routing_put_audio_mixer),
  9808. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9809. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9810. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9811. msm_routing_put_audio_mixer),
  9812. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9813. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9814. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9815. msm_routing_put_audio_mixer),
  9816. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9817. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9818. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9819. msm_routing_put_audio_mixer),
  9820. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9821. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9822. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9823. msm_routing_put_audio_mixer),
  9824. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9825. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9826. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9827. msm_routing_put_audio_mixer),
  9828. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9829. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9830. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9831. msm_routing_put_audio_mixer),
  9832. };
  9833. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9834. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9835. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9836. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9837. msm_routing_put_audio_mixer),
  9838. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9839. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9840. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9841. msm_routing_put_audio_mixer),
  9842. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9843. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9844. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9845. msm_routing_put_audio_mixer),
  9846. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9847. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9848. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9849. msm_routing_put_audio_mixer),
  9850. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9851. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9852. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9853. msm_routing_put_audio_mixer),
  9854. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9855. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9856. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9857. msm_routing_put_audio_mixer),
  9858. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9859. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9860. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9861. msm_routing_put_audio_mixer),
  9862. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9863. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9864. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9865. msm_routing_put_audio_mixer),
  9866. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9867. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9868. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9869. msm_routing_put_audio_mixer),
  9870. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9871. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9872. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9873. msm_routing_put_audio_mixer),
  9874. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9875. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9876. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9877. msm_routing_put_audio_mixer),
  9878. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9879. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9880. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9881. msm_routing_put_audio_mixer),
  9882. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9883. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9884. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9885. msm_routing_put_audio_mixer),
  9886. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9887. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9888. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9889. msm_routing_put_audio_mixer),
  9890. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9891. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9892. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9893. msm_routing_put_audio_mixer),
  9894. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9895. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9896. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9897. msm_routing_put_audio_mixer),
  9898. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9899. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9900. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9901. msm_routing_put_audio_mixer),
  9902. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9903. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9904. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9905. msm_routing_put_audio_mixer),
  9906. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9907. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9908. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9909. msm_routing_put_audio_mixer),
  9910. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9911. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9912. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9913. msm_routing_put_audio_mixer),
  9914. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9915. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9916. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9917. msm_routing_put_audio_mixer),
  9918. };
  9919. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9920. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9921. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9922. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9923. msm_routing_put_audio_mixer),
  9924. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9925. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9926. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9927. msm_routing_put_audio_mixer),
  9928. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9929. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9930. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9931. msm_routing_put_audio_mixer),
  9932. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9933. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9934. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9935. msm_routing_put_audio_mixer),
  9936. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9937. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9938. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9939. msm_routing_put_audio_mixer),
  9940. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9941. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9942. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9943. msm_routing_put_audio_mixer),
  9944. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9945. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9946. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9947. msm_routing_put_audio_mixer),
  9948. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9949. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9950. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9951. msm_routing_put_audio_mixer),
  9952. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9953. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9954. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9955. msm_routing_put_audio_mixer),
  9956. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9957. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9958. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9959. msm_routing_put_audio_mixer),
  9960. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9961. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9962. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9963. msm_routing_put_audio_mixer),
  9964. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9965. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9966. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9967. msm_routing_put_audio_mixer),
  9968. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9969. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9970. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9971. msm_routing_put_audio_mixer),
  9972. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9973. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9974. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9975. msm_routing_put_audio_mixer),
  9976. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9977. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9978. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9979. msm_routing_put_audio_mixer),
  9980. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9981. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9982. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9983. msm_routing_put_audio_mixer),
  9984. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9985. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9986. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9987. msm_routing_put_audio_mixer),
  9988. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9989. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9990. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9991. msm_routing_put_audio_mixer),
  9992. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9993. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9994. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9995. msm_routing_put_audio_mixer),
  9996. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9997. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9998. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9999. msm_routing_put_audio_mixer),
  10000. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10001. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10002. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10003. msm_routing_put_audio_mixer),
  10004. };
  10005. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  10006. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10007. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10008. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10009. msm_routing_put_audio_mixer),
  10010. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10011. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10012. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10013. msm_routing_put_audio_mixer),
  10014. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10015. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10016. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10017. msm_routing_put_audio_mixer),
  10018. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10019. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10020. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10021. msm_routing_put_audio_mixer),
  10022. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10023. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10024. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10025. msm_routing_put_audio_mixer),
  10026. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10027. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10028. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10029. msm_routing_put_audio_mixer),
  10030. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10031. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10032. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10033. msm_routing_put_audio_mixer),
  10034. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10035. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10036. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10037. msm_routing_put_audio_mixer),
  10038. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10039. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10040. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10041. msm_routing_put_audio_mixer),
  10042. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10043. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10044. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10045. msm_routing_put_audio_mixer),
  10046. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10047. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10048. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10049. msm_routing_put_audio_mixer),
  10050. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10051. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10052. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10053. msm_routing_put_audio_mixer),
  10054. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10055. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10056. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10057. msm_routing_put_audio_mixer),
  10058. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10059. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10060. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10061. msm_routing_put_audio_mixer),
  10062. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10063. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10064. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10065. msm_routing_put_audio_mixer),
  10066. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10067. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10068. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10069. msm_routing_put_audio_mixer),
  10070. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10071. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10072. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10073. msm_routing_put_audio_mixer),
  10074. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10075. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10076. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10077. msm_routing_put_audio_mixer),
  10078. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10079. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10080. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10081. msm_routing_put_audio_mixer),
  10082. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10083. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10084. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10085. msm_routing_put_audio_mixer),
  10086. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10087. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10088. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10089. msm_routing_put_audio_mixer),
  10090. };
  10091. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  10092. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10093. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10094. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10095. msm_routing_put_audio_mixer),
  10096. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10097. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10098. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10099. msm_routing_put_audio_mixer),
  10100. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10101. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10102. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10103. msm_routing_put_audio_mixer),
  10104. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10105. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10106. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10107. msm_routing_put_audio_mixer),
  10108. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10109. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10110. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10111. msm_routing_put_audio_mixer),
  10112. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10113. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10114. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10115. msm_routing_put_audio_mixer),
  10116. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10117. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10118. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10119. msm_routing_put_audio_mixer),
  10120. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10121. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10122. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10123. msm_routing_put_audio_mixer),
  10124. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10125. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10126. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10127. msm_routing_put_audio_mixer),
  10128. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10129. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10130. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10131. msm_routing_put_audio_mixer),
  10132. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10133. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10134. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10135. msm_routing_put_audio_mixer),
  10136. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10137. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10138. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10139. msm_routing_put_audio_mixer),
  10140. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10141. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10142. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10143. msm_routing_put_audio_mixer),
  10144. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10145. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10146. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10147. msm_routing_put_audio_mixer),
  10148. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10149. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10150. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10151. msm_routing_put_audio_mixer),
  10152. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10153. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10154. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10155. msm_routing_put_audio_mixer),
  10156. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10157. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10158. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10159. msm_routing_put_audio_mixer),
  10160. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10161. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10162. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10163. msm_routing_put_audio_mixer),
  10164. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10165. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10166. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10167. msm_routing_put_audio_mixer),
  10168. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10169. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10170. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10171. msm_routing_put_audio_mixer),
  10172. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10173. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10174. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10175. msm_routing_put_audio_mixer),
  10176. };
  10177. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  10178. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10179. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10180. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10181. msm_routing_put_audio_mixer),
  10182. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10183. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10184. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10185. msm_routing_put_audio_mixer),
  10186. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10187. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10188. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10189. msm_routing_put_audio_mixer),
  10190. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10191. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10192. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10193. msm_routing_put_audio_mixer),
  10194. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10195. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10196. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10197. msm_routing_put_audio_mixer),
  10198. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10199. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10200. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10201. msm_routing_put_audio_mixer),
  10202. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10203. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10204. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10205. msm_routing_put_audio_mixer),
  10206. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10207. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10208. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10209. msm_routing_put_audio_mixer),
  10210. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10211. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10212. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10213. msm_routing_put_audio_mixer),
  10214. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10215. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10216. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10217. msm_routing_put_audio_mixer),
  10218. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10219. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10220. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10221. msm_routing_put_audio_mixer),
  10222. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10223. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10224. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10225. msm_routing_put_audio_mixer),
  10226. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10227. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10228. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10229. msm_routing_put_audio_mixer),
  10230. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10231. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10232. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10233. msm_routing_put_audio_mixer),
  10234. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10235. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10236. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10237. msm_routing_put_audio_mixer),
  10238. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10239. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10240. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10241. msm_routing_put_audio_mixer),
  10242. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10243. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10244. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10245. msm_routing_put_audio_mixer),
  10246. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10247. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10248. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10249. msm_routing_put_audio_mixer),
  10250. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10251. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10252. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10253. msm_routing_put_audio_mixer),
  10254. };
  10255. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  10256. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10257. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10258. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10259. msm_routing_put_audio_mixer),
  10260. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10261. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10262. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10263. msm_routing_put_audio_mixer),
  10264. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10265. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10266. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10267. msm_routing_put_audio_mixer),
  10268. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10269. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10270. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10271. msm_routing_put_audio_mixer),
  10272. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10273. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10274. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10275. msm_routing_put_audio_mixer),
  10276. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10277. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10278. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10279. msm_routing_put_audio_mixer),
  10280. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10281. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10282. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10283. msm_routing_put_audio_mixer),
  10284. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10285. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10286. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10287. msm_routing_put_audio_mixer),
  10288. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10289. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10290. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10291. msm_routing_put_audio_mixer),
  10292. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10293. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10294. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10295. msm_routing_put_audio_mixer),
  10296. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10297. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10298. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10299. msm_routing_put_audio_mixer),
  10300. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10301. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10302. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10303. msm_routing_put_audio_mixer),
  10304. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10305. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10306. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10307. msm_routing_put_audio_mixer),
  10308. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10309. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10310. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10311. msm_routing_put_audio_mixer),
  10312. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10313. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10314. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10315. msm_routing_put_audio_mixer),
  10316. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10317. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10318. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10319. msm_routing_put_audio_mixer),
  10320. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10321. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10322. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10323. msm_routing_put_audio_mixer),
  10324. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10325. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10326. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10327. msm_routing_put_audio_mixer),
  10328. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10329. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10330. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10331. msm_routing_put_audio_mixer),
  10332. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10333. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10334. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10335. msm_routing_put_audio_mixer),
  10336. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10337. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10338. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10339. msm_routing_put_audio_mixer),
  10340. };
  10341. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  10342. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10343. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10344. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10345. msm_routing_put_audio_mixer),
  10346. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10347. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10348. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10349. msm_routing_put_audio_mixer),
  10350. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10351. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10352. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10353. msm_routing_put_audio_mixer),
  10354. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10355. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10356. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10357. msm_routing_put_audio_mixer),
  10358. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10359. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10360. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10361. msm_routing_put_audio_mixer),
  10362. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10363. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10364. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10365. msm_routing_put_audio_mixer),
  10366. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10367. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10368. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10369. msm_routing_put_audio_mixer),
  10370. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10371. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10372. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10373. msm_routing_put_audio_mixer),
  10374. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10375. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10376. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10377. msm_routing_put_audio_mixer),
  10378. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10379. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10380. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10381. msm_routing_put_audio_mixer),
  10382. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10383. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10384. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10385. msm_routing_put_audio_mixer),
  10386. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10387. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10388. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10389. msm_routing_put_audio_mixer),
  10390. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10391. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10392. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10393. msm_routing_put_audio_mixer),
  10394. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10395. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10396. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10397. msm_routing_put_audio_mixer),
  10398. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10399. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10400. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10401. msm_routing_put_audio_mixer),
  10402. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10403. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10404. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10405. msm_routing_put_audio_mixer),
  10406. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10407. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10408. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10409. msm_routing_put_audio_mixer),
  10410. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10411. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10412. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10413. msm_routing_put_audio_mixer),
  10414. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10415. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10416. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10417. msm_routing_put_audio_mixer),
  10418. };
  10419. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  10420. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10421. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10422. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10423. msm_routing_put_audio_mixer),
  10424. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10425. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10426. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10427. msm_routing_put_audio_mixer),
  10428. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10429. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10430. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10431. msm_routing_put_audio_mixer),
  10432. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10433. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10434. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10435. msm_routing_put_audio_mixer),
  10436. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10437. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10438. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10439. msm_routing_put_audio_mixer),
  10440. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10441. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10442. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10443. msm_routing_put_audio_mixer),
  10444. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10445. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10446. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10447. msm_routing_put_audio_mixer),
  10448. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10449. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10450. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10451. msm_routing_put_audio_mixer),
  10452. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10453. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10454. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10455. msm_routing_put_audio_mixer),
  10456. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10457. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10458. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10459. msm_routing_put_audio_mixer),
  10460. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10461. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10462. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10463. msm_routing_put_audio_mixer),
  10464. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10465. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10466. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10467. msm_routing_put_audio_mixer),
  10468. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10469. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10470. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10471. msm_routing_put_audio_mixer),
  10472. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10473. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10474. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10475. msm_routing_put_audio_mixer),
  10476. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10477. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10478. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10479. msm_routing_put_audio_mixer),
  10480. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10481. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10482. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10483. msm_routing_put_audio_mixer),
  10484. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10485. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10486. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10487. msm_routing_put_audio_mixer),
  10488. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10489. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10490. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10491. msm_routing_put_audio_mixer),
  10492. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10493. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10494. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10495. msm_routing_put_audio_mixer),
  10496. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10497. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10498. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10499. msm_routing_put_audio_mixer),
  10500. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10501. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10502. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10503. msm_routing_put_audio_mixer),
  10504. };
  10505. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  10506. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10507. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10508. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10509. msm_routing_put_audio_mixer),
  10510. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10511. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10512. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10513. msm_routing_put_audio_mixer),
  10514. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10515. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10516. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10517. msm_routing_put_audio_mixer),
  10518. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10519. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10520. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10521. msm_routing_put_audio_mixer),
  10522. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10523. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10524. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10525. msm_routing_put_audio_mixer),
  10526. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10527. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10528. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10529. msm_routing_put_audio_mixer),
  10530. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10531. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10532. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10533. msm_routing_put_audio_mixer),
  10534. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10535. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10536. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10537. msm_routing_put_audio_mixer),
  10538. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10539. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10540. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10541. msm_routing_put_audio_mixer),
  10542. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10543. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10544. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10545. msm_routing_put_audio_mixer),
  10546. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10547. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10548. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10549. msm_routing_put_audio_mixer),
  10550. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10551. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10552. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10553. msm_routing_put_audio_mixer),
  10554. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10555. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10556. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10557. msm_routing_put_audio_mixer),
  10558. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10559. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10560. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10561. msm_routing_put_audio_mixer),
  10562. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10563. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10564. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10565. msm_routing_put_audio_mixer),
  10566. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10567. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10568. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10569. msm_routing_put_audio_mixer),
  10570. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10571. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10572. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10573. msm_routing_put_audio_mixer),
  10574. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10575. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10576. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10577. msm_routing_put_audio_mixer),
  10578. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10579. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10580. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10581. msm_routing_put_audio_mixer),
  10582. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10583. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10584. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10585. msm_routing_put_audio_mixer),
  10586. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10587. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10588. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10589. msm_routing_put_audio_mixer),
  10590. };
  10591. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  10592. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10593. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10594. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10595. msm_routing_put_audio_mixer),
  10596. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10597. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10598. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10599. msm_routing_put_audio_mixer),
  10600. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10601. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10602. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10603. msm_routing_put_audio_mixer),
  10604. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10605. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10606. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10607. msm_routing_put_audio_mixer),
  10608. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10609. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10610. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10611. msm_routing_put_audio_mixer),
  10612. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10613. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10614. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10615. msm_routing_put_audio_mixer),
  10616. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10617. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10618. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10619. msm_routing_put_audio_mixer),
  10620. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10621. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10622. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10623. msm_routing_put_audio_mixer),
  10624. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10625. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10626. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10627. msm_routing_put_audio_mixer),
  10628. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10629. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10630. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10631. msm_routing_put_audio_mixer),
  10632. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10633. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10634. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10635. msm_routing_put_audio_mixer),
  10636. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10637. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10638. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10639. msm_routing_put_audio_mixer),
  10640. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10641. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10642. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10643. msm_routing_put_audio_mixer),
  10644. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10645. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10646. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10647. msm_routing_put_audio_mixer),
  10648. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10649. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10650. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10651. msm_routing_put_audio_mixer),
  10652. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10653. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10654. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10655. msm_routing_put_audio_mixer),
  10656. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10657. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10658. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10659. msm_routing_put_audio_mixer),
  10660. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10661. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10662. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10663. msm_routing_put_audio_mixer),
  10664. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10665. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10666. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10667. msm_routing_put_audio_mixer),
  10668. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10669. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10670. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10671. msm_routing_put_audio_mixer),
  10672. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10673. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10674. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10675. msm_routing_put_audio_mixer),
  10676. };
  10677. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  10678. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10679. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10680. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10681. msm_routing_put_audio_mixer),
  10682. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10683. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10684. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10685. msm_routing_put_audio_mixer),
  10686. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10687. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10688. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10689. msm_routing_put_audio_mixer),
  10690. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10691. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10692. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10693. msm_routing_put_audio_mixer),
  10694. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10695. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10696. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10697. msm_routing_put_audio_mixer),
  10698. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10699. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10700. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10701. msm_routing_put_audio_mixer),
  10702. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10703. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10704. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10705. msm_routing_put_audio_mixer),
  10706. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10707. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10708. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10709. msm_routing_put_audio_mixer),
  10710. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10711. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10712. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10713. msm_routing_put_audio_mixer),
  10714. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10715. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10716. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10717. msm_routing_put_audio_mixer),
  10718. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10719. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10720. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10721. msm_routing_put_audio_mixer),
  10722. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10723. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10724. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10725. msm_routing_put_audio_mixer),
  10726. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10727. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10728. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10729. msm_routing_put_audio_mixer),
  10730. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10731. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10732. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10733. msm_routing_put_audio_mixer),
  10734. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10735. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10736. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10737. msm_routing_put_audio_mixer),
  10738. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10739. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10740. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10741. msm_routing_put_audio_mixer),
  10742. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10743. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10744. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10745. msm_routing_put_audio_mixer),
  10746. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10747. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10748. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10749. msm_routing_put_audio_mixer),
  10750. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10751. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10752. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10753. msm_routing_put_audio_mixer),
  10754. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10755. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10756. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10757. msm_routing_put_audio_mixer),
  10758. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10759. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10760. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10761. msm_routing_put_audio_mixer),
  10762. };
  10763. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  10764. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10765. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10766. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10767. msm_routing_put_audio_mixer),
  10768. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10769. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10770. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10771. msm_routing_put_audio_mixer),
  10772. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10773. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10774. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10775. msm_routing_put_audio_mixer),
  10776. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10777. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10778. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10779. msm_routing_put_audio_mixer),
  10780. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10781. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10782. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10783. msm_routing_put_audio_mixer),
  10784. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10785. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10786. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10787. msm_routing_put_audio_mixer),
  10788. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10789. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10790. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10791. msm_routing_put_audio_mixer),
  10792. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10793. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10794. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10795. msm_routing_put_audio_mixer),
  10796. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10797. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10798. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10799. msm_routing_put_audio_mixer),
  10800. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10801. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10802. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10803. msm_routing_put_audio_mixer),
  10804. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10805. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10806. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10807. msm_routing_put_audio_mixer),
  10808. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10809. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10810. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10811. msm_routing_put_audio_mixer),
  10812. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10813. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10814. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10815. msm_routing_put_audio_mixer),
  10816. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10817. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10818. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10819. msm_routing_put_audio_mixer),
  10820. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10821. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10822. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10823. msm_routing_put_audio_mixer),
  10824. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10825. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10826. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10827. msm_routing_put_audio_mixer),
  10828. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10829. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10830. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10831. msm_routing_put_audio_mixer),
  10832. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10833. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10834. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10835. msm_routing_put_audio_mixer),
  10836. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10837. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10838. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10839. msm_routing_put_audio_mixer),
  10840. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10841. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10842. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10843. msm_routing_put_audio_mixer),
  10844. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10845. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10846. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10847. msm_routing_put_audio_mixer),
  10848. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10849. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10850. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10851. msm_routing_put_audio_mixer),
  10852. };
  10853. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  10854. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10855. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10856. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10857. msm_routing_put_audio_mixer),
  10858. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10859. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10860. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10861. msm_routing_put_audio_mixer),
  10862. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10863. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10864. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10865. msm_routing_put_audio_mixer),
  10866. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10867. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10868. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10869. msm_routing_put_audio_mixer),
  10870. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10871. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10872. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10873. msm_routing_put_audio_mixer),
  10874. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10875. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10876. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10877. msm_routing_put_audio_mixer),
  10878. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10879. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10880. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10881. msm_routing_put_audio_mixer),
  10882. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10883. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10884. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10885. msm_routing_put_audio_mixer),
  10886. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10887. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10888. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10889. msm_routing_put_audio_mixer),
  10890. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10891. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10892. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10893. msm_routing_put_audio_mixer),
  10894. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10895. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10896. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10897. msm_routing_put_audio_mixer),
  10898. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10899. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10900. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10901. msm_routing_put_audio_mixer),
  10902. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10903. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10904. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10905. msm_routing_put_audio_mixer),
  10906. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10907. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10908. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10909. msm_routing_put_audio_mixer),
  10910. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10911. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10912. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10913. msm_routing_put_audio_mixer),
  10914. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10915. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10916. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10917. msm_routing_put_audio_mixer),
  10918. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10919. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10920. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10921. msm_routing_put_audio_mixer),
  10922. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10923. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10924. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10925. msm_routing_put_audio_mixer),
  10926. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10927. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10928. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10929. msm_routing_put_audio_mixer),
  10930. };
  10931. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  10932. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10933. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10934. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10935. msm_routing_put_audio_mixer),
  10936. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10937. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10938. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10939. msm_routing_put_audio_mixer),
  10940. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10941. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10942. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10943. msm_routing_put_audio_mixer),
  10944. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10945. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10946. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10947. msm_routing_put_audio_mixer),
  10948. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10949. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10950. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10951. msm_routing_put_audio_mixer),
  10952. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10953. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10954. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10955. msm_routing_put_audio_mixer),
  10956. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10957. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10958. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10959. msm_routing_put_audio_mixer),
  10960. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10961. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10962. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10963. msm_routing_put_audio_mixer),
  10964. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10965. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10966. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10967. msm_routing_put_audio_mixer),
  10968. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10969. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10970. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10971. msm_routing_put_audio_mixer),
  10972. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10973. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10974. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10975. msm_routing_put_audio_mixer),
  10976. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10977. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10978. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10979. msm_routing_put_audio_mixer),
  10980. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10981. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10982. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10983. msm_routing_put_audio_mixer),
  10984. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10985. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10986. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10987. msm_routing_put_audio_mixer),
  10988. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10989. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10990. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10991. msm_routing_put_audio_mixer),
  10992. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10993. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10994. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10995. msm_routing_put_audio_mixer),
  10996. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10997. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10998. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10999. msm_routing_put_audio_mixer),
  11000. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11001. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11002. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11003. msm_routing_put_audio_mixer),
  11004. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11005. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11006. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11007. msm_routing_put_audio_mixer),
  11008. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11009. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11010. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11011. msm_routing_put_audio_mixer),
  11012. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11013. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11014. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11015. msm_routing_put_audio_mixer),
  11016. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11017. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11018. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11019. msm_routing_put_audio_mixer),
  11020. };
  11021. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  11022. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11023. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11024. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11025. msm_routing_put_audio_mixer),
  11026. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11027. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11028. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11029. msm_routing_put_audio_mixer),
  11030. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11031. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11032. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11033. msm_routing_put_audio_mixer),
  11034. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11035. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11036. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11037. msm_routing_put_audio_mixer),
  11038. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11039. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11040. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11041. msm_routing_put_audio_mixer),
  11042. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11043. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11044. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11045. msm_routing_put_audio_mixer),
  11046. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11047. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11048. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11049. msm_routing_put_audio_mixer),
  11050. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11051. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11052. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11053. msm_routing_put_audio_mixer),
  11054. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11055. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11056. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11057. msm_routing_put_audio_mixer),
  11058. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11059. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11060. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11061. msm_routing_put_audio_mixer),
  11062. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11063. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11064. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11065. msm_routing_put_audio_mixer),
  11066. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11067. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11068. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11069. msm_routing_put_audio_mixer),
  11070. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11071. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11072. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11073. msm_routing_put_audio_mixer),
  11074. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11075. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11076. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11077. msm_routing_put_audio_mixer),
  11078. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11079. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11080. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11081. msm_routing_put_audio_mixer),
  11082. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11083. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11084. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11085. msm_routing_put_audio_mixer),
  11086. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11087. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11088. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11089. msm_routing_put_audio_mixer),
  11090. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11091. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11092. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11093. msm_routing_put_audio_mixer),
  11094. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11095. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11096. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11097. msm_routing_put_audio_mixer),
  11098. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11099. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11100. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11101. msm_routing_put_audio_mixer),
  11102. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11103. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11104. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11105. msm_routing_put_audio_mixer),
  11106. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11107. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11108. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11109. msm_routing_put_audio_mixer),
  11110. };
  11111. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  11112. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11113. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11114. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11115. msm_routing_put_audio_mixer),
  11116. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11117. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11118. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11119. msm_routing_put_audio_mixer),
  11120. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11121. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11122. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11123. msm_routing_put_audio_mixer),
  11124. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11125. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11126. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11127. msm_routing_put_audio_mixer),
  11128. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11129. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11130. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11131. msm_routing_put_audio_mixer),
  11132. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11133. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11134. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11135. msm_routing_put_audio_mixer),
  11136. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11137. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11138. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11139. msm_routing_put_audio_mixer),
  11140. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11141. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11142. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11143. msm_routing_put_audio_mixer),
  11144. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11145. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11146. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11147. msm_routing_put_audio_mixer),
  11148. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11149. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11150. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11151. msm_routing_put_audio_mixer),
  11152. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11153. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11154. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11155. msm_routing_put_audio_mixer),
  11156. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11157. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11158. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11159. msm_routing_put_audio_mixer),
  11160. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11161. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11162. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11163. msm_routing_put_audio_mixer),
  11164. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11165. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11166. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11167. msm_routing_put_audio_mixer),
  11168. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11169. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11170. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11171. msm_routing_put_audio_mixer),
  11172. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11173. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11174. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11175. msm_routing_put_audio_mixer),
  11176. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11177. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11178. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11179. msm_routing_put_audio_mixer),
  11180. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11181. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11182. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11183. msm_routing_put_audio_mixer),
  11184. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11185. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11186. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11187. msm_routing_put_audio_mixer),
  11188. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11189. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11190. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11191. msm_routing_put_audio_mixer),
  11192. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11193. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11194. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11195. msm_routing_put_audio_mixer),
  11196. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11197. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11198. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11199. msm_routing_put_audio_mixer),
  11200. };
  11201. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  11202. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11203. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11204. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11205. msm_routing_put_audio_mixer),
  11206. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11207. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11208. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11209. msm_routing_put_audio_mixer),
  11210. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11211. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11212. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11213. msm_routing_put_audio_mixer),
  11214. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11215. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11216. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11217. msm_routing_put_audio_mixer),
  11218. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11219. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11220. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11221. msm_routing_put_audio_mixer),
  11222. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11223. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11224. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11225. msm_routing_put_audio_mixer),
  11226. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11227. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11228. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11229. msm_routing_put_audio_mixer),
  11230. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11231. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11232. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11233. msm_routing_put_audio_mixer),
  11234. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11235. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11236. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11237. msm_routing_put_audio_mixer),
  11238. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11239. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11240. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11241. msm_routing_put_audio_mixer),
  11242. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11243. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11244. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11245. msm_routing_put_audio_mixer),
  11246. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11247. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11248. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11249. msm_routing_put_audio_mixer),
  11250. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11251. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11252. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11253. msm_routing_put_audio_mixer),
  11254. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11255. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11256. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11257. msm_routing_put_audio_mixer),
  11258. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11259. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11260. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11261. msm_routing_put_audio_mixer),
  11262. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11263. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11264. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11265. msm_routing_put_audio_mixer),
  11266. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11267. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11268. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11269. msm_routing_put_audio_mixer),
  11270. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11271. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11272. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11273. msm_routing_put_audio_mixer),
  11274. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11275. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11276. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11277. msm_routing_put_audio_mixer),
  11278. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11279. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11280. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11281. msm_routing_put_audio_mixer),
  11282. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11283. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11284. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11285. msm_routing_put_audio_mixer),
  11286. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11287. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11288. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11289. msm_routing_put_audio_mixer),
  11290. };
  11291. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  11292. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11293. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11294. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11295. msm_routing_put_audio_mixer),
  11296. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11297. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11298. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11299. msm_routing_put_audio_mixer),
  11300. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11301. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11302. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11303. msm_routing_put_audio_mixer),
  11304. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11305. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11306. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11307. msm_routing_put_audio_mixer),
  11308. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11309. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11310. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11311. msm_routing_put_audio_mixer),
  11312. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11313. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11314. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11315. msm_routing_put_audio_mixer),
  11316. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11317. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11318. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11319. msm_routing_put_audio_mixer),
  11320. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11321. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11322. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11323. msm_routing_put_audio_mixer),
  11324. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11325. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11326. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11327. msm_routing_put_audio_mixer),
  11328. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11329. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11330. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11331. msm_routing_put_audio_mixer),
  11332. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11333. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11334. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11335. msm_routing_put_audio_mixer),
  11336. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11337. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11338. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11339. msm_routing_put_audio_mixer),
  11340. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11341. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11342. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11343. msm_routing_put_audio_mixer),
  11344. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11345. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11346. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11347. msm_routing_put_audio_mixer),
  11348. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11349. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11350. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11351. msm_routing_put_audio_mixer),
  11352. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11353. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11354. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11355. msm_routing_put_audio_mixer),
  11356. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11357. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11358. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11359. msm_routing_put_audio_mixer),
  11360. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11361. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11362. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11363. msm_routing_put_audio_mixer),
  11364. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11365. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11366. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11367. msm_routing_put_audio_mixer),
  11368. };
  11369. static const struct snd_kcontrol_new quin_tdm_tx_1_mixer_controls[] = {
  11370. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11371. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11372. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11373. msm_routing_put_audio_mixer),
  11374. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11375. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11376. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11377. msm_routing_put_audio_mixer),
  11378. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11379. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11380. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11381. msm_routing_put_audio_mixer),
  11382. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11383. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11384. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11385. msm_routing_put_audio_mixer),
  11386. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11387. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11388. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11389. msm_routing_put_audio_mixer),
  11390. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11391. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11392. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11393. msm_routing_put_audio_mixer),
  11394. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11395. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11396. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11397. msm_routing_put_audio_mixer),
  11398. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11399. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11400. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11401. msm_routing_put_audio_mixer),
  11402. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11403. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11404. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11405. msm_routing_put_audio_mixer),
  11406. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11407. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11408. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11409. msm_routing_put_audio_mixer),
  11410. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11411. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11412. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11413. msm_routing_put_audio_mixer),
  11414. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11415. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11416. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11417. msm_routing_put_audio_mixer),
  11418. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11419. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11420. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11421. msm_routing_put_audio_mixer),
  11422. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11423. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11424. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11425. msm_routing_put_audio_mixer),
  11426. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11427. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11428. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11429. msm_routing_put_audio_mixer),
  11430. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11431. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11432. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11433. msm_routing_put_audio_mixer),
  11434. };
  11435. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  11436. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11437. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11438. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11439. msm_routing_put_audio_mixer),
  11440. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11441. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11442. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11443. msm_routing_put_audio_mixer),
  11444. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11445. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11446. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11447. msm_routing_put_audio_mixer),
  11448. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11449. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11450. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11451. msm_routing_put_audio_mixer),
  11452. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11453. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11454. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11455. msm_routing_put_audio_mixer),
  11456. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11457. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11458. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11459. msm_routing_put_audio_mixer),
  11460. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11461. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11462. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11463. msm_routing_put_audio_mixer),
  11464. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11465. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11466. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11467. msm_routing_put_audio_mixer),
  11468. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11469. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11470. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11471. msm_routing_put_audio_mixer),
  11472. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11473. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11474. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11475. msm_routing_put_audio_mixer),
  11476. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11477. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11478. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11479. msm_routing_put_audio_mixer),
  11480. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11481. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11482. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11483. msm_routing_put_audio_mixer),
  11484. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11485. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11486. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11487. msm_routing_put_audio_mixer),
  11488. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11489. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11490. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11491. msm_routing_put_audio_mixer),
  11492. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11493. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11494. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11495. msm_routing_put_audio_mixer),
  11496. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11497. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11498. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11499. msm_routing_put_audio_mixer),
  11500. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11501. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11502. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11503. msm_routing_put_audio_mixer),
  11504. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11505. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11506. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11507. msm_routing_put_audio_mixer),
  11508. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11509. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11510. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11511. msm_routing_put_audio_mixer),
  11512. };
  11513. static const struct snd_kcontrol_new quin_tdm_tx_2_mixer_controls[] = {
  11514. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11515. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11516. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11517. msm_routing_put_audio_mixer),
  11518. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11519. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11520. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11521. msm_routing_put_audio_mixer),
  11522. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11523. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11524. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11525. msm_routing_put_audio_mixer),
  11526. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11527. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11528. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11529. msm_routing_put_audio_mixer),
  11530. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11531. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11532. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11533. msm_routing_put_audio_mixer),
  11534. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11535. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11536. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11537. msm_routing_put_audio_mixer),
  11538. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11539. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11540. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11541. msm_routing_put_audio_mixer),
  11542. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11543. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11544. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11545. msm_routing_put_audio_mixer),
  11546. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11547. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11548. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11549. msm_routing_put_audio_mixer),
  11550. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11551. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11552. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11553. msm_routing_put_audio_mixer),
  11554. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11555. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11556. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11557. msm_routing_put_audio_mixer),
  11558. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11559. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11560. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11561. msm_routing_put_audio_mixer),
  11562. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11563. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11564. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11565. msm_routing_put_audio_mixer),
  11566. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11567. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11568. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11569. msm_routing_put_audio_mixer),
  11570. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11571. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11572. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11573. msm_routing_put_audio_mixer),
  11574. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11575. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11576. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11577. msm_routing_put_audio_mixer),
  11578. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11579. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11580. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11581. msm_routing_put_audio_mixer),
  11582. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11583. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11584. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11585. msm_routing_put_audio_mixer),
  11586. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11587. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11588. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11589. msm_routing_put_audio_mixer),
  11590. };
  11591. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  11592. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11593. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11594. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11595. msm_routing_put_audio_mixer),
  11596. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11597. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11598. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11599. msm_routing_put_audio_mixer),
  11600. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11601. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11602. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11603. msm_routing_put_audio_mixer),
  11604. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11605. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11606. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11607. msm_routing_put_audio_mixer),
  11608. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11609. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11610. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11611. msm_routing_put_audio_mixer),
  11612. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11613. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11614. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11615. msm_routing_put_audio_mixer),
  11616. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11617. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11618. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11619. msm_routing_put_audio_mixer),
  11620. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11621. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11622. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11623. msm_routing_put_audio_mixer),
  11624. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11625. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11626. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11627. msm_routing_put_audio_mixer),
  11628. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11629. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11630. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11631. msm_routing_put_audio_mixer),
  11632. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11633. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11634. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11635. msm_routing_put_audio_mixer),
  11636. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11637. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11638. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11639. msm_routing_put_audio_mixer),
  11640. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11641. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11642. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11643. msm_routing_put_audio_mixer),
  11644. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11645. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11646. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11647. msm_routing_put_audio_mixer),
  11648. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11649. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11650. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11651. msm_routing_put_audio_mixer),
  11652. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11653. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11654. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11655. msm_routing_put_audio_mixer),
  11656. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11657. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11658. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11659. msm_routing_put_audio_mixer),
  11660. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11661. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11662. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11663. msm_routing_put_audio_mixer),
  11664. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11665. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11666. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11667. msm_routing_put_audio_mixer),
  11668. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11669. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11670. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11671. msm_routing_put_audio_mixer),
  11672. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11673. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11674. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11675. msm_routing_put_audio_mixer),
  11676. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11677. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11678. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11679. msm_routing_put_audio_mixer),
  11680. };
  11681. static const struct snd_kcontrol_new quin_tdm_tx_3_mixer_controls[] = {
  11682. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11683. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11684. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11685. msm_routing_put_audio_mixer),
  11686. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11687. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11688. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11689. msm_routing_put_audio_mixer),
  11690. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11691. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11692. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11693. msm_routing_put_audio_mixer),
  11694. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11695. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11696. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11697. msm_routing_put_audio_mixer),
  11698. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11699. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11700. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11701. msm_routing_put_audio_mixer),
  11702. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11703. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11704. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11705. msm_routing_put_audio_mixer),
  11706. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11707. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11708. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11709. msm_routing_put_audio_mixer),
  11710. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11711. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11712. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11713. msm_routing_put_audio_mixer),
  11714. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11715. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11716. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11717. msm_routing_put_audio_mixer),
  11718. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11719. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11720. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11721. msm_routing_put_audio_mixer),
  11722. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11723. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11724. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11725. msm_routing_put_audio_mixer),
  11726. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11727. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11728. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11729. msm_routing_put_audio_mixer),
  11730. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11731. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11732. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11733. msm_routing_put_audio_mixer),
  11734. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11735. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11736. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11737. msm_routing_put_audio_mixer),
  11738. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11739. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11740. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11741. msm_routing_put_audio_mixer),
  11742. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11743. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11744. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11745. msm_routing_put_audio_mixer),
  11746. };
  11747. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  11748. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11749. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11750. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11751. msm_routing_put_audio_mixer),
  11752. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11753. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11754. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11755. msm_routing_put_audio_mixer),
  11756. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11757. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11758. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11759. msm_routing_put_audio_mixer),
  11760. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11761. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11762. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11763. msm_routing_put_audio_mixer),
  11764. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11765. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11766. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11767. msm_routing_put_audio_mixer),
  11768. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11769. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11770. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11771. msm_routing_put_audio_mixer),
  11772. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11773. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11774. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11775. msm_routing_put_audio_mixer),
  11776. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11777. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11778. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11779. msm_routing_put_audio_mixer),
  11780. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11781. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11782. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11783. msm_routing_put_audio_mixer),
  11784. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11785. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11786. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11787. msm_routing_put_audio_mixer),
  11788. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11789. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11790. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11791. msm_routing_put_audio_mixer),
  11792. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11793. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11794. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11795. msm_routing_put_audio_mixer),
  11796. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11797. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11798. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11799. msm_routing_put_audio_mixer),
  11800. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11801. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11802. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11803. msm_routing_put_audio_mixer),
  11804. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11805. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11806. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11807. msm_routing_put_audio_mixer),
  11808. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11809. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11810. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11811. msm_routing_put_audio_mixer),
  11812. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11813. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11814. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11815. msm_routing_put_audio_mixer),
  11816. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11817. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11818. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11819. msm_routing_put_audio_mixer),
  11820. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11821. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11822. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11823. msm_routing_put_audio_mixer),
  11824. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11825. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11826. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11827. msm_routing_put_audio_mixer),
  11828. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11829. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11830. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11831. msm_routing_put_audio_mixer),
  11832. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11833. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11834. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11835. msm_routing_put_audio_mixer),
  11836. };
  11837. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  11838. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11839. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11840. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11841. msm_routing_put_audio_mixer),
  11842. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11843. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11844. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11845. msm_routing_put_audio_mixer),
  11846. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11847. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11848. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11849. msm_routing_put_audio_mixer),
  11850. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11851. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11852. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11853. msm_routing_put_audio_mixer),
  11854. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11855. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11856. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11857. msm_routing_put_audio_mixer),
  11858. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11859. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11860. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11861. msm_routing_put_audio_mixer),
  11862. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11863. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11864. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11865. msm_routing_put_audio_mixer),
  11866. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11867. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11868. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11869. msm_routing_put_audio_mixer),
  11870. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11871. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11872. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11873. msm_routing_put_audio_mixer),
  11874. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11875. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11876. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11877. msm_routing_put_audio_mixer),
  11878. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11879. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11880. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11881. msm_routing_put_audio_mixer),
  11882. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11883. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11884. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11885. msm_routing_put_audio_mixer),
  11886. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11887. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11888. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11889. msm_routing_put_audio_mixer),
  11890. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11891. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11892. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11893. msm_routing_put_audio_mixer),
  11894. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11895. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11896. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11897. msm_routing_put_audio_mixer),
  11898. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11899. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11900. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11901. msm_routing_put_audio_mixer),
  11902. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11903. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11904. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11905. msm_routing_put_audio_mixer),
  11906. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11907. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11908. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11909. msm_routing_put_audio_mixer),
  11910. };
  11911. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  11912. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11913. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11914. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11915. msm_routing_put_audio_mixer),
  11916. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11917. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11918. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11919. msm_routing_put_audio_mixer),
  11920. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11921. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11922. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11923. msm_routing_put_audio_mixer),
  11924. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11925. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11926. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11927. msm_routing_put_audio_mixer),
  11928. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11929. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11930. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11931. msm_routing_put_audio_mixer),
  11932. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11933. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11934. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11935. msm_routing_put_audio_mixer),
  11936. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11937. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11938. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11939. msm_routing_put_audio_mixer),
  11940. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11941. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11942. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11943. msm_routing_put_audio_mixer),
  11944. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11945. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11946. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11947. msm_routing_put_audio_mixer),
  11948. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11949. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11950. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11951. msm_routing_put_audio_mixer),
  11952. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11953. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11954. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11955. msm_routing_put_audio_mixer),
  11956. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11957. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11958. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11959. msm_routing_put_audio_mixer),
  11960. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11961. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11962. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11963. msm_routing_put_audio_mixer),
  11964. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11965. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11966. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11967. msm_routing_put_audio_mixer),
  11968. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11969. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11970. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11971. msm_routing_put_audio_mixer),
  11972. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11973. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11974. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11975. msm_routing_put_audio_mixer),
  11976. };
  11977. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11978. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11979. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11980. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11981. msm_routing_put_audio_mixer),
  11982. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11983. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11984. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11985. msm_routing_put_audio_mixer),
  11986. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11987. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11988. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11989. msm_routing_put_audio_mixer),
  11990. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11991. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11992. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11993. msm_routing_put_audio_mixer),
  11994. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11995. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11996. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11997. msm_routing_put_audio_mixer),
  11998. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11999. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12000. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12001. msm_routing_put_audio_mixer),
  12002. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  12003. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12004. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  12005. msm_routing_put_audio_mixer),
  12006. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  12007. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12008. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12009. msm_routing_put_audio_mixer),
  12010. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  12011. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12012. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12013. msm_routing_put_audio_mixer),
  12014. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  12015. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12016. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12017. msm_routing_put_audio_mixer),
  12018. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  12019. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12020. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  12021. msm_routing_put_audio_mixer),
  12022. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  12023. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12024. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  12025. msm_routing_put_audio_mixer),
  12026. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  12027. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12028. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  12029. msm_routing_put_audio_mixer),
  12030. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  12031. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12032. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  12033. msm_routing_put_audio_mixer),
  12034. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  12035. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12036. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  12037. msm_routing_put_audio_mixer),
  12038. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  12039. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12040. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12041. msm_routing_put_audio_mixer),
  12042. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  12043. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12044. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12045. msm_routing_put_audio_mixer),
  12046. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  12047. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12048. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12049. msm_routing_put_audio_mixer),
  12050. };
  12051. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  12052. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  12053. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12054. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12055. msm_routing_put_audio_mixer),
  12056. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  12057. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12058. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12059. msm_routing_put_audio_mixer),
  12060. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  12061. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12062. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12063. msm_routing_put_audio_mixer),
  12064. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  12065. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12066. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12067. msm_routing_put_audio_mixer),
  12068. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  12069. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12070. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12071. msm_routing_put_audio_mixer),
  12072. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  12073. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12074. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12075. msm_routing_put_audio_mixer),
  12076. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  12077. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12078. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  12079. msm_routing_put_audio_mixer),
  12080. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  12081. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12082. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12083. msm_routing_put_audio_mixer),
  12084. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  12085. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12086. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12087. msm_routing_put_audio_mixer),
  12088. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  12089. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12090. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12091. msm_routing_put_audio_mixer),
  12092. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  12093. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12094. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  12095. msm_routing_put_audio_mixer),
  12096. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  12097. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12098. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  12099. msm_routing_put_audio_mixer),
  12100. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  12101. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12102. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  12103. msm_routing_put_audio_mixer),
  12104. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  12105. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12106. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  12107. msm_routing_put_audio_mixer),
  12108. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  12109. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12110. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  12111. msm_routing_put_audio_mixer),
  12112. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  12113. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12114. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12115. msm_routing_put_audio_mixer),
  12116. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  12117. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12118. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12119. msm_routing_put_audio_mixer),
  12120. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  12121. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12122. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12123. msm_routing_put_audio_mixer),
  12124. };
  12125. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  12126. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  12127. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12128. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12129. msm_routing_put_audio_mixer),
  12130. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  12131. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12132. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12133. msm_routing_put_audio_mixer),
  12134. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  12135. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12136. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12137. msm_routing_put_audio_mixer),
  12138. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  12139. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12140. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12141. msm_routing_put_audio_mixer),
  12142. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  12143. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12144. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12145. msm_routing_put_audio_mixer),
  12146. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  12147. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12148. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12149. msm_routing_put_audio_mixer),
  12150. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  12151. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12152. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  12153. msm_routing_put_audio_mixer),
  12154. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  12155. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12156. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12157. msm_routing_put_audio_mixer),
  12158. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  12159. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12160. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12161. msm_routing_put_audio_mixer),
  12162. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  12163. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12164. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12165. msm_routing_put_audio_mixer),
  12166. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  12167. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12168. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  12169. msm_routing_put_audio_mixer),
  12170. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  12171. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12172. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  12173. msm_routing_put_audio_mixer),
  12174. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  12175. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12176. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  12177. msm_routing_put_audio_mixer),
  12178. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  12179. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12180. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  12181. msm_routing_put_audio_mixer),
  12182. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  12183. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12184. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  12185. msm_routing_put_audio_mixer),
  12186. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  12187. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12188. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12189. msm_routing_put_audio_mixer),
  12190. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  12191. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12192. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12193. msm_routing_put_audio_mixer),
  12194. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  12195. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12196. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12197. msm_routing_put_audio_mixer),
  12198. };
  12199. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  12200. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  12201. MSM_BACKEND_DAI_PRI_I2S_TX,
  12202. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12203. msm_routing_put_audio_mixer),
  12204. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12205. MSM_BACKEND_DAI_MI2S_TX,
  12206. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12207. msm_routing_put_audio_mixer),
  12208. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12209. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12210. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12211. msm_routing_put_audio_mixer),
  12212. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12213. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12214. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12215. msm_routing_put_audio_mixer),
  12216. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12217. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12218. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12219. msm_routing_put_audio_mixer),
  12220. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12221. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12222. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12223. msm_routing_put_audio_mixer),
  12224. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12225. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12226. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12227. msm_routing_put_audio_mixer),
  12228. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12229. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12230. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12231. msm_routing_put_audio_mixer),
  12232. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12233. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12234. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12235. msm_routing_put_audio_mixer),
  12236. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12237. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12238. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12239. msm_routing_put_audio_mixer),
  12240. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12241. MSM_BACKEND_DAI_AUXPCM_TX,
  12242. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12243. msm_routing_put_audio_mixer),
  12244. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12245. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12246. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12247. msm_routing_put_audio_mixer),
  12248. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12249. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12250. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12251. msm_routing_put_audio_mixer),
  12252. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12253. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12254. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12255. msm_routing_put_audio_mixer),
  12256. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12257. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12258. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12259. msm_routing_put_audio_mixer),
  12260. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12261. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12262. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12263. msm_routing_put_audio_mixer),
  12264. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12265. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12266. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12267. msm_routing_put_audio_mixer),
  12268. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12269. MSM_BACKEND_DAI_INT_FM_TX,
  12270. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12271. msm_routing_put_audio_mixer),
  12272. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12273. MSM_BACKEND_DAI_AFE_PCM_TX,
  12274. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12275. msm_routing_put_audio_mixer),
  12276. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12277. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12278. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12279. msm_routing_put_audio_mixer),
  12280. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12281. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12282. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12283. msm_routing_put_audio_mixer),
  12284. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  12285. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  12286. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12287. msm_routing_put_audio_mixer),
  12288. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12289. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12290. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12291. msm_routing_put_audio_mixer),
  12292. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12293. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12294. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12295. msm_routing_put_audio_mixer),
  12296. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12297. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12298. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12299. msm_routing_put_audio_mixer),
  12300. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12301. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12302. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12303. msm_routing_put_audio_mixer),
  12304. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12305. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12306. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12307. msm_routing_put_audio_mixer),
  12308. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12309. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12310. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12311. msm_routing_put_audio_mixer),
  12312. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12313. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12314. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12315. msm_routing_put_audio_mixer),
  12316. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12317. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12318. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12319. msm_routing_put_audio_mixer),
  12320. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12321. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12322. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12323. msm_routing_put_audio_mixer),
  12324. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12325. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12326. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12327. msm_routing_put_audio_mixer),
  12328. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12329. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12330. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12331. msm_routing_put_audio_mixer),
  12332. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12333. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12334. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12335. msm_routing_put_audio_mixer),
  12336. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12337. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12338. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12339. msm_routing_put_audio_mixer),
  12340. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12341. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12342. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12343. msm_routing_put_audio_mixer),
  12344. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12345. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12346. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12347. msm_routing_put_audio_mixer),
  12348. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12349. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12350. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12351. msm_routing_put_audio_mixer),
  12352. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12353. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12354. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12355. msm_routing_put_audio_mixer),
  12356. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12357. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12358. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12359. msm_routing_put_audio_mixer),
  12360. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12361. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12362. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12363. msm_routing_put_audio_mixer),
  12364. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12365. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12366. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12367. msm_routing_put_audio_mixer),
  12368. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12369. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12370. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12371. msm_routing_put_audio_mixer),
  12372. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12373. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12374. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12375. msm_routing_put_audio_mixer),
  12376. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12377. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12378. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12379. msm_routing_put_audio_mixer),
  12380. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12381. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12382. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12383. msm_routing_put_audio_mixer),
  12384. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12385. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12386. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12387. msm_routing_put_audio_mixer),
  12388. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12389. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12390. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12391. msm_routing_put_audio_mixer),
  12392. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12393. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12394. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12395. msm_routing_put_audio_mixer),
  12396. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12397. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12398. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12399. msm_routing_put_audio_mixer),
  12400. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12401. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12402. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12403. msm_routing_put_audio_mixer),
  12404. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12405. MSM_BACKEND_DAI_USB_TX,
  12406. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12407. msm_routing_put_audio_mixer),
  12408. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12409. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12410. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12411. msm_routing_put_audio_mixer),
  12412. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12413. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12414. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12415. msm_routing_put_audio_mixer),
  12416. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12417. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12418. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12419. msm_routing_put_audio_mixer),
  12420. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12421. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12422. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12423. msm_routing_put_audio_mixer),
  12424. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12425. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12426. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12427. msm_routing_put_audio_mixer),
  12428. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12429. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12430. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12431. msm_routing_put_audio_mixer),
  12432. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12433. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12434. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12435. msm_routing_put_audio_mixer),
  12436. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12437. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12438. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12439. msm_routing_put_audio_mixer),
  12440. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12441. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12442. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12443. msm_routing_put_audio_mixer),
  12444. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12445. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12446. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12447. msm_routing_put_audio_mixer),
  12448. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12449. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12450. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12451. msm_routing_put_audio_mixer),
  12452. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12453. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12454. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12455. msm_routing_put_audio_mixer),
  12456. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12457. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12458. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12459. msm_routing_put_audio_mixer),
  12460. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12461. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12462. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12463. msm_routing_put_audio_mixer),
  12464. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12465. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12466. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12467. msm_routing_put_audio_mixer),
  12468. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12469. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12470. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12471. msm_routing_put_audio_mixer),
  12472. };
  12473. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  12474. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12475. MSM_BACKEND_DAI_INT_FM_TX,
  12476. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12477. msm_routing_put_audio_mixer),
  12478. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12479. MSM_BACKEND_DAI_MI2S_TX,
  12480. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12481. msm_routing_put_audio_mixer),
  12482. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12483. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12484. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12485. msm_routing_put_audio_mixer),
  12486. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12487. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12488. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12489. msm_routing_put_audio_mixer),
  12490. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12491. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12492. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12493. msm_routing_put_audio_mixer),
  12494. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12495. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12496. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12497. msm_routing_put_audio_mixer),
  12498. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12499. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12500. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12501. msm_routing_put_audio_mixer),
  12502. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12503. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12504. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12505. msm_routing_put_audio_mixer),
  12506. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12507. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12508. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12509. msm_routing_put_audio_mixer),
  12510. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12511. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12512. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12513. msm_routing_put_audio_mixer),
  12514. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12515. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12516. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12517. msm_routing_put_audio_mixer),
  12518. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12519. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12520. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12521. msm_routing_put_audio_mixer),
  12522. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12523. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12524. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12525. msm_routing_put_audio_mixer),
  12526. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12527. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12528. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12529. msm_routing_put_audio_mixer),
  12530. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12531. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12532. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12533. msm_routing_put_audio_mixer),
  12534. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12535. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12536. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12537. msm_routing_put_audio_mixer),
  12538. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12539. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12540. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12541. msm_routing_put_audio_mixer),
  12542. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12543. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12544. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12545. msm_routing_put_audio_mixer),
  12546. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12547. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12548. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12549. msm_routing_put_audio_mixer),
  12550. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12551. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12552. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12553. msm_routing_put_audio_mixer),
  12554. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12555. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12556. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12557. msm_routing_put_audio_mixer),
  12558. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12559. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12560. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12561. msm_routing_put_audio_mixer),
  12562. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12563. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12564. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12565. msm_routing_put_audio_mixer),
  12566. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12567. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12568. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12569. msm_routing_put_audio_mixer),
  12570. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12571. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12572. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12573. msm_routing_put_audio_mixer),
  12574. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12575. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12576. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12577. msm_routing_put_audio_mixer),
  12578. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12579. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12580. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12581. msm_routing_put_audio_mixer),
  12582. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12583. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12584. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12585. msm_routing_put_audio_mixer),
  12586. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12587. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12588. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12589. msm_routing_put_audio_mixer),
  12590. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12591. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12592. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12593. msm_routing_put_audio_mixer),
  12594. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12595. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12596. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12597. msm_routing_put_audio_mixer),
  12598. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12599. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12600. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12601. msm_routing_put_audio_mixer),
  12602. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12603. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12604. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12605. msm_routing_put_audio_mixer),
  12606. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12607. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12608. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12609. msm_routing_put_audio_mixer),
  12610. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12611. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12612. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12613. msm_routing_put_audio_mixer),
  12614. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12615. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12616. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12617. msm_routing_put_audio_mixer),
  12618. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12619. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12620. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12621. msm_routing_put_audio_mixer),
  12622. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12623. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12624. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12625. msm_routing_put_audio_mixer),
  12626. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12627. MSM_BACKEND_DAI_USB_TX,
  12628. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12629. msm_routing_put_audio_mixer),
  12630. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12631. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12632. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12633. msm_routing_put_audio_mixer),
  12634. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12635. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12636. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12637. msm_routing_put_audio_mixer),
  12638. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12639. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12640. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12641. msm_routing_put_audio_mixer),
  12642. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12643. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12644. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12645. msm_routing_put_audio_mixer),
  12646. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12647. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12648. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12649. msm_routing_put_audio_mixer),
  12650. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12651. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12652. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12653. msm_routing_put_audio_mixer),
  12654. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12655. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12656. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12657. msm_routing_put_audio_mixer),
  12658. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12659. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12660. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12661. msm_routing_put_audio_mixer),
  12662. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12663. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12664. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12665. msm_routing_put_audio_mixer),
  12666. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12667. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12668. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12669. msm_routing_put_audio_mixer),
  12670. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12671. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12672. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12673. msm_routing_put_audio_mixer),
  12674. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12675. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12676. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12677. msm_routing_put_audio_mixer),
  12678. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12679. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12680. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12681. msm_routing_put_audio_mixer),
  12682. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12683. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12684. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12685. msm_routing_put_audio_mixer),
  12686. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12687. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12688. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12689. msm_routing_put_audio_mixer),
  12690. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12691. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12692. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12693. msm_routing_put_audio_mixer),
  12694. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12695. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12696. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12697. msm_routing_put_audio_mixer),
  12698. };
  12699. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  12700. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12701. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12702. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12703. msm_routing_put_audio_mixer),
  12704. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12705. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12706. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12707. msm_routing_put_audio_mixer),
  12708. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12709. MSM_BACKEND_DAI_INT_FM_TX,
  12710. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12711. msm_routing_put_audio_mixer),
  12712. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12713. MSM_BACKEND_DAI_MI2S_TX,
  12714. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12715. msm_routing_put_audio_mixer),
  12716. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12717. MSM_BACKEND_DAI_AFE_PCM_TX,
  12718. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12719. msm_routing_put_audio_mixer),
  12720. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12721. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12722. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12723. msm_routing_put_audio_mixer),
  12724. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  12725. MSM_BACKEND_DAI_AUXPCM_TX,
  12726. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12727. msm_routing_put_audio_mixer),
  12728. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12729. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12730. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12731. msm_routing_put_audio_mixer),
  12732. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12733. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12734. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12735. msm_routing_put_audio_mixer),
  12736. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12737. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12738. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12739. msm_routing_put_audio_mixer),
  12740. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12741. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12742. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12743. msm_routing_put_audio_mixer),
  12744. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12745. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12746. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12747. msm_routing_put_audio_mixer),
  12748. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12749. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12750. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12751. msm_routing_put_audio_mixer),
  12752. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12753. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12754. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12755. msm_routing_put_audio_mixer),
  12756. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12757. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12758. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12759. msm_routing_put_audio_mixer),
  12760. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12761. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12762. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12763. msm_routing_put_audio_mixer),
  12764. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12765. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12766. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12767. msm_routing_put_audio_mixer),
  12768. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12769. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12770. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12771. msm_routing_put_audio_mixer),
  12772. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12773. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12774. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12775. msm_routing_put_audio_mixer),
  12776. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12777. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12778. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12779. msm_routing_put_audio_mixer),
  12780. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12781. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12782. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12783. msm_routing_put_audio_mixer),
  12784. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12785. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12786. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12787. msm_routing_put_audio_mixer),
  12788. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12789. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12790. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12791. msm_routing_put_audio_mixer),
  12792. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12793. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12794. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12795. msm_routing_put_audio_mixer),
  12796. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12797. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12798. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12799. msm_routing_put_audio_mixer),
  12800. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12801. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12802. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12803. msm_routing_put_audio_mixer),
  12804. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12805. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12806. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12807. msm_routing_put_audio_mixer),
  12808. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12809. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12810. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12811. msm_routing_put_audio_mixer),
  12812. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12813. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12814. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12815. msm_routing_put_audio_mixer),
  12816. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12817. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12818. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12819. msm_routing_put_audio_mixer),
  12820. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12821. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12822. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12823. msm_routing_put_audio_mixer),
  12824. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12825. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12826. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12827. msm_routing_put_audio_mixer),
  12828. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12829. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12830. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12831. msm_routing_put_audio_mixer),
  12832. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12833. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12834. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12835. msm_routing_put_audio_mixer),
  12836. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12837. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12838. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12839. msm_routing_put_audio_mixer),
  12840. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12841. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12842. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12843. msm_routing_put_audio_mixer),
  12844. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12845. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12846. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12847. msm_routing_put_audio_mixer),
  12848. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12849. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12850. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12851. msm_routing_put_audio_mixer),
  12852. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12853. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12854. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12855. msm_routing_put_audio_mixer),
  12856. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12857. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12858. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12859. msm_routing_put_audio_mixer),
  12860. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12861. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12862. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12863. msm_routing_put_audio_mixer),
  12864. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12865. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12866. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12867. msm_routing_put_audio_mixer),
  12868. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12869. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12870. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12871. msm_routing_put_audio_mixer),
  12872. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12873. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12874. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12875. msm_routing_put_audio_mixer),
  12876. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12877. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12878. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12879. msm_routing_put_audio_mixer),
  12880. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12881. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12882. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12883. msm_routing_put_audio_mixer),
  12884. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12885. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12886. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12887. msm_routing_put_audio_mixer),
  12888. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12889. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12890. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12891. msm_routing_put_audio_mixer),
  12892. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12893. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12894. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12895. msm_routing_put_audio_mixer),
  12896. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12897. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12898. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12899. msm_routing_put_audio_mixer),
  12900. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12901. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12902. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12903. msm_routing_put_audio_mixer),
  12904. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12905. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12906. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12907. msm_routing_put_audio_mixer),
  12908. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12909. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12910. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12911. msm_routing_put_audio_mixer),
  12912. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12913. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12914. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12915. msm_routing_put_audio_mixer),
  12916. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12917. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12918. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12919. msm_routing_put_audio_mixer),
  12920. };
  12921. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  12922. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12923. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12924. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12925. msm_routing_put_audio_mixer),
  12926. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12927. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12928. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12929. msm_routing_put_audio_mixer),
  12930. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12931. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12932. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12933. msm_routing_put_audio_mixer),
  12934. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12935. MSM_BACKEND_DAI_INT_FM_TX,
  12936. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12937. msm_routing_put_audio_mixer),
  12938. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12939. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12940. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12941. msm_routing_put_audio_mixer),
  12942. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12943. MSM_BACKEND_DAI_AFE_PCM_TX,
  12944. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12945. msm_routing_put_audio_mixer),
  12946. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12947. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12948. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12949. msm_routing_put_audio_mixer),
  12950. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12951. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12952. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12953. msm_routing_put_audio_mixer),
  12954. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12955. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12956. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12957. msm_routing_put_audio_mixer),
  12958. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12959. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12960. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12961. msm_routing_put_audio_mixer),
  12962. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12963. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12964. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12965. msm_routing_put_audio_mixer),
  12966. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12967. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12968. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12969. msm_routing_put_audio_mixer),
  12970. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12971. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12972. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12973. msm_routing_put_audio_mixer),
  12974. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12975. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12976. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12977. msm_routing_put_audio_mixer),
  12978. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12979. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12980. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12981. msm_routing_put_audio_mixer),
  12982. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12983. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12984. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12985. msm_routing_put_audio_mixer),
  12986. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12987. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12988. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12989. msm_routing_put_audio_mixer),
  12990. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12991. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12992. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12993. msm_routing_put_audio_mixer),
  12994. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12995. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12996. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12997. msm_routing_put_audio_mixer),
  12998. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12999. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13000. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13001. msm_routing_put_audio_mixer),
  13002. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13003. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13004. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13005. msm_routing_put_audio_mixer),
  13006. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13007. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13008. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13009. msm_routing_put_audio_mixer),
  13010. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13011. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13012. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13013. msm_routing_put_audio_mixer),
  13014. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13015. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13016. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13017. msm_routing_put_audio_mixer),
  13018. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13019. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13020. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13021. msm_routing_put_audio_mixer),
  13022. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13023. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13024. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13025. msm_routing_put_audio_mixer),
  13026. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13027. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13028. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13029. msm_routing_put_audio_mixer),
  13030. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13031. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13032. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13033. msm_routing_put_audio_mixer),
  13034. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13035. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13036. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13037. msm_routing_put_audio_mixer),
  13038. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13039. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13040. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13041. msm_routing_put_audio_mixer),
  13042. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13043. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13044. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13045. msm_routing_put_audio_mixer),
  13046. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13047. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13048. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13049. msm_routing_put_audio_mixer),
  13050. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13051. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13052. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13053. msm_routing_put_audio_mixer),
  13054. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13055. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13056. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13057. msm_routing_put_audio_mixer),
  13058. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13059. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13060. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13061. msm_routing_put_audio_mixer),
  13062. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13063. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13064. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13065. msm_routing_put_audio_mixer),
  13066. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13067. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13068. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13069. msm_routing_put_audio_mixer),
  13070. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13071. MSM_BACKEND_DAI_USB_TX,
  13072. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13073. msm_routing_put_audio_mixer),
  13074. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13075. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13076. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13077. msm_routing_put_audio_mixer),
  13078. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13079. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13080. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13081. msm_routing_put_audio_mixer),
  13082. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13083. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13084. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13085. msm_routing_put_audio_mixer),
  13086. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13087. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13088. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13089. msm_routing_put_audio_mixer),
  13090. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13091. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13092. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13093. msm_routing_put_audio_mixer),
  13094. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13095. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13096. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13097. msm_routing_put_audio_mixer),
  13098. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13099. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13100. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13101. msm_routing_put_audio_mixer),
  13102. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13103. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13104. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13105. msm_routing_put_audio_mixer),
  13106. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13107. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13108. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13109. msm_routing_put_audio_mixer),
  13110. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13111. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13112. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13113. msm_routing_put_audio_mixer),
  13114. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13115. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13116. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13117. msm_routing_put_audio_mixer),
  13118. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13119. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13120. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13121. msm_routing_put_audio_mixer),
  13122. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13123. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13124. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13125. msm_routing_put_audio_mixer),
  13126. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13127. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13128. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13129. msm_routing_put_audio_mixer),
  13130. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13131. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13132. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13133. msm_routing_put_audio_mixer),
  13134. };
  13135. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  13136. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13137. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13138. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13139. msm_routing_put_audio_mixer),
  13140. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13141. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13142. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13143. msm_routing_put_audio_mixer),
  13144. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13145. MSM_BACKEND_DAI_INT_FM_TX,
  13146. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13147. msm_routing_put_audio_mixer),
  13148. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13149. MSM_BACKEND_DAI_MI2S_TX,
  13150. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13151. msm_routing_put_audio_mixer),
  13152. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13153. MSM_BACKEND_DAI_AFE_PCM_TX,
  13154. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13155. msm_routing_put_audio_mixer),
  13156. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13157. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13158. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13159. msm_routing_put_audio_mixer),
  13160. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13161. MSM_BACKEND_DAI_AUXPCM_TX,
  13162. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13163. msm_routing_put_audio_mixer),
  13164. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13165. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13166. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13167. msm_routing_put_audio_mixer),
  13168. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  13169. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13170. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13171. msm_routing_put_audio_mixer),
  13172. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13173. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13174. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13175. msm_routing_put_audio_mixer),
  13176. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  13177. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  13178. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13179. msm_routing_put_audio_mixer),
  13180. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  13181. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  13182. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13183. msm_routing_put_audio_mixer),
  13184. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13185. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13186. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13187. msm_routing_put_audio_mixer),
  13188. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13189. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13190. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13191. msm_routing_put_audio_mixer),
  13192. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13193. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13194. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13195. msm_routing_put_audio_mixer),
  13196. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13197. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13198. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13199. msm_routing_put_audio_mixer),
  13200. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13201. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13202. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13203. msm_routing_put_audio_mixer),
  13204. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13205. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13206. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13207. msm_routing_put_audio_mixer),
  13208. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13209. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13210. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13211. msm_routing_put_audio_mixer),
  13212. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13213. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13214. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13215. msm_routing_put_audio_mixer),
  13216. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13217. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13218. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13219. msm_routing_put_audio_mixer),
  13220. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13221. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13222. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13223. msm_routing_put_audio_mixer),
  13224. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13225. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13226. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13227. msm_routing_put_audio_mixer),
  13228. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13229. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13230. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13231. msm_routing_put_audio_mixer),
  13232. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13233. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13234. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13235. msm_routing_put_audio_mixer),
  13236. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13237. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13238. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13239. msm_routing_put_audio_mixer),
  13240. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13241. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13242. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13243. msm_routing_put_audio_mixer),
  13244. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13245. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13246. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13247. msm_routing_put_audio_mixer),
  13248. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13249. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13250. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13251. msm_routing_put_audio_mixer),
  13252. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13253. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13254. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13255. msm_routing_put_audio_mixer),
  13256. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13257. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13258. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13259. msm_routing_put_audio_mixer),
  13260. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13261. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13262. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13263. msm_routing_put_audio_mixer),
  13264. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13265. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13266. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13267. msm_routing_put_audio_mixer),
  13268. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13269. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13270. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13271. msm_routing_put_audio_mixer),
  13272. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13273. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13274. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13275. msm_routing_put_audio_mixer),
  13276. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13277. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13278. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13279. msm_routing_put_audio_mixer),
  13280. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13281. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13282. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13283. msm_routing_put_audio_mixer),
  13284. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13285. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13286. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13287. msm_routing_put_audio_mixer),
  13288. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13289. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13290. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13291. msm_routing_put_audio_mixer),
  13292. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13293. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13294. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13295. msm_routing_put_audio_mixer),
  13296. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13297. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13298. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13299. msm_routing_put_audio_mixer),
  13300. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13301. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13302. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13303. msm_routing_put_audio_mixer),
  13304. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13305. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13306. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13307. msm_routing_put_audio_mixer),
  13308. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13309. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13310. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13311. msm_routing_put_audio_mixer),
  13312. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13313. MSM_BACKEND_DAI_USB_TX,
  13314. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13315. msm_routing_put_audio_mixer),
  13316. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13317. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13318. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13319. msm_routing_put_audio_mixer),
  13320. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13321. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13322. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13323. msm_routing_put_audio_mixer),
  13324. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13325. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13326. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13327. msm_routing_put_audio_mixer),
  13328. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13329. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13330. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13331. msm_routing_put_audio_mixer),
  13332. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13333. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13334. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13335. msm_routing_put_audio_mixer),
  13336. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13337. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13338. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13339. msm_routing_put_audio_mixer),
  13340. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13341. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13342. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13343. msm_routing_put_audio_mixer),
  13344. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13345. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13346. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13347. msm_routing_put_audio_mixer),
  13348. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13349. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13350. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13351. msm_routing_put_audio_mixer),
  13352. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13353. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13354. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13355. msm_routing_put_audio_mixer),
  13356. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13357. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13358. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13359. msm_routing_put_audio_mixer),
  13360. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13361. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13362. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13363. msm_routing_put_audio_mixer),
  13364. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13365. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13366. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13367. msm_routing_put_audio_mixer),
  13368. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13369. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13370. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13371. msm_routing_put_audio_mixer),
  13372. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13373. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13374. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13375. msm_routing_put_audio_mixer),
  13376. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13377. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13378. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13379. msm_routing_put_audio_mixer),
  13380. };
  13381. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  13382. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13383. MSM_BACKEND_DAI_INT_FM_TX,
  13384. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13385. msm_routing_put_audio_mixer),
  13386. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13387. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13388. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13389. msm_routing_put_audio_mixer),
  13390. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13391. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13392. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13393. msm_routing_put_audio_mixer),
  13394. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13395. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13396. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13397. msm_routing_put_audio_mixer),
  13398. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13399. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13400. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13401. msm_routing_put_audio_mixer),
  13402. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13403. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13404. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13405. msm_routing_put_audio_mixer),
  13406. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13407. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13408. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13409. msm_routing_put_audio_mixer),
  13410. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13411. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13412. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13413. msm_routing_put_audio_mixer),
  13414. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13415. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13416. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13417. msm_routing_put_audio_mixer),
  13418. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13419. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13420. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13421. msm_routing_put_audio_mixer),
  13422. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13423. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13424. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13425. msm_routing_put_audio_mixer),
  13426. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13427. MSM_BACKEND_DAI_AUXPCM_TX,
  13428. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13429. msm_routing_put_audio_mixer),
  13430. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13431. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13432. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13433. msm_routing_put_audio_mixer),
  13434. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13435. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13436. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13437. msm_routing_put_audio_mixer),
  13438. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13439. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13440. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13441. msm_routing_put_audio_mixer),
  13442. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13443. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13444. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13445. msm_routing_put_audio_mixer),
  13446. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13447. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13448. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13449. msm_routing_put_audio_mixer),
  13450. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13451. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13452. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13453. msm_routing_put_audio_mixer),
  13454. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13455. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13456. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13457. msm_routing_put_audio_mixer),
  13458. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13459. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13460. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13461. msm_routing_put_audio_mixer),
  13462. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13463. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13464. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13465. msm_routing_put_audio_mixer),
  13466. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13467. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13468. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13469. msm_routing_put_audio_mixer),
  13470. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13471. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13472. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13473. msm_routing_put_audio_mixer),
  13474. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13475. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13476. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13477. msm_routing_put_audio_mixer),
  13478. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13479. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13480. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13481. msm_routing_put_audio_mixer),
  13482. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13483. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13484. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13485. msm_routing_put_audio_mixer),
  13486. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13487. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13488. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13489. msm_routing_put_audio_mixer),
  13490. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13491. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13492. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13493. msm_routing_put_audio_mixer),
  13494. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13495. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13496. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13497. msm_routing_put_audio_mixer),
  13498. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13499. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13500. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13501. msm_routing_put_audio_mixer),
  13502. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13503. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13504. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13505. msm_routing_put_audio_mixer),
  13506. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13507. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13508. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13509. msm_routing_put_audio_mixer),
  13510. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13511. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13512. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13513. msm_routing_put_audio_mixer),
  13514. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13515. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13516. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13517. msm_routing_put_audio_mixer),
  13518. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13519. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13520. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13521. msm_routing_put_audio_mixer),
  13522. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13523. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13524. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13525. msm_routing_put_audio_mixer),
  13526. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13527. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13528. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13529. msm_routing_put_audio_mixer),
  13530. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13531. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13532. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13533. msm_routing_put_audio_mixer),
  13534. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13535. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13536. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13537. msm_routing_put_audio_mixer),
  13538. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13539. MSM_BACKEND_DAI_USB_TX,
  13540. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13541. msm_routing_put_audio_mixer),
  13542. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13543. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13544. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13545. msm_routing_put_audio_mixer),
  13546. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13547. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13548. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13549. msm_routing_put_audio_mixer),
  13550. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13551. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13552. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13553. msm_routing_put_audio_mixer),
  13554. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13555. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13556. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13557. msm_routing_put_audio_mixer),
  13558. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13559. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13560. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13561. msm_routing_put_audio_mixer),
  13562. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13563. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13564. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13565. msm_routing_put_audio_mixer),
  13566. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13567. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13568. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13569. msm_routing_put_audio_mixer),
  13570. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13571. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13572. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13573. msm_routing_put_audio_mixer),
  13574. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13575. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13576. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13577. msm_routing_put_audio_mixer),
  13578. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13579. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13580. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13581. msm_routing_put_audio_mixer),
  13582. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13583. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13584. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13585. msm_routing_put_audio_mixer),
  13586. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13587. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13588. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13589. msm_routing_put_audio_mixer),
  13590. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13591. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13592. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13593. msm_routing_put_audio_mixer),
  13594. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13595. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13596. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13597. msm_routing_put_audio_mixer),
  13598. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13599. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13600. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13601. msm_routing_put_audio_mixer),
  13602. };
  13603. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  13604. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13605. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13606. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13607. msm_routing_put_audio_mixer),
  13608. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13609. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13610. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13611. msm_routing_put_audio_mixer),
  13612. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13613. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13614. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13615. msm_routing_put_audio_mixer),
  13616. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13617. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13618. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13619. msm_routing_put_audio_mixer),
  13620. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13621. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13622. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13623. msm_routing_put_audio_mixer),
  13624. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13625. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13626. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13627. msm_routing_put_audio_mixer),
  13628. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13629. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13630. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13631. msm_routing_put_audio_mixer),
  13632. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13633. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13634. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13635. msm_routing_put_audio_mixer),
  13636. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13637. MSM_BACKEND_DAI_INT_FM_TX,
  13638. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13639. msm_routing_put_audio_mixer),
  13640. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13641. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13642. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13643. msm_routing_put_audio_mixer),
  13644. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13645. MSM_BACKEND_DAI_AFE_PCM_TX,
  13646. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13647. msm_routing_put_audio_mixer),
  13648. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13649. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13650. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13651. msm_routing_put_audio_mixer),
  13652. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13653. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13654. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13655. msm_routing_put_audio_mixer),
  13656. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13657. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13658. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13659. msm_routing_put_audio_mixer),
  13660. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13661. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13662. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13663. msm_routing_put_audio_mixer),
  13664. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13665. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13666. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13667. msm_routing_put_audio_mixer),
  13668. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13669. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13670. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13671. msm_routing_put_audio_mixer),
  13672. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13673. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13674. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13675. msm_routing_put_audio_mixer),
  13676. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13677. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13678. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13679. msm_routing_put_audio_mixer),
  13680. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13681. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13682. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13683. msm_routing_put_audio_mixer),
  13684. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13685. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13686. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13687. msm_routing_put_audio_mixer),
  13688. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13689. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13690. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13691. msm_routing_put_audio_mixer),
  13692. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13693. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13694. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13695. msm_routing_put_audio_mixer),
  13696. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13697. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13698. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13699. msm_routing_put_audio_mixer),
  13700. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13701. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13702. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13703. msm_routing_put_audio_mixer),
  13704. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13705. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13706. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13707. msm_routing_put_audio_mixer),
  13708. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13709. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13710. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13711. msm_routing_put_audio_mixer),
  13712. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13713. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13714. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13715. msm_routing_put_audio_mixer),
  13716. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13717. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13718. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13719. msm_routing_put_audio_mixer),
  13720. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13721. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13722. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13723. msm_routing_put_audio_mixer),
  13724. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13725. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13726. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13727. msm_routing_put_audio_mixer),
  13728. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13729. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13730. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13731. msm_routing_put_audio_mixer),
  13732. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13733. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13734. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13735. msm_routing_put_audio_mixer),
  13736. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13737. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13738. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13739. msm_routing_put_audio_mixer),
  13740. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13741. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13742. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13743. msm_routing_put_audio_mixer),
  13744. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13745. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13746. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13747. msm_routing_put_audio_mixer),
  13748. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13749. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13750. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13751. msm_routing_put_audio_mixer),
  13752. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13753. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13754. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13755. msm_routing_put_audio_mixer),
  13756. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13757. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13758. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13759. msm_routing_put_audio_mixer),
  13760. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13761. MSM_BACKEND_DAI_USB_TX,
  13762. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13763. msm_routing_put_audio_mixer),
  13764. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13765. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13766. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13767. msm_routing_put_audio_mixer),
  13768. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13769. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13770. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13771. msm_routing_put_audio_mixer),
  13772. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13773. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13774. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13775. msm_routing_put_audio_mixer),
  13776. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13777. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13778. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13779. msm_routing_put_audio_mixer),
  13780. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13781. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13782. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13783. msm_routing_put_audio_mixer),
  13784. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13785. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13786. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13787. msm_routing_put_audio_mixer),
  13788. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13789. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13790. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13791. msm_routing_put_audio_mixer),
  13792. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13793. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13794. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13795. msm_routing_put_audio_mixer),
  13796. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13797. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13798. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13799. msm_routing_put_audio_mixer),
  13800. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13801. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13802. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13803. msm_routing_put_audio_mixer),
  13804. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13805. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13806. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13807. msm_routing_put_audio_mixer),
  13808. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13809. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13810. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13811. msm_routing_put_audio_mixer),
  13812. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13813. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13814. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13815. msm_routing_put_audio_mixer),
  13816. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13817. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13818. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13819. msm_routing_put_audio_mixer),
  13820. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13821. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13822. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13823. msm_routing_put_audio_mixer),
  13824. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13825. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13826. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13827. msm_routing_put_audio_mixer),
  13828. };
  13829. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  13830. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13831. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13832. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13833. msm_routing_put_audio_mixer),
  13834. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13835. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13836. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13837. msm_routing_put_audio_mixer),
  13838. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13839. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13840. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13841. msm_routing_put_audio_mixer),
  13842. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13843. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13844. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13845. msm_routing_put_audio_mixer),
  13846. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13847. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13848. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13849. msm_routing_put_audio_mixer),
  13850. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13851. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13852. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13853. msm_routing_put_audio_mixer),
  13854. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13855. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13856. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13857. msm_routing_put_audio_mixer),
  13858. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13859. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13860. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13861. msm_routing_put_audio_mixer),
  13862. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13863. MSM_BACKEND_DAI_INT_FM_TX,
  13864. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13865. msm_routing_put_audio_mixer),
  13866. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13867. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13868. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13869. msm_routing_put_audio_mixer),
  13870. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13871. MSM_BACKEND_DAI_AFE_PCM_TX,
  13872. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13873. msm_routing_put_audio_mixer),
  13874. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13875. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13876. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13877. msm_routing_put_audio_mixer),
  13878. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13879. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13880. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13881. msm_routing_put_audio_mixer),
  13882. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13883. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13884. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13885. msm_routing_put_audio_mixer),
  13886. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13887. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13888. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13889. msm_routing_put_audio_mixer),
  13890. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13891. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13892. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13893. msm_routing_put_audio_mixer),
  13894. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13895. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13896. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13897. msm_routing_put_audio_mixer),
  13898. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13899. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13900. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13901. msm_routing_put_audio_mixer),
  13902. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13903. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13904. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13905. msm_routing_put_audio_mixer),
  13906. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13907. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13908. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13909. msm_routing_put_audio_mixer),
  13910. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13911. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13912. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13913. msm_routing_put_audio_mixer),
  13914. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13915. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13916. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13917. msm_routing_put_audio_mixer),
  13918. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13919. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13920. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13921. msm_routing_put_audio_mixer),
  13922. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13923. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13924. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13925. msm_routing_put_audio_mixer),
  13926. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13927. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13928. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13929. msm_routing_put_audio_mixer),
  13930. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13931. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13932. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13933. msm_routing_put_audio_mixer),
  13934. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13935. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13936. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13937. msm_routing_put_audio_mixer),
  13938. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13939. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13940. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13941. msm_routing_put_audio_mixer),
  13942. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13943. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13944. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13945. msm_routing_put_audio_mixer),
  13946. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13947. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13948. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13949. msm_routing_put_audio_mixer),
  13950. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13951. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13952. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13953. msm_routing_put_audio_mixer),
  13954. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13955. MSM_BACKEND_DAI_USB_TX,
  13956. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13957. msm_routing_put_audio_mixer),
  13958. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13959. MSM_BACKEND_DAI_MI2S_TX,
  13960. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13961. msm_routing_put_audio_mixer),
  13962. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13963. MSM_BACKEND_DAI_AUXPCM_TX,
  13964. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13965. msm_routing_put_audio_mixer),
  13966. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13967. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13968. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13969. msm_routing_put_audio_mixer),
  13970. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13971. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13972. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13973. msm_routing_put_audio_mixer),
  13974. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13975. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13976. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13977. msm_routing_put_audio_mixer),
  13978. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13979. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13980. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13981. msm_routing_put_audio_mixer),
  13982. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13983. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13984. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13985. msm_routing_put_audio_mixer),
  13986. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13987. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13988. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13989. msm_routing_put_audio_mixer),
  13990. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13991. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13992. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13993. msm_routing_put_audio_mixer),
  13994. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13995. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13996. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13997. msm_routing_put_audio_mixer),
  13998. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13999. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14000. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  14001. msm_routing_get_audio_mixer,
  14002. msm_routing_put_audio_mixer),
  14003. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14004. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14005. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  14006. msm_routing_get_audio_mixer,
  14007. msm_routing_put_audio_mixer),
  14008. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14009. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14010. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  14011. msm_routing_get_audio_mixer,
  14012. msm_routing_put_audio_mixer),
  14013. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14014. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14015. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  14016. msm_routing_get_audio_mixer,
  14017. msm_routing_put_audio_mixer),
  14018. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14019. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14020. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  14021. msm_routing_get_audio_mixer,
  14022. msm_routing_put_audio_mixer),
  14023. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14024. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14025. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  14026. msm_routing_get_audio_mixer,
  14027. msm_routing_put_audio_mixer),
  14028. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14029. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14030. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  14031. msm_routing_put_audio_mixer),
  14032. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14033. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14034. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  14035. msm_routing_put_audio_mixer),
  14036. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14037. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14038. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  14039. msm_routing_put_audio_mixer),
  14040. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14041. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14042. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  14043. msm_routing_put_audio_mixer),
  14044. };
  14045. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  14046. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14047. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14048. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14049. msm_routing_put_audio_mixer),
  14050. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14051. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14052. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14053. msm_routing_put_audio_mixer),
  14054. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14055. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14056. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14057. msm_routing_put_audio_mixer),
  14058. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14059. MSM_BACKEND_DAI_INT_FM_TX,
  14060. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14061. msm_routing_put_audio_mixer),
  14062. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14063. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14064. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14065. msm_routing_put_audio_mixer),
  14066. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14067. MSM_BACKEND_DAI_AFE_PCM_TX,
  14068. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14069. msm_routing_put_audio_mixer),
  14070. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14071. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14072. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14073. msm_routing_put_audio_mixer),
  14074. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14075. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14076. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14077. msm_routing_put_audio_mixer),
  14078. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  14079. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  14080. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14081. msm_routing_put_audio_mixer),
  14082. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14083. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14084. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14085. msm_routing_put_audio_mixer),
  14086. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14087. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14088. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14089. msm_routing_put_audio_mixer),
  14090. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14091. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14092. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14093. msm_routing_put_audio_mixer),
  14094. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14095. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14096. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14097. msm_routing_put_audio_mixer),
  14098. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14099. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14100. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14101. msm_routing_put_audio_mixer),
  14102. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14103. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14104. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14105. msm_routing_put_audio_mixer),
  14106. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14107. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14108. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14109. msm_routing_put_audio_mixer),
  14110. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14111. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14112. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14113. msm_routing_put_audio_mixer),
  14114. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14115. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14116. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14117. msm_routing_put_audio_mixer),
  14118. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14119. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14120. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14121. msm_routing_put_audio_mixer),
  14122. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14123. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14124. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14125. msm_routing_put_audio_mixer),
  14126. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14127. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14128. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14129. msm_routing_put_audio_mixer),
  14130. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14131. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14132. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14133. msm_routing_put_audio_mixer),
  14134. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14135. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14136. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14137. msm_routing_put_audio_mixer),
  14138. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14139. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14140. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14141. msm_routing_put_audio_mixer),
  14142. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14143. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14144. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14145. msm_routing_put_audio_mixer),
  14146. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14147. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14148. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14149. msm_routing_put_audio_mixer),
  14150. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14151. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14152. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14153. msm_routing_put_audio_mixer),
  14154. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14155. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14156. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14157. msm_routing_put_audio_mixer),
  14158. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14159. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14160. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14161. msm_routing_put_audio_mixer),
  14162. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14163. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14164. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14165. msm_routing_put_audio_mixer),
  14166. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14167. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14168. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14169. msm_routing_put_audio_mixer),
  14170. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14171. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14172. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14173. msm_routing_put_audio_mixer),
  14174. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14175. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14176. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14177. msm_routing_put_audio_mixer),
  14178. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14179. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14180. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14181. msm_routing_put_audio_mixer),
  14182. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14183. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14184. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14185. msm_routing_put_audio_mixer),
  14186. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14187. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14188. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14189. msm_routing_put_audio_mixer),
  14190. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14191. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14192. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14193. msm_routing_put_audio_mixer),
  14194. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14195. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14196. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14197. msm_routing_put_audio_mixer),
  14198. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14199. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14200. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14201. msm_routing_put_audio_mixer),
  14202. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14203. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14204. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14205. msm_routing_put_audio_mixer),
  14206. };
  14207. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  14208. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14209. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14210. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14211. msm_routing_put_audio_mixer),
  14212. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14213. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14214. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14215. msm_routing_put_audio_mixer),
  14216. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14217. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14218. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14219. msm_routing_put_audio_mixer),
  14220. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14221. MSM_BACKEND_DAI_INT_FM_TX,
  14222. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14223. msm_routing_put_audio_mixer),
  14224. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14225. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14226. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14227. msm_routing_put_audio_mixer),
  14228. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14229. MSM_BACKEND_DAI_AFE_PCM_TX,
  14230. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14231. msm_routing_put_audio_mixer),
  14232. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14233. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14234. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14235. msm_routing_put_audio_mixer),
  14236. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14237. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14238. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14239. msm_routing_put_audio_mixer),
  14240. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  14241. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  14242. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14243. msm_routing_put_audio_mixer),
  14244. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14245. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14246. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14247. msm_routing_put_audio_mixer),
  14248. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14249. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14250. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14251. msm_routing_put_audio_mixer),
  14252. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14253. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14254. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14255. msm_routing_put_audio_mixer),
  14256. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14257. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14258. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14259. msm_routing_put_audio_mixer),
  14260. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14261. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14262. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14263. msm_routing_put_audio_mixer),
  14264. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14265. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14266. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14267. msm_routing_put_audio_mixer),
  14268. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14269. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14270. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14271. msm_routing_put_audio_mixer),
  14272. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14273. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14274. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14275. msm_routing_put_audio_mixer),
  14276. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14277. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14278. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14279. msm_routing_put_audio_mixer),
  14280. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  14281. MSM_BACKEND_DAI_USB_TX,
  14282. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14283. msm_routing_put_audio_mixer),
  14284. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14285. MSM_BACKEND_DAI_MI2S_TX,
  14286. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14287. msm_routing_put_audio_mixer),
  14288. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  14289. MSM_BACKEND_DAI_AUXPCM_TX,
  14290. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14291. msm_routing_put_audio_mixer),
  14292. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  14293. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14294. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14295. msm_routing_put_audio_mixer),
  14296. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  14297. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14298. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14299. msm_routing_put_audio_mixer),
  14300. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  14301. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14302. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14303. msm_routing_put_audio_mixer),
  14304. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14305. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14306. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14307. msm_routing_put_audio_mixer),
  14308. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  14309. MSM_BACKEND_DAI_INT2_MI2S_TX,
  14310. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14311. msm_routing_put_audio_mixer),
  14312. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14313. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14314. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14315. msm_routing_put_audio_mixer),
  14316. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14317. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14318. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14319. msm_routing_put_audio_mixer),
  14320. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14321. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14322. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14323. msm_routing_put_audio_mixer),
  14324. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14325. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14326. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14327. msm_routing_put_audio_mixer),
  14328. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14329. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14330. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14331. msm_routing_put_audio_mixer),
  14332. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14333. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14334. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14335. msm_routing_put_audio_mixer),
  14336. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14337. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14338. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14339. msm_routing_put_audio_mixer),
  14340. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14341. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14342. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14343. msm_routing_get_audio_mixer,
  14344. msm_routing_put_audio_mixer),
  14345. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14346. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14347. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14348. msm_routing_get_audio_mixer,
  14349. msm_routing_put_audio_mixer),
  14350. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14351. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14352. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14353. msm_routing_get_audio_mixer,
  14354. msm_routing_put_audio_mixer),
  14355. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14356. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14357. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14358. msm_routing_get_audio_mixer,
  14359. msm_routing_put_audio_mixer),
  14360. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14361. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14362. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14363. msm_routing_get_audio_mixer,
  14364. msm_routing_put_audio_mixer),
  14365. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14366. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14367. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14368. msm_routing_get_audio_mixer,
  14369. msm_routing_put_audio_mixer),
  14370. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14371. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14372. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14373. msm_routing_put_audio_mixer),
  14374. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14375. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14376. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14377. msm_routing_put_audio_mixer),
  14378. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14379. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14380. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14381. msm_routing_put_audio_mixer),
  14382. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14383. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14384. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14385. msm_routing_put_audio_mixer),
  14386. };
  14387. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  14388. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14389. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14390. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14391. msm_routing_put_audio_mixer),
  14392. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14393. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14394. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14395. msm_routing_put_audio_mixer),
  14396. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14397. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14398. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14399. msm_routing_put_audio_mixer),
  14400. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14401. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14402. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14403. msm_routing_put_audio_mixer),
  14404. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14405. MSM_BACKEND_DAI_INT_FM_TX,
  14406. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14407. msm_routing_put_audio_mixer),
  14408. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14409. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14410. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14411. msm_routing_put_audio_mixer),
  14412. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14413. MSM_BACKEND_DAI_AFE_PCM_TX,
  14414. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14415. msm_routing_put_audio_mixer),
  14416. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14417. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14418. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14419. msm_routing_put_audio_mixer),
  14420. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14421. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14422. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14423. msm_routing_put_audio_mixer),
  14424. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14425. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14426. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14427. msm_routing_put_audio_mixer),
  14428. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14429. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14430. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14431. msm_routing_put_audio_mixer),
  14432. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14433. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14434. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14435. msm_routing_put_audio_mixer),
  14436. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14437. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14438. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14439. msm_routing_put_audio_mixer),
  14440. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14441. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14442. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14443. msm_routing_put_audio_mixer),
  14444. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14445. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14446. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14447. msm_routing_put_audio_mixer),
  14448. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14449. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14450. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14451. msm_routing_put_audio_mixer),
  14452. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14453. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14454. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14455. msm_routing_put_audio_mixer),
  14456. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14457. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14458. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14459. msm_routing_get_audio_mixer,
  14460. msm_routing_put_audio_mixer),
  14461. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14462. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14463. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14464. msm_routing_get_audio_mixer,
  14465. msm_routing_put_audio_mixer),
  14466. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14467. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14468. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14469. msm_routing_get_audio_mixer,
  14470. msm_routing_put_audio_mixer),
  14471. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14472. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14473. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14474. msm_routing_get_audio_mixer,
  14475. msm_routing_put_audio_mixer),
  14476. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14477. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14478. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14479. msm_routing_get_audio_mixer,
  14480. msm_routing_put_audio_mixer),
  14481. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14482. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14483. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14484. msm_routing_get_audio_mixer,
  14485. msm_routing_put_audio_mixer),
  14486. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14487. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14488. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14489. msm_routing_put_audio_mixer),
  14490. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14491. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14492. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14493. msm_routing_put_audio_mixer),
  14494. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14495. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14496. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14497. msm_routing_put_audio_mixer),
  14498. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14499. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14500. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14501. msm_routing_put_audio_mixer),
  14502. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  14503. MSM_BACKEND_DAI_USB_TX,
  14504. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14505. msm_routing_put_audio_mixer),
  14506. };
  14507. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  14508. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14509. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14510. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14511. msm_routing_put_audio_mixer),
  14512. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14513. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14514. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14515. msm_routing_put_audio_mixer),
  14516. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14517. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14518. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14519. msm_routing_put_audio_mixer),
  14520. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14521. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14522. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14523. msm_routing_put_audio_mixer),
  14524. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14525. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14526. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14527. msm_routing_put_audio_mixer),
  14528. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14529. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14530. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14531. msm_routing_put_audio_mixer),
  14532. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14533. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14534. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14535. msm_routing_put_audio_mixer),
  14536. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14537. MSM_BACKEND_DAI_INT_FM_TX,
  14538. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14539. msm_routing_put_audio_mixer),
  14540. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14541. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14542. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14543. msm_routing_put_audio_mixer),
  14544. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14545. MSM_BACKEND_DAI_AFE_PCM_TX,
  14546. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14547. msm_routing_put_audio_mixer),
  14548. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14549. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14550. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14551. msm_routing_put_audio_mixer),
  14552. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14553. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14554. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14555. msm_routing_put_audio_mixer),
  14556. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14557. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14558. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14559. msm_routing_put_audio_mixer),
  14560. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14561. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14562. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14563. msm_routing_put_audio_mixer),
  14564. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14565. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14566. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14567. msm_routing_put_audio_mixer),
  14568. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14569. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14570. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14571. msm_routing_put_audio_mixer),
  14572. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14573. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14574. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14575. msm_routing_put_audio_mixer),
  14576. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14577. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14578. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14579. msm_routing_put_audio_mixer),
  14580. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14581. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14582. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14583. msm_routing_get_audio_mixer,
  14584. msm_routing_put_audio_mixer),
  14585. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14586. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14587. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14588. msm_routing_get_audio_mixer,
  14589. msm_routing_put_audio_mixer),
  14590. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14591. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14592. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14593. msm_routing_get_audio_mixer,
  14594. msm_routing_put_audio_mixer),
  14595. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14596. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14597. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14598. msm_routing_get_audio_mixer,
  14599. msm_routing_put_audio_mixer),
  14600. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14601. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14602. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14603. msm_routing_get_audio_mixer,
  14604. msm_routing_put_audio_mixer),
  14605. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14606. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14607. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14608. msm_routing_get_audio_mixer,
  14609. msm_routing_put_audio_mixer),
  14610. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14611. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14612. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14613. msm_routing_put_audio_mixer),
  14614. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14615. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14616. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14617. msm_routing_put_audio_mixer),
  14618. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14619. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14620. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14621. msm_routing_put_audio_mixer),
  14622. };
  14623. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  14624. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14625. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14626. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14627. msm_routing_put_audio_mixer),
  14628. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14629. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14630. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14631. msm_routing_put_audio_mixer),
  14632. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14633. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14634. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14635. msm_routing_put_audio_mixer),
  14636. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14637. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14638. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14639. msm_routing_put_audio_mixer),
  14640. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14641. MSM_BACKEND_DAI_INT_FM_TX,
  14642. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14643. msm_routing_put_audio_mixer),
  14644. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14645. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14646. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14647. msm_routing_put_audio_mixer),
  14648. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14649. MSM_BACKEND_DAI_AFE_PCM_TX,
  14650. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14651. msm_routing_put_audio_mixer),
  14652. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14653. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14654. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14655. msm_routing_put_audio_mixer),
  14656. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14657. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14658. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14659. msm_routing_put_audio_mixer),
  14660. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14661. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14662. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14663. msm_routing_put_audio_mixer),
  14664. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14665. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14666. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14667. msm_routing_put_audio_mixer),
  14668. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14669. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14670. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14671. msm_routing_put_audio_mixer),
  14672. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14673. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14674. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14675. msm_routing_put_audio_mixer),
  14676. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14677. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14678. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14679. msm_routing_put_audio_mixer),
  14680. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14681. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14682. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14683. msm_routing_put_audio_mixer),
  14684. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14685. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14686. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14687. msm_routing_put_audio_mixer),
  14688. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14689. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14690. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14691. msm_routing_put_audio_mixer),
  14692. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14693. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14694. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14695. msm_routing_put_audio_mixer),
  14696. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14697. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14698. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14699. msm_routing_get_audio_mixer,
  14700. msm_routing_put_audio_mixer),
  14701. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14702. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14703. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14704. msm_routing_get_audio_mixer,
  14705. msm_routing_put_audio_mixer),
  14706. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14707. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14708. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14709. msm_routing_get_audio_mixer,
  14710. msm_routing_put_audio_mixer),
  14711. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14712. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14713. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14714. msm_routing_get_audio_mixer,
  14715. msm_routing_put_audio_mixer),
  14716. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14717. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14718. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14719. 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_MULTIMEDIA19, 1, 0,
  14724. msm_routing_get_audio_mixer,
  14725. msm_routing_put_audio_mixer),
  14726. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14727. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14728. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14729. msm_routing_put_audio_mixer),
  14730. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14731. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14732. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14733. msm_routing_put_audio_mixer),
  14734. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14735. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14736. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14737. msm_routing_put_audio_mixer),
  14738. };
  14739. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  14740. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14741. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14742. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14743. msm_routing_put_audio_mixer),
  14744. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14745. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14746. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14747. msm_routing_put_audio_mixer),
  14748. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14749. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14750. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14751. msm_routing_put_audio_mixer),
  14752. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14753. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14754. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14755. msm_routing_put_audio_mixer),
  14756. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14757. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14758. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14759. msm_routing_put_audio_mixer),
  14760. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14761. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14762. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14763. msm_routing_put_audio_mixer),
  14764. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14765. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14766. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14767. msm_routing_put_audio_mixer),
  14768. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14769. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14770. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14771. msm_routing_put_audio_mixer),
  14772. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14773. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14774. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14775. msm_routing_put_audio_mixer),
  14776. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14777. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14778. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14779. msm_routing_put_audio_mixer),
  14780. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14781. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14782. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14783. msm_routing_put_audio_mixer),
  14784. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14785. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14786. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14787. msm_routing_put_audio_mixer),
  14788. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14789. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14790. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14791. msm_routing_put_audio_mixer),
  14792. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14793. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14794. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14795. msm_routing_put_audio_mixer),
  14796. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14797. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14798. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14799. msm_routing_put_audio_mixer),
  14800. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14801. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14802. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14803. msm_routing_put_audio_mixer),
  14804. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14805. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14806. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14807. msm_routing_put_audio_mixer),
  14808. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14809. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14810. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14811. msm_routing_put_audio_mixer),
  14812. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14813. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14814. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14815. msm_routing_put_audio_mixer),
  14816. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14817. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14818. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14819. msm_routing_put_audio_mixer),
  14820. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14821. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14822. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14823. msm_routing_put_audio_mixer),
  14824. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14825. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14826. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14827. msm_routing_put_audio_mixer),
  14828. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14829. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14830. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14831. msm_routing_put_audio_mixer),
  14832. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14833. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14834. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14835. msm_routing_put_audio_mixer),
  14836. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14837. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14838. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14839. msm_routing_put_audio_mixer),
  14840. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14841. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14842. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14843. msm_routing_put_audio_mixer),
  14844. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14845. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14846. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14847. msm_routing_put_audio_mixer),
  14848. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14849. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14850. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14851. msm_routing_put_audio_mixer),
  14852. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14853. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14854. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14855. msm_routing_put_audio_mixer),
  14856. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14857. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14858. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14859. msm_routing_put_audio_mixer),
  14860. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14861. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14862. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14863. msm_routing_put_audio_mixer),
  14864. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14865. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14866. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14867. msm_routing_put_audio_mixer),
  14868. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14869. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14870. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14871. msm_routing_put_audio_mixer),
  14872. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14873. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14874. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14875. msm_routing_put_audio_mixer),
  14876. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14877. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14878. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14879. msm_routing_put_audio_mixer),
  14880. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14881. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14882. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14883. msm_routing_put_audio_mixer),
  14884. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14885. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14886. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14887. msm_routing_put_audio_mixer),
  14888. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14889. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14890. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14891. msm_routing_put_audio_mixer),
  14892. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14893. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14894. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14895. msm_routing_put_audio_mixer),
  14896. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14897. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14898. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14899. msm_routing_put_audio_mixer),
  14900. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14901. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14902. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14903. msm_routing_put_audio_mixer),
  14904. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14905. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14906. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14907. msm_routing_put_audio_mixer),
  14908. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14909. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14910. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14911. msm_routing_put_audio_mixer),
  14912. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14913. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14914. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14915. msm_routing_put_audio_mixer),
  14916. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14917. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14918. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14919. msm_routing_put_audio_mixer),
  14920. };
  14921. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  14922. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14923. MSM_BACKEND_DAI_AUXPCM_TX,
  14924. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14925. msm_routing_put_audio_mixer),
  14926. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14927. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14928. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14929. msm_routing_put_audio_mixer),
  14930. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14931. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14932. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14933. msm_routing_put_audio_mixer),
  14934. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14935. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14936. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14937. msm_routing_put_audio_mixer),
  14938. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14939. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14940. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14941. msm_routing_put_audio_mixer),
  14942. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14943. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14944. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14945. msm_routing_put_audio_mixer),
  14946. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14947. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14948. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14949. msm_routing_put_audio_mixer),
  14950. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14951. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14952. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14953. msm_routing_put_audio_mixer),
  14954. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14955. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14956. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14957. msm_routing_put_audio_mixer),
  14958. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14959. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14960. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14961. msm_routing_put_audio_mixer),
  14962. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14963. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14964. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14965. msm_routing_put_audio_mixer),
  14966. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14967. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14968. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14969. msm_routing_put_audio_mixer),
  14970. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14971. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14972. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14973. msm_routing_put_audio_mixer),
  14974. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14975. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14976. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14977. msm_routing_put_audio_mixer),
  14978. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14979. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14980. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14981. msm_routing_put_audio_mixer),
  14982. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14983. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14984. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14985. msm_routing_put_audio_mixer),
  14986. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14987. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14988. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14989. msm_routing_put_audio_mixer),
  14990. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14991. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14992. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14993. msm_routing_put_audio_mixer),
  14994. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14995. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14996. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14997. msm_routing_put_audio_mixer),
  14998. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14999. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15000. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15001. msm_routing_put_audio_mixer),
  15002. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15003. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15004. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15005. msm_routing_put_audio_mixer),
  15006. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15007. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15008. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15009. msm_routing_put_audio_mixer),
  15010. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15011. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  15012. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15013. msm_routing_put_audio_mixer),
  15014. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15015. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  15016. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15017. msm_routing_put_audio_mixer),
  15018. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15019. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  15020. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15021. msm_routing_put_audio_mixer),
  15022. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15023. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  15024. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15025. msm_routing_put_audio_mixer),
  15026. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15027. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15028. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15029. msm_routing_put_audio_mixer),
  15030. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15031. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15032. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15033. msm_routing_put_audio_mixer),
  15034. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15035. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15036. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15037. msm_routing_put_audio_mixer),
  15038. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15039. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15040. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15041. msm_routing_put_audio_mixer),
  15042. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15043. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15044. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15045. msm_routing_put_audio_mixer),
  15046. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15047. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15048. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15049. msm_routing_put_audio_mixer),
  15050. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15051. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15052. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15053. msm_routing_put_audio_mixer),
  15054. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15055. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15056. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15057. msm_routing_put_audio_mixer),
  15058. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15059. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15060. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15061. msm_routing_put_audio_mixer),
  15062. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15063. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15064. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15065. msm_routing_put_audio_mixer),
  15066. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15067. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15068. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15069. msm_routing_put_audio_mixer),
  15070. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15071. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15072. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15073. msm_routing_put_audio_mixer),
  15074. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15075. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15076. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15077. msm_routing_put_audio_mixer),
  15078. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15079. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15080. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15081. msm_routing_put_audio_mixer),
  15082. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15083. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15084. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15085. msm_routing_put_audio_mixer),
  15086. };
  15087. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  15088. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15089. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15090. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15091. msm_routing_put_audio_mixer),
  15092. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15093. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15094. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15095. msm_routing_put_audio_mixer),
  15096. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15097. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15098. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15099. msm_routing_put_audio_mixer),
  15100. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15101. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15102. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15103. msm_routing_put_audio_mixer),
  15104. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15105. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15106. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15107. msm_routing_put_audio_mixer),
  15108. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15109. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15110. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15111. msm_routing_put_audio_mixer),
  15112. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15113. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15114. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15115. msm_routing_put_audio_mixer),
  15116. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15117. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15118. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15119. msm_routing_put_audio_mixer),
  15120. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15121. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15122. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15123. msm_routing_put_audio_mixer),
  15124. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15125. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15126. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15127. msm_routing_put_audio_mixer),
  15128. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15129. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15130. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15131. msm_routing_put_audio_mixer),
  15132. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15133. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15134. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15135. msm_routing_put_audio_mixer),
  15136. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15137. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15138. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15139. msm_routing_put_audio_mixer),
  15140. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15141. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15142. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15143. msm_routing_put_audio_mixer),
  15144. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15145. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15146. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15147. msm_routing_put_audio_mixer),
  15148. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15149. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15150. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15151. msm_routing_put_audio_mixer),
  15152. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15153. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15154. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15155. msm_routing_put_audio_mixer),
  15156. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15157. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15158. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15159. msm_routing_put_audio_mixer),
  15160. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15161. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15162. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15163. msm_routing_put_audio_mixer),
  15164. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15165. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15166. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15167. msm_routing_put_audio_mixer),
  15168. };
  15169. static const struct snd_kcontrol_new mmul23_mixer_controls[] = {
  15170. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15171. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15172. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15173. msm_routing_put_audio_mixer),
  15174. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15175. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15176. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15177. msm_routing_put_audio_mixer),
  15178. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15179. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15180. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15181. msm_routing_put_audio_mixer),
  15182. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15183. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15184. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15185. msm_routing_put_audio_mixer),
  15186. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15187. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15188. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15189. msm_routing_put_audio_mixer),
  15190. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15191. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15192. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15193. msm_routing_put_audio_mixer),
  15194. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15195. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15196. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15197. msm_routing_put_audio_mixer),
  15198. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15199. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15200. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15201. msm_routing_put_audio_mixer),
  15202. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15203. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15204. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15205. msm_routing_put_audio_mixer),
  15206. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15207. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15208. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15209. msm_routing_put_audio_mixer),
  15210. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15211. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15212. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15213. msm_routing_put_audio_mixer),
  15214. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15215. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15216. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15217. msm_routing_put_audio_mixer),
  15218. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15219. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15220. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15221. msm_routing_put_audio_mixer),
  15222. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15223. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15224. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15225. msm_routing_put_audio_mixer),
  15226. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15227. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15228. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15229. msm_routing_put_audio_mixer),
  15230. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15231. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15232. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15233. msm_routing_put_audio_mixer),
  15234. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15235. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15236. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15237. msm_routing_put_audio_mixer),
  15238. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15239. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15240. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15241. msm_routing_put_audio_mixer),
  15242. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15243. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15244. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15245. msm_routing_put_audio_mixer),
  15246. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15247. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15248. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15249. msm_routing_put_audio_mixer),
  15250. };
  15251. static const struct snd_kcontrol_new mmul24_mixer_controls[] = {
  15252. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15253. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15254. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15255. msm_routing_put_audio_mixer),
  15256. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15257. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15258. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15259. msm_routing_put_audio_mixer),
  15260. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15261. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15262. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15263. msm_routing_put_audio_mixer),
  15264. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15265. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15266. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15267. msm_routing_put_audio_mixer),
  15268. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15269. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15270. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15271. msm_routing_put_audio_mixer),
  15272. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15273. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15274. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15275. msm_routing_put_audio_mixer),
  15276. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15277. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15278. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15279. msm_routing_put_audio_mixer),
  15280. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15281. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15282. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15283. msm_routing_put_audio_mixer),
  15284. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15285. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15286. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15287. msm_routing_put_audio_mixer),
  15288. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15289. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15290. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15291. msm_routing_put_audio_mixer),
  15292. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15293. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15294. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15295. msm_routing_put_audio_mixer),
  15296. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15297. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15298. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15299. msm_routing_put_audio_mixer),
  15300. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15301. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15302. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15303. msm_routing_put_audio_mixer),
  15304. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15305. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15306. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15307. msm_routing_put_audio_mixer),
  15308. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15309. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15310. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15311. msm_routing_put_audio_mixer),
  15312. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15313. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15314. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15315. msm_routing_put_audio_mixer),
  15316. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15317. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15318. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15319. msm_routing_put_audio_mixer),
  15320. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15321. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15322. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15323. msm_routing_put_audio_mixer),
  15324. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15325. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15326. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15327. msm_routing_put_audio_mixer),
  15328. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15329. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15330. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15331. msm_routing_put_audio_mixer),
  15332. };
  15333. static const struct snd_kcontrol_new mmul25_mixer_controls[] = {
  15334. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15335. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15336. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15337. msm_routing_put_audio_mixer),
  15338. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15339. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15340. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15341. msm_routing_put_audio_mixer),
  15342. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15343. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15344. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15345. msm_routing_put_audio_mixer),
  15346. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15347. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15348. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15349. msm_routing_put_audio_mixer),
  15350. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15351. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15352. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15353. msm_routing_put_audio_mixer),
  15354. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15355. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15356. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15357. msm_routing_put_audio_mixer),
  15358. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15359. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15360. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15361. msm_routing_put_audio_mixer),
  15362. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15363. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15364. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15365. msm_routing_put_audio_mixer),
  15366. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15367. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15368. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15369. msm_routing_put_audio_mixer),
  15370. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15371. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15372. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15373. msm_routing_put_audio_mixer),
  15374. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15375. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15376. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15377. msm_routing_put_audio_mixer),
  15378. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15379. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15380. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15381. msm_routing_put_audio_mixer),
  15382. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15383. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15384. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15385. msm_routing_put_audio_mixer),
  15386. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15387. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15388. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15389. msm_routing_put_audio_mixer),
  15390. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15391. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15392. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15393. msm_routing_put_audio_mixer),
  15394. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15395. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15396. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15397. msm_routing_put_audio_mixer),
  15398. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15399. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15400. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15401. msm_routing_put_audio_mixer),
  15402. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15403. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15404. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15405. msm_routing_put_audio_mixer),
  15406. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15407. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15408. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15409. msm_routing_put_audio_mixer),
  15410. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15411. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15412. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15413. msm_routing_put_audio_mixer),
  15414. };
  15415. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  15416. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15417. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15418. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15419. msm_routing_put_audio_mixer),
  15420. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15421. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15422. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15423. msm_routing_put_audio_mixer),
  15424. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  15425. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  15426. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15427. msm_routing_put_audio_mixer),
  15428. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15429. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15430. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15431. msm_routing_put_audio_mixer),
  15432. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15433. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15434. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15435. msm_routing_put_audio_mixer),
  15436. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15437. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15438. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15439. msm_routing_put_audio_mixer),
  15440. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15441. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15442. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15443. msm_routing_put_audio_mixer),
  15444. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15445. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15446. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15447. msm_routing_put_audio_mixer),
  15448. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15449. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  15450. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15451. msm_routing_put_audio_mixer),
  15452. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15453. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  15454. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15455. msm_routing_put_audio_mixer),
  15456. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15457. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15458. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15459. msm_routing_put_audio_mixer),
  15460. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15461. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15462. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15463. msm_routing_put_audio_mixer),
  15464. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15465. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  15466. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15467. msm_routing_put_audio_mixer),
  15468. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15469. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15470. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15471. msm_routing_put_audio_mixer),
  15472. };
  15473. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  15474. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15475. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15476. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15477. msm_routing_put_audio_mixer),
  15478. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15479. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15480. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15481. msm_routing_put_audio_mixer),
  15482. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15483. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15484. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15485. msm_routing_put_audio_mixer),
  15486. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15487. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15488. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15489. msm_routing_put_audio_mixer),
  15490. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15491. MSM_BACKEND_DAI_INT_FM_TX,
  15492. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15493. msm_routing_put_audio_mixer),
  15494. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15495. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15496. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15497. msm_routing_put_audio_mixer),
  15498. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15499. MSM_BACKEND_DAI_AFE_PCM_TX,
  15500. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15501. msm_routing_put_audio_mixer),
  15502. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15503. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15504. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15505. msm_routing_put_audio_mixer),
  15506. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15507. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15508. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15509. msm_routing_put_audio_mixer),
  15510. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15511. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15512. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15513. msm_routing_put_audio_mixer),
  15514. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15515. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15516. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15517. msm_routing_put_audio_mixer),
  15518. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15519. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15520. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15521. msm_routing_put_audio_mixer),
  15522. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15523. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15524. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15525. msm_routing_put_audio_mixer),
  15526. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15527. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15528. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15529. msm_routing_put_audio_mixer),
  15530. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15531. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15532. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15533. msm_routing_put_audio_mixer),
  15534. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15535. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15536. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15537. msm_routing_put_audio_mixer),
  15538. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15539. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15540. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15541. msm_routing_put_audio_mixer),
  15542. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15543. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15544. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15545. msm_routing_put_audio_mixer),
  15546. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15547. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15548. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15549. msm_routing_get_audio_mixer,
  15550. msm_routing_put_audio_mixer),
  15551. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15552. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15553. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15554. msm_routing_get_audio_mixer,
  15555. msm_routing_put_audio_mixer),
  15556. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15557. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15558. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15559. msm_routing_get_audio_mixer,
  15560. msm_routing_put_audio_mixer),
  15561. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15562. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15563. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15564. msm_routing_get_audio_mixer,
  15565. msm_routing_put_audio_mixer),
  15566. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15567. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15568. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15569. msm_routing_get_audio_mixer,
  15570. msm_routing_put_audio_mixer),
  15571. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15572. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15573. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15574. msm_routing_get_audio_mixer,
  15575. msm_routing_put_audio_mixer),
  15576. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15577. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15578. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15579. msm_routing_put_audio_mixer),
  15580. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15581. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15582. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15583. msm_routing_put_audio_mixer),
  15584. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15585. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15586. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15587. msm_routing_put_audio_mixer),
  15588. };
  15589. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  15590. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15591. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15592. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15593. msm_routing_put_audio_mixer),
  15594. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15595. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15596. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15597. msm_routing_put_audio_mixer),
  15598. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15599. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15600. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15601. msm_routing_put_audio_mixer),
  15602. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15603. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15604. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15605. msm_routing_put_audio_mixer),
  15606. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15607. MSM_BACKEND_DAI_INT_FM_TX,
  15608. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15609. msm_routing_put_audio_mixer),
  15610. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15611. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15612. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15613. msm_routing_put_audio_mixer),
  15614. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15615. MSM_BACKEND_DAI_AFE_PCM_TX,
  15616. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15617. msm_routing_put_audio_mixer),
  15618. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15619. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15620. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15621. msm_routing_put_audio_mixer),
  15622. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15623. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15624. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15625. msm_routing_put_audio_mixer),
  15626. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15627. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15628. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15629. msm_routing_put_audio_mixer),
  15630. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15631. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15632. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15633. msm_routing_put_audio_mixer),
  15634. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15635. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15636. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15637. msm_routing_put_audio_mixer),
  15638. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15639. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15640. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15641. msm_routing_put_audio_mixer),
  15642. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15643. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15644. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15645. msm_routing_put_audio_mixer),
  15646. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15647. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15648. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15649. msm_routing_put_audio_mixer),
  15650. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15651. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15652. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15653. msm_routing_put_audio_mixer),
  15654. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15655. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15656. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15657. msm_routing_put_audio_mixer),
  15658. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15659. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15660. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15661. msm_routing_put_audio_mixer),
  15662. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15663. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15664. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15665. msm_routing_get_audio_mixer,
  15666. msm_routing_put_audio_mixer),
  15667. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15668. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15669. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15670. msm_routing_get_audio_mixer,
  15671. msm_routing_put_audio_mixer),
  15672. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15673. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15674. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15675. msm_routing_get_audio_mixer,
  15676. msm_routing_put_audio_mixer),
  15677. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15678. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15679. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15680. msm_routing_get_audio_mixer,
  15681. msm_routing_put_audio_mixer),
  15682. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15683. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15684. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15685. msm_routing_get_audio_mixer,
  15686. msm_routing_put_audio_mixer),
  15687. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15688. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15689. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15690. msm_routing_get_audio_mixer,
  15691. msm_routing_put_audio_mixer),
  15692. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15693. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15694. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15695. msm_routing_put_audio_mixer),
  15696. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15697. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15698. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15699. msm_routing_put_audio_mixer),
  15700. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15701. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15702. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15703. msm_routing_put_audio_mixer),
  15704. };
  15705. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  15706. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15707. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15708. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15709. msm_routing_put_audio_mixer),
  15710. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15711. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15712. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15713. msm_routing_put_audio_mixer),
  15714. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15715. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15716. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15717. msm_routing_put_audio_mixer),
  15718. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15719. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15720. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15721. msm_routing_put_audio_mixer),
  15722. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15723. MSM_BACKEND_DAI_INT_FM_TX,
  15724. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15725. msm_routing_put_audio_mixer),
  15726. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15727. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15728. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15729. msm_routing_put_audio_mixer),
  15730. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15731. MSM_BACKEND_DAI_AFE_PCM_TX,
  15732. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15733. msm_routing_put_audio_mixer),
  15734. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15735. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15736. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15737. msm_routing_put_audio_mixer),
  15738. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15739. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15740. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15741. msm_routing_put_audio_mixer),
  15742. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15743. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15744. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15745. msm_routing_put_audio_mixer),
  15746. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15747. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15748. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15749. msm_routing_put_audio_mixer),
  15750. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15751. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15752. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15753. msm_routing_put_audio_mixer),
  15754. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15755. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15756. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15757. msm_routing_put_audio_mixer),
  15758. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15759. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15760. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15761. msm_routing_put_audio_mixer),
  15762. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15763. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15764. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15765. msm_routing_put_audio_mixer),
  15766. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15767. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15768. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15769. msm_routing_put_audio_mixer),
  15770. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15771. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15772. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15773. msm_routing_put_audio_mixer),
  15774. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15775. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15776. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15777. msm_routing_get_audio_mixer,
  15778. msm_routing_put_audio_mixer),
  15779. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15780. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15781. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15782. msm_routing_get_audio_mixer,
  15783. msm_routing_put_audio_mixer),
  15784. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15785. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15786. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15787. msm_routing_get_audio_mixer,
  15788. msm_routing_put_audio_mixer),
  15789. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15790. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15791. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15792. msm_routing_get_audio_mixer,
  15793. msm_routing_put_audio_mixer),
  15794. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15795. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15796. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15797. msm_routing_get_audio_mixer,
  15798. msm_routing_put_audio_mixer),
  15799. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15800. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15801. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15802. msm_routing_get_audio_mixer,
  15803. msm_routing_put_audio_mixer),
  15804. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15805. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15806. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15807. msm_routing_put_audio_mixer),
  15808. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15809. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15810. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15811. msm_routing_put_audio_mixer),
  15812. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15813. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15814. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15815. msm_routing_put_audio_mixer),
  15816. };
  15817. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  15818. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15819. MSM_BACKEND_DAI_PRI_I2S_RX,
  15820. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15821. msm_routing_put_voice_mixer),
  15822. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15823. MSM_BACKEND_DAI_PRI_I2S_RX,
  15824. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15825. msm_routing_put_voice_mixer),
  15826. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15827. MSM_BACKEND_DAI_PRI_I2S_RX,
  15828. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15829. msm_routing_put_voice_mixer),
  15830. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15831. MSM_BACKEND_DAI_PRI_I2S_RX,
  15832. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15833. msm_routing_put_voice_mixer),
  15834. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15835. MSM_BACKEND_DAI_PRI_I2S_RX,
  15836. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15837. msm_routing_put_voice_mixer),
  15838. };
  15839. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  15840. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15841. MSM_BACKEND_DAI_SEC_I2S_RX,
  15842. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15843. msm_routing_put_voice_mixer),
  15844. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15845. MSM_BACKEND_DAI_SEC_I2S_RX,
  15846. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15847. msm_routing_put_voice_mixer),
  15848. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15849. MSM_BACKEND_DAI_SEC_I2S_RX,
  15850. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15851. msm_routing_put_voice_mixer),
  15852. };
  15853. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  15854. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15855. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15856. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15857. msm_routing_put_voice_mixer),
  15858. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15859. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15860. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15861. msm_routing_put_voice_mixer),
  15862. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15863. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15864. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15865. msm_routing_put_voice_mixer),
  15866. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15867. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15868. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15869. msm_routing_put_voice_mixer),
  15870. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15871. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15872. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15873. msm_routing_put_voice_mixer),
  15874. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15875. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15876. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15877. msm_routing_put_voice_mixer),
  15878. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15879. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15880. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15881. msm_routing_put_voice_mixer),
  15882. };
  15883. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  15884. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15885. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15886. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15887. msm_routing_put_voice_mixer),
  15888. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15889. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15890. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15891. msm_routing_put_voice_mixer),
  15892. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15893. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15894. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15895. msm_routing_put_voice_mixer),
  15896. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15897. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15898. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15899. msm_routing_put_voice_mixer),
  15900. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15901. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15902. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15903. msm_routing_put_voice_mixer),
  15904. };
  15905. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  15906. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15907. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15908. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15909. msm_routing_put_voice_mixer),
  15910. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15911. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15912. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15913. msm_routing_put_voice_mixer),
  15914. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15915. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15916. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15917. msm_routing_put_voice_mixer),
  15918. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15919. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15920. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15921. msm_routing_put_voice_mixer),
  15922. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15923. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15924. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15925. msm_routing_put_voice_mixer),
  15926. };
  15927. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  15928. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15929. MSM_BACKEND_DAI_USB_RX,
  15930. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15931. msm_routing_put_voice_mixer),
  15932. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15933. MSM_BACKEND_DAI_USB_RX,
  15934. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15935. msm_routing_put_voice_mixer),
  15936. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15937. MSM_BACKEND_DAI_USB_RX,
  15938. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15939. msm_routing_put_voice_mixer),
  15940. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15941. MSM_BACKEND_DAI_USB_RX,
  15942. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15943. msm_routing_put_voice_mixer),
  15944. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15945. MSM_BACKEND_DAI_USB_RX,
  15946. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15947. msm_routing_put_voice_mixer),
  15948. };
  15949. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  15950. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15951. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15952. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15953. msm_routing_put_voice_mixer),
  15954. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15955. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15956. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15957. msm_routing_put_voice_mixer),
  15958. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15959. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15960. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15961. msm_routing_put_voice_mixer),
  15962. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15963. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15964. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15965. msm_routing_put_voice_mixer),
  15966. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15967. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15968. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15969. msm_routing_put_voice_mixer),
  15970. };
  15971. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  15972. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15973. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15974. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15975. msm_routing_put_voice_mixer),
  15976. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15977. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15978. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15979. msm_routing_put_voice_mixer),
  15980. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15981. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15982. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15983. msm_routing_put_voice_mixer),
  15984. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15985. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15986. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15987. msm_routing_put_voice_mixer),
  15988. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15989. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15990. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15991. msm_routing_put_voice_mixer),
  15992. };
  15993. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  15994. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15995. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15996. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15997. msm_routing_put_voice_mixer),
  15998. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15999. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16000. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16001. msm_routing_put_voice_mixer),
  16002. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16003. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16004. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16005. msm_routing_put_voice_mixer),
  16006. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16007. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16008. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16009. msm_routing_put_voice_mixer),
  16010. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16011. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16012. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16013. msm_routing_put_voice_mixer),
  16014. };
  16015. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  16016. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16017. MSM_BACKEND_DAI_MI2S_RX,
  16018. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16019. msm_routing_put_voice_mixer),
  16020. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16021. MSM_BACKEND_DAI_MI2S_RX,
  16022. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16023. msm_routing_put_voice_mixer),
  16024. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16025. MSM_BACKEND_DAI_MI2S_RX,
  16026. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  16027. msm_routing_put_voice_mixer),
  16028. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16029. MSM_BACKEND_DAI_MI2S_RX,
  16030. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16031. msm_routing_put_voice_mixer),
  16032. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16033. MSM_BACKEND_DAI_MI2S_RX,
  16034. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16035. msm_routing_put_voice_mixer),
  16036. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16037. MSM_BACKEND_DAI_MI2S_RX,
  16038. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16039. msm_routing_put_voice_mixer),
  16040. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16041. MSM_BACKEND_DAI_MI2S_RX,
  16042. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16043. msm_routing_put_voice_mixer),
  16044. };
  16045. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  16046. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16047. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16048. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16049. msm_routing_put_voice_mixer),
  16050. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16051. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16052. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16053. msm_routing_put_voice_mixer),
  16054. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16055. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16056. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  16057. msm_routing_put_voice_mixer),
  16058. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16059. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16060. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16061. msm_routing_put_voice_mixer),
  16062. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16063. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16064. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16065. msm_routing_put_voice_mixer),
  16066. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16067. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16068. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16069. msm_routing_put_voice_mixer),
  16070. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16071. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16072. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16073. msm_routing_put_voice_mixer),
  16074. };
  16075. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  16076. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16077. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16078. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16079. msm_routing_put_voice_mixer),
  16080. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16081. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16082. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16083. msm_routing_put_voice_mixer),
  16084. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16085. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16086. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16087. msm_routing_put_voice_mixer),
  16088. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16089. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16090. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16091. msm_routing_put_voice_mixer),
  16092. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16093. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16094. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16095. msm_routing_put_voice_mixer),
  16096. };
  16097. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  16098. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16099. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16100. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16101. msm_routing_put_voice_mixer),
  16102. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16103. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16104. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16105. msm_routing_put_voice_mixer),
  16106. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16107. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16108. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16109. msm_routing_put_voice_mixer),
  16110. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16111. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16112. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16113. msm_routing_put_voice_mixer),
  16114. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16115. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16116. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16117. msm_routing_put_voice_mixer),
  16118. };
  16119. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  16120. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16121. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16122. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16123. msm_routing_put_voice_mixer),
  16124. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16125. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16126. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16127. msm_routing_put_voice_mixer),
  16128. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16129. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16130. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  16131. msm_routing_put_voice_mixer),
  16132. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16133. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16134. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16135. msm_routing_put_voice_mixer),
  16136. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16137. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16138. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16139. msm_routing_put_voice_mixer),
  16140. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16141. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16142. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16143. msm_routing_put_voice_mixer),
  16144. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16145. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16146. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16147. msm_routing_put_voice_mixer),
  16148. };
  16149. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  16150. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16151. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16152. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16153. msm_routing_put_voice_mixer),
  16154. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16155. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16156. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16157. msm_routing_put_voice_mixer),
  16158. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16159. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16160. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  16161. msm_routing_put_voice_mixer),
  16162. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16163. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16164. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16165. msm_routing_put_voice_mixer),
  16166. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16167. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16168. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16169. msm_routing_put_voice_mixer),
  16170. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16171. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16172. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16173. msm_routing_put_voice_mixer),
  16174. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16175. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16176. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16177. msm_routing_put_voice_mixer),
  16178. };
  16179. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  16180. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16181. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16182. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16183. msm_routing_put_voice_mixer),
  16184. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16185. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16186. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16187. msm_routing_put_voice_stub_mixer),
  16188. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16189. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16190. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16191. msm_routing_put_voice_stub_mixer),
  16192. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16193. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16194. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16195. msm_routing_put_voice_mixer),
  16196. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16197. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16198. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16199. msm_routing_put_voice_mixer),
  16200. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16201. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16202. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16203. msm_routing_put_voice_mixer),
  16204. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16205. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16206. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16207. msm_routing_put_voice_mixer),
  16208. };
  16209. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  16210. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16211. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16212. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16213. msm_routing_put_voice_mixer),
  16214. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16215. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16216. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16217. msm_routing_put_voice_mixer),
  16218. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16219. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16220. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16221. msm_routing_put_voice_mixer),
  16222. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16223. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16224. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16225. msm_routing_put_voice_mixer),
  16226. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16227. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16228. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16229. msm_routing_put_voice_mixer),
  16230. };
  16231. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  16232. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16233. MSM_BACKEND_DAI_AFE_PCM_RX,
  16234. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16235. msm_routing_put_voice_mixer),
  16236. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16237. MSM_BACKEND_DAI_AFE_PCM_RX,
  16238. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16239. msm_routing_put_voice_mixer),
  16240. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16241. MSM_BACKEND_DAI_AFE_PCM_RX,
  16242. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16243. msm_routing_put_voice_mixer),
  16244. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16245. MSM_BACKEND_DAI_AFE_PCM_RX,
  16246. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16247. msm_routing_put_voice_mixer),
  16248. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16249. MSM_BACKEND_DAI_AFE_PCM_RX,
  16250. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16251. msm_routing_put_voice_mixer),
  16252. };
  16253. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  16254. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16255. MSM_BACKEND_DAI_AUXPCM_RX,
  16256. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16257. msm_routing_put_voice_mixer),
  16258. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16259. MSM_BACKEND_DAI_AUXPCM_RX,
  16260. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16261. msm_routing_put_voice_mixer),
  16262. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16263. MSM_BACKEND_DAI_AUXPCM_RX,
  16264. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16265. msm_routing_put_voice_mixer),
  16266. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16267. MSM_BACKEND_DAI_AUXPCM_RX,
  16268. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16269. msm_routing_put_voice_mixer),
  16270. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16271. MSM_BACKEND_DAI_AUXPCM_RX,
  16272. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16273. msm_routing_put_voice_mixer),
  16274. };
  16275. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  16276. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16277. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16278. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16279. msm_routing_put_voice_mixer),
  16280. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16281. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16282. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16283. msm_routing_put_voice_mixer),
  16284. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16285. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16286. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16287. msm_routing_put_voice_mixer),
  16288. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16289. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16290. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16291. msm_routing_put_voice_mixer),
  16292. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16293. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16294. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16295. msm_routing_put_voice_mixer),
  16296. };
  16297. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  16298. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16299. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16300. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16301. msm_routing_put_voice_mixer),
  16302. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16303. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16304. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16305. msm_routing_put_voice_mixer),
  16306. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16307. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16308. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16309. msm_routing_put_voice_mixer),
  16310. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16311. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16312. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16313. msm_routing_put_voice_mixer),
  16314. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16315. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16316. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16317. msm_routing_put_voice_mixer),
  16318. };
  16319. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  16320. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16321. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16322. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16323. msm_routing_put_voice_mixer),
  16324. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16325. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16326. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16327. msm_routing_put_voice_mixer),
  16328. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16329. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16330. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16331. msm_routing_put_voice_mixer),
  16332. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16333. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16334. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16335. msm_routing_put_voice_mixer),
  16336. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16337. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16338. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16339. msm_routing_put_voice_mixer),
  16340. };
  16341. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  16342. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16343. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16344. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16345. msm_routing_put_voice_mixer),
  16346. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16347. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16348. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16349. msm_routing_put_voice_mixer),
  16350. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16351. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16352. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16353. msm_routing_put_voice_mixer),
  16354. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16355. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16356. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16357. msm_routing_put_voice_mixer),
  16358. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16359. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16360. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16361. msm_routing_put_voice_mixer),
  16362. };
  16363. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  16364. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16365. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16366. msm_routing_put_voice_mixer),
  16367. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16368. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16369. msm_routing_put_voice_mixer),
  16370. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16371. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16372. msm_routing_put_voice_mixer),
  16373. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16374. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16375. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16376. msm_routing_put_voice_mixer),
  16377. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16378. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16379. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16380. msm_routing_put_voice_mixer),
  16381. };
  16382. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  16383. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16384. MSM_BACKEND_DAI_HDMI_RX,
  16385. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16386. msm_routing_put_voice_mixer),
  16387. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16388. MSM_BACKEND_DAI_HDMI_RX,
  16389. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16390. msm_routing_put_voice_mixer),
  16391. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16392. MSM_BACKEND_DAI_HDMI_RX,
  16393. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16394. msm_routing_put_voice_mixer),
  16395. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16396. MSM_BACKEND_DAI_HDMI_RX,
  16397. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16398. msm_routing_put_voice_mixer),
  16399. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16400. MSM_BACKEND_DAI_HDMI_RX,
  16401. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16402. msm_routing_put_voice_mixer),
  16403. };
  16404. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  16405. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16406. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16407. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16408. msm_routing_put_voice_mixer),
  16409. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16410. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16411. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16412. msm_routing_put_voice_mixer),
  16413. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16414. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16415. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16416. msm_routing_put_voice_mixer),
  16417. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16418. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16419. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16420. msm_routing_put_voice_mixer),
  16421. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16422. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16423. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16424. msm_routing_put_voice_mixer),
  16425. };
  16426. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  16427. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16428. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16429. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16430. msm_routing_put_voice_mixer),
  16431. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16432. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16433. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16434. msm_routing_put_voice_mixer),
  16435. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16436. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16437. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16438. msm_routing_put_voice_mixer),
  16439. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16440. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16441. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16442. msm_routing_put_voice_mixer),
  16443. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16444. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16445. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16446. msm_routing_put_voice_mixer),
  16447. };
  16448. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  16449. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16450. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  16451. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16452. msm_routing_put_voice_mixer),
  16453. };
  16454. static const struct snd_kcontrol_new quin_tdm_rx_2_voice_mixer_controls[] = {
  16455. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16456. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16457. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16458. msm_routing_put_voice_mixer),
  16459. };
  16460. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  16461. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16462. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16463. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16464. msm_routing_put_voice_mixer),
  16465. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16466. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16467. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16468. msm_routing_put_voice_mixer),
  16469. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16470. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16471. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16472. msm_routing_put_voice_mixer),
  16473. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16474. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16475. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16476. msm_routing_put_voice_mixer),
  16477. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16478. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16479. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16480. msm_routing_put_voice_mixer),
  16481. };
  16482. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  16483. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16484. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16485. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16486. msm_routing_put_voice_mixer),
  16487. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16488. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16489. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16490. msm_routing_put_voice_mixer),
  16491. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16492. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16493. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16494. msm_routing_put_voice_mixer),
  16495. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16496. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16497. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16498. msm_routing_put_voice_mixer),
  16499. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16500. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16501. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16502. msm_routing_put_voice_mixer),
  16503. };
  16504. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  16505. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16506. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16507. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16508. msm_routing_put_voice_mixer),
  16509. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16510. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16511. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16512. msm_routing_put_voice_mixer),
  16513. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16514. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16515. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16516. msm_routing_put_voice_mixer),
  16517. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16518. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16519. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16520. msm_routing_put_voice_mixer),
  16521. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16522. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16523. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16524. msm_routing_put_voice_mixer),
  16525. };
  16526. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  16527. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16528. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16529. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16530. msm_routing_put_voice_mixer),
  16531. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16532. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16533. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16534. msm_routing_put_voice_mixer),
  16535. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16536. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16537. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16538. msm_routing_put_voice_mixer),
  16539. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16540. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16541. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16542. msm_routing_put_voice_mixer),
  16543. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16544. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16545. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16546. msm_routing_put_voice_mixer),
  16547. };
  16548. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  16549. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16550. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16551. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16552. msm_routing_put_voice_mixer),
  16553. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16554. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16555. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16556. msm_routing_put_voice_mixer),
  16557. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16558. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16559. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16560. msm_routing_put_voice_mixer),
  16561. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16562. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16563. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16564. msm_routing_put_voice_mixer),
  16565. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16566. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16567. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16568. msm_routing_put_voice_mixer),
  16569. };
  16570. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  16571. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16572. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16573. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16574. msm_routing_put_voice_mixer),
  16575. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16576. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16577. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16578. msm_routing_put_voice_mixer),
  16579. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16580. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16581. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16582. msm_routing_put_voice_mixer),
  16583. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16584. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16585. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16586. msm_routing_put_voice_mixer),
  16587. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16588. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16589. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16590. msm_routing_put_voice_mixer),
  16591. };
  16592. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  16593. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16594. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16595. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16596. msm_routing_put_voice_mixer),
  16597. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16598. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16599. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16600. msm_routing_put_voice_mixer),
  16601. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16602. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16603. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16604. msm_routing_put_voice_mixer),
  16605. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16606. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16607. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16608. msm_routing_put_voice_mixer),
  16609. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16610. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16611. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16612. msm_routing_put_voice_mixer),
  16613. };
  16614. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  16615. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16616. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16617. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16618. msm_routing_put_voice_mixer),
  16619. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16620. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16621. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16622. msm_routing_put_voice_mixer),
  16623. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16624. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16625. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16626. msm_routing_put_voice_mixer),
  16627. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16628. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16629. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16630. msm_routing_put_voice_mixer),
  16631. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16632. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16633. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16634. msm_routing_put_voice_mixer),
  16635. };
  16636. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  16637. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16638. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16639. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16640. msm_routing_put_voice_mixer),
  16641. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16642. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16643. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16644. msm_routing_put_voice_mixer),
  16645. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16646. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16647. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16648. msm_routing_put_voice_mixer),
  16649. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16650. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16651. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16652. msm_routing_put_voice_mixer),
  16653. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16654. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16655. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16656. msm_routing_put_voice_mixer),
  16657. };
  16658. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  16659. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16660. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16661. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16662. msm_routing_put_voice_mixer),
  16663. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16664. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16665. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16666. msm_routing_put_voice_mixer),
  16667. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16668. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16669. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16670. msm_routing_put_voice_mixer),
  16671. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16672. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16673. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16674. msm_routing_put_voice_mixer),
  16675. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16676. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16677. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16678. msm_routing_put_voice_mixer),
  16679. };
  16680. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  16681. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16682. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16683. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16684. msm_routing_put_voice_mixer),
  16685. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16686. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16687. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16688. msm_routing_put_voice_stub_mixer),
  16689. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16690. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16691. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16692. msm_routing_put_voice_stub_mixer),
  16693. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16694. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16695. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16696. msm_routing_put_voice_mixer),
  16697. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16698. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16699. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16700. msm_routing_put_voice_mixer),
  16701. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16702. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16703. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16704. msm_routing_put_voice_mixer),
  16705. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16706. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16707. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16708. msm_routing_put_voice_mixer),
  16709. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16710. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16711. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16712. msm_routing_put_voice_mixer),
  16713. };
  16714. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  16715. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16716. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16717. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16718. msm_routing_put_voice_mixer),
  16719. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16720. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16721. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16722. msm_routing_put_voice_stub_mixer),
  16723. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16724. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16725. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16726. msm_routing_put_voice_stub_mixer),
  16727. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16728. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16729. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16730. msm_routing_put_voice_mixer),
  16731. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16732. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16733. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16734. msm_routing_put_voice_mixer),
  16735. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16736. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16737. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16738. msm_routing_put_voice_mixer),
  16739. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16740. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16741. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16742. msm_routing_put_voice_mixer),
  16743. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16744. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16745. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16746. msm_routing_put_voice_mixer),
  16747. };
  16748. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  16749. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16750. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16751. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16752. msm_routing_put_voice_mixer),
  16753. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16754. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16755. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16756. msm_routing_put_voice_stub_mixer),
  16757. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16758. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16759. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16760. msm_routing_put_voice_stub_mixer),
  16761. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16762. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16763. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16764. msm_routing_put_voice_mixer),
  16765. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16766. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16767. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16768. msm_routing_put_voice_mixer),
  16769. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16770. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16771. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16772. msm_routing_put_voice_mixer),
  16773. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16774. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16775. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16776. msm_routing_put_voice_mixer),
  16777. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16778. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16779. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16780. msm_routing_put_voice_mixer),
  16781. };
  16782. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  16783. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16784. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16785. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16786. msm_routing_put_voice_mixer),
  16787. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16788. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16789. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16790. msm_routing_put_voice_stub_mixer),
  16791. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16792. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16793. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16794. msm_routing_put_voice_stub_mixer),
  16795. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16796. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16797. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16798. msm_routing_put_voice_mixer),
  16799. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16800. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16801. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16802. msm_routing_put_voice_mixer),
  16803. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16804. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16805. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16806. msm_routing_put_voice_mixer),
  16807. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16808. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16809. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16810. msm_routing_put_voice_mixer),
  16811. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16812. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16813. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16814. msm_routing_put_voice_mixer),
  16815. };
  16816. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  16817. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16818. MSM_BACKEND_DAI_EXTPROC_RX,
  16819. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16820. msm_routing_put_voice_mixer),
  16821. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16822. MSM_BACKEND_DAI_EXTPROC_RX,
  16823. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16824. msm_routing_put_voice_mixer),
  16825. };
  16826. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  16827. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16828. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16829. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16830. msm_routing_put_voice_mixer),
  16831. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16832. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16833. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16834. msm_routing_put_voice_mixer),
  16835. };
  16836. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  16837. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16838. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16839. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16840. msm_routing_put_voice_mixer),
  16841. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16842. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16843. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16844. msm_routing_put_voice_mixer),
  16845. };
  16846. static const struct snd_kcontrol_new proxy_rx_voice_mixer_controls[] = {
  16847. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16848. MSM_BACKEND_DAI_PROXY_RX,
  16849. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16850. msm_routing_put_voice_mixer),
  16851. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16852. MSM_BACKEND_DAI_PROXY_RX,
  16853. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16854. msm_routing_put_voice_mixer),
  16855. };
  16856. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  16857. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  16858. MSM_BACKEND_DAI_PRI_I2S_TX,
  16859. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16860. msm_routing_put_voice_mixer),
  16861. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  16862. MSM_BACKEND_DAI_MI2S_TX,
  16863. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16864. msm_routing_put_voice_mixer),
  16865. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  16866. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16867. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16868. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  16869. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16870. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16871. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  16872. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16873. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16874. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16875. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16876. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16877. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16878. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16879. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16880. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16881. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16882. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16883. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16884. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16885. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16886. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16887. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16888. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16889. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16890. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16891. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16892. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  16893. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16894. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16895. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  16896. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16897. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16898. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16899. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16900. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16901. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  16902. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16903. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16904. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  16905. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16906. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16907. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  16908. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16909. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16910. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  16911. MSM_BACKEND_DAI_USB_TX,
  16912. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16913. msm_routing_put_voice_mixer),
  16914. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  16915. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16916. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16917. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16918. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16919. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16920. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16921. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16922. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16923. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16924. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16925. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16926. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16927. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16928. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16929. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16930. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16931. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16932. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16933. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16934. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16935. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  16936. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16937. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16938. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  16939. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  16940. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16941. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  16942. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  16943. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16944. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16945. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16946. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16947. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  16948. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16949. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16950. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  16951. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16952. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16953. SOC_DOUBLE_EXT("PROXY_TX_MMode1", SND_SOC_NOPM,
  16954. MSM_BACKEND_DAI_PROXY_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16955. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16956. };
  16957. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  16958. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  16959. MSM_BACKEND_DAI_PRI_I2S_TX,
  16960. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16961. msm_routing_put_voice_mixer),
  16962. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  16963. MSM_BACKEND_DAI_MI2S_TX,
  16964. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16965. msm_routing_put_voice_mixer),
  16966. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  16967. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16968. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16969. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  16970. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16971. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16972. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  16973. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16974. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16975. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16976. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16977. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16978. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16979. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16980. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16981. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16982. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16983. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16984. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16985. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16986. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16987. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16988. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16989. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16990. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16991. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16992. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16993. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  16994. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16995. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16996. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  16997. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16998. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16999. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  17000. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  17001. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17002. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  17003. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  17004. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17005. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  17006. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  17007. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17008. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  17009. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  17010. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17011. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  17012. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  17013. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17014. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  17015. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  17016. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17017. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  17018. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  17019. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17020. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  17021. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  17022. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17023. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  17024. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  17025. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17026. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  17027. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  17028. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17029. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  17030. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  17031. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17032. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  17033. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  17034. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17035. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  17036. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  17037. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17038. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  17039. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  17040. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17041. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  17042. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  17043. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17044. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  17045. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  17046. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17047. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  17048. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  17049. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17050. SOC_DOUBLE_EXT("PROXY_TX_MMode2", SND_SOC_NOPM,
  17051. MSM_BACKEND_DAI_PROXY_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  17052. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17053. };
  17054. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  17055. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  17056. MSM_BACKEND_DAI_PRI_I2S_TX,
  17057. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17058. msm_routing_put_voice_mixer),
  17059. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  17060. MSM_BACKEND_DAI_MI2S_TX,
  17061. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17062. msm_routing_put_voice_mixer),
  17063. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  17064. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17065. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17066. msm_routing_put_voice_mixer),
  17067. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  17068. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17069. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17070. msm_routing_put_voice_mixer),
  17071. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  17072. MSM_BACKEND_DAI_AFE_PCM_TX,
  17073. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17074. msm_routing_put_voice_mixer),
  17075. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17076. MSM_BACKEND_DAI_AUXPCM_TX,
  17077. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17078. msm_routing_put_voice_mixer),
  17079. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17080. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17081. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17082. msm_routing_put_voice_mixer),
  17083. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17084. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17085. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17086. msm_routing_put_voice_mixer),
  17087. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17088. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17089. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17090. msm_routing_put_voice_mixer),
  17091. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17092. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17093. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17094. msm_routing_put_voice_mixer),
  17095. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17096. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17097. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17098. msm_routing_put_voice_mixer),
  17099. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  17100. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17101. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17102. msm_routing_put_voice_mixer),
  17103. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  17104. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  17105. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17106. msm_routing_put_voice_mixer),
  17107. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  17108. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17109. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17110. msm_routing_put_voice_mixer),
  17111. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  17112. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17113. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17114. msm_routing_put_voice_mixer),
  17115. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  17116. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17117. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17118. msm_routing_put_voice_mixer),
  17119. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  17120. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17121. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17122. msm_routing_put_voice_mixer),
  17123. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  17124. MSM_BACKEND_DAI_USB_TX,
  17125. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17126. msm_routing_put_voice_mixer),
  17127. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  17128. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  17129. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17130. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  17131. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  17132. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17133. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  17134. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  17135. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17136. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  17137. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  17138. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17139. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  17140. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  17141. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17142. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  17143. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  17144. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17145. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  17146. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  17147. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17148. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  17149. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  17150. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17151. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  17152. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  17153. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17154. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  17155. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17156. msm_routing_put_voice_mixer),
  17157. };
  17158. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  17159. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  17160. MSM_BACKEND_DAI_EXTPROC_TX,
  17161. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17162. msm_routing_put_voice_stub_mixer),
  17163. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17164. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17165. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17166. msm_routing_put_voice_stub_mixer),
  17167. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17168. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17169. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17170. msm_routing_put_voice_stub_mixer),
  17171. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  17172. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  17173. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17174. msm_routing_put_voice_stub_mixer),
  17175. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17176. MSM_BACKEND_DAI_MI2S_TX,
  17177. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17178. msm_routing_put_voice_stub_mixer),
  17179. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17180. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17181. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17182. msm_routing_put_voice_stub_mixer),
  17183. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17184. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17185. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17186. msm_routing_put_voice_stub_mixer),
  17187. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17188. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17189. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17190. msm_routing_put_voice_stub_mixer),
  17191. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17192. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17193. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17194. msm_routing_put_voice_stub_mixer),
  17195. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17196. MSM_BACKEND_DAI_AUXPCM_TX,
  17197. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17198. msm_routing_put_voice_stub_mixer),
  17199. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17200. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17201. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17202. msm_routing_put_voice_stub_mixer),
  17203. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17204. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17205. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17206. msm_routing_put_voice_stub_mixer),
  17207. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17208. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17209. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17210. msm_routing_put_voice_stub_mixer),
  17211. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17212. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17213. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17214. msm_routing_put_voice_stub_mixer),
  17215. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17216. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17217. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17218. msm_routing_put_voice_stub_mixer),
  17219. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17220. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17221. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17222. msm_routing_put_voice_stub_mixer),
  17223. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17224. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17225. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17226. msm_routing_put_voice_stub_mixer),
  17227. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17228. MSM_BACKEND_DAI_AFE_PCM_TX,
  17229. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17230. msm_routing_put_voice_stub_mixer),
  17231. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17232. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17233. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17234. msm_routing_put_voice_stub_mixer),
  17235. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17236. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17237. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17238. msm_routing_put_voice_stub_mixer),
  17239. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17240. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  17241. 1, 0, msm_routing_get_voice_stub_mixer,
  17242. msm_routing_put_voice_stub_mixer),
  17243. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17244. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  17245. 1, 0, msm_routing_get_voice_stub_mixer,
  17246. msm_routing_put_voice_stub_mixer),
  17247. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17248. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  17249. 1, 0, msm_routing_get_voice_stub_mixer,
  17250. msm_routing_put_voice_stub_mixer),
  17251. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17252. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  17253. 1, 0, msm_routing_get_voice_stub_mixer,
  17254. msm_routing_put_voice_stub_mixer),
  17255. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17256. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  17257. 1, 0, msm_routing_get_voice_stub_mixer,
  17258. msm_routing_put_voice_stub_mixer),
  17259. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17260. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  17261. 1, 0, msm_routing_get_voice_stub_mixer,
  17262. msm_routing_put_voice_stub_mixer),
  17263. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17264. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  17265. 1, 0, msm_routing_get_voice_stub_mixer,
  17266. msm_routing_put_voice_stub_mixer),
  17267. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17268. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  17269. 1, 0, msm_routing_get_voice_stub_mixer,
  17270. msm_routing_put_voice_stub_mixer),
  17271. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17272. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  17273. 1, 0, msm_routing_get_voice_stub_mixer,
  17274. msm_routing_put_voice_stub_mixer),
  17275. };
  17276. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  17277. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  17278. MSM_BACKEND_DAI_EXTPROC_TX,
  17279. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17280. msm_routing_put_voice_stub_mixer),
  17281. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17282. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17283. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17284. msm_routing_put_voice_stub_mixer),
  17285. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  17286. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  17287. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17288. msm_routing_put_voice_stub_mixer),
  17289. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17290. MSM_BACKEND_DAI_AUXPCM_TX,
  17291. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17292. msm_routing_put_voice_stub_mixer),
  17293. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17294. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17295. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17296. msm_routing_put_voice_stub_mixer),
  17297. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17298. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17299. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17300. msm_routing_put_voice_stub_mixer),
  17301. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17302. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17303. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17304. msm_routing_put_voice_stub_mixer),
  17305. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17306. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17307. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17308. msm_routing_put_voice_stub_mixer),
  17309. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17310. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17311. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17312. msm_routing_put_voice_stub_mixer),
  17313. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17314. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17315. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17316. msm_routing_put_voice_stub_mixer),
  17317. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17318. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17319. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17320. msm_routing_put_voice_stub_mixer),
  17321. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17322. MSM_BACKEND_DAI_AFE_PCM_TX,
  17323. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17324. msm_routing_put_voice_stub_mixer),
  17325. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17326. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17327. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17328. msm_routing_put_voice_stub_mixer),
  17329. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17330. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17331. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17332. msm_routing_put_voice_stub_mixer),
  17333. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17334. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17335. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17336. msm_routing_put_voice_stub_mixer),
  17337. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17338. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17339. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17340. msm_routing_put_voice_stub_mixer),
  17341. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17342. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17343. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17344. msm_routing_put_voice_stub_mixer),
  17345. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17346. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  17347. 1, 0, msm_routing_get_voice_stub_mixer,
  17348. msm_routing_put_voice_stub_mixer),
  17349. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17350. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  17351. 1, 0, msm_routing_get_voice_stub_mixer,
  17352. msm_routing_put_voice_stub_mixer),
  17353. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17354. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  17355. 1, 0, msm_routing_get_voice_stub_mixer,
  17356. msm_routing_put_voice_stub_mixer),
  17357. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17358. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  17359. 1, 0, msm_routing_get_voice_stub_mixer,
  17360. msm_routing_put_voice_stub_mixer),
  17361. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17362. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  17363. 1, 0, msm_routing_get_voice_stub_mixer,
  17364. msm_routing_put_voice_stub_mixer),
  17365. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17366. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  17367. 1, 0, msm_routing_get_voice_stub_mixer,
  17368. msm_routing_put_voice_stub_mixer),
  17369. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17370. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  17371. 1, 0, msm_routing_get_voice_stub_mixer,
  17372. msm_routing_put_voice_stub_mixer),
  17373. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17374. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  17375. 1, 0, msm_routing_get_voice_stub_mixer,
  17376. msm_routing_put_voice_stub_mixer),
  17377. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17378. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  17379. 1, 0, msm_routing_get_voice_stub_mixer,
  17380. msm_routing_put_voice_stub_mixer),
  17381. };
  17382. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  17383. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  17384. MSM_BACKEND_DAI_EXTPROC_TX,
  17385. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17386. msm_routing_put_voice_stub_mixer),
  17387. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17388. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17389. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17390. msm_routing_put_voice_stub_mixer),
  17391. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  17392. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  17393. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17394. msm_routing_put_voice_stub_mixer),
  17395. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17396. MSM_BACKEND_DAI_AUXPCM_TX,
  17397. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17398. msm_routing_put_voice_stub_mixer),
  17399. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17400. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17401. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17402. msm_routing_put_voice_stub_mixer),
  17403. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17404. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17405. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17406. msm_routing_put_voice_stub_mixer),
  17407. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17408. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17409. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17410. msm_routing_put_voice_stub_mixer),
  17411. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17412. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17413. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17414. msm_routing_put_voice_stub_mixer),
  17415. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17416. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17417. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17418. msm_routing_put_voice_stub_mixer),
  17419. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17420. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17421. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17422. msm_routing_put_voice_stub_mixer),
  17423. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17424. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17425. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17426. msm_routing_put_voice_stub_mixer),
  17427. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17428. MSM_BACKEND_DAI_AFE_PCM_TX,
  17429. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17430. msm_routing_put_voice_stub_mixer),
  17431. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17432. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17433. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17434. msm_routing_put_voice_stub_mixer),
  17435. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17436. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17437. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17438. msm_routing_put_voice_stub_mixer),
  17439. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17440. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17441. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17442. msm_routing_put_voice_stub_mixer),
  17443. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17444. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17445. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17446. msm_routing_put_voice_stub_mixer),
  17447. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17448. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17449. 1, 0, msm_routing_get_voice_stub_mixer,
  17450. msm_routing_put_voice_stub_mixer),
  17451. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17452. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17453. 1, 0, msm_routing_get_voice_stub_mixer,
  17454. msm_routing_put_voice_stub_mixer),
  17455. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17456. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17457. 1, 0, msm_routing_get_voice_stub_mixer,
  17458. msm_routing_put_voice_stub_mixer),
  17459. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17460. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17461. 1, 0, msm_routing_get_voice_stub_mixer,
  17462. msm_routing_put_voice_stub_mixer),
  17463. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17464. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17465. 1, 0, msm_routing_get_voice_stub_mixer,
  17466. msm_routing_put_voice_stub_mixer),
  17467. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17468. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17469. 1, 0, msm_routing_get_voice_stub_mixer,
  17470. msm_routing_put_voice_stub_mixer),
  17471. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17472. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  17473. 1, 0, msm_routing_get_voice_stub_mixer,
  17474. msm_routing_put_voice_stub_mixer),
  17475. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17476. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  17477. 1, 0, msm_routing_get_voice_stub_mixer,
  17478. msm_routing_put_voice_stub_mixer),
  17479. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17480. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  17481. 1, 0, msm_routing_get_voice_stub_mixer,
  17482. msm_routing_put_voice_stub_mixer),
  17483. };
  17484. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  17485. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  17486. MSM_BACKEND_DAI_PRI_I2S_TX,
  17487. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17488. msm_routing_put_voice_mixer),
  17489. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  17490. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17491. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17492. msm_routing_put_voice_mixer),
  17493. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  17494. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17495. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  17496. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17497. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  17498. MSM_BACKEND_DAI_AFE_PCM_TX,
  17499. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17500. msm_routing_put_voice_mixer),
  17501. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17502. MSM_BACKEND_DAI_AUXPCM_TX,
  17503. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17504. msm_routing_put_voice_mixer),
  17505. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17506. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17507. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17508. msm_routing_put_voice_mixer),
  17509. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17510. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17511. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17512. msm_routing_put_voice_mixer),
  17513. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17514. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17515. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17516. msm_routing_put_voice_mixer),
  17517. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17518. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17519. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17520. msm_routing_put_voice_mixer),
  17521. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17522. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17523. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17524. msm_routing_put_voice_mixer),
  17525. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  17526. MSM_BACKEND_DAI_MI2S_TX,
  17527. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17528. msm_routing_put_voice_mixer),
  17529. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17530. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17531. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17532. msm_routing_put_voice_mixer),
  17533. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17534. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17535. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17536. msm_routing_put_voice_mixer),
  17537. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17538. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17539. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17540. msm_routing_put_voice_mixer),
  17541. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  17542. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17543. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17544. msm_routing_put_voice_mixer),
  17545. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  17546. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17547. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17548. msm_routing_put_voice_mixer),
  17549. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  17550. MSM_BACKEND_DAI_USB_TX,
  17551. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17552. msm_routing_put_voice_mixer),
  17553. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17554. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17555. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17556. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17557. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17558. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17559. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17560. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17561. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17562. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17563. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17564. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17565. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17566. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17567. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17568. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17569. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17570. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17571. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  17572. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  17573. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17574. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  17575. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  17576. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17577. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  17578. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  17579. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17580. };
  17581. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  17582. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17583. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17584. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17585. msm_routing_put_port_mixer),
  17586. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17587. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17588. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17589. msm_routing_put_port_mixer),
  17590. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17591. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17592. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17593. msm_routing_put_port_mixer),
  17594. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17595. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17596. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17597. msm_routing_put_port_mixer),
  17598. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17599. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17600. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17601. msm_routing_put_port_mixer),
  17602. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17603. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17604. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17605. msm_routing_put_port_mixer),
  17606. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17607. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17608. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17609. msm_routing_put_port_mixer),
  17610. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17611. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17612. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17613. msm_routing_put_port_mixer),
  17614. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17615. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17616. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17617. msm_routing_put_port_mixer),
  17618. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17619. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17620. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17621. msm_routing_put_port_mixer),
  17622. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17623. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17624. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17625. msm_routing_put_port_mixer),
  17626. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17627. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17628. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17629. msm_routing_put_port_mixer),
  17630. };
  17631. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  17632. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17633. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17634. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17635. msm_routing_put_port_mixer),
  17636. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17637. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17638. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17639. msm_routing_put_port_mixer),
  17640. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17641. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17642. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17643. msm_routing_put_port_mixer),
  17644. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17645. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17646. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17647. msm_routing_put_port_mixer),
  17648. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17649. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17650. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17651. msm_routing_put_port_mixer),
  17652. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17653. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17654. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17655. msm_routing_put_port_mixer),
  17656. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17657. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17658. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17659. msm_routing_put_port_mixer),
  17660. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17661. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17662. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17663. msm_routing_put_port_mixer),
  17664. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17665. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17666. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17667. msm_routing_put_port_mixer),
  17668. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17669. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17670. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17671. msm_routing_put_port_mixer),
  17672. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17673. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17674. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17675. msm_routing_put_port_mixer),
  17676. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17677. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17678. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17679. msm_routing_put_port_mixer),
  17680. };
  17681. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  17682. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17683. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17684. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17685. msm_routing_put_port_mixer),
  17686. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17687. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17688. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17689. msm_routing_put_port_mixer),
  17690. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17691. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17692. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17693. msm_routing_put_port_mixer),
  17694. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17695. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17696. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17697. msm_routing_put_port_mixer),
  17698. };
  17699. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  17700. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17701. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17702. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17703. msm_routing_put_port_mixer),
  17704. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17705. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17706. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17707. msm_routing_put_port_mixer),
  17708. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17709. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17710. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17711. msm_routing_put_port_mixer),
  17712. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17713. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17714. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17715. msm_routing_put_port_mixer),
  17716. };
  17717. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_port_mixer_controls[] = {
  17718. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17719. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17720. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17721. msm_routing_put_port_mixer),
  17722. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17723. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17724. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17725. msm_routing_put_port_mixer),
  17726. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17727. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17728. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17729. msm_routing_put_port_mixer),
  17730. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17731. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17732. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17733. msm_routing_put_port_mixer),
  17734. };
  17735. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  17736. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17737. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17738. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17739. msm_routing_put_port_mixer),
  17740. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17741. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17742. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17743. msm_routing_put_port_mixer),
  17744. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17745. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17746. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17747. msm_routing_put_port_mixer),
  17748. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17749. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17750. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17751. msm_routing_put_port_mixer),
  17752. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17753. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17754. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17755. msm_routing_put_port_mixer),
  17756. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17757. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17758. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17759. msm_routing_put_port_mixer),
  17760. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17761. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17762. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17763. msm_routing_put_port_mixer),
  17764. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17765. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17766. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17767. msm_routing_put_port_mixer),
  17768. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17769. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17770. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17771. msm_routing_put_port_mixer),
  17772. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17773. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17774. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17775. msm_routing_put_port_mixer),
  17776. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17777. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17778. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17779. msm_routing_put_port_mixer),
  17780. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17781. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17782. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17783. msm_routing_put_port_mixer),
  17784. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17785. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17786. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17787. msm_routing_put_port_mixer),
  17788. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17789. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17790. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17791. msm_routing_put_port_mixer),
  17792. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17793. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17794. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17795. msm_routing_put_port_mixer),
  17796. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17797. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17798. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17799. msm_routing_put_port_mixer),
  17800. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17801. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17802. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17803. msm_routing_put_port_mixer),
  17804. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17805. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17806. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17807. msm_routing_put_port_mixer),
  17808. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17809. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17810. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17811. msm_routing_put_port_mixer),
  17812. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  17813. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17814. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17815. msm_routing_put_port_mixer),
  17816. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  17817. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17818. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17819. msm_routing_put_port_mixer),
  17820. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  17821. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17822. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17823. msm_routing_put_port_mixer),
  17824. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  17825. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17826. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17827. msm_routing_put_port_mixer),
  17828. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  17829. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17830. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17831. msm_routing_put_port_mixer),
  17832. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  17833. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17834. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17835. msm_routing_put_port_mixer),
  17836. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17837. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17838. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17839. msm_routing_put_port_mixer),
  17840. };
  17841. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  17842. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17843. MSM_BACKEND_DAI_AUXPCM_RX,
  17844. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17845. msm_routing_put_port_mixer),
  17846. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17847. MSM_BACKEND_DAI_AUXPCM_RX,
  17848. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17849. msm_routing_put_port_mixer),
  17850. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17851. MSM_BACKEND_DAI_AUXPCM_RX,
  17852. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17853. msm_routing_put_port_mixer),
  17854. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17855. MSM_BACKEND_DAI_AUXPCM_RX,
  17856. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17857. msm_routing_put_port_mixer),
  17858. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17859. MSM_BACKEND_DAI_AUXPCM_RX,
  17860. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17861. msm_routing_put_port_mixer),
  17862. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17863. MSM_BACKEND_DAI_AUXPCM_RX,
  17864. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17865. msm_routing_put_port_mixer),
  17866. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17867. MSM_BACKEND_DAI_AUXPCM_RX,
  17868. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17869. msm_routing_put_port_mixer),
  17870. };
  17871. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  17872. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17873. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17874. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17875. msm_routing_put_port_mixer),
  17876. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17877. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17878. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17879. msm_routing_put_port_mixer),
  17880. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17881. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17882. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17883. msm_routing_put_port_mixer),
  17884. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17885. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17886. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17887. msm_routing_put_port_mixer),
  17888. };
  17889. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  17890. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17891. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17892. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17893. msm_routing_put_port_mixer),
  17894. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17895. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17896. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17897. msm_routing_put_port_mixer),
  17898. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17899. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17900. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17901. msm_routing_put_port_mixer),
  17902. };
  17903. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  17904. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17905. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17906. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17907. msm_routing_put_port_mixer),
  17908. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17909. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17910. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17911. msm_routing_put_port_mixer),
  17912. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17913. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17914. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17915. msm_routing_put_port_mixer),
  17916. };
  17917. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  17918. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17919. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17920. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17921. msm_routing_put_port_mixer),
  17922. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17923. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17924. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17925. msm_routing_put_port_mixer),
  17926. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17927. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17928. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17929. msm_routing_put_port_mixer),
  17930. };
  17931. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  17932. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17933. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17934. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17935. msm_routing_put_port_mixer),
  17936. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17937. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17938. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17939. msm_routing_put_port_mixer),
  17940. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17941. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17942. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17943. msm_routing_put_port_mixer),
  17944. };
  17945. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  17946. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17947. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17948. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17949. msm_routing_put_port_mixer),
  17950. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17951. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17952. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  17953. msm_routing_put_port_mixer),
  17954. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17955. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17956. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17957. msm_routing_put_port_mixer),
  17958. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17959. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17960. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17961. msm_routing_put_port_mixer),
  17962. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17963. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17964. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17965. msm_routing_put_port_mixer),
  17966. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17967. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17968. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17969. msm_routing_put_port_mixer),
  17970. };
  17971. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  17972. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  17973. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17974. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  17975. msm_routing_put_port_mixer),
  17976. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17977. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17978. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17979. msm_routing_put_port_mixer),
  17980. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  17981. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17982. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  17983. msm_routing_put_port_mixer),
  17984. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  17985. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17986. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  17987. msm_routing_put_port_mixer),
  17988. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  17989. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17990. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  17991. msm_routing_put_port_mixer),
  17992. };
  17993. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  17994. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17995. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17996. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17997. msm_routing_put_port_mixer),
  17998. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17999. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18000. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18001. msm_routing_put_port_mixer),
  18002. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  18003. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18004. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  18005. msm_routing_put_port_mixer),
  18006. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  18007. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18008. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  18009. msm_routing_put_port_mixer),
  18010. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18011. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18012. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18013. msm_routing_put_port_mixer),
  18014. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18015. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18016. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  18017. msm_routing_put_port_mixer),
  18018. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18019. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18020. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  18021. msm_routing_put_port_mixer),
  18022. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18023. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18024. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18025. msm_routing_put_port_mixer),
  18026. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18027. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18028. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18029. msm_routing_put_port_mixer),
  18030. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18031. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18032. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18033. msm_routing_put_port_mixer),
  18034. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18035. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18036. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18037. msm_routing_put_port_mixer),
  18038. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18039. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18040. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  18041. msm_routing_put_port_mixer),
  18042. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  18043. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18044. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  18045. msm_routing_put_port_mixer),
  18046. };
  18047. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  18048. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  18049. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  18050. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  18051. msm_routing_put_port_mixer),
  18052. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18053. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  18054. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18055. msm_routing_put_port_mixer),
  18056. };
  18057. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  18058. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18059. MSM_BACKEND_DAI_AFE_PCM_RX,
  18060. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  18061. msm_routing_put_port_mixer),
  18062. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  18063. MSM_BACKEND_DAI_AFE_PCM_RX,
  18064. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  18065. msm_routing_put_port_mixer),
  18066. };
  18067. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  18068. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18069. MSM_BACKEND_DAI_HDMI_RX,
  18070. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18071. msm_routing_put_port_mixer),
  18072. };
  18073. static const struct snd_kcontrol_new hdmi_rx_ms_port_mixer_controls[] = {
  18074. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18075. MSM_BACKEND_DAI_HDMI_RX_MS,
  18076. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18077. msm_routing_put_port_mixer),
  18078. };
  18079. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  18080. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18081. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  18082. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18083. msm_routing_put_port_mixer),
  18084. };
  18085. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  18086. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18087. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  18088. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18089. msm_routing_put_port_mixer),
  18090. };
  18091. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  18092. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18093. MSM_BACKEND_DAI_SEC_I2S_RX,
  18094. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18095. msm_routing_put_port_mixer),
  18096. };
  18097. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  18098. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  18099. MSM_BACKEND_DAI_MI2S_RX,
  18100. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  18101. msm_routing_put_port_mixer),
  18102. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18103. MSM_BACKEND_DAI_MI2S_RX,
  18104. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18105. msm_routing_put_port_mixer),
  18106. };
  18107. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  18108. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18109. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18110. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18111. msm_routing_put_port_mixer),
  18112. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18113. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18114. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18115. msm_routing_put_port_mixer),
  18116. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18117. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18118. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  18119. msm_routing_put_port_mixer),
  18120. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18121. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18122. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18123. msm_routing_put_port_mixer),
  18124. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18125. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18126. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  18127. msm_routing_put_port_mixer),
  18128. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18129. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18130. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18131. msm_routing_put_port_mixer),
  18132. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18133. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18134. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18135. msm_routing_put_port_mixer),
  18136. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18137. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18138. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18139. msm_routing_put_port_mixer),
  18140. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18141. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18142. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18143. msm_routing_put_port_mixer),
  18144. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18145. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18146. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18147. msm_routing_put_port_mixer),
  18148. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18149. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18150. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  18151. msm_routing_put_port_mixer),
  18152. };
  18153. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  18154. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  18155. MSM_BACKEND_DAI_USB_RX,
  18156. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  18157. msm_routing_put_port_mixer),
  18158. };
  18159. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  18160. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18161. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18162. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18163. msm_routing_put_port_mixer),
  18164. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18165. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18166. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18167. msm_routing_put_port_mixer),
  18168. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18169. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18170. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  18171. msm_routing_put_port_mixer),
  18172. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18173. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18174. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  18175. msm_routing_put_port_mixer),
  18176. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18177. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18178. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18179. msm_routing_put_port_mixer),
  18180. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18181. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18182. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18183. msm_routing_put_port_mixer),
  18184. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18185. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18186. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18187. msm_routing_put_port_mixer),
  18188. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18189. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18190. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18191. msm_routing_put_port_mixer),
  18192. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18193. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18194. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18195. msm_routing_put_port_mixer),
  18196. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18197. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18198. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18199. msm_routing_put_port_mixer),
  18200. };
  18201. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  18202. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18203. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18204. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18205. msm_routing_put_port_mixer),
  18206. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18207. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18208. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18209. msm_routing_put_port_mixer),
  18210. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18211. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18212. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18213. msm_routing_put_port_mixer),
  18214. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18215. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18216. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18217. msm_routing_put_port_mixer),
  18218. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18219. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18220. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18221. msm_routing_put_port_mixer),
  18222. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18223. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18224. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18225. msm_routing_put_port_mixer),
  18226. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18227. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18228. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18229. msm_routing_put_port_mixer),
  18230. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18231. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18232. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18233. msm_routing_put_port_mixer),
  18234. };
  18235. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  18236. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18237. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18238. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18239. msm_routing_put_port_mixer),
  18240. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18241. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18242. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18243. msm_routing_put_port_mixer),
  18244. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18245. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18246. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18247. msm_routing_put_port_mixer),
  18248. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18249. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18250. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18251. msm_routing_put_port_mixer),
  18252. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18253. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18254. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18255. msm_routing_put_port_mixer),
  18256. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18257. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18258. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18259. msm_routing_put_port_mixer),
  18260. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18261. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18262. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18263. msm_routing_put_port_mixer),
  18264. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18265. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18266. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18267. msm_routing_put_port_mixer),
  18268. };
  18269. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  18270. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18271. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18272. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18273. msm_routing_get_port_mixer,
  18274. msm_routing_put_port_mixer),
  18275. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18276. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18277. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18278. msm_routing_get_port_mixer,
  18279. msm_routing_put_port_mixer),
  18280. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18281. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18282. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18283. msm_routing_get_port_mixer,
  18284. msm_routing_put_port_mixer),
  18285. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18286. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18287. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18288. msm_routing_get_port_mixer,
  18289. msm_routing_put_port_mixer),
  18290. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18291. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18292. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18293. msm_routing_get_port_mixer,
  18294. msm_routing_put_port_mixer),
  18295. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18296. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18297. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18298. msm_routing_get_port_mixer,
  18299. msm_routing_put_port_mixer),
  18300. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18301. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18302. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18303. msm_routing_get_port_mixer,
  18304. msm_routing_put_port_mixer),
  18305. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18306. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18307. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18308. msm_routing_get_port_mixer,
  18309. msm_routing_put_port_mixer),
  18310. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18311. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18312. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18313. msm_routing_get_port_mixer,
  18314. msm_routing_put_port_mixer),
  18315. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18316. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18317. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18318. msm_routing_get_port_mixer,
  18319. msm_routing_put_port_mixer),
  18320. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18321. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18322. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18323. msm_routing_get_port_mixer,
  18324. msm_routing_put_port_mixer),
  18325. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18326. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18327. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18328. msm_routing_get_port_mixer,
  18329. msm_routing_put_port_mixer),
  18330. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18331. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18332. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18333. msm_routing_get_port_mixer,
  18334. msm_routing_put_port_mixer),
  18335. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18336. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18337. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18338. msm_routing_get_port_mixer,
  18339. msm_routing_put_port_mixer),
  18340. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18341. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18342. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18343. msm_routing_get_port_mixer,
  18344. msm_routing_put_port_mixer),
  18345. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18346. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18347. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18348. msm_routing_get_port_mixer,
  18349. msm_routing_put_port_mixer),
  18350. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18351. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18352. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18353. msm_routing_get_port_mixer,
  18354. msm_routing_put_port_mixer),
  18355. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18356. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18357. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18358. msm_routing_get_port_mixer,
  18359. msm_routing_put_port_mixer),
  18360. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18361. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18362. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18363. msm_routing_get_port_mixer,
  18364. msm_routing_put_port_mixer),
  18365. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18366. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18367. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18368. msm_routing_get_port_mixer,
  18369. msm_routing_put_port_mixer),
  18370. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18371. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18372. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18373. msm_routing_get_port_mixer,
  18374. msm_routing_put_port_mixer),
  18375. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18376. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18377. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18378. msm_routing_get_port_mixer,
  18379. msm_routing_put_port_mixer),
  18380. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18381. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18382. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18383. msm_routing_get_port_mixer,
  18384. msm_routing_put_port_mixer),
  18385. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18386. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18387. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18388. msm_routing_get_port_mixer,
  18389. msm_routing_put_port_mixer),
  18390. };
  18391. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  18392. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18393. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18394. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18395. msm_routing_get_port_mixer,
  18396. msm_routing_put_port_mixer),
  18397. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18398. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18399. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18400. msm_routing_get_port_mixer,
  18401. msm_routing_put_port_mixer),
  18402. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18403. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18404. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18405. msm_routing_get_port_mixer,
  18406. msm_routing_put_port_mixer),
  18407. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18408. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18409. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18410. msm_routing_get_port_mixer,
  18411. msm_routing_put_port_mixer),
  18412. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18413. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18414. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18415. msm_routing_get_port_mixer,
  18416. msm_routing_put_port_mixer),
  18417. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18418. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18419. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18420. msm_routing_get_port_mixer,
  18421. msm_routing_put_port_mixer),
  18422. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18423. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18424. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18425. msm_routing_get_port_mixer,
  18426. msm_routing_put_port_mixer),
  18427. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18428. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18429. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18430. msm_routing_get_port_mixer,
  18431. msm_routing_put_port_mixer),
  18432. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18433. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18434. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18435. msm_routing_get_port_mixer,
  18436. msm_routing_put_port_mixer),
  18437. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18438. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18439. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18440. msm_routing_get_port_mixer,
  18441. msm_routing_put_port_mixer),
  18442. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18443. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18444. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18445. msm_routing_get_port_mixer,
  18446. msm_routing_put_port_mixer),
  18447. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18448. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18449. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18450. msm_routing_get_port_mixer,
  18451. msm_routing_put_port_mixer),
  18452. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18453. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18454. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18455. msm_routing_get_port_mixer,
  18456. msm_routing_put_port_mixer),
  18457. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18458. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18459. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18460. msm_routing_get_port_mixer,
  18461. msm_routing_put_port_mixer),
  18462. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18463. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18464. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18465. msm_routing_get_port_mixer,
  18466. msm_routing_put_port_mixer),
  18467. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18468. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18469. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18470. msm_routing_get_port_mixer,
  18471. msm_routing_put_port_mixer),
  18472. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18473. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18474. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18475. msm_routing_get_port_mixer,
  18476. msm_routing_put_port_mixer),
  18477. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18478. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18479. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18480. msm_routing_get_port_mixer,
  18481. msm_routing_put_port_mixer),
  18482. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18483. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18484. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18485. msm_routing_get_port_mixer,
  18486. msm_routing_put_port_mixer),
  18487. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18488. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18489. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18490. msm_routing_get_port_mixer,
  18491. msm_routing_put_port_mixer),
  18492. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18493. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18494. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18495. msm_routing_get_port_mixer,
  18496. msm_routing_put_port_mixer),
  18497. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18498. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18499. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18500. msm_routing_get_port_mixer,
  18501. msm_routing_put_port_mixer),
  18502. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18503. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18504. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18505. msm_routing_get_port_mixer,
  18506. msm_routing_put_port_mixer),
  18507. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18508. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18509. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18510. msm_routing_get_port_mixer,
  18511. msm_routing_put_port_mixer),
  18512. };
  18513. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  18514. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18515. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18516. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18517. msm_routing_get_port_mixer,
  18518. msm_routing_put_port_mixer),
  18519. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18520. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18521. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18522. msm_routing_get_port_mixer,
  18523. msm_routing_put_port_mixer),
  18524. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18525. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18526. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18527. msm_routing_get_port_mixer,
  18528. msm_routing_put_port_mixer),
  18529. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18530. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18531. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18532. msm_routing_get_port_mixer,
  18533. msm_routing_put_port_mixer),
  18534. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18535. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18536. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18537. msm_routing_get_port_mixer,
  18538. msm_routing_put_port_mixer),
  18539. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18540. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18541. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18542. msm_routing_get_port_mixer,
  18543. msm_routing_put_port_mixer),
  18544. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18545. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18546. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18547. msm_routing_get_port_mixer,
  18548. msm_routing_put_port_mixer),
  18549. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18550. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18551. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18552. msm_routing_get_port_mixer,
  18553. msm_routing_put_port_mixer),
  18554. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18555. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18556. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18557. msm_routing_get_port_mixer,
  18558. msm_routing_put_port_mixer),
  18559. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18560. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18561. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18562. msm_routing_get_port_mixer,
  18563. msm_routing_put_port_mixer),
  18564. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18565. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18566. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18567. msm_routing_get_port_mixer,
  18568. msm_routing_put_port_mixer),
  18569. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18570. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18571. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18572. msm_routing_get_port_mixer,
  18573. msm_routing_put_port_mixer),
  18574. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18575. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18576. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18577. msm_routing_get_port_mixer,
  18578. msm_routing_put_port_mixer),
  18579. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18580. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18581. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18582. msm_routing_get_port_mixer,
  18583. msm_routing_put_port_mixer),
  18584. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18585. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18586. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18587. msm_routing_get_port_mixer,
  18588. msm_routing_put_port_mixer),
  18589. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18590. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18591. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18592. msm_routing_get_port_mixer,
  18593. msm_routing_put_port_mixer),
  18594. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18595. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18596. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18597. msm_routing_get_port_mixer,
  18598. msm_routing_put_port_mixer),
  18599. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18600. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18601. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18602. msm_routing_get_port_mixer,
  18603. msm_routing_put_port_mixer),
  18604. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18605. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18606. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18607. msm_routing_get_port_mixer,
  18608. msm_routing_put_port_mixer),
  18609. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18610. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18611. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18612. msm_routing_get_port_mixer,
  18613. msm_routing_put_port_mixer),
  18614. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18615. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18616. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18617. msm_routing_get_port_mixer,
  18618. msm_routing_put_port_mixer),
  18619. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18620. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18621. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18622. msm_routing_get_port_mixer,
  18623. msm_routing_put_port_mixer),
  18624. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18625. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18626. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18627. msm_routing_get_port_mixer,
  18628. msm_routing_put_port_mixer),
  18629. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18630. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18631. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18632. msm_routing_get_port_mixer,
  18633. msm_routing_put_port_mixer),
  18634. };
  18635. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  18636. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18637. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18638. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18639. msm_routing_get_port_mixer,
  18640. msm_routing_put_port_mixer),
  18641. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18642. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18643. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18644. msm_routing_get_port_mixer,
  18645. msm_routing_put_port_mixer),
  18646. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18647. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18648. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18649. msm_routing_get_port_mixer,
  18650. msm_routing_put_port_mixer),
  18651. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18652. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18653. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18654. msm_routing_get_port_mixer,
  18655. msm_routing_put_port_mixer),
  18656. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18657. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18658. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18659. msm_routing_get_port_mixer,
  18660. msm_routing_put_port_mixer),
  18661. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18662. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18663. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18664. msm_routing_get_port_mixer,
  18665. msm_routing_put_port_mixer),
  18666. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18667. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18668. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18669. msm_routing_get_port_mixer,
  18670. msm_routing_put_port_mixer),
  18671. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18672. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18673. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18674. msm_routing_get_port_mixer,
  18675. msm_routing_put_port_mixer),
  18676. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18677. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18678. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18679. msm_routing_get_port_mixer,
  18680. msm_routing_put_port_mixer),
  18681. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18682. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18683. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18684. msm_routing_get_port_mixer,
  18685. msm_routing_put_port_mixer),
  18686. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18687. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18688. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18689. msm_routing_get_port_mixer,
  18690. msm_routing_put_port_mixer),
  18691. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18692. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18693. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18694. msm_routing_get_port_mixer,
  18695. msm_routing_put_port_mixer),
  18696. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18697. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18698. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18699. msm_routing_get_port_mixer,
  18700. msm_routing_put_port_mixer),
  18701. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18702. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18703. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18704. msm_routing_get_port_mixer,
  18705. msm_routing_put_port_mixer),
  18706. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18707. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18708. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18709. msm_routing_get_port_mixer,
  18710. msm_routing_put_port_mixer),
  18711. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18712. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18713. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18714. msm_routing_get_port_mixer,
  18715. msm_routing_put_port_mixer),
  18716. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18717. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18718. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18719. msm_routing_get_port_mixer,
  18720. msm_routing_put_port_mixer),
  18721. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18722. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18723. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18724. msm_routing_get_port_mixer,
  18725. msm_routing_put_port_mixer),
  18726. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18727. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18728. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18729. msm_routing_get_port_mixer,
  18730. msm_routing_put_port_mixer),
  18731. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18732. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18733. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18734. msm_routing_get_port_mixer,
  18735. msm_routing_put_port_mixer),
  18736. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18737. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18738. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18739. msm_routing_get_port_mixer,
  18740. msm_routing_put_port_mixer),
  18741. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18742. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18743. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18744. msm_routing_get_port_mixer,
  18745. msm_routing_put_port_mixer),
  18746. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18747. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18748. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18749. msm_routing_get_port_mixer,
  18750. msm_routing_put_port_mixer),
  18751. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18752. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18753. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18754. msm_routing_get_port_mixer,
  18755. msm_routing_put_port_mixer),
  18756. };
  18757. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  18758. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18759. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18760. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18761. msm_routing_get_port_mixer,
  18762. msm_routing_put_port_mixer),
  18763. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18764. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18765. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18766. msm_routing_get_port_mixer,
  18767. msm_routing_put_port_mixer),
  18768. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18769. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18770. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18771. msm_routing_get_port_mixer,
  18772. msm_routing_put_port_mixer),
  18773. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18774. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18775. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18776. msm_routing_get_port_mixer,
  18777. msm_routing_put_port_mixer),
  18778. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18779. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18780. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18781. msm_routing_get_port_mixer,
  18782. msm_routing_put_port_mixer),
  18783. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18784. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18785. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18786. msm_routing_get_port_mixer,
  18787. msm_routing_put_port_mixer),
  18788. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18789. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18790. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18791. msm_routing_get_port_mixer,
  18792. msm_routing_put_port_mixer),
  18793. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18794. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18795. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18796. msm_routing_get_port_mixer,
  18797. msm_routing_put_port_mixer),
  18798. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18799. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18800. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18801. msm_routing_get_port_mixer,
  18802. msm_routing_put_port_mixer),
  18803. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18804. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18805. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18806. msm_routing_get_port_mixer,
  18807. msm_routing_put_port_mixer),
  18808. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18809. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18810. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18811. msm_routing_get_port_mixer,
  18812. msm_routing_put_port_mixer),
  18813. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18814. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18815. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18816. msm_routing_get_port_mixer,
  18817. msm_routing_put_port_mixer),
  18818. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18819. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18820. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18821. msm_routing_get_port_mixer,
  18822. msm_routing_put_port_mixer),
  18823. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18824. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18825. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18826. msm_routing_get_port_mixer,
  18827. msm_routing_put_port_mixer),
  18828. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18829. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18830. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18831. msm_routing_get_port_mixer,
  18832. msm_routing_put_port_mixer),
  18833. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18834. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18835. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18836. msm_routing_get_port_mixer,
  18837. msm_routing_put_port_mixer),
  18838. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18839. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18840. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18841. msm_routing_get_port_mixer,
  18842. msm_routing_put_port_mixer),
  18843. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18844. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18845. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18846. msm_routing_get_port_mixer,
  18847. msm_routing_put_port_mixer),
  18848. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18849. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18850. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18851. msm_routing_get_port_mixer,
  18852. msm_routing_put_port_mixer),
  18853. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18854. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18855. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18856. msm_routing_get_port_mixer,
  18857. msm_routing_put_port_mixer),
  18858. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18859. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18860. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18861. msm_routing_get_port_mixer,
  18862. msm_routing_put_port_mixer),
  18863. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18864. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18865. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18866. msm_routing_get_port_mixer,
  18867. msm_routing_put_port_mixer),
  18868. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18869. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18870. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18871. msm_routing_get_port_mixer,
  18872. msm_routing_put_port_mixer),
  18873. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18874. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18875. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18876. msm_routing_get_port_mixer,
  18877. msm_routing_put_port_mixer),
  18878. };
  18879. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  18880. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18881. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18882. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18883. msm_routing_get_port_mixer,
  18884. msm_routing_put_port_mixer),
  18885. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18886. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18887. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18888. msm_routing_get_port_mixer,
  18889. msm_routing_put_port_mixer),
  18890. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18891. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18892. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18893. msm_routing_get_port_mixer,
  18894. msm_routing_put_port_mixer),
  18895. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18896. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18897. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18898. msm_routing_get_port_mixer,
  18899. msm_routing_put_port_mixer),
  18900. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18901. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18902. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18903. msm_routing_get_port_mixer,
  18904. msm_routing_put_port_mixer),
  18905. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18906. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18907. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18908. msm_routing_get_port_mixer,
  18909. msm_routing_put_port_mixer),
  18910. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18911. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18912. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18913. msm_routing_get_port_mixer,
  18914. msm_routing_put_port_mixer),
  18915. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18916. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18917. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18918. msm_routing_get_port_mixer,
  18919. msm_routing_put_port_mixer),
  18920. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18921. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18922. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18923. msm_routing_get_port_mixer,
  18924. msm_routing_put_port_mixer),
  18925. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18926. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18927. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18928. msm_routing_get_port_mixer,
  18929. msm_routing_put_port_mixer),
  18930. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18931. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18932. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18933. msm_routing_get_port_mixer,
  18934. msm_routing_put_port_mixer),
  18935. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18936. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18937. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18938. msm_routing_get_port_mixer,
  18939. msm_routing_put_port_mixer),
  18940. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18941. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18942. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18943. msm_routing_get_port_mixer,
  18944. msm_routing_put_port_mixer),
  18945. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18946. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18947. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18948. msm_routing_get_port_mixer,
  18949. msm_routing_put_port_mixer),
  18950. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18951. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18952. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18953. msm_routing_get_port_mixer,
  18954. msm_routing_put_port_mixer),
  18955. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18956. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18957. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18958. msm_routing_get_port_mixer,
  18959. msm_routing_put_port_mixer),
  18960. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18961. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18962. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18963. msm_routing_get_port_mixer,
  18964. msm_routing_put_port_mixer),
  18965. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18966. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18967. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18968. msm_routing_get_port_mixer,
  18969. msm_routing_put_port_mixer),
  18970. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18971. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18972. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18973. msm_routing_get_port_mixer,
  18974. msm_routing_put_port_mixer),
  18975. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18976. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18977. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18978. msm_routing_get_port_mixer,
  18979. msm_routing_put_port_mixer),
  18980. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18981. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18982. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18983. msm_routing_get_port_mixer,
  18984. msm_routing_put_port_mixer),
  18985. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18986. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18987. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18988. msm_routing_get_port_mixer,
  18989. msm_routing_put_port_mixer),
  18990. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18991. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18992. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18993. msm_routing_get_port_mixer,
  18994. msm_routing_put_port_mixer),
  18995. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18996. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18997. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18998. msm_routing_get_port_mixer,
  18999. msm_routing_put_port_mixer),
  19000. };
  19001. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  19002. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19003. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19004. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19005. msm_routing_get_port_mixer,
  19006. msm_routing_put_port_mixer),
  19007. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19008. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19009. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19010. msm_routing_get_port_mixer,
  19011. msm_routing_put_port_mixer),
  19012. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19013. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19014. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19015. msm_routing_get_port_mixer,
  19016. msm_routing_put_port_mixer),
  19017. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19018. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19019. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19020. msm_routing_get_port_mixer,
  19021. msm_routing_put_port_mixer),
  19022. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19023. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19024. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19025. msm_routing_get_port_mixer,
  19026. msm_routing_put_port_mixer),
  19027. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19028. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19029. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19030. msm_routing_get_port_mixer,
  19031. msm_routing_put_port_mixer),
  19032. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19033. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19034. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19035. msm_routing_get_port_mixer,
  19036. msm_routing_put_port_mixer),
  19037. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19038. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19039. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19040. msm_routing_get_port_mixer,
  19041. msm_routing_put_port_mixer),
  19042. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  19043. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19044. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  19045. msm_routing_get_port_mixer,
  19046. msm_routing_put_port_mixer),
  19047. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  19048. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19049. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  19050. msm_routing_get_port_mixer,
  19051. msm_routing_put_port_mixer),
  19052. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  19053. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19054. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  19055. msm_routing_get_port_mixer,
  19056. msm_routing_put_port_mixer),
  19057. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  19058. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19059. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  19060. msm_routing_get_port_mixer,
  19061. msm_routing_put_port_mixer),
  19062. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19063. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19064. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19065. msm_routing_get_port_mixer,
  19066. msm_routing_put_port_mixer),
  19067. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19068. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19069. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19070. msm_routing_get_port_mixer,
  19071. msm_routing_put_port_mixer),
  19072. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19073. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19074. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19075. msm_routing_get_port_mixer,
  19076. msm_routing_put_port_mixer),
  19077. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19078. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19079. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19080. msm_routing_get_port_mixer,
  19081. msm_routing_put_port_mixer),
  19082. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19083. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19084. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19085. msm_routing_get_port_mixer,
  19086. msm_routing_put_port_mixer),
  19087. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19088. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19089. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19090. msm_routing_get_port_mixer,
  19091. msm_routing_put_port_mixer),
  19092. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19093. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19094. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19095. msm_routing_get_port_mixer,
  19096. msm_routing_put_port_mixer),
  19097. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19098. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19099. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19100. msm_routing_get_port_mixer,
  19101. msm_routing_put_port_mixer),
  19102. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19103. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19104. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19105. msm_routing_get_port_mixer,
  19106. msm_routing_put_port_mixer),
  19107. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19108. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19109. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19110. msm_routing_get_port_mixer,
  19111. msm_routing_put_port_mixer),
  19112. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19113. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19114. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19115. msm_routing_get_port_mixer,
  19116. msm_routing_put_port_mixer),
  19117. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19118. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19119. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19120. msm_routing_get_port_mixer,
  19121. msm_routing_put_port_mixer),
  19122. };
  19123. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  19124. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19125. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19126. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19127. msm_routing_get_port_mixer,
  19128. msm_routing_put_port_mixer),
  19129. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19130. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19131. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19132. msm_routing_get_port_mixer,
  19133. msm_routing_put_port_mixer),
  19134. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19135. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19136. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19137. msm_routing_get_port_mixer,
  19138. msm_routing_put_port_mixer),
  19139. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19140. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19141. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19142. msm_routing_get_port_mixer,
  19143. msm_routing_put_port_mixer),
  19144. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19145. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19146. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19147. msm_routing_get_port_mixer,
  19148. msm_routing_put_port_mixer),
  19149. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19150. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19151. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19152. msm_routing_get_port_mixer,
  19153. msm_routing_put_port_mixer),
  19154. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19155. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19156. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19157. msm_routing_get_port_mixer,
  19158. msm_routing_put_port_mixer),
  19159. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19160. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19161. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19162. msm_routing_get_port_mixer,
  19163. msm_routing_put_port_mixer),
  19164. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  19165. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19166. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  19167. msm_routing_get_port_mixer,
  19168. msm_routing_put_port_mixer),
  19169. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  19170. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19171. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  19172. msm_routing_get_port_mixer,
  19173. msm_routing_put_port_mixer),
  19174. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  19175. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19176. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  19177. msm_routing_get_port_mixer,
  19178. msm_routing_put_port_mixer),
  19179. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  19180. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19181. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  19182. msm_routing_get_port_mixer,
  19183. msm_routing_put_port_mixer),
  19184. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19185. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19186. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19187. msm_routing_get_port_mixer,
  19188. msm_routing_put_port_mixer),
  19189. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19190. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19191. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19192. msm_routing_get_port_mixer,
  19193. msm_routing_put_port_mixer),
  19194. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19195. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19196. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19197. msm_routing_get_port_mixer,
  19198. msm_routing_put_port_mixer),
  19199. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19200. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19201. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19202. msm_routing_get_port_mixer,
  19203. msm_routing_put_port_mixer),
  19204. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19205. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19206. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19207. msm_routing_get_port_mixer,
  19208. msm_routing_put_port_mixer),
  19209. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19210. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19211. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19212. msm_routing_get_port_mixer,
  19213. msm_routing_put_port_mixer),
  19214. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19215. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19216. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19217. msm_routing_get_port_mixer,
  19218. msm_routing_put_port_mixer),
  19219. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19220. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19221. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19222. msm_routing_get_port_mixer,
  19223. msm_routing_put_port_mixer),
  19224. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19225. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19226. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19227. msm_routing_get_port_mixer,
  19228. msm_routing_put_port_mixer),
  19229. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19230. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19231. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19232. msm_routing_get_port_mixer,
  19233. msm_routing_put_port_mixer),
  19234. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19235. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19236. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19237. msm_routing_get_port_mixer,
  19238. msm_routing_put_port_mixer),
  19239. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19240. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19241. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19242. msm_routing_get_port_mixer,
  19243. msm_routing_put_port_mixer),
  19244. };
  19245. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  19246. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  19247. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  19248. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  19249. msm_routing_get_port_mixer,
  19250. msm_routing_put_port_mixer),
  19251. };
  19252. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  19253. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19254. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19255. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19256. msm_routing_get_port_mixer,
  19257. msm_routing_put_port_mixer),
  19258. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19259. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19260. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19261. msm_routing_get_port_mixer,
  19262. msm_routing_put_port_mixer),
  19263. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19264. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19265. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19266. msm_routing_get_port_mixer,
  19267. msm_routing_put_port_mixer),
  19268. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19269. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19270. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19271. msm_routing_get_port_mixer,
  19272. msm_routing_put_port_mixer),
  19273. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19274. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19275. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19276. msm_routing_get_port_mixer,
  19277. msm_routing_put_port_mixer),
  19278. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19279. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19280. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19281. msm_routing_get_port_mixer,
  19282. msm_routing_put_port_mixer),
  19283. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19284. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19285. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19286. msm_routing_get_port_mixer,
  19287. msm_routing_put_port_mixer),
  19288. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19289. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19290. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19291. msm_routing_get_port_mixer,
  19292. msm_routing_put_port_mixer),
  19293. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19294. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19295. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19296. msm_routing_get_port_mixer,
  19297. msm_routing_put_port_mixer),
  19298. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19299. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19300. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19301. msm_routing_get_port_mixer,
  19302. msm_routing_put_port_mixer),
  19303. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19304. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19305. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19306. msm_routing_get_port_mixer,
  19307. msm_routing_put_port_mixer),
  19308. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19309. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19310. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19311. msm_routing_get_port_mixer,
  19312. msm_routing_put_port_mixer),
  19313. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19314. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19315. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19316. msm_routing_get_port_mixer,
  19317. msm_routing_put_port_mixer),
  19318. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19319. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19320. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19321. msm_routing_get_port_mixer,
  19322. msm_routing_put_port_mixer),
  19323. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19324. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19325. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19326. msm_routing_get_port_mixer,
  19327. msm_routing_put_port_mixer),
  19328. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19329. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19330. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19331. msm_routing_get_port_mixer,
  19332. msm_routing_put_port_mixer),
  19333. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19334. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19335. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19336. msm_routing_get_port_mixer,
  19337. msm_routing_put_port_mixer),
  19338. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19339. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19340. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19341. msm_routing_get_port_mixer,
  19342. msm_routing_put_port_mixer),
  19343. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19344. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19345. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19346. msm_routing_get_port_mixer,
  19347. msm_routing_put_port_mixer),
  19348. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19349. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19350. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19351. msm_routing_get_port_mixer,
  19352. msm_routing_put_port_mixer),
  19353. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19354. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19355. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19356. msm_routing_get_port_mixer,
  19357. msm_routing_put_port_mixer),
  19358. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19359. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19360. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19361. msm_routing_get_port_mixer,
  19362. msm_routing_put_port_mixer),
  19363. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19364. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19365. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19366. msm_routing_get_port_mixer,
  19367. msm_routing_put_port_mixer),
  19368. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19369. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19370. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19371. msm_routing_get_port_mixer,
  19372. msm_routing_put_port_mixer),
  19373. };
  19374. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  19375. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19376. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19377. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19378. msm_routing_get_port_mixer,
  19379. msm_routing_put_port_mixer),
  19380. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19381. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19382. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19383. msm_routing_get_port_mixer,
  19384. msm_routing_put_port_mixer),
  19385. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19386. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19387. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19388. msm_routing_get_port_mixer,
  19389. msm_routing_put_port_mixer),
  19390. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19391. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19392. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19393. msm_routing_get_port_mixer,
  19394. msm_routing_put_port_mixer),
  19395. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19396. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19397. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19398. msm_routing_get_port_mixer,
  19399. msm_routing_put_port_mixer),
  19400. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19401. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19402. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19403. msm_routing_get_port_mixer,
  19404. msm_routing_put_port_mixer),
  19405. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19406. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19407. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19408. msm_routing_get_port_mixer,
  19409. msm_routing_put_port_mixer),
  19410. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19411. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19412. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19413. msm_routing_get_port_mixer,
  19414. msm_routing_put_port_mixer),
  19415. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19416. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19417. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19418. msm_routing_get_port_mixer,
  19419. msm_routing_put_port_mixer),
  19420. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19421. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19422. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19423. msm_routing_get_port_mixer,
  19424. msm_routing_put_port_mixer),
  19425. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19426. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19427. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19428. msm_routing_get_port_mixer,
  19429. msm_routing_put_port_mixer),
  19430. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19431. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19432. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19433. msm_routing_get_port_mixer,
  19434. msm_routing_put_port_mixer),
  19435. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19436. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19437. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19438. msm_routing_get_port_mixer,
  19439. msm_routing_put_port_mixer),
  19440. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19441. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19442. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19443. msm_routing_get_port_mixer,
  19444. msm_routing_put_port_mixer),
  19445. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19446. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19447. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19448. msm_routing_get_port_mixer,
  19449. msm_routing_put_port_mixer),
  19450. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19451. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19452. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19453. msm_routing_get_port_mixer,
  19454. msm_routing_put_port_mixer),
  19455. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19456. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19457. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19458. msm_routing_get_port_mixer,
  19459. msm_routing_put_port_mixer),
  19460. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19461. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19462. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19463. msm_routing_get_port_mixer,
  19464. msm_routing_put_port_mixer),
  19465. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19466. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19467. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19468. msm_routing_get_port_mixer,
  19469. msm_routing_put_port_mixer),
  19470. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19471. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19472. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19473. msm_routing_get_port_mixer,
  19474. msm_routing_put_port_mixer),
  19475. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19476. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19477. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19478. msm_routing_get_port_mixer,
  19479. msm_routing_put_port_mixer),
  19480. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19481. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19482. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19483. msm_routing_get_port_mixer,
  19484. msm_routing_put_port_mixer),
  19485. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19486. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19487. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19488. msm_routing_get_port_mixer,
  19489. msm_routing_put_port_mixer),
  19490. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19491. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19492. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19493. msm_routing_get_port_mixer,
  19494. msm_routing_put_port_mixer),
  19495. };
  19496. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  19497. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19498. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19499. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19500. msm_routing_get_port_mixer,
  19501. msm_routing_put_port_mixer),
  19502. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19503. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19504. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19505. msm_routing_get_port_mixer,
  19506. msm_routing_put_port_mixer),
  19507. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19508. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19509. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19510. msm_routing_get_port_mixer,
  19511. msm_routing_put_port_mixer),
  19512. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19513. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19514. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19515. msm_routing_get_port_mixer,
  19516. msm_routing_put_port_mixer),
  19517. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19518. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19519. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19520. msm_routing_get_port_mixer,
  19521. msm_routing_put_port_mixer),
  19522. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19523. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19524. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19525. msm_routing_get_port_mixer,
  19526. msm_routing_put_port_mixer),
  19527. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19528. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19529. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19530. msm_routing_get_port_mixer,
  19531. msm_routing_put_port_mixer),
  19532. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19533. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19534. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19535. msm_routing_get_port_mixer,
  19536. msm_routing_put_port_mixer),
  19537. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19538. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19539. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19540. msm_routing_get_port_mixer,
  19541. msm_routing_put_port_mixer),
  19542. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19543. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19544. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19545. msm_routing_get_port_mixer,
  19546. msm_routing_put_port_mixer),
  19547. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19548. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19549. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19550. msm_routing_get_port_mixer,
  19551. msm_routing_put_port_mixer),
  19552. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19553. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19554. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19555. msm_routing_get_port_mixer,
  19556. msm_routing_put_port_mixer),
  19557. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19558. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19559. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19560. msm_routing_get_port_mixer,
  19561. msm_routing_put_port_mixer),
  19562. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19563. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19564. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19565. msm_routing_get_port_mixer,
  19566. msm_routing_put_port_mixer),
  19567. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19568. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19569. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19570. msm_routing_get_port_mixer,
  19571. msm_routing_put_port_mixer),
  19572. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19573. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19574. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19575. msm_routing_get_port_mixer,
  19576. msm_routing_put_port_mixer),
  19577. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19578. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19579. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19580. msm_routing_get_port_mixer,
  19581. msm_routing_put_port_mixer),
  19582. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19583. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19584. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19585. msm_routing_get_port_mixer,
  19586. msm_routing_put_port_mixer),
  19587. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19588. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19589. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19590. msm_routing_get_port_mixer,
  19591. msm_routing_put_port_mixer),
  19592. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19593. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19594. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19595. msm_routing_get_port_mixer,
  19596. msm_routing_put_port_mixer),
  19597. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19598. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19599. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19600. msm_routing_get_port_mixer,
  19601. msm_routing_put_port_mixer),
  19602. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19603. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19604. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19605. msm_routing_get_port_mixer,
  19606. msm_routing_put_port_mixer),
  19607. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19608. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19609. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19610. msm_routing_get_port_mixer,
  19611. msm_routing_put_port_mixer),
  19612. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19613. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19614. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19615. msm_routing_get_port_mixer,
  19616. msm_routing_put_port_mixer),
  19617. };
  19618. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  19619. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19620. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19621. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19622. msm_routing_get_port_mixer,
  19623. msm_routing_put_port_mixer),
  19624. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19625. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19626. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19627. msm_routing_get_port_mixer,
  19628. msm_routing_put_port_mixer),
  19629. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19630. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19631. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19632. msm_routing_get_port_mixer,
  19633. msm_routing_put_port_mixer),
  19634. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19635. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19636. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19637. msm_routing_get_port_mixer,
  19638. msm_routing_put_port_mixer),
  19639. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19640. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19641. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19642. msm_routing_get_port_mixer,
  19643. msm_routing_put_port_mixer),
  19644. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19645. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19646. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19647. msm_routing_get_port_mixer,
  19648. msm_routing_put_port_mixer),
  19649. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19650. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19651. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19652. msm_routing_get_port_mixer,
  19653. msm_routing_put_port_mixer),
  19654. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19655. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19656. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19657. msm_routing_get_port_mixer,
  19658. msm_routing_put_port_mixer),
  19659. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19660. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19661. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19662. msm_routing_get_port_mixer,
  19663. msm_routing_put_port_mixer),
  19664. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19665. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19666. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19667. msm_routing_get_port_mixer,
  19668. msm_routing_put_port_mixer),
  19669. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19670. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19671. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19672. msm_routing_get_port_mixer,
  19673. msm_routing_put_port_mixer),
  19674. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19675. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19676. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19677. msm_routing_get_port_mixer,
  19678. msm_routing_put_port_mixer),
  19679. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19680. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19681. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19682. msm_routing_get_port_mixer,
  19683. msm_routing_put_port_mixer),
  19684. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19685. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19686. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19687. msm_routing_get_port_mixer,
  19688. msm_routing_put_port_mixer),
  19689. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19690. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19691. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19692. msm_routing_get_port_mixer,
  19693. msm_routing_put_port_mixer),
  19694. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19695. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19696. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19697. msm_routing_get_port_mixer,
  19698. msm_routing_put_port_mixer),
  19699. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19700. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19701. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19702. msm_routing_get_port_mixer,
  19703. msm_routing_put_port_mixer),
  19704. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19705. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19706. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19707. msm_routing_get_port_mixer,
  19708. msm_routing_put_port_mixer),
  19709. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19710. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19711. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19712. msm_routing_get_port_mixer,
  19713. msm_routing_put_port_mixer),
  19714. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19715. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19716. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19717. msm_routing_get_port_mixer,
  19718. msm_routing_put_port_mixer),
  19719. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19720. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19721. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19722. msm_routing_get_port_mixer,
  19723. msm_routing_put_port_mixer),
  19724. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19725. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19726. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19727. msm_routing_get_port_mixer,
  19728. msm_routing_put_port_mixer),
  19729. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19730. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19731. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19732. msm_routing_get_port_mixer,
  19733. msm_routing_put_port_mixer),
  19734. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19735. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19736. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19737. msm_routing_get_port_mixer,
  19738. msm_routing_put_port_mixer),
  19739. };
  19740. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  19741. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19742. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19743. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19744. msm_routing_get_port_mixer,
  19745. msm_routing_put_port_mixer),
  19746. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19747. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19748. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19749. msm_routing_get_port_mixer,
  19750. msm_routing_put_port_mixer),
  19751. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19752. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19753. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19754. msm_routing_get_port_mixer,
  19755. msm_routing_put_port_mixer),
  19756. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19757. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19758. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19759. msm_routing_get_port_mixer,
  19760. msm_routing_put_port_mixer),
  19761. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19762. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19763. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19764. msm_routing_get_port_mixer,
  19765. msm_routing_put_port_mixer),
  19766. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19767. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19768. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19769. msm_routing_get_port_mixer,
  19770. msm_routing_put_port_mixer),
  19771. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19772. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19773. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19774. msm_routing_get_port_mixer,
  19775. msm_routing_put_port_mixer),
  19776. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19777. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19778. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19779. msm_routing_get_port_mixer,
  19780. msm_routing_put_port_mixer),
  19781. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19782. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19783. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19784. msm_routing_get_port_mixer,
  19785. msm_routing_put_port_mixer),
  19786. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19787. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19788. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19789. msm_routing_get_port_mixer,
  19790. msm_routing_put_port_mixer),
  19791. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19792. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19793. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19794. msm_routing_get_port_mixer,
  19795. msm_routing_put_port_mixer),
  19796. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19797. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19798. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19799. msm_routing_get_port_mixer,
  19800. msm_routing_put_port_mixer),
  19801. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19802. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19803. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19804. msm_routing_get_port_mixer,
  19805. msm_routing_put_port_mixer),
  19806. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19807. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19808. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19809. msm_routing_get_port_mixer,
  19810. msm_routing_put_port_mixer),
  19811. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19812. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19813. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19814. msm_routing_get_port_mixer,
  19815. msm_routing_put_port_mixer),
  19816. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19817. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19818. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19819. msm_routing_get_port_mixer,
  19820. msm_routing_put_port_mixer),
  19821. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19822. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19823. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19824. msm_routing_get_port_mixer,
  19825. msm_routing_put_port_mixer),
  19826. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19827. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19828. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19829. msm_routing_get_port_mixer,
  19830. msm_routing_put_port_mixer),
  19831. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19832. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19833. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19834. msm_routing_get_port_mixer,
  19835. msm_routing_put_port_mixer),
  19836. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19837. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19838. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19839. msm_routing_get_port_mixer,
  19840. msm_routing_put_port_mixer),
  19841. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19842. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19843. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19844. msm_routing_get_port_mixer,
  19845. msm_routing_put_port_mixer),
  19846. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19847. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19848. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19849. msm_routing_get_port_mixer,
  19850. msm_routing_put_port_mixer),
  19851. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19852. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19853. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19854. msm_routing_get_port_mixer,
  19855. msm_routing_put_port_mixer),
  19856. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19857. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19858. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19859. msm_routing_get_port_mixer,
  19860. msm_routing_put_port_mixer),
  19861. };
  19862. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  19863. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19864. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19865. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19866. msm_routing_get_port_mixer,
  19867. msm_routing_put_port_mixer),
  19868. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19869. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19870. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19871. msm_routing_get_port_mixer,
  19872. msm_routing_put_port_mixer),
  19873. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19874. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19875. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19876. msm_routing_get_port_mixer,
  19877. msm_routing_put_port_mixer),
  19878. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19879. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19880. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19881. msm_routing_get_port_mixer,
  19882. msm_routing_put_port_mixer),
  19883. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19884. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19885. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19886. msm_routing_get_port_mixer,
  19887. msm_routing_put_port_mixer),
  19888. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19889. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19890. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19891. msm_routing_get_port_mixer,
  19892. msm_routing_put_port_mixer),
  19893. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19894. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19895. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19896. msm_routing_get_port_mixer,
  19897. msm_routing_put_port_mixer),
  19898. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19899. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19900. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19901. msm_routing_get_port_mixer,
  19902. msm_routing_put_port_mixer),
  19903. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19904. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19905. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19906. msm_routing_get_port_mixer,
  19907. msm_routing_put_port_mixer),
  19908. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19909. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19910. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19911. msm_routing_get_port_mixer,
  19912. msm_routing_put_port_mixer),
  19913. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19914. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19915. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19916. msm_routing_get_port_mixer,
  19917. msm_routing_put_port_mixer),
  19918. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19919. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19920. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19921. msm_routing_get_port_mixer,
  19922. msm_routing_put_port_mixer),
  19923. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19924. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19925. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19926. msm_routing_get_port_mixer,
  19927. msm_routing_put_port_mixer),
  19928. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19929. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19930. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19931. msm_routing_get_port_mixer,
  19932. msm_routing_put_port_mixer),
  19933. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19934. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19935. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19936. msm_routing_get_port_mixer,
  19937. msm_routing_put_port_mixer),
  19938. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19939. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19940. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19941. msm_routing_get_port_mixer,
  19942. msm_routing_put_port_mixer),
  19943. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19944. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19945. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19946. msm_routing_get_port_mixer,
  19947. msm_routing_put_port_mixer),
  19948. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19949. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19950. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19951. msm_routing_get_port_mixer,
  19952. msm_routing_put_port_mixer),
  19953. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19954. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19955. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19956. msm_routing_get_port_mixer,
  19957. msm_routing_put_port_mixer),
  19958. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19959. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19960. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19961. msm_routing_get_port_mixer,
  19962. msm_routing_put_port_mixer),
  19963. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19964. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19965. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19966. msm_routing_get_port_mixer,
  19967. msm_routing_put_port_mixer),
  19968. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19969. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19970. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19971. msm_routing_get_port_mixer,
  19972. msm_routing_put_port_mixer),
  19973. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19974. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19975. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19976. msm_routing_get_port_mixer,
  19977. msm_routing_put_port_mixer),
  19978. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19979. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19980. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19981. msm_routing_get_port_mixer,
  19982. msm_routing_put_port_mixer),
  19983. };
  19984. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  19985. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19986. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19987. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19988. msm_routing_get_port_mixer,
  19989. msm_routing_put_port_mixer),
  19990. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19991. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19992. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19993. msm_routing_get_port_mixer,
  19994. msm_routing_put_port_mixer),
  19995. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19996. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19997. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19998. msm_routing_get_port_mixer,
  19999. msm_routing_put_port_mixer),
  20000. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20001. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20002. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20003. msm_routing_get_port_mixer,
  20004. msm_routing_put_port_mixer),
  20005. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20006. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20007. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20008. msm_routing_get_port_mixer,
  20009. msm_routing_put_port_mixer),
  20010. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20011. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20012. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20013. msm_routing_get_port_mixer,
  20014. msm_routing_put_port_mixer),
  20015. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20016. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20017. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20018. msm_routing_get_port_mixer,
  20019. msm_routing_put_port_mixer),
  20020. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20021. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20022. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20023. msm_routing_get_port_mixer,
  20024. msm_routing_put_port_mixer),
  20025. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20026. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20027. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20028. msm_routing_get_port_mixer,
  20029. msm_routing_put_port_mixer),
  20030. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20031. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20032. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20033. msm_routing_get_port_mixer,
  20034. msm_routing_put_port_mixer),
  20035. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20036. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20037. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20038. msm_routing_get_port_mixer,
  20039. msm_routing_put_port_mixer),
  20040. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20041. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20042. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20043. msm_routing_get_port_mixer,
  20044. msm_routing_put_port_mixer),
  20045. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20046. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20047. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20048. msm_routing_get_port_mixer,
  20049. msm_routing_put_port_mixer),
  20050. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20051. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20052. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20053. msm_routing_get_port_mixer,
  20054. msm_routing_put_port_mixer),
  20055. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20056. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20057. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20058. msm_routing_get_port_mixer,
  20059. msm_routing_put_port_mixer),
  20060. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20061. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20062. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20063. msm_routing_get_port_mixer,
  20064. msm_routing_put_port_mixer),
  20065. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20066. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20067. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20068. msm_routing_get_port_mixer,
  20069. msm_routing_put_port_mixer),
  20070. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20071. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20072. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20073. msm_routing_get_port_mixer,
  20074. msm_routing_put_port_mixer),
  20075. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20076. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20077. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20078. msm_routing_get_port_mixer,
  20079. msm_routing_put_port_mixer),
  20080. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20081. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20082. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20083. msm_routing_get_port_mixer,
  20084. msm_routing_put_port_mixer),
  20085. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20086. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20087. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20088. msm_routing_get_port_mixer,
  20089. msm_routing_put_port_mixer),
  20090. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20091. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20092. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20093. msm_routing_get_port_mixer,
  20094. msm_routing_put_port_mixer),
  20095. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20096. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20097. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20098. msm_routing_get_port_mixer,
  20099. msm_routing_put_port_mixer),
  20100. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20101. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20102. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20103. msm_routing_get_port_mixer,
  20104. msm_routing_put_port_mixer),
  20105. };
  20106. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  20107. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20108. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20109. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20110. msm_routing_get_port_mixer,
  20111. msm_routing_put_port_mixer),
  20112. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20113. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20114. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20115. msm_routing_get_port_mixer,
  20116. msm_routing_put_port_mixer),
  20117. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20118. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20119. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20120. msm_routing_get_port_mixer,
  20121. msm_routing_put_port_mixer),
  20122. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20123. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20124. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20125. msm_routing_get_port_mixer,
  20126. msm_routing_put_port_mixer),
  20127. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20128. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20129. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20130. msm_routing_get_port_mixer,
  20131. msm_routing_put_port_mixer),
  20132. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20133. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20134. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20135. msm_routing_get_port_mixer,
  20136. msm_routing_put_port_mixer),
  20137. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20138. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20139. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20140. msm_routing_get_port_mixer,
  20141. msm_routing_put_port_mixer),
  20142. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20143. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20144. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20145. msm_routing_get_port_mixer,
  20146. msm_routing_put_port_mixer),
  20147. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20148. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20149. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20150. msm_routing_get_port_mixer,
  20151. msm_routing_put_port_mixer),
  20152. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20153. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20154. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20155. msm_routing_get_port_mixer,
  20156. msm_routing_put_port_mixer),
  20157. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20158. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20159. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20160. msm_routing_get_port_mixer,
  20161. msm_routing_put_port_mixer),
  20162. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20163. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20164. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20165. msm_routing_get_port_mixer,
  20166. msm_routing_put_port_mixer),
  20167. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20168. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20169. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20170. msm_routing_get_port_mixer,
  20171. msm_routing_put_port_mixer),
  20172. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20173. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20174. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20175. msm_routing_get_port_mixer,
  20176. msm_routing_put_port_mixer),
  20177. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20178. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20179. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20180. msm_routing_get_port_mixer,
  20181. msm_routing_put_port_mixer),
  20182. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20183. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20184. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20185. msm_routing_get_port_mixer,
  20186. msm_routing_put_port_mixer),
  20187. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20188. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20189. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20190. msm_routing_get_port_mixer,
  20191. msm_routing_put_port_mixer),
  20192. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20193. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20194. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20195. msm_routing_get_port_mixer,
  20196. msm_routing_put_port_mixer),
  20197. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20198. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20199. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20200. msm_routing_get_port_mixer,
  20201. msm_routing_put_port_mixer),
  20202. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20203. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20204. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20205. msm_routing_get_port_mixer,
  20206. msm_routing_put_port_mixer),
  20207. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20208. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20209. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20210. msm_routing_get_port_mixer,
  20211. msm_routing_put_port_mixer),
  20212. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20213. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20214. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20215. msm_routing_get_port_mixer,
  20216. msm_routing_put_port_mixer),
  20217. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20218. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20219. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20220. msm_routing_get_port_mixer,
  20221. msm_routing_put_port_mixer),
  20222. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20223. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20224. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20225. msm_routing_get_port_mixer,
  20226. msm_routing_put_port_mixer),
  20227. };
  20228. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  20229. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  20230. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  20231. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  20232. msm_routing_get_port_mixer,
  20233. msm_routing_put_port_mixer),
  20234. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  20235. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  20236. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  20237. msm_routing_get_port_mixer,
  20238. msm_routing_put_port_mixer),
  20239. };
  20240. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  20241. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20242. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20243. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20244. msm_routing_get_port_mixer,
  20245. msm_routing_put_port_mixer),
  20246. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20247. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20248. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20249. msm_routing_get_port_mixer,
  20250. msm_routing_put_port_mixer),
  20251. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20252. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20253. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20254. msm_routing_get_port_mixer,
  20255. msm_routing_put_port_mixer),
  20256. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20257. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20258. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20259. msm_routing_get_port_mixer,
  20260. msm_routing_put_port_mixer),
  20261. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20262. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20263. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20264. msm_routing_get_port_mixer,
  20265. msm_routing_put_port_mixer),
  20266. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20267. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20268. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20269. msm_routing_get_port_mixer,
  20270. msm_routing_put_port_mixer),
  20271. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20272. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20273. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20274. msm_routing_get_port_mixer,
  20275. msm_routing_put_port_mixer),
  20276. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20277. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20278. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20279. msm_routing_get_port_mixer,
  20280. msm_routing_put_port_mixer),
  20281. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20282. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20283. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20284. msm_routing_get_port_mixer,
  20285. msm_routing_put_port_mixer),
  20286. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20287. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20288. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20289. msm_routing_get_port_mixer,
  20290. msm_routing_put_port_mixer),
  20291. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20292. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20293. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20294. msm_routing_get_port_mixer,
  20295. msm_routing_put_port_mixer),
  20296. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20297. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20298. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20299. msm_routing_get_port_mixer,
  20300. msm_routing_put_port_mixer),
  20301. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20302. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20303. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20304. msm_routing_get_port_mixer,
  20305. msm_routing_put_port_mixer),
  20306. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20307. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20308. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20309. msm_routing_get_port_mixer,
  20310. msm_routing_put_port_mixer),
  20311. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20312. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20313. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20314. msm_routing_get_port_mixer,
  20315. msm_routing_put_port_mixer),
  20316. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20317. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20318. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20319. msm_routing_get_port_mixer,
  20320. msm_routing_put_port_mixer),
  20321. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20322. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20323. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20324. msm_routing_get_port_mixer,
  20325. msm_routing_put_port_mixer),
  20326. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20327. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20328. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20329. msm_routing_get_port_mixer,
  20330. msm_routing_put_port_mixer),
  20331. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20332. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20333. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20334. msm_routing_get_port_mixer,
  20335. msm_routing_put_port_mixer),
  20336. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20337. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20338. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20339. msm_routing_get_port_mixer,
  20340. msm_routing_put_port_mixer),
  20341. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20342. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20343. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20344. msm_routing_get_port_mixer,
  20345. msm_routing_put_port_mixer),
  20346. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20347. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20348. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20349. msm_routing_get_port_mixer,
  20350. msm_routing_put_port_mixer),
  20351. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20352. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20353. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20354. msm_routing_get_port_mixer,
  20355. msm_routing_put_port_mixer),
  20356. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20357. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20358. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20359. msm_routing_get_port_mixer,
  20360. msm_routing_put_port_mixer),
  20361. };
  20362. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  20363. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20364. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20365. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20366. msm_routing_get_port_mixer,
  20367. msm_routing_put_port_mixer),
  20368. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20369. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20370. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20371. msm_routing_get_port_mixer,
  20372. msm_routing_put_port_mixer),
  20373. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20374. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20375. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20376. msm_routing_get_port_mixer,
  20377. msm_routing_put_port_mixer),
  20378. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20379. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20380. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20381. msm_routing_get_port_mixer,
  20382. msm_routing_put_port_mixer),
  20383. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20384. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20385. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20386. msm_routing_get_port_mixer,
  20387. msm_routing_put_port_mixer),
  20388. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20389. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20390. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20391. msm_routing_get_port_mixer,
  20392. msm_routing_put_port_mixer),
  20393. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20394. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20395. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20396. msm_routing_get_port_mixer,
  20397. msm_routing_put_port_mixer),
  20398. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20399. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20400. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20401. msm_routing_get_port_mixer,
  20402. msm_routing_put_port_mixer),
  20403. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20404. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20405. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20406. msm_routing_get_port_mixer,
  20407. msm_routing_put_port_mixer),
  20408. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20409. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20410. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20411. msm_routing_get_port_mixer,
  20412. msm_routing_put_port_mixer),
  20413. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20414. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20415. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20416. msm_routing_get_port_mixer,
  20417. msm_routing_put_port_mixer),
  20418. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20419. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20420. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20421. msm_routing_get_port_mixer,
  20422. msm_routing_put_port_mixer),
  20423. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20424. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20425. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20426. msm_routing_get_port_mixer,
  20427. msm_routing_put_port_mixer),
  20428. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20429. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20430. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20431. msm_routing_get_port_mixer,
  20432. msm_routing_put_port_mixer),
  20433. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20434. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20435. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20436. msm_routing_get_port_mixer,
  20437. msm_routing_put_port_mixer),
  20438. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20439. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20440. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20441. msm_routing_get_port_mixer,
  20442. msm_routing_put_port_mixer),
  20443. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20444. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20445. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20446. msm_routing_get_port_mixer,
  20447. msm_routing_put_port_mixer),
  20448. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20449. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20450. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20451. msm_routing_get_port_mixer,
  20452. msm_routing_put_port_mixer),
  20453. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20454. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20455. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20456. msm_routing_get_port_mixer,
  20457. msm_routing_put_port_mixer),
  20458. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20459. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20460. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20461. msm_routing_get_port_mixer,
  20462. msm_routing_put_port_mixer),
  20463. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20464. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20465. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20466. msm_routing_get_port_mixer,
  20467. msm_routing_put_port_mixer),
  20468. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20469. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20470. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20471. msm_routing_get_port_mixer,
  20472. msm_routing_put_port_mixer),
  20473. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20474. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20475. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20476. msm_routing_get_port_mixer,
  20477. msm_routing_put_port_mixer),
  20478. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20479. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20480. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20481. msm_routing_get_port_mixer,
  20482. msm_routing_put_port_mixer),
  20483. };
  20484. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  20485. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20486. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20487. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20488. msm_routing_get_port_mixer,
  20489. msm_routing_put_port_mixer),
  20490. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20491. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20492. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20493. msm_routing_get_port_mixer,
  20494. msm_routing_put_port_mixer),
  20495. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20496. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20497. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20498. msm_routing_get_port_mixer,
  20499. msm_routing_put_port_mixer),
  20500. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20501. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20502. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20503. msm_routing_get_port_mixer,
  20504. msm_routing_put_port_mixer),
  20505. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20506. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20507. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20508. msm_routing_get_port_mixer,
  20509. msm_routing_put_port_mixer),
  20510. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20511. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20512. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20513. msm_routing_get_port_mixer,
  20514. msm_routing_put_port_mixer),
  20515. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20516. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20517. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20518. msm_routing_get_port_mixer,
  20519. msm_routing_put_port_mixer),
  20520. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20521. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20522. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20523. msm_routing_get_port_mixer,
  20524. msm_routing_put_port_mixer),
  20525. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20526. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20527. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20528. msm_routing_get_port_mixer,
  20529. msm_routing_put_port_mixer),
  20530. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20531. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20532. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20533. msm_routing_get_port_mixer,
  20534. msm_routing_put_port_mixer),
  20535. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20536. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20537. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20538. msm_routing_get_port_mixer,
  20539. msm_routing_put_port_mixer),
  20540. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20541. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20542. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20543. msm_routing_get_port_mixer,
  20544. msm_routing_put_port_mixer),
  20545. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20546. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20547. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20548. msm_routing_get_port_mixer,
  20549. msm_routing_put_port_mixer),
  20550. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20551. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20552. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20553. msm_routing_get_port_mixer,
  20554. msm_routing_put_port_mixer),
  20555. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20556. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20557. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20558. msm_routing_get_port_mixer,
  20559. msm_routing_put_port_mixer),
  20560. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20561. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20562. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20563. msm_routing_get_port_mixer,
  20564. msm_routing_put_port_mixer),
  20565. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20566. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20567. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20568. msm_routing_get_port_mixer,
  20569. msm_routing_put_port_mixer),
  20570. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20571. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20572. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20573. msm_routing_get_port_mixer,
  20574. msm_routing_put_port_mixer),
  20575. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20576. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20577. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20578. msm_routing_get_port_mixer,
  20579. msm_routing_put_port_mixer),
  20580. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20581. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20582. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20583. msm_routing_get_port_mixer,
  20584. msm_routing_put_port_mixer),
  20585. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20586. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20587. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20588. msm_routing_get_port_mixer,
  20589. msm_routing_put_port_mixer),
  20590. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20591. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20592. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20593. msm_routing_get_port_mixer,
  20594. msm_routing_put_port_mixer),
  20595. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20596. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20597. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20598. msm_routing_get_port_mixer,
  20599. msm_routing_put_port_mixer),
  20600. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20601. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20602. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20603. msm_routing_get_port_mixer,
  20604. msm_routing_put_port_mixer),
  20605. };
  20606. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  20607. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20608. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20609. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20610. msm_routing_get_port_mixer,
  20611. msm_routing_put_port_mixer),
  20612. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20613. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20614. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20615. msm_routing_get_port_mixer,
  20616. msm_routing_put_port_mixer),
  20617. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20618. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20619. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20620. msm_routing_get_port_mixer,
  20621. msm_routing_put_port_mixer),
  20622. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20623. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20624. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20625. msm_routing_get_port_mixer,
  20626. msm_routing_put_port_mixer),
  20627. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20628. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20629. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20630. msm_routing_get_port_mixer,
  20631. msm_routing_put_port_mixer),
  20632. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20633. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20634. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20635. msm_routing_get_port_mixer,
  20636. msm_routing_put_port_mixer),
  20637. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20638. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20639. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20640. msm_routing_get_port_mixer,
  20641. msm_routing_put_port_mixer),
  20642. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20643. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20644. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20645. msm_routing_get_port_mixer,
  20646. msm_routing_put_port_mixer),
  20647. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20648. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20649. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20650. msm_routing_get_port_mixer,
  20651. msm_routing_put_port_mixer),
  20652. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20653. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20654. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20655. msm_routing_get_port_mixer,
  20656. msm_routing_put_port_mixer),
  20657. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20658. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20659. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20660. msm_routing_get_port_mixer,
  20661. msm_routing_put_port_mixer),
  20662. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20663. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20664. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20665. msm_routing_get_port_mixer,
  20666. msm_routing_put_port_mixer),
  20667. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20668. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20669. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20670. msm_routing_get_port_mixer,
  20671. msm_routing_put_port_mixer),
  20672. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20673. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20674. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20675. msm_routing_get_port_mixer,
  20676. msm_routing_put_port_mixer),
  20677. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20678. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20679. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20680. msm_routing_get_port_mixer,
  20681. msm_routing_put_port_mixer),
  20682. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20683. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20684. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20685. msm_routing_get_port_mixer,
  20686. msm_routing_put_port_mixer),
  20687. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20688. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20689. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20690. msm_routing_get_port_mixer,
  20691. msm_routing_put_port_mixer),
  20692. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20693. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20694. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20695. msm_routing_get_port_mixer,
  20696. msm_routing_put_port_mixer),
  20697. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20698. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20699. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20700. msm_routing_get_port_mixer,
  20701. msm_routing_put_port_mixer),
  20702. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20703. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20704. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20705. msm_routing_get_port_mixer,
  20706. msm_routing_put_port_mixer),
  20707. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20708. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20709. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20710. msm_routing_get_port_mixer,
  20711. msm_routing_put_port_mixer),
  20712. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20713. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20714. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20715. msm_routing_get_port_mixer,
  20716. msm_routing_put_port_mixer),
  20717. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20718. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20719. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20720. msm_routing_get_port_mixer,
  20721. msm_routing_put_port_mixer),
  20722. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20723. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20724. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20725. msm_routing_get_port_mixer,
  20726. msm_routing_put_port_mixer),
  20727. };
  20728. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  20729. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20730. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20731. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20732. msm_routing_get_port_mixer,
  20733. msm_routing_put_port_mixer),
  20734. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20735. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20736. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20737. msm_routing_get_port_mixer,
  20738. msm_routing_put_port_mixer),
  20739. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20740. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20741. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20742. msm_routing_get_port_mixer,
  20743. msm_routing_put_port_mixer),
  20744. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20745. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20746. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20747. msm_routing_get_port_mixer,
  20748. msm_routing_put_port_mixer),
  20749. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20750. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20751. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20752. msm_routing_get_port_mixer,
  20753. msm_routing_put_port_mixer),
  20754. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20755. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20756. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20757. msm_routing_get_port_mixer,
  20758. msm_routing_put_port_mixer),
  20759. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20760. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20761. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20762. msm_routing_get_port_mixer,
  20763. msm_routing_put_port_mixer),
  20764. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20765. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20766. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20767. msm_routing_get_port_mixer,
  20768. msm_routing_put_port_mixer),
  20769. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20770. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20771. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20772. msm_routing_get_port_mixer,
  20773. msm_routing_put_port_mixer),
  20774. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20775. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20776. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20777. msm_routing_get_port_mixer,
  20778. msm_routing_put_port_mixer),
  20779. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20780. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20781. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20782. msm_routing_get_port_mixer,
  20783. msm_routing_put_port_mixer),
  20784. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20785. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20786. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20787. msm_routing_get_port_mixer,
  20788. msm_routing_put_port_mixer),
  20789. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20790. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20791. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20792. msm_routing_get_port_mixer,
  20793. msm_routing_put_port_mixer),
  20794. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20795. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20796. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20797. msm_routing_get_port_mixer,
  20798. msm_routing_put_port_mixer),
  20799. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20800. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20801. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20802. msm_routing_get_port_mixer,
  20803. msm_routing_put_port_mixer),
  20804. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20805. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20806. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20807. msm_routing_get_port_mixer,
  20808. msm_routing_put_port_mixer),
  20809. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20810. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20811. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20812. msm_routing_get_port_mixer,
  20813. msm_routing_put_port_mixer),
  20814. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20815. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20816. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20817. msm_routing_get_port_mixer,
  20818. msm_routing_put_port_mixer),
  20819. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20820. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20821. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20822. msm_routing_get_port_mixer,
  20823. msm_routing_put_port_mixer),
  20824. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20825. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20826. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20827. msm_routing_get_port_mixer,
  20828. msm_routing_put_port_mixer),
  20829. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20830. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20831. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20832. msm_routing_get_port_mixer,
  20833. msm_routing_put_port_mixer),
  20834. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20835. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20836. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20837. msm_routing_get_port_mixer,
  20838. msm_routing_put_port_mixer),
  20839. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20840. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20841. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20842. msm_routing_get_port_mixer,
  20843. msm_routing_put_port_mixer),
  20844. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20845. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20846. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20847. msm_routing_get_port_mixer,
  20848. msm_routing_put_port_mixer),
  20849. };
  20850. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  20851. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20852. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20853. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20854. msm_routing_get_port_mixer,
  20855. msm_routing_put_port_mixer),
  20856. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20857. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20858. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20859. msm_routing_get_port_mixer,
  20860. msm_routing_put_port_mixer),
  20861. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20862. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20863. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20864. msm_routing_get_port_mixer,
  20865. msm_routing_put_port_mixer),
  20866. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20867. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20868. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20869. msm_routing_get_port_mixer,
  20870. msm_routing_put_port_mixer),
  20871. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20872. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20873. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20874. msm_routing_get_port_mixer,
  20875. msm_routing_put_port_mixer),
  20876. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20877. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20878. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20879. msm_routing_get_port_mixer,
  20880. msm_routing_put_port_mixer),
  20881. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20882. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20883. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20884. msm_routing_get_port_mixer,
  20885. msm_routing_put_port_mixer),
  20886. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20887. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20888. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20889. msm_routing_get_port_mixer,
  20890. msm_routing_put_port_mixer),
  20891. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20892. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20893. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20894. msm_routing_get_port_mixer,
  20895. msm_routing_put_port_mixer),
  20896. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20897. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20898. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20899. msm_routing_get_port_mixer,
  20900. msm_routing_put_port_mixer),
  20901. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20902. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20903. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20904. msm_routing_get_port_mixer,
  20905. msm_routing_put_port_mixer),
  20906. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20907. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20908. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20909. msm_routing_get_port_mixer,
  20910. msm_routing_put_port_mixer),
  20911. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20912. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20913. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20914. msm_routing_get_port_mixer,
  20915. msm_routing_put_port_mixer),
  20916. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20917. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20918. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20919. msm_routing_get_port_mixer,
  20920. msm_routing_put_port_mixer),
  20921. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20922. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20923. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20924. msm_routing_get_port_mixer,
  20925. msm_routing_put_port_mixer),
  20926. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20927. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20928. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20929. msm_routing_get_port_mixer,
  20930. msm_routing_put_port_mixer),
  20931. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20932. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20933. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20934. msm_routing_get_port_mixer,
  20935. msm_routing_put_port_mixer),
  20936. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20937. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20938. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20939. msm_routing_get_port_mixer,
  20940. msm_routing_put_port_mixer),
  20941. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20942. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20943. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20944. msm_routing_get_port_mixer,
  20945. msm_routing_put_port_mixer),
  20946. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20947. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20948. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20949. msm_routing_get_port_mixer,
  20950. msm_routing_put_port_mixer),
  20951. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20952. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20953. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20954. msm_routing_get_port_mixer,
  20955. msm_routing_put_port_mixer),
  20956. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20957. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20958. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20959. msm_routing_get_port_mixer,
  20960. msm_routing_put_port_mixer),
  20961. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20962. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20963. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20964. msm_routing_get_port_mixer,
  20965. msm_routing_put_port_mixer),
  20966. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20967. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20968. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20969. msm_routing_get_port_mixer,
  20970. msm_routing_put_port_mixer),
  20971. };
  20972. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  20973. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20974. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20975. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20976. msm_routing_get_port_mixer,
  20977. msm_routing_put_port_mixer),
  20978. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20979. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20980. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20981. msm_routing_get_port_mixer,
  20982. msm_routing_put_port_mixer),
  20983. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20984. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20985. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20986. msm_routing_get_port_mixer,
  20987. msm_routing_put_port_mixer),
  20988. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20989. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20990. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20991. msm_routing_get_port_mixer,
  20992. msm_routing_put_port_mixer),
  20993. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20994. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20995. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20996. msm_routing_get_port_mixer,
  20997. msm_routing_put_port_mixer),
  20998. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20999. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21000. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  21001. msm_routing_get_port_mixer,
  21002. msm_routing_put_port_mixer),
  21003. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21004. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21005. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  21006. msm_routing_get_port_mixer,
  21007. msm_routing_put_port_mixer),
  21008. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  21009. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21010. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  21011. msm_routing_get_port_mixer,
  21012. msm_routing_put_port_mixer),
  21013. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21014. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21015. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  21016. msm_routing_get_port_mixer,
  21017. msm_routing_put_port_mixer),
  21018. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  21019. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21020. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  21021. msm_routing_get_port_mixer,
  21022. msm_routing_put_port_mixer),
  21023. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  21024. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21025. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  21026. msm_routing_get_port_mixer,
  21027. msm_routing_put_port_mixer),
  21028. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  21029. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21030. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  21031. msm_routing_get_port_mixer,
  21032. msm_routing_put_port_mixer),
  21033. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  21034. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21035. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  21036. msm_routing_get_port_mixer,
  21037. msm_routing_put_port_mixer),
  21038. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  21039. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21040. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  21041. msm_routing_get_port_mixer,
  21042. msm_routing_put_port_mixer),
  21043. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  21044. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21045. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  21046. msm_routing_get_port_mixer,
  21047. msm_routing_put_port_mixer),
  21048. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  21049. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21050. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  21051. msm_routing_get_port_mixer,
  21052. msm_routing_put_port_mixer),
  21053. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21054. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21055. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  21056. msm_routing_get_port_mixer,
  21057. msm_routing_put_port_mixer),
  21058. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  21059. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21060. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  21061. msm_routing_get_port_mixer,
  21062. msm_routing_put_port_mixer),
  21063. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  21064. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21065. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  21066. msm_routing_get_port_mixer,
  21067. msm_routing_put_port_mixer),
  21068. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  21069. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21070. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  21071. msm_routing_get_port_mixer,
  21072. msm_routing_put_port_mixer),
  21073. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  21074. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21075. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  21076. msm_routing_get_port_mixer,
  21077. msm_routing_put_port_mixer),
  21078. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  21079. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21080. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  21081. msm_routing_get_port_mixer,
  21082. msm_routing_put_port_mixer),
  21083. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  21084. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21085. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  21086. msm_routing_get_port_mixer,
  21087. msm_routing_put_port_mixer),
  21088. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  21089. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21090. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  21091. msm_routing_get_port_mixer,
  21092. msm_routing_put_port_mixer),
  21093. };
  21094. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  21095. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  21096. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21097. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  21098. msm_routing_get_port_mixer,
  21099. msm_routing_put_port_mixer),
  21100. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  21101. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21102. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  21103. msm_routing_get_port_mixer,
  21104. msm_routing_put_port_mixer),
  21105. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21106. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21107. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  21108. msm_routing_get_port_mixer,
  21109. msm_routing_put_port_mixer),
  21110. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  21111. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21112. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  21113. msm_routing_get_port_mixer,
  21114. msm_routing_put_port_mixer),
  21115. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  21116. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21117. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  21118. msm_routing_get_port_mixer,
  21119. msm_routing_put_port_mixer),
  21120. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  21121. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21122. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  21123. msm_routing_get_port_mixer,
  21124. msm_routing_put_port_mixer),
  21125. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21126. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21127. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  21128. msm_routing_get_port_mixer,
  21129. msm_routing_put_port_mixer),
  21130. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  21131. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21132. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  21133. msm_routing_get_port_mixer,
  21134. msm_routing_put_port_mixer),
  21135. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21136. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21137. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  21138. msm_routing_get_port_mixer,
  21139. msm_routing_put_port_mixer),
  21140. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  21141. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21142. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  21143. msm_routing_get_port_mixer,
  21144. msm_routing_put_port_mixer),
  21145. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  21146. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21147. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  21148. msm_routing_get_port_mixer,
  21149. msm_routing_put_port_mixer),
  21150. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  21151. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21152. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  21153. msm_routing_get_port_mixer,
  21154. msm_routing_put_port_mixer),
  21155. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  21156. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21157. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  21158. msm_routing_get_port_mixer,
  21159. msm_routing_put_port_mixer),
  21160. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  21161. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21162. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  21163. msm_routing_get_port_mixer,
  21164. msm_routing_put_port_mixer),
  21165. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  21166. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21167. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  21168. msm_routing_get_port_mixer,
  21169. msm_routing_put_port_mixer),
  21170. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  21171. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21172. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  21173. msm_routing_get_port_mixer,
  21174. msm_routing_put_port_mixer),
  21175. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21176. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21177. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  21178. msm_routing_get_port_mixer,
  21179. msm_routing_put_port_mixer),
  21180. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  21181. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21182. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  21183. msm_routing_get_port_mixer,
  21184. msm_routing_put_port_mixer),
  21185. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  21186. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21187. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  21188. msm_routing_get_port_mixer,
  21189. msm_routing_put_port_mixer),
  21190. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  21191. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21192. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  21193. msm_routing_get_port_mixer,
  21194. msm_routing_put_port_mixer),
  21195. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  21196. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21197. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  21198. msm_routing_get_port_mixer,
  21199. msm_routing_put_port_mixer),
  21200. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  21201. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21202. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  21203. msm_routing_get_port_mixer,
  21204. msm_routing_put_port_mixer),
  21205. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  21206. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21207. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  21208. msm_routing_get_port_mixer,
  21209. msm_routing_put_port_mixer),
  21210. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  21211. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21212. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  21213. msm_routing_get_port_mixer,
  21214. msm_routing_put_port_mixer),
  21215. };
  21216. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  21217. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  21218. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  21219. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  21220. msm_routing_get_port_mixer,
  21221. msm_routing_put_port_mixer),
  21222. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  21223. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  21224. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  21225. msm_routing_get_port_mixer,
  21226. msm_routing_put_port_mixer),
  21227. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  21228. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  21229. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  21230. msm_routing_get_port_mixer,
  21231. msm_routing_put_port_mixer),
  21232. };
  21233. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  21234. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  21235. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21236. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21237. msm_routing_put_port_mixer),
  21238. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21239. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21240. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21241. msm_routing_put_port_mixer),
  21242. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21243. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21244. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  21245. msm_routing_put_port_mixer),
  21246. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21247. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21248. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21249. msm_routing_put_port_mixer),
  21250. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  21251. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21252. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21253. msm_routing_put_port_mixer),
  21254. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  21255. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21256. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21257. msm_routing_put_port_mixer),
  21258. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  21259. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21260. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21261. msm_routing_put_port_mixer),
  21262. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  21263. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21264. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  21265. msm_routing_put_port_mixer),
  21266. };
  21267. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  21268. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  21269. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21270. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21271. msm_routing_put_port_mixer),
  21272. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  21273. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21274. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21275. msm_routing_put_port_mixer),
  21276. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21277. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21278. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21279. msm_routing_put_port_mixer),
  21280. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21281. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21282. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21283. msm_routing_put_port_mixer),
  21284. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  21285. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21286. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21287. msm_routing_put_port_mixer),
  21288. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  21289. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21290. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21291. msm_routing_put_port_mixer),
  21292. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21293. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21294. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  21295. msm_routing_put_port_mixer),
  21296. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  21297. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21298. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  21299. msm_routing_put_port_mixer),
  21300. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  21301. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21302. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  21303. msm_routing_put_port_mixer),
  21304. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21305. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21306. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21307. msm_routing_put_port_mixer),
  21308. };
  21309. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  21310. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21311. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21312. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21313. msm_routing_put_listen_mixer),
  21314. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21315. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21316. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21317. msm_routing_put_listen_mixer),
  21318. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21319. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21320. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21321. msm_routing_put_listen_mixer),
  21322. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21323. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21324. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21325. msm_routing_put_listen_mixer),
  21326. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21327. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21328. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21329. msm_routing_put_listen_mixer),
  21330. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21331. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21332. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21333. msm_routing_put_listen_mixer),
  21334. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21335. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21336. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21337. msm_routing_put_listen_mixer),
  21338. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21339. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21340. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21341. msm_routing_put_listen_mixer),
  21342. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21343. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21344. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21345. msm_routing_put_listen_mixer),
  21346. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21347. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21348. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21349. msm_routing_put_listen_mixer),
  21350. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21351. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21352. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21353. msm_routing_put_listen_mixer),
  21354. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21355. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21356. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21357. msm_routing_put_listen_mixer),
  21358. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21359. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21360. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21361. msm_routing_put_listen_mixer),
  21362. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21363. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21364. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21365. msm_routing_put_listen_mixer),
  21366. };
  21367. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  21368. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21369. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21370. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21371. msm_routing_put_listen_mixer),
  21372. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  21373. SND_SOC_NOPM,
  21374. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21375. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21376. msm_routing_put_listen_mixer),
  21377. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21378. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21379. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21380. msm_routing_put_listen_mixer),
  21381. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21382. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21383. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21384. msm_routing_put_listen_mixer),
  21385. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21386. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21387. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21388. msm_routing_put_listen_mixer),
  21389. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21390. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21391. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21392. msm_routing_put_listen_mixer),
  21393. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21394. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21395. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21396. msm_routing_put_listen_mixer),
  21397. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21398. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21399. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21400. msm_routing_put_listen_mixer),
  21401. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21402. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21403. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21404. msm_routing_put_listen_mixer),
  21405. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21406. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21407. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21408. msm_routing_put_listen_mixer),
  21409. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21410. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21411. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21412. msm_routing_put_listen_mixer),
  21413. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21414. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21415. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21416. msm_routing_put_listen_mixer),
  21417. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21418. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21419. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21420. msm_routing_put_listen_mixer),
  21421. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21422. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21423. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21424. msm_routing_put_listen_mixer),
  21425. };
  21426. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  21427. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21428. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21429. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21430. msm_routing_put_listen_mixer),
  21431. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21432. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21433. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21434. msm_routing_put_listen_mixer),
  21435. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21436. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21437. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21438. msm_routing_put_listen_mixer),
  21439. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21440. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21441. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21442. msm_routing_put_listen_mixer),
  21443. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21444. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21445. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21446. msm_routing_put_listen_mixer),
  21447. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21448. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21449. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21450. msm_routing_put_listen_mixer),
  21451. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21452. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21453. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21454. msm_routing_put_listen_mixer),
  21455. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21456. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21457. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21458. msm_routing_put_listen_mixer),
  21459. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21460. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21461. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21462. msm_routing_put_listen_mixer),
  21463. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21464. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21465. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21466. msm_routing_put_listen_mixer),
  21467. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21468. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21469. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21470. msm_routing_put_listen_mixer),
  21471. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21472. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21473. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21474. msm_routing_put_listen_mixer),
  21475. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21476. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21477. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21478. msm_routing_put_listen_mixer),
  21479. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21480. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21481. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21482. msm_routing_put_listen_mixer),
  21483. };
  21484. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  21485. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21486. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21487. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21488. msm_routing_put_listen_mixer),
  21489. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21490. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21491. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21492. msm_routing_put_listen_mixer),
  21493. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21494. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21495. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21496. msm_routing_put_listen_mixer),
  21497. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21498. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21499. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21500. msm_routing_put_listen_mixer),
  21501. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21502. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21503. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21504. msm_routing_put_listen_mixer),
  21505. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21506. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21507. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21508. msm_routing_put_listen_mixer),
  21509. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21510. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21511. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21512. msm_routing_put_listen_mixer),
  21513. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21514. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21515. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21516. msm_routing_put_listen_mixer),
  21517. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21518. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21519. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21520. msm_routing_put_listen_mixer),
  21521. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21522. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21523. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21524. msm_routing_put_listen_mixer),
  21525. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21526. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21527. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21528. msm_routing_put_listen_mixer),
  21529. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21530. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21531. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21532. msm_routing_put_listen_mixer),
  21533. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21534. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21535. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21536. msm_routing_put_listen_mixer),
  21537. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21538. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21539. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21540. msm_routing_put_listen_mixer),
  21541. };
  21542. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  21543. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21544. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21545. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21546. msm_routing_put_listen_mixer),
  21547. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21548. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21549. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21550. msm_routing_put_listen_mixer),
  21551. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21552. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21553. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21554. msm_routing_put_listen_mixer),
  21555. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21556. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21557. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21558. msm_routing_put_listen_mixer),
  21559. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21560. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21561. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21562. msm_routing_put_listen_mixer),
  21563. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21564. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21565. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21566. msm_routing_put_listen_mixer),
  21567. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21568. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21569. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21570. msm_routing_put_listen_mixer),
  21571. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21572. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21573. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21574. msm_routing_put_listen_mixer),
  21575. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21576. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21577. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21578. msm_routing_put_listen_mixer),
  21579. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21580. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21581. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21582. msm_routing_put_listen_mixer),
  21583. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21584. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21585. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21586. msm_routing_put_listen_mixer),
  21587. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21588. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21589. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21590. msm_routing_put_listen_mixer),
  21591. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21592. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21593. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21594. msm_routing_put_listen_mixer),
  21595. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21596. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21597. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21598. msm_routing_put_listen_mixer),
  21599. };
  21600. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  21601. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21602. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21603. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21604. msm_routing_put_listen_mixer),
  21605. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21606. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21607. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21608. msm_routing_put_listen_mixer),
  21609. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21610. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21611. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21612. msm_routing_put_listen_mixer),
  21613. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21614. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21615. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21616. msm_routing_put_listen_mixer),
  21617. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21618. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21619. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21620. msm_routing_put_listen_mixer),
  21621. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21622. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21623. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21624. msm_routing_put_listen_mixer),
  21625. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21626. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21627. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21628. msm_routing_put_listen_mixer),
  21629. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21630. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21631. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21632. msm_routing_put_listen_mixer),
  21633. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21634. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21635. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21636. msm_routing_put_listen_mixer),
  21637. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21638. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21639. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21640. msm_routing_put_listen_mixer),
  21641. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21642. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21643. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21644. msm_routing_put_listen_mixer),
  21645. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21646. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21647. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21648. msm_routing_put_listen_mixer),
  21649. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21650. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21651. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21652. msm_routing_put_listen_mixer),
  21653. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21654. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21655. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21656. msm_routing_put_listen_mixer),
  21657. };
  21658. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  21659. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21660. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21661. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21662. msm_routing_put_listen_mixer),
  21663. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21664. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21665. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21666. msm_routing_put_listen_mixer),
  21667. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21668. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21669. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21670. msm_routing_put_listen_mixer),
  21671. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21672. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21673. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21674. msm_routing_put_listen_mixer),
  21675. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21676. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21677. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21678. msm_routing_put_listen_mixer),
  21679. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21680. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21681. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21682. msm_routing_put_listen_mixer),
  21683. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21684. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21685. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21686. msm_routing_put_listen_mixer),
  21687. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21688. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21689. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21690. msm_routing_put_listen_mixer),
  21691. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21692. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21693. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21694. msm_routing_put_listen_mixer),
  21695. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21696. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21697. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21698. msm_routing_put_listen_mixer),
  21699. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21700. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21701. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21702. msm_routing_put_listen_mixer),
  21703. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21704. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21705. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21706. msm_routing_put_listen_mixer),
  21707. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21708. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21709. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21710. msm_routing_put_listen_mixer),
  21711. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21712. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21713. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21714. msm_routing_put_listen_mixer),
  21715. };
  21716. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  21717. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21718. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21719. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21720. msm_routing_put_listen_mixer),
  21721. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21722. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21723. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21724. msm_routing_put_listen_mixer),
  21725. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21726. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21727. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21728. msm_routing_put_listen_mixer),
  21729. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21730. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21731. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21732. msm_routing_put_listen_mixer),
  21733. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21734. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21735. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21736. msm_routing_put_listen_mixer),
  21737. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21738. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21739. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21740. msm_routing_put_listen_mixer),
  21741. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21742. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21743. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21744. msm_routing_put_listen_mixer),
  21745. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21746. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21747. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21748. msm_routing_put_listen_mixer),
  21749. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21750. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21751. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21752. msm_routing_put_listen_mixer),
  21753. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21754. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21755. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21756. msm_routing_put_listen_mixer),
  21757. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21758. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21759. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21760. msm_routing_put_listen_mixer),
  21761. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21762. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21763. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21764. msm_routing_put_listen_mixer),
  21765. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21766. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21767. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21768. msm_routing_put_listen_mixer),
  21769. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21770. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21771. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21772. msm_routing_put_listen_mixer),
  21773. };
  21774. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  21775. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21776. 0, 1, 0, msm_routing_get_switch_mixer,
  21777. msm_routing_put_switch_mixer);
  21778. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  21779. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21780. 0, 1, 0, msm_routing_get_switch_mixer,
  21781. msm_routing_put_switch_mixer);
  21782. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  21783. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21784. 0, 1, 0, msm_routing_get_switch_mixer,
  21785. msm_routing_put_switch_mixer);
  21786. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  21787. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21788. 0, 1, 0, msm_routing_get_switch_mixer,
  21789. msm_routing_put_switch_mixer);
  21790. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  21791. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21792. 0, 1, 0, msm_routing_get_switch_mixer,
  21793. msm_routing_put_switch_mixer);
  21794. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  21795. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21796. 0, 1, 0, msm_routing_get_switch_mixer,
  21797. msm_routing_put_switch_mixer);
  21798. static const struct snd_kcontrol_new cdc_dma_rx_1_switch_mixer_controls =
  21799. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21800. 0, 1, 0, msm_routing_get_switch_mixer,
  21801. msm_routing_put_switch_mixer);
  21802. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  21803. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21804. 0, 1, 0, msm_routing_get_switch_mixer,
  21805. msm_routing_put_switch_mixer);
  21806. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  21807. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21808. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  21809. msm_routing_put_fm_pcmrx_switch_mixer);
  21810. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  21811. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21812. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  21813. msm_routing_put_int0_mi2s_switch_mixer);
  21814. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  21815. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21816. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  21817. msm_routing_put_int4_mi2s_switch_mixer);
  21818. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  21819. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21820. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  21821. msm_routing_put_pri_mi2s_switch_mixer);
  21822. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  21823. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21824. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  21825. msm_routing_put_sec_mi2s_switch_mixer);
  21826. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  21827. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21828. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  21829. msm_routing_put_tert_mi2s_switch_mixer);
  21830. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  21831. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21832. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  21833. msm_routing_put_quat_mi2s_switch_mixer);
  21834. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  21835. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21836. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  21837. msm_routing_put_quin_mi2s_switch_mixer);
  21838. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  21839. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21840. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  21841. msm_routing_put_sen_mi2s_switch_mixer);
  21842. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  21843. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21844. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21845. msm_routing_put_hfp_switch_mixer);
  21846. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  21847. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21848. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21849. msm_routing_put_hfp_switch_mixer);
  21850. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  21851. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21852. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21853. msm_routing_put_hfp_switch_mixer);
  21854. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  21855. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21856. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21857. msm_routing_put_hfp_switch_mixer);
  21858. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  21859. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21860. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  21861. msm_routing_put_usb_switch_mixer);
  21862. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  21863. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21864. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  21865. msm_routing_a2dp_switch_mixer_put);
  21866. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  21867. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21868. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  21869. msm_routing_sco_switch_mixer_put);
  21870. static const struct soc_enum lsm_port_enum =
  21871. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  21872. static const char * const lsm_func_text[] = {
  21873. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  21874. };
  21875. static const struct soc_enum lsm_func_enum =
  21876. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  21877. static const struct snd_kcontrol_new lsm_controls[] = {
  21878. /* kcontrol of lsm_function */
  21879. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21880. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21881. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21882. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21883. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21884. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21885. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21886. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21887. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21888. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21889. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21890. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21891. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21892. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21893. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21894. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21895. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21896. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21897. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21898. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21899. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21900. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21901. SOC_ENUM_EXT(TERT_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21902. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21903. /* kcontrol of lsm_port */
  21904. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  21905. msm_routing_lsm_port_get,
  21906. msm_routing_lsm_port_put),
  21907. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  21908. msm_routing_lsm_port_get,
  21909. msm_routing_lsm_port_put),
  21910. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  21911. msm_routing_lsm_port_get,
  21912. msm_routing_lsm_port_put),
  21913. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  21914. msm_routing_lsm_port_get,
  21915. msm_routing_lsm_port_put),
  21916. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  21917. msm_routing_lsm_port_get,
  21918. msm_routing_lsm_port_put),
  21919. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  21920. msm_routing_lsm_port_get,
  21921. msm_routing_lsm_port_put),
  21922. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  21923. msm_routing_lsm_port_get,
  21924. msm_routing_lsm_port_put),
  21925. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  21926. msm_routing_lsm_port_get,
  21927. msm_routing_lsm_port_put),
  21928. };
  21929. static const char * const aanc_slim_0_rx_text[] = {
  21930. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  21931. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  21932. };
  21933. static const struct soc_enum aanc_slim_0_rx_enum =
  21934. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  21935. aanc_slim_0_rx_text);
  21936. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  21937. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  21938. msm_routing_slim_0_rx_aanc_mux_get,
  21939. msm_routing_slim_0_rx_aanc_mux_put)
  21940. };
  21941. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  21942. struct snd_ctl_elem_value *ucontrol)
  21943. {
  21944. ucontrol->value.integer.value[0] = aanc_level;
  21945. return 0;
  21946. }
  21947. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  21948. struct snd_ctl_elem_value *ucontrol)
  21949. {
  21950. int ret = 0;
  21951. mutex_lock(&routing_lock);
  21952. aanc_level = ucontrol->value.integer.value[0];
  21953. pr_debug("%s: value: %ld\n",
  21954. __func__, ucontrol->value.integer.value[0]);
  21955. ret = afe_set_aanc_noise_level(aanc_level);
  21956. mutex_unlock(&routing_lock);
  21957. return ret;
  21958. }
  21959. static const struct snd_kcontrol_new aanc_noise_level[] = {
  21960. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  21961. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  21962. };
  21963. static int msm_routing_get_stereo_to_custom_stereo_control(
  21964. struct snd_kcontrol *kcontrol,
  21965. struct snd_ctl_elem_value *ucontrol)
  21966. {
  21967. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  21968. return 0;
  21969. }
  21970. static int msm_routing_put_stereo_to_custom_stereo_control(
  21971. struct snd_kcontrol *kcontrol,
  21972. struct snd_ctl_elem_value *ucontrol)
  21973. {
  21974. int flag = 0, i = 0, rc = 0, idx = 0;
  21975. int be_index = 0, port_id, topo_id;
  21976. unsigned int session_id = 0;
  21977. uint16_t op_FL_ip_FL_weight = 0;
  21978. uint16_t op_FL_ip_FR_weight = 0;
  21979. uint16_t op_FR_ip_FL_weight = 0;
  21980. uint16_t op_FR_ip_FR_weight = 0;
  21981. flag = ucontrol->value.integer.value[0];
  21982. pr_debug("%s E flag %d\n", __func__, flag);
  21983. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  21984. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  21985. __func__, is_custom_stereo_on, flag);
  21986. return 0;
  21987. }
  21988. is_custom_stereo_on = flag ? true : false;
  21989. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  21990. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  21991. port_id = msm_bedais[be_index].port_id;
  21992. if (!msm_bedais[be_index].active)
  21993. continue;
  21994. if ((port_id != SLIMBUS_0_RX) &&
  21995. (port_id != RT_PROXY_PORT_001_RX) &&
  21996. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  21997. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  21998. continue;
  21999. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  22000. MSM_FRONTEND_DAI_MM_SIZE) {
  22001. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  22002. LEGACY_PCM_MODE)
  22003. goto skip_send_custom_stereo;
  22004. session_id =
  22005. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  22006. if (is_custom_stereo_on) {
  22007. op_FL_ip_FL_weight =
  22008. Q14_GAIN_ZERO_POINT_FIVE;
  22009. op_FL_ip_FR_weight =
  22010. Q14_GAIN_ZERO_POINT_FIVE;
  22011. op_FR_ip_FL_weight =
  22012. Q14_GAIN_ZERO_POINT_FIVE;
  22013. op_FR_ip_FR_weight =
  22014. Q14_GAIN_ZERO_POINT_FIVE;
  22015. } else {
  22016. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  22017. op_FL_ip_FR_weight = 0;
  22018. op_FR_ip_FL_weight = 0;
  22019. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  22020. }
  22021. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22022. unsigned long copp =
  22023. session_copp_map[i]
  22024. [SESSION_TYPE_RX][be_index];
  22025. if (!test_bit(idx, &copp))
  22026. goto skip_send_custom_stereo;
  22027. topo_id = adm_get_topology_for_port_copp_idx(
  22028. msm_bedais[be_index].port_id, idx);
  22029. if (topo_id < 0)
  22030. pr_debug("%s:Err:custom stereo topo %d",
  22031. __func__, topo_id);
  22032. pr_debug("idx %d\n", idx);
  22033. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  22034. rc = msm_ds2_dap_set_custom_stereo_onoff
  22035. (msm_bedais[be_index].port_id,
  22036. idx, is_custom_stereo_on);
  22037. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  22038. rc = dolby_dap_set_custom_stereo_onoff(
  22039. msm_bedais[be_index].port_id,
  22040. idx, is_custom_stereo_on);
  22041. else
  22042. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  22043. (msm_bedais[be_index].port_id,
  22044. idx, session_id,
  22045. op_FL_ip_FL_weight,
  22046. op_FL_ip_FR_weight,
  22047. op_FR_ip_FL_weight,
  22048. op_FR_ip_FR_weight);
  22049. if (rc < 0)
  22050. skip_send_custom_stereo:
  22051. pr_err("%s: err setting custom stereo\n",
  22052. __func__);
  22053. }
  22054. }
  22055. }
  22056. return 0;
  22057. }
  22058. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  22059. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  22060. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  22061. msm_routing_put_stereo_to_custom_stereo_control),
  22062. };
  22063. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  22064. struct snd_ctl_elem_value *ucontrol)
  22065. {
  22066. return 0;
  22067. }
  22068. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  22069. struct snd_ctl_elem_value *ucontrol)
  22070. {
  22071. int i = 0, j;
  22072. int num_app_types = ucontrol->value.integer.value[i++];
  22073. pr_debug("%s\n", __func__);
  22074. memset(app_type_cfg, 0, MAX_APP_TYPES*
  22075. sizeof(struct msm_pcm_routing_app_type_data));
  22076. if (num_app_types > MAX_APP_TYPES) {
  22077. pr_err("%s: number of app types exceed the max supported\n",
  22078. __func__);
  22079. return -EINVAL;
  22080. }
  22081. for (j = 0; j < num_app_types; j++) {
  22082. app_type_cfg[j].app_type =
  22083. ucontrol->value.integer.value[i++];
  22084. app_type_cfg[j].sample_rate =
  22085. ucontrol->value.integer.value[i++];
  22086. app_type_cfg[j].bit_width =
  22087. ucontrol->value.integer.value[i++];
  22088. }
  22089. return 0;
  22090. }
  22091. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  22092. struct snd_ctl_elem_value *ucontrol)
  22093. {
  22094. int j, fe_id, be_id, port_type;
  22095. int ret = 0;
  22096. unsigned long copp;
  22097. struct msm_pcm_routing_bdai_data *bedai;
  22098. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  22099. SESSION_TYPE_RX;
  22100. int app_type = ucontrol->value.integer.value[1];
  22101. int gain = (ucontrol->value.integer.value[2] +
  22102. ucontrol->value.integer.value[3])/2;
  22103. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  22104. MSM_AFE_PORT_TYPE_TX;
  22105. mutex_lock(&routing_lock);
  22106. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  22107. if (is_be_dai_extproc(be_id))
  22108. continue;
  22109. bedai = &msm_bedais[be_id];
  22110. if (afe_get_port_type(bedai->port_id) != port_type)
  22111. continue;
  22112. if (!bedai->active)
  22113. continue;
  22114. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  22115. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  22116. continue;
  22117. if (app_type !=
  22118. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  22119. continue;
  22120. copp = session_copp_map[fe_id][dir][be_id];
  22121. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  22122. if (!test_bit(j, &copp))
  22123. continue;
  22124. ret |= adm_set_volume(bedai->port_id, j, gain);
  22125. }
  22126. }
  22127. }
  22128. mutex_unlock(&routing_lock);
  22129. return ret ? -EINVAL : 0;
  22130. }
  22131. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  22132. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  22133. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  22134. msm_routing_put_app_type_cfg_control),
  22135. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  22136. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  22137. };
  22138. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  22139. struct snd_ctl_elem_value *ucontrol)
  22140. {
  22141. int copp_idx, fe_id, be_id, port_type;
  22142. int ret = 0;
  22143. unsigned long copp;
  22144. struct msm_pcm_routing_bdai_data *bedai;
  22145. u8 *packed_params = NULL;
  22146. struct param_hdr_v3 param_hdr;
  22147. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  22148. sizeof(uint32_t));
  22149. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  22150. SESSION_TYPE_RX;
  22151. int app_type = ucontrol->value.integer.value[1];
  22152. int module_id = ucontrol->value.integer.value[2];
  22153. int instance_id = ucontrol->value.integer.value[3];
  22154. int param_id = ucontrol->value.integer.value[4];
  22155. int param_value = ucontrol->value.integer.value[5];
  22156. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  22157. MSM_AFE_PORT_TYPE_TX;
  22158. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  22159. __func__, app_type, module_id,
  22160. instance_id, param_id, param_value);
  22161. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  22162. if (!packed_params)
  22163. return -ENOMEM;
  22164. memset(&param_hdr, 0, sizeof(param_hdr));
  22165. param_hdr.module_id = module_id;
  22166. param_hdr.instance_id = instance_id;
  22167. param_hdr.param_id = param_id;
  22168. param_hdr.param_size = sizeof(uint32_t);
  22169. packed_param_size = 0;
  22170. mutex_lock(&routing_lock);
  22171. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  22172. if (is_be_dai_extproc(be_id))
  22173. continue;
  22174. bedai = &msm_bedais[be_id];
  22175. if (afe_get_port_type(bedai->port_id) != port_type)
  22176. continue;
  22177. if (!bedai->active)
  22178. continue;
  22179. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  22180. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  22181. continue;
  22182. if (app_type !=
  22183. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  22184. continue;
  22185. copp = session_copp_map[fe_id][dir][be_id];
  22186. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  22187. copp_idx++) {
  22188. if (!test_bit(copp_idx, &copp))
  22189. continue;
  22190. ret = q6common_pack_pp_params(packed_params,
  22191. &param_hdr,
  22192. (u8 *) &param_value,
  22193. &packed_param_size);
  22194. if (ret) {
  22195. pr_err("%s: Failed to pack params, error %d\n",
  22196. __func__, ret);
  22197. goto done;
  22198. }
  22199. ret = adm_set_pp_params(bedai->port_id,
  22200. copp_idx, NULL,
  22201. packed_params,
  22202. packed_param_size);
  22203. if (ret) {
  22204. pr_err("%s: Setting param failed with err=%d\n",
  22205. __func__, ret);
  22206. ret = -EINVAL;
  22207. goto done;
  22208. }
  22209. }
  22210. }
  22211. }
  22212. done:
  22213. mutex_unlock(&routing_lock);
  22214. kfree(packed_params);
  22215. return ret;
  22216. }
  22217. static const struct snd_kcontrol_new module_cfg_controls[] = {
  22218. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  22219. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  22220. };
  22221. static int msm_routing_get_lsm_app_type_cfg_control(
  22222. struct snd_kcontrol *kcontrol,
  22223. struct snd_ctl_elem_value *ucontrol)
  22224. {
  22225. int shift = ((struct soc_multi_mixer_control *)
  22226. kcontrol->private_value)->shift;
  22227. int i = 0, j = 0;
  22228. mutex_lock(&routing_lock);
  22229. ucontrol->value.integer.value[i] = num_app_cfg_types;
  22230. for (j = 0; j < num_app_cfg_types; ++j) {
  22231. ucontrol->value.integer.value[++i] =
  22232. lsm_app_type_cfg[j].app_type;
  22233. ucontrol->value.integer.value[++i] =
  22234. lsm_app_type_cfg[j].sample_rate;
  22235. ucontrol->value.integer.value[++i] =
  22236. lsm_app_type_cfg[j].bit_width;
  22237. if (shift == 1)
  22238. ucontrol->value.integer.value[++i] =
  22239. lsm_app_type_cfg[j].num_out_channels;
  22240. }
  22241. mutex_unlock(&routing_lock);
  22242. return 0;
  22243. }
  22244. static int msm_routing_put_lsm_app_type_cfg_control(
  22245. struct snd_kcontrol *kcontrol,
  22246. struct snd_ctl_elem_value *ucontrol)
  22247. {
  22248. int shift = ((struct soc_multi_mixer_control *)
  22249. kcontrol->private_value)->shift;
  22250. int i = 0, j;
  22251. mutex_lock(&routing_lock);
  22252. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  22253. pr_err("%s: number of app types exceed the max supported\n",
  22254. __func__);
  22255. mutex_unlock(&routing_lock);
  22256. return -EINVAL;
  22257. }
  22258. num_app_cfg_types = ucontrol->value.integer.value[i++];
  22259. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  22260. sizeof(struct msm_pcm_routing_app_type_data));
  22261. for (j = 0; j < num_app_cfg_types; j++) {
  22262. lsm_app_type_cfg[j].app_type =
  22263. ucontrol->value.integer.value[i++];
  22264. lsm_app_type_cfg[j].sample_rate =
  22265. ucontrol->value.integer.value[i++];
  22266. lsm_app_type_cfg[j].bit_width =
  22267. ucontrol->value.integer.value[i++];
  22268. /* Shift of 1 indicates this is V2 mixer control */
  22269. if (shift == 1)
  22270. lsm_app_type_cfg[j].num_out_channels =
  22271. ucontrol->value.integer.value[i++];
  22272. }
  22273. mutex_unlock(&routing_lock);
  22274. return 0;
  22275. }
  22276. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  22277. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  22278. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  22279. msm_routing_put_lsm_app_type_cfg_control),
  22280. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  22281. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  22282. msm_routing_put_lsm_app_type_cfg_control),
  22283. };
  22284. static int msm_routing_get_use_ds1_or_ds2_control(
  22285. struct snd_kcontrol *kcontrol,
  22286. struct snd_ctl_elem_value *ucontrol)
  22287. {
  22288. ucontrol->value.integer.value[0] = is_ds2_on;
  22289. return 0;
  22290. }
  22291. static int msm_routing_put_use_ds1_or_ds2_control(
  22292. struct snd_kcontrol *kcontrol,
  22293. struct snd_ctl_elem_value *ucontrol)
  22294. {
  22295. is_ds2_on = ucontrol->value.integer.value[0];
  22296. return 0;
  22297. }
  22298. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  22299. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  22300. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  22301. msm_routing_put_use_ds1_or_ds2_control),
  22302. };
  22303. static int msm_routing_get_hifi_filter_control(
  22304. struct snd_kcontrol *kcontrol,
  22305. struct snd_ctl_elem_value *ucontrol)
  22306. {
  22307. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  22308. return 0;
  22309. }
  22310. static int msm_routing_put_hifi_filter_control(
  22311. struct snd_kcontrol *kcontrol,
  22312. struct snd_ctl_elem_value *ucontrol)
  22313. {
  22314. hifi_filter_enabled = ucontrol->value.integer.value[0];
  22315. return 0;
  22316. }
  22317. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  22318. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  22319. 1, 0, msm_routing_get_hifi_filter_control,
  22320. msm_routing_put_hifi_filter_control),
  22321. };
  22322. static int msm_routing_get_ffecns_freeze_event_control(
  22323. struct snd_kcontrol *kcontrol,
  22324. struct snd_ctl_elem_value *ucontrol)
  22325. {
  22326. ucontrol->value.integer.value[0] = ffecns_freeze_event;
  22327. return 0;
  22328. }
  22329. static int msm_routing_put_ffecns_freeze_event_control(
  22330. struct snd_kcontrol *kcontrol,
  22331. struct snd_ctl_elem_value *ucontrol)
  22332. {
  22333. int ret = -EINVAL;
  22334. ffecns_freeze_event = ucontrol->value.integer.value[0];
  22335. ret = adm_set_ffecns_freeze_event(ffecns_freeze_event);
  22336. if (ret)
  22337. pr_err("%s: failed to set ffecns imc event to%d\n",
  22338. __func__, ffecns_freeze_event);
  22339. return ret;
  22340. }
  22341. static const struct snd_kcontrol_new use_ffecns_freeze_event_controls[] = {
  22342. SOC_SINGLE_EXT("FFECNS Freeze Event", SND_SOC_NOPM, 0,
  22343. 1, 0, msm_routing_get_ffecns_freeze_event_control,
  22344. msm_routing_put_ffecns_freeze_event_control),
  22345. };
  22346. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  22347. struct snd_ctl_elem_value *ucontrol) {
  22348. int rc = 0;
  22349. int be_idx = 0;
  22350. char *param_value;
  22351. int *update_param_value;
  22352. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  22353. struct param_hdr_v3 param_hdr;
  22354. param_value = kzalloc(param_size, GFP_KERNEL);
  22355. if (!param_value)
  22356. return -ENOMEM;
  22357. memset(&param_hdr, 0, sizeof(param_hdr));
  22358. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  22359. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  22360. break;
  22361. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  22362. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  22363. param_hdr.instance_id = INSTANCE_ID_0;
  22364. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  22365. param_hdr.param_size = param_size;
  22366. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  22367. NULL, &param_hdr, (u8 *) param_value);
  22368. if (rc) {
  22369. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  22370. kfree(param_value);
  22371. return -EINVAL;
  22372. }
  22373. update_param_value = (int *)param_value;
  22374. ucontrol->value.integer.value[0] = update_param_value[0];
  22375. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  22376. __func__, update_param_value[0]);
  22377. }
  22378. kfree(param_value);
  22379. return 0;
  22380. }
  22381. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  22382. struct snd_ctl_elem_value *ucontrol)
  22383. {
  22384. voc_session_id = ucontrol->value.integer.value[0];
  22385. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  22386. return 0;
  22387. }
  22388. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  22389. struct snd_ctl_elem_value *ucontrol)
  22390. {
  22391. ucontrol->value.integer.value[0] = voc_session_id;
  22392. return 0;
  22393. }
  22394. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  22395. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  22396. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  22397. msm_voc_session_id_put),
  22398. };
  22399. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  22400. struct snd_ctl_elem_info *uinfo)
  22401. {
  22402. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22403. uinfo->count = sizeof(struct sound_focus_param);
  22404. return 0;
  22405. }
  22406. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  22407. struct snd_ctl_elem_value *ucontrol)
  22408. {
  22409. int ret = 0;
  22410. struct sound_focus_param soundFocusData;
  22411. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22412. sizeof(struct sound_focus_param));
  22413. ret = voc_set_sound_focus(soundFocusData);
  22414. if (ret) {
  22415. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22416. __func__, ret);
  22417. ret = -EINVAL;
  22418. }
  22419. return ret;
  22420. }
  22421. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  22422. struct snd_ctl_elem_value *ucontrol)
  22423. {
  22424. int ret = 0;
  22425. struct sound_focus_param soundFocusData;
  22426. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  22427. ret = voc_get_sound_focus(&soundFocusData);
  22428. if (ret) {
  22429. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  22430. __func__, ret);
  22431. ret = -EINVAL;
  22432. goto done;
  22433. }
  22434. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22435. sizeof(struct sound_focus_param));
  22436. done:
  22437. return ret;
  22438. }
  22439. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  22440. struct snd_ctl_elem_info *uinfo)
  22441. {
  22442. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22443. uinfo->count = sizeof(struct source_tracking_param);
  22444. return 0;
  22445. }
  22446. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  22447. struct snd_ctl_elem_value *ucontrol)
  22448. {
  22449. int ret = 0;
  22450. struct source_tracking_param sourceTrackingData;
  22451. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  22452. ret = voc_get_source_tracking(&sourceTrackingData);
  22453. if (ret) {
  22454. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  22455. __func__, ret);
  22456. ret = -EINVAL;
  22457. goto done;
  22458. }
  22459. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22460. sizeof(struct source_tracking_param));
  22461. done:
  22462. return ret;
  22463. }
  22464. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  22465. int *copp_idx)
  22466. {
  22467. int i, idx, be_idx;
  22468. int ret = 0;
  22469. unsigned long copp;
  22470. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  22471. ret = q6audio_validate_port(port_id);
  22472. if (ret < 0) {
  22473. pr_err("%s: port validation failed id 0x%x ret %d\n",
  22474. __func__, port_id, ret);
  22475. ret = -EINVAL;
  22476. goto done;
  22477. }
  22478. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22479. if (msm_bedais[be_idx].port_id == port_id)
  22480. break;
  22481. }
  22482. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22483. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  22484. ret = -EINVAL;
  22485. goto done;
  22486. }
  22487. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  22488. MSM_FRONTEND_DAI_MAX) {
  22489. if (!(is_mm_lsm_fe_id(i) &&
  22490. route_check_fe_id_adm_support(i)))
  22491. continue;
  22492. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22493. copp = session_copp_map[i]
  22494. [session_type][be_idx];
  22495. if (test_bit(idx, &copp))
  22496. break;
  22497. }
  22498. if (idx >= MAX_COPPS_PER_PORT)
  22499. continue;
  22500. else
  22501. break;
  22502. }
  22503. if (i >= MSM_FRONTEND_DAI_MAX) {
  22504. pr_debug("%s: Invalid FE, exiting\n", __func__);
  22505. ret = -EINVAL;
  22506. goto done;
  22507. }
  22508. *copp_idx = idx;
  22509. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  22510. done:
  22511. return ret;
  22512. }
  22513. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  22514. const char *prefix, int *port_id)
  22515. {
  22516. int ret = 0;
  22517. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  22518. /*
  22519. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  22520. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  22521. * and compare the string with the backend name to derive the port id.
  22522. */
  22523. if (!strcmp(kcontrol->id.name + strlen(prefix),
  22524. "SLIMBUS_0")) {
  22525. *port_id = SLIMBUS_0_TX;
  22526. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22527. "TERT_MI2S")) {
  22528. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  22529. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22530. "INT3_MI2S")) {
  22531. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  22532. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22533. "VA_CDC_DMA_TX_0")) {
  22534. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  22535. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22536. "TX_CDC_DMA_TX_3")) {
  22537. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  22538. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22539. "QUIN_TDM_TX_0")) {
  22540. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  22541. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22542. "PRIMARY_TDM")) {
  22543. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  22544. } else {
  22545. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  22546. __func__, kcontrol->id.name);
  22547. ret = -EINVAL;
  22548. goto done;
  22549. }
  22550. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  22551. __func__, kcontrol->id.name, *port_id);
  22552. done:
  22553. return ret;
  22554. }
  22555. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  22556. struct snd_ctl_elem_value *ucontrol)
  22557. {
  22558. int ret = 0;
  22559. struct sound_focus_param soundFocusData;
  22560. int port_id, copp_idx;
  22561. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22562. "Sound Focus Audio Tx ", &port_id);
  22563. if (ret != 0) {
  22564. pr_err("%s: Error in deriving port id, err=%d\n",
  22565. __func__, ret);
  22566. ret = -EINVAL;
  22567. goto done;
  22568. }
  22569. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22570. &copp_idx);
  22571. if (ret) {
  22572. pr_err("%s: Could not get copp idx for port_id=%d\n",
  22573. __func__, port_id);
  22574. ret = -EINVAL;
  22575. goto done;
  22576. }
  22577. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22578. sizeof(struct sound_focus_param));
  22579. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  22580. if (ret) {
  22581. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22582. __func__, ret);
  22583. ret = -EINVAL;
  22584. goto done;
  22585. }
  22586. done:
  22587. return ret;
  22588. }
  22589. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  22590. struct snd_ctl_elem_value *ucontrol)
  22591. {
  22592. int ret = 0;
  22593. struct sound_focus_param soundFocusData;
  22594. int port_id, copp_idx;
  22595. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22596. "Sound Focus Audio Tx ", &port_id);
  22597. if (ret) {
  22598. pr_err("%s: Error in deriving port id, err=%d\n",
  22599. __func__, ret);
  22600. ret = -EINVAL;
  22601. goto done;
  22602. }
  22603. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22604. &copp_idx);
  22605. if (ret) {
  22606. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22607. __func__, port_id);
  22608. ret = -EINVAL;
  22609. goto done;
  22610. }
  22611. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  22612. if (ret) {
  22613. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  22614. __func__, ret);
  22615. ret = -EINVAL;
  22616. goto done;
  22617. }
  22618. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22619. sizeof(struct sound_focus_param));
  22620. done:
  22621. return ret;
  22622. }
  22623. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  22624. struct snd_ctl_elem_value *ucontrol)
  22625. {
  22626. int ret = 0;
  22627. struct source_tracking_param sourceTrackingData;
  22628. int port_id, copp_idx;
  22629. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22630. "Source Tracking Audio Tx ", &port_id);
  22631. if (ret) {
  22632. pr_err("%s: Error in deriving port id, err=%d\n",
  22633. __func__, ret);
  22634. ret = -EINVAL;
  22635. goto done;
  22636. }
  22637. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22638. &copp_idx);
  22639. if (ret) {
  22640. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22641. __func__, port_id);
  22642. ret = -EINVAL;
  22643. goto done;
  22644. }
  22645. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  22646. if (ret) {
  22647. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  22648. __func__, ret);
  22649. ret = -EINVAL;
  22650. goto done;
  22651. }
  22652. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22653. sizeof(struct source_tracking_param));
  22654. done:
  22655. return ret;
  22656. }
  22657. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  22658. struct snd_ctl_elem_info *uinfo)
  22659. {
  22660. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22661. uinfo->count = sizeof(struct doa_tracking_mon_param);
  22662. return 0;
  22663. }
  22664. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  22665. struct snd_ctl_elem_value *ucontrol)
  22666. {
  22667. int ret = 0;
  22668. struct doa_tracking_mon_param doa_tracking_data;
  22669. int port_id, copp_idx;
  22670. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  22671. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22672. "Doa Tracking Monitor Listen ", &port_id);
  22673. if (ret) {
  22674. pr_err("%s: Error in deriving port id, err=%d\n",
  22675. __func__, ret);
  22676. ret = -EINVAL;
  22677. goto done;
  22678. }
  22679. /*
  22680. * If copp id exists for given port id, query adm to get doa data.
  22681. * Else query afe for doa tracking params.
  22682. * This is to support in cases where LSM directly connects to
  22683. * AFE for FFNS.
  22684. */
  22685. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22686. &copp_idx);
  22687. if (!ret)
  22688. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  22689. &doa_tracking_data);
  22690. else
  22691. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  22692. if (ret) {
  22693. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  22694. __func__, ret);
  22695. ret = -EINVAL;
  22696. goto done;
  22697. }
  22698. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  22699. sizeof(struct doa_tracking_mon_param));
  22700. done:
  22701. return ret;
  22702. }
  22703. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  22704. {
  22705. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22706. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22707. .name = "Sound Focus Voice Tx SLIMBUS_0",
  22708. .info = msm_sound_focus_info,
  22709. .get = msm_voice_sound_focus_get,
  22710. .put = msm_voice_sound_focus_put,
  22711. },
  22712. {
  22713. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22714. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22715. .name = "Source Tracking Voice Tx SLIMBUS_0",
  22716. .info = msm_source_tracking_info,
  22717. .get = msm_voice_source_tracking_get,
  22718. },
  22719. {
  22720. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22721. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22722. .name = "Sound Focus Audio Tx SLIMBUS_0",
  22723. .info = msm_sound_focus_info,
  22724. .get = msm_audio_sound_focus_get,
  22725. .put = msm_audio_sound_focus_put,
  22726. },
  22727. {
  22728. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22729. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22730. .name = "Source Tracking Audio Tx SLIMBUS_0",
  22731. .info = msm_source_tracking_info,
  22732. .get = msm_audio_source_tracking_get,
  22733. },
  22734. {
  22735. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22736. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22737. .name = "Sound Focus Voice Tx TERT_MI2S",
  22738. .info = msm_sound_focus_info,
  22739. .get = msm_voice_sound_focus_get,
  22740. .put = msm_voice_sound_focus_put,
  22741. },
  22742. {
  22743. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22744. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22745. .name = "Source Tracking Voice Tx TERT_MI2S",
  22746. .info = msm_source_tracking_info,
  22747. .get = msm_voice_source_tracking_get,
  22748. },
  22749. {
  22750. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22751. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22752. .name = "Sound Focus Audio Tx TERT_MI2S",
  22753. .info = msm_sound_focus_info,
  22754. .get = msm_audio_sound_focus_get,
  22755. .put = msm_audio_sound_focus_put,
  22756. },
  22757. {
  22758. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22759. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22760. .name = "Source Tracking Audio Tx TERT_MI2S",
  22761. .info = msm_source_tracking_info,
  22762. .get = msm_audio_source_tracking_get,
  22763. },
  22764. {
  22765. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22766. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22767. .name = "Sound Focus Voice Tx INT3_MI2S",
  22768. .info = msm_sound_focus_info,
  22769. .get = msm_voice_sound_focus_get,
  22770. .put = msm_voice_sound_focus_put,
  22771. },
  22772. {
  22773. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22774. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22775. .name = "Source Tracking Voice Tx INT3_MI2S",
  22776. .info = msm_source_tracking_info,
  22777. .get = msm_voice_source_tracking_get,
  22778. },
  22779. {
  22780. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22781. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22782. .name = "Sound Focus Audio Tx INT3_MI2S",
  22783. .info = msm_sound_focus_info,
  22784. .get = msm_audio_sound_focus_get,
  22785. .put = msm_audio_sound_focus_put,
  22786. },
  22787. {
  22788. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22789. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22790. .name = "Source Tracking Audio Tx INT3_MI2S",
  22791. .info = msm_source_tracking_info,
  22792. .get = msm_audio_source_tracking_get,
  22793. },
  22794. {
  22795. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22796. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22797. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  22798. .info = msm_sound_focus_info,
  22799. .get = msm_voice_sound_focus_get,
  22800. .put = msm_voice_sound_focus_put,
  22801. },
  22802. {
  22803. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22804. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22805. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  22806. .info = msm_source_tracking_info,
  22807. .get = msm_voice_source_tracking_get,
  22808. },
  22809. {
  22810. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22811. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22812. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  22813. .info = msm_sound_focus_info,
  22814. .get = msm_audio_sound_focus_get,
  22815. .put = msm_audio_sound_focus_put,
  22816. },
  22817. {
  22818. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22819. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22820. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  22821. .info = msm_source_tracking_info,
  22822. .get = msm_audio_source_tracking_get,
  22823. },
  22824. {
  22825. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22826. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22827. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  22828. .info = msm_sound_focus_info,
  22829. .get = msm_voice_sound_focus_get,
  22830. .put = msm_voice_sound_focus_put,
  22831. },
  22832. {
  22833. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22834. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22835. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  22836. .info = msm_source_tracking_info,
  22837. .get = msm_voice_source_tracking_get,
  22838. },
  22839. {
  22840. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22841. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22842. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  22843. .info = msm_sound_focus_info,
  22844. .get = msm_audio_sound_focus_get,
  22845. .put = msm_audio_sound_focus_put,
  22846. },
  22847. {
  22848. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22849. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22850. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  22851. .info = msm_source_tracking_info,
  22852. .get = msm_audio_source_tracking_get,
  22853. },
  22854. {
  22855. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22856. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22857. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  22858. .info = msm_sound_focus_info,
  22859. .get = msm_voice_sound_focus_get,
  22860. .put = msm_voice_sound_focus_put,
  22861. },
  22862. {
  22863. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22864. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22865. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  22866. .info = msm_source_tracking_info,
  22867. .get = msm_voice_source_tracking_get,
  22868. },
  22869. {
  22870. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22871. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22872. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  22873. .info = msm_sound_focus_info,
  22874. .get = msm_audio_sound_focus_get,
  22875. .put = msm_audio_sound_focus_put,
  22876. },
  22877. {
  22878. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22879. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22880. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  22881. .info = msm_source_tracking_info,
  22882. .get = msm_audio_source_tracking_get,
  22883. },
  22884. {
  22885. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22886. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22887. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  22888. .info = msm_sound_focus_info,
  22889. .get = msm_audio_sound_focus_get,
  22890. .put = msm_audio_sound_focus_put,
  22891. },
  22892. {
  22893. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22894. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22895. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  22896. .info = msm_source_tracking_info,
  22897. .get = msm_audio_source_tracking_get,
  22898. },
  22899. };
  22900. static const struct snd_kcontrol_new msm_source_doa_tracking_controls[] = {
  22901. {
  22902. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22903. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22904. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  22905. .info = msm_doa_tracking_mon_info,
  22906. .get = msm_doa_tracking_mon_get,
  22907. },
  22908. };
  22909. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  22910. struct snd_ctl_elem_value *ucontrol)
  22911. {
  22912. int ret = 0;
  22913. int item;
  22914. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22915. pr_debug("%s item is %d\n", __func__,
  22916. ucontrol->value.enumerated.item[0]);
  22917. mutex_lock(&routing_lock);
  22918. item = ucontrol->value.enumerated.item[0];
  22919. if (item < e->items) {
  22920. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22921. __func__, e->shift_l, e->values[item]);
  22922. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22923. e->values[item] < MSM_BACKEND_DAI_MAX)
  22924. /* Enable feedback TX path */
  22925. ret = afe_spk_prot_feed_back_cfg(
  22926. msm_bedais[e->values[item]].port_id,
  22927. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  22928. else {
  22929. pr_debug("%s values are out of range item %d\n",
  22930. __func__, e->values[item]);
  22931. /* Disable feedback TX path */
  22932. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22933. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  22934. else
  22935. ret = -EINVAL;
  22936. }
  22937. } else {
  22938. pr_err("%s item value is out of range item\n", __func__);
  22939. ret = -EINVAL;
  22940. }
  22941. mutex_unlock(&routing_lock);
  22942. return ret;
  22943. }
  22944. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  22945. struct snd_ctl_elem_value *ucontrol)
  22946. {
  22947. int ret = 0;
  22948. int item;
  22949. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22950. pr_debug("%s item is %d\n", __func__,
  22951. ucontrol->value.enumerated.item[0]);
  22952. mutex_lock(&routing_lock);
  22953. item = ucontrol->value.enumerated.item[0];
  22954. if (item < e->items) {
  22955. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22956. __func__, e->shift_l, e->values[item]);
  22957. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22958. e->values[item] < MSM_BACKEND_DAI_MAX)
  22959. /* Enable feedback TX path */
  22960. ret = afe_spk_prot_feed_back_cfg(
  22961. msm_bedais[e->values[item]].port_id,
  22962. msm_bedais[e->shift_l].port_id,
  22963. 1, 1, 1);
  22964. else {
  22965. pr_debug("%s values are out of range item %d\n",
  22966. __func__, e->values[item]);
  22967. /* Disable feedback TX path */
  22968. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22969. ret = afe_spk_prot_feed_back_cfg(0,
  22970. 0, 0, 0, 0);
  22971. else
  22972. ret = -EINVAL;
  22973. }
  22974. } else {
  22975. pr_err("%s item value is out of range item\n", __func__);
  22976. ret = -EINVAL;
  22977. }
  22978. mutex_unlock(&routing_lock);
  22979. return ret;
  22980. }
  22981. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  22982. struct snd_ctl_elem_value *ucontrol)
  22983. {
  22984. pr_debug("%s\n", __func__);
  22985. return 0;
  22986. }
  22987. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  22988. struct snd_ctl_elem_value *ucontrol)
  22989. {
  22990. pr_debug("%s\n", __func__);
  22991. ucontrol->value.enumerated.item[0] = 0;
  22992. return 0;
  22993. }
  22994. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  22995. "ZERO", "SLIM4_TX"
  22996. };
  22997. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  22998. "ZERO", "SLIM4_TX"
  22999. };
  23000. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  23001. "ZERO", "WSA_CDC_DMA_TX_0"
  23002. };
  23003. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  23004. "ZERO", "WSA_CDC_DMA_TX_0"
  23005. };
  23006. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  23007. "ZERO", "SENARY_TX"
  23008. };
  23009. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  23010. "ZERO", "INT5_MI2S_TX"
  23011. };
  23012. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  23013. "ZERO", "INT5_MI2S_TX"
  23014. };
  23015. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  23016. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  23017. };
  23018. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  23019. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  23020. };
  23021. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  23022. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  23023. };
  23024. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  23025. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  23026. };
  23027. static const int mi2s_rx_vi_fb_tx_value[] = {
  23028. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  23029. };
  23030. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  23031. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  23032. };
  23033. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  23034. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  23035. };
  23036. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  23037. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  23038. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  23039. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  23040. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  23041. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  23042. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  23043. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  23044. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  23045. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  23046. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  23047. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  23048. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  23049. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  23050. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  23051. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  23052. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  23053. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  23054. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  23055. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  23056. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  23057. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  23058. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  23059. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  23060. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  23061. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  23062. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  23063. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  23064. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  23065. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  23066. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  23067. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  23068. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  23069. spkr_prot_put_vi_lch_port);
  23070. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  23071. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  23072. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  23073. spkr_prot_put_vi_rch_port);
  23074. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  23075. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  23076. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  23077. spkr_prot_put_vi_lch_port);
  23078. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  23079. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  23080. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  23081. spkr_prot_put_vi_rch_port);
  23082. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  23083. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  23084. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  23085. spkr_prot_put_vi_lch_port);
  23086. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  23087. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  23088. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  23089. spkr_prot_put_vi_lch_port);
  23090. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  23091. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  23092. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  23093. spkr_prot_put_vi_rch_port);
  23094. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  23095. /* Frontend AIF */
  23096. /* Widget name equals to Front-End DAI name<Need confirmation>,
  23097. * Stream name must contains substring of front-end dai name
  23098. */
  23099. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  23100. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  23101. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  23102. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  23103. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  23104. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  23105. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  23106. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  23107. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  23108. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  23109. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  23110. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  23111. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  23112. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  23113. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  23114. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  23115. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  23116. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  23117. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  23118. SND_SOC_DAPM_AIF_IN("MM_DL23", "MultiMedia23 Playback", 0, 0, 0, 0),
  23119. SND_SOC_DAPM_AIF_IN("MM_DL24", "MultiMedia24 Playback", 0, 0, 0, 0),
  23120. SND_SOC_DAPM_AIF_IN("MM_DL25", "MultiMedia25 Playback", 0, 0, 0, 0),
  23121. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  23122. SND_SOC_DAPM_AIF_IN("MM_DL31", "MultiMedia31 Playback", 0, 0, 0, 0),
  23123. SND_SOC_DAPM_AIF_IN("MM_DL32", "MultiMedia32 Playback", 0, 0, 0, 0),
  23124. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  23125. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  23126. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  23127. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  23128. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  23129. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  23130. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  23131. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  23132. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  23133. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  23134. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  23135. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  23136. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  23137. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  23138. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  23139. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  23140. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  23141. SND_SOC_DAPM_AIF_OUT("MM_UL23", "MultiMedia23 Capture", 0, 0, 0, 0),
  23142. SND_SOC_DAPM_AIF_OUT("MM_UL24", "MultiMedia24 Capture", 0, 0, 0, 0),
  23143. SND_SOC_DAPM_AIF_OUT("MM_UL25", "MultiMedia25 Capture", 0, 0, 0, 0),
  23144. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  23145. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  23146. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  23147. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  23148. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  23149. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  23150. "VoiceMMode1 Playback", 0, 0, 0, 0),
  23151. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  23152. "VoiceMMode1 Capture", 0, 0, 0, 0),
  23153. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  23154. "VoiceMMode2 Playback", 0, 0, 0, 0),
  23155. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  23156. "VoiceMMode2 Capture", 0, 0, 0, 0),
  23157. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  23158. 0, 0, 0, 0),
  23159. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  23160. 0, 0, 0, 0),
  23161. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  23162. 0, 0, 0, 0),
  23163. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  23164. 0, 0, 0, 0),
  23165. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  23166. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  23167. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  23168. 0, 0, 0, 0),
  23169. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  23170. 0, 0, 0, 0),
  23171. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  23172. 0, 0, 0, 0),
  23173. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  23174. 0, 0, 0, 0),
  23175. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  23176. 0, 0, 0, 0),
  23177. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  23178. 0, 0, 0, 0),
  23179. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  23180. 0, 0, 0, 0),
  23181. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  23182. 0, 0, 0, 0),
  23183. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  23184. 0, 0, 0, 0),
  23185. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  23186. 0, 0, 0, 0),
  23187. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  23188. 0, 0, 0, 0),
  23189. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  23190. 0, 0, 0, 0),
  23191. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  23192. 0, 0, 0, 0),
  23193. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  23194. 0, 0, 0, 0),
  23195. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  23196. 0, 0, 0, 0),
  23197. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  23198. 0, 0, 0, 0),
  23199. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  23200. 0, 0, 0, 0),
  23201. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  23202. 0, 0, 0, 0),
  23203. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  23204. 0, 0, 0, 0),
  23205. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  23206. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  23207. 0, 0, 0, 0),
  23208. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  23209. "INT0 MI2S_RX Hostless Playback",
  23210. 0, 0, 0, 0),
  23211. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  23212. "INT4 MI2S_RX Hostless Playback",
  23213. 0, 0, 0, 0),
  23214. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  23215. "Primary MI2S_RX Hostless Playback",
  23216. 0, 0, 0, 0),
  23217. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  23218. "Secondary MI2S_RX Hostless Playback",
  23219. 0, 0, 0, 0),
  23220. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  23221. "Tertiary MI2S_RX Hostless Playback",
  23222. 0, 0, 0, 0),
  23223. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  23224. "Quaternary MI2S_RX Hostless Playback",
  23225. 0, 0, 0, 0),
  23226. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  23227. "Quinary MI2S_RX Hostless Playback",
  23228. 0, 0, 0, 0),
  23229. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  23230. "Senary MI2S_RX Hostless Playback",
  23231. 0, 0, 0, 0),
  23232. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  23233. 0, 0, 0, 0),
  23234. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  23235. 0, 0, 0, 0),
  23236. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  23237. 0, 0, 0, 0),
  23238. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  23239. 0, 0, 0, 0),
  23240. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  23241. 0, 0, 0, 0),
  23242. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  23243. "INT3 MI2S_TX Hostless Capture",
  23244. 0, 0, 0, 0),
  23245. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  23246. "Tertiary MI2S_TX Hostless Capture",
  23247. 0, 0, 0, 0),
  23248. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  23249. "Secondary MI2S_TX Hostless Capture",
  23250. 0, 0, 0, 0),
  23251. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  23252. "Primary MI2S_TX Hostless Capture",
  23253. 0, 0, 0, 0),
  23254. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  23255. 0, 0, 0, 0),
  23256. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  23257. 0, 0, 0, 0),
  23258. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  23259. "Quaternary MI2S_TX Hostless Capture",
  23260. 0, 0, 0, 0),
  23261. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  23262. "Quinary MI2S_TX Hostless Capture",
  23263. 0, 0, 0, 0),
  23264. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  23265. "Senary MI2S_TX Hostless Capture",
  23266. 0, 0, 0, 0),
  23267. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  23268. "Primary TDM0 Hostless Playback",
  23269. 0, 0, 0, 0),
  23270. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  23271. "Primary TDM0 Hostless Capture",
  23272. 0, 0, 0, 0),
  23273. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  23274. "Primary TDM1 Hostless Playback",
  23275. 0, 0, 0, 0),
  23276. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  23277. "Primary TDM1 Hostless Capture",
  23278. 0, 0, 0, 0),
  23279. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  23280. "Primary TDM2 Hostless Playback",
  23281. 0, 0, 0, 0),
  23282. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  23283. "Primary TDM2 Hostless Capture",
  23284. 0, 0, 0, 0),
  23285. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  23286. "Primary TDM3 Hostless Playback",
  23287. 0, 0, 0, 0),
  23288. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  23289. "Primary TDM3 Hostless Capture",
  23290. 0, 0, 0, 0),
  23291. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  23292. "Primary TDM4 Hostless Playback",
  23293. 0, 0, 0, 0),
  23294. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  23295. "Primary TDM4 Hostless Capture",
  23296. 0, 0, 0, 0),
  23297. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  23298. "Primary TDM5 Hostless Playback",
  23299. 0, 0, 0, 0),
  23300. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  23301. "Primary TDM5 Hostless Capture",
  23302. 0, 0, 0, 0),
  23303. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  23304. "Primary TDM6 Hostless Playback",
  23305. 0, 0, 0, 0),
  23306. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  23307. "Primary TDM6 Hostless Capture",
  23308. 0, 0, 0, 0),
  23309. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  23310. "Primary TDM7 Hostless Playback",
  23311. 0, 0, 0, 0),
  23312. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  23313. "Primary TDM7 Hostless Capture",
  23314. 0, 0, 0, 0),
  23315. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  23316. "Secondary TDM0 Hostless Playback",
  23317. 0, 0, 0, 0),
  23318. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  23319. "Secondary TDM0 Hostless Capture",
  23320. 0, 0, 0, 0),
  23321. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  23322. "Secondary TDM1 Hostless Playback",
  23323. 0, 0, 0, 0),
  23324. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  23325. "Secondary TDM1 Hostless Capture",
  23326. 0, 0, 0, 0),
  23327. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  23328. "Secondary TDM2 Hostless Playback",
  23329. 0, 0, 0, 0),
  23330. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  23331. "Secondary TDM2 Hostless Capture",
  23332. 0, 0, 0, 0),
  23333. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  23334. "Secondary TDM3 Hostless Playback",
  23335. 0, 0, 0, 0),
  23336. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  23337. "Secondary TDM3 Hostless Capture",
  23338. 0, 0, 0, 0),
  23339. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  23340. "Secondary TDM4 Hostless Playback",
  23341. 0, 0, 0, 0),
  23342. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  23343. "Secondary TDM4 Hostless Capture",
  23344. 0, 0, 0, 0),
  23345. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  23346. "Secondary TDM5 Hostless Playback",
  23347. 0, 0, 0, 0),
  23348. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  23349. "Secondary TDM5 Hostless Capture",
  23350. 0, 0, 0, 0),
  23351. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  23352. "Secondary TDM6 Hostless Playback",
  23353. 0, 0, 0, 0),
  23354. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  23355. "Secondary TDM6 Hostless Capture",
  23356. 0, 0, 0, 0),
  23357. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  23358. "Secondary TDM7 Hostless Playback",
  23359. 0, 0, 0, 0),
  23360. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  23361. "Secondary TDM7 Hostless Capture",
  23362. 0, 0, 0, 0),
  23363. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  23364. "Tertiary TDM0 Hostless Playback",
  23365. 0, 0, 0, 0),
  23366. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  23367. "Tertiary TDM0 Hostless Capture",
  23368. 0, 0, 0, 0),
  23369. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  23370. "Tertiary TDM1 Hostless Playback",
  23371. 0, 0, 0, 0),
  23372. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  23373. "Tertiary TDM1 Hostless Capture",
  23374. 0, 0, 0, 0),
  23375. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  23376. "Tertiary TDM2 Hostless Playback",
  23377. 0, 0, 0, 0),
  23378. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  23379. "Tertiary TDM2 Hostless Capture",
  23380. 0, 0, 0, 0),
  23381. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  23382. "Tertiary TDM3 Hostless Playback",
  23383. 0, 0, 0, 0),
  23384. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  23385. "Tertiary TDM3 Hostless Capture",
  23386. 0, 0, 0, 0),
  23387. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  23388. "Tertiary TDM4 Hostless Playback",
  23389. 0, 0, 0, 0),
  23390. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  23391. "Tertiary TDM4 Hostless Capture",
  23392. 0, 0, 0, 0),
  23393. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  23394. "Tertiary TDM5 Hostless Playback",
  23395. 0, 0, 0, 0),
  23396. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  23397. "Tertiary TDM5 Hostless Capture",
  23398. 0, 0, 0, 0),
  23399. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  23400. "Tertiary TDM6 Hostless Playback",
  23401. 0, 0, 0, 0),
  23402. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  23403. "Tertiary TDM6 Hostless Capture",
  23404. 0, 0, 0, 0),
  23405. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  23406. "Tertiary TDM7 Hostless Playback",
  23407. 0, 0, 0, 0),
  23408. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  23409. "Tertiary TDM7 Hostless Capture",
  23410. 0, 0, 0, 0),
  23411. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  23412. "Quaternary TDM0 Hostless Playback",
  23413. 0, 0, 0, 0),
  23414. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  23415. "Quaternary TDM0 Hostless Capture",
  23416. 0, 0, 0, 0),
  23417. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  23418. "Quaternary TDM1 Hostless Playback",
  23419. 0, 0, 0, 0),
  23420. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  23421. "Quaternary TDM1 Hostless Capture",
  23422. 0, 0, 0, 0),
  23423. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  23424. "Quaternary TDM2 Hostless Playback",
  23425. 0, 0, 0, 0),
  23426. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  23427. "Quaternary TDM2 Hostless Capture",
  23428. 0, 0, 0, 0),
  23429. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  23430. "Quaternary TDM3 Hostless Playback",
  23431. 0, 0, 0, 0),
  23432. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  23433. "Quaternary TDM3 Hostless Capture",
  23434. 0, 0, 0, 0),
  23435. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  23436. "Quaternary TDM4 Hostless Playback",
  23437. 0, 0, 0, 0),
  23438. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  23439. "Quaternary TDM4 Hostless Capture",
  23440. 0, 0, 0, 0),
  23441. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  23442. "Quaternary TDM5 Hostless Playback",
  23443. 0, 0, 0, 0),
  23444. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  23445. "Quaternary TDM5 Hostless Capture",
  23446. 0, 0, 0, 0),
  23447. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  23448. "Quaternary TDM6 Hostless Playback",
  23449. 0, 0, 0, 0),
  23450. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  23451. "Quaternary TDM6 Hostless Capture",
  23452. 0, 0, 0, 0),
  23453. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  23454. "Quaternary TDM7 Hostless Playback",
  23455. 0, 0, 0, 0),
  23456. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  23457. "Quaternary TDM7 Hostless Capture",
  23458. 0, 0, 0, 0),
  23459. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  23460. "Quinary TDM0 Hostless Playback",
  23461. 0, 0, 0, 0),
  23462. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  23463. "Quinary TDM0 Hostless Capture",
  23464. 0, 0, 0, 0),
  23465. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  23466. "Quinary TDM1 Hostless Playback",
  23467. 0, 0, 0, 0),
  23468. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  23469. "Quinary TDM1 Hostless Capture",
  23470. 0, 0, 0, 0),
  23471. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  23472. "Quinary TDM2 Hostless Playback",
  23473. 0, 0, 0, 0),
  23474. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  23475. "Quinary TDM2 Hostless Capture",
  23476. 0, 0, 0, 0),
  23477. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  23478. "Quinary TDM3 Hostless Playback",
  23479. 0, 0, 0, 0),
  23480. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  23481. "Quinary TDM3 Hostless Capture",
  23482. 0, 0, 0, 0),
  23483. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  23484. "Quinary TDM4 Hostless Playback",
  23485. 0, 0, 0, 0),
  23486. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  23487. "Quinary TDM4 Hostless Capture",
  23488. 0, 0, 0, 0),
  23489. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  23490. "Quinary TDM5 Hostless Playback",
  23491. 0, 0, 0, 0),
  23492. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  23493. "Quinary TDM5 Hostless Capture",
  23494. 0, 0, 0, 0),
  23495. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  23496. "Quinary TDM6 Hostless Playback",
  23497. 0, 0, 0, 0),
  23498. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  23499. "Quinary TDM6 Hostless Capture",
  23500. 0, 0, 0, 0),
  23501. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  23502. "Quinary TDM7 Hostless Playback",
  23503. 0, 0, 0, 0),
  23504. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  23505. "Quinary TDM7 Hostless Capture",
  23506. 0, 0, 0, 0),
  23507. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  23508. "Senary TDM0 Hostless Playback",
  23509. 0, 0, 0, 0),
  23510. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  23511. "Senary TDM0 Hostless Capture",
  23512. 0, 0, 0, 0),
  23513. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  23514. "Senary TDM1 Hostless Playback",
  23515. 0, 0, 0, 0),
  23516. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  23517. "Senary TDM1 Hostless Capture",
  23518. 0, 0, 0, 0),
  23519. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  23520. "Senary TDM2 Hostless Playback",
  23521. 0, 0, 0, 0),
  23522. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  23523. "Senary TDM2 Hostless Capture",
  23524. 0, 0, 0, 0),
  23525. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  23526. "Senary TDM3 Hostless Playback",
  23527. 0, 0, 0, 0),
  23528. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  23529. "Senary TDM3 Hostless Capture",
  23530. 0, 0, 0, 0),
  23531. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  23532. "Senary TDM4 Hostless Playback",
  23533. 0, 0, 0, 0),
  23534. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  23535. "Senary TDM4 Hostless Capture",
  23536. 0, 0, 0, 0),
  23537. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  23538. "Senary TDM5 Hostless Playback",
  23539. 0, 0, 0, 0),
  23540. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  23541. "Senary TDM5 Hostless Capture",
  23542. 0, 0, 0, 0),
  23543. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  23544. "Senary TDM6 Hostless Playback",
  23545. 0, 0, 0, 0),
  23546. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  23547. "Senary TDM6 Hostless Capture",
  23548. 0, 0, 0, 0),
  23549. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  23550. "Senary TDM7 Hostless Playback",
  23551. 0, 0, 0, 0),
  23552. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  23553. "Senary TDM7 Hostless Capture",
  23554. 0, 0, 0, 0),
  23555. /* LSM */
  23556. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  23557. 0, 0, 0, 0),
  23558. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  23559. 0, 0, 0, 0),
  23560. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  23561. 0, 0, 0, 0),
  23562. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  23563. 0, 0, 0, 0),
  23564. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  23565. 0, 0, 0, 0),
  23566. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  23567. 0, 0, 0, 0),
  23568. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  23569. 0, 0, 0, 0),
  23570. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  23571. 0, 0, 0, 0),
  23572. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  23573. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  23574. /* Backend AIF */
  23575. /* Stream name equals to backend dai link stream name */
  23576. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  23577. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  23578. 0, 0, 0, 0),
  23579. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  23580. 0, 0, 0, 0),
  23581. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  23582. 0, 0, 0, 0),
  23583. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  23584. 0, 0, 0, 0),
  23585. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  23586. 0, 0, 0, 0),
  23587. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  23588. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  23589. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  23590. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  23591. SND_SOC_DAPM_AIF_OUT("HDMI_MS", "HDMI MS Playback", 0, 0, 0, 0),
  23592. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  23593. 0, 0, 0, 0),
  23594. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  23595. 0, 0, 0, 0),
  23596. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  23597. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  23598. 0, 0, 0, 0),
  23599. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  23600. 0, 0, 0, 0),
  23601. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  23602. 0, 0, 0, 0),
  23603. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  23604. "Secondary MI2S Playback SD1",
  23605. 0, 0, 0, 0),
  23606. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  23607. 0, 0, 0, 0),
  23608. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  23609. 0, 0, 0, 0),
  23610. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  23611. 0, 0, 0, 0),
  23612. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  23613. 0, 0, 0, 0),
  23614. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  23615. 0, 0, 0, 0),
  23616. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  23617. 0, 0, 0, 0),
  23618. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  23619. 0, 0, 0, 0),
  23620. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  23621. 0, 0, 0, 0),
  23622. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  23623. 0, 0, 0, 0),
  23624. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  23625. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  23626. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  23627. 0, 0, 0, 0),
  23628. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  23629. 0, 0, 0, 0),
  23630. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  23631. 0, 0, 0, 0),
  23632. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  23633. 0, 0, 0, 0),
  23634. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  23635. 0, 0, 0, 0),
  23636. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  23637. 0, 0, 0, 0),
  23638. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  23639. 0, 0, 0, 0),
  23640. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  23641. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  23642. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  23643. 0, 0, 0, 0),
  23644. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  23645. 0, 0, 0, 0),
  23646. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  23647. 0, 0, 0, 0),
  23648. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  23649. 0, 0, 0, 0),
  23650. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  23651. 0, 0, 0, 0),
  23652. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  23653. 0, 0, 0, 0),
  23654. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  23655. 0, 0, 0, 0),
  23656. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  23657. 0, 0, 0, 0),
  23658. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  23659. 0, 0, 0, 0),
  23660. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  23661. 0, 0, 0, 0),
  23662. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  23663. 0, 0, 0, 0),
  23664. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  23665. 0, 0, 0, 0),
  23666. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  23667. 0, 0, 0, 0),
  23668. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  23669. 0, 0, 0, 0),
  23670. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  23671. 0, 0, 0, 0),
  23672. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  23673. 0, 0, 0, 0),
  23674. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  23675. 0, 0, 0, 0),
  23676. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  23677. 0, 0, 0, 0),
  23678. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  23679. 0, 0, 0, 0),
  23680. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  23681. 0, 0, 0, 0),
  23682. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  23683. 0, 0, 0, 0),
  23684. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  23685. 0, 0, 0, 0),
  23686. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  23687. 0, 0, 0, 0),
  23688. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  23689. 0, 0, 0, 0),
  23690. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  23691. 0, 0, 0, 0),
  23692. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  23693. 0, 0, 0, 0),
  23694. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  23695. 0, 0, 0, 0),
  23696. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  23697. 0, 0, 0, 0),
  23698. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  23699. 0, 0, 0, 0),
  23700. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  23701. 0, 0, 0, 0),
  23702. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  23703. 0, 0, 0, 0),
  23704. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  23705. 0, 0, 0, 0),
  23706. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  23707. 0, 0, 0, 0),
  23708. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  23709. 0, 0, 0, 0),
  23710. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  23711. 0, 0, 0, 0),
  23712. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  23713. 0, 0, 0, 0),
  23714. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  23715. 0, 0, 0, 0),
  23716. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  23717. 0, 0, 0, 0),
  23718. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  23719. 0, 0, 0, 0),
  23720. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  23721. 0, 0, 0, 0),
  23722. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  23723. 0, 0, 0, 0),
  23724. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  23725. 0, 0, 0, 0),
  23726. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  23727. 0, 0, 0, 0),
  23728. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  23729. 0, 0, 0, 0),
  23730. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  23731. 0, 0, 0, 0),
  23732. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  23733. 0, 0, 0, 0),
  23734. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  23735. 0, 0, 0, 0),
  23736. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  23737. 0, 0, 0, 0),
  23738. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  23739. 0, 0, 0, 0),
  23740. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  23741. 0, 0, 0, 0),
  23742. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  23743. 0, 0, 0, 0),
  23744. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  23745. 0, 0, 0, 0),
  23746. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  23747. 0, 0, 0, 0),
  23748. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  23749. 0, 0, 0, 0),
  23750. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  23751. 0, 0, 0, 0),
  23752. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  23753. 0, 0, 0, 0),
  23754. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  23755. 0, 0, 0, 0),
  23756. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  23757. 0, 0, 0, 0),
  23758. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  23759. 0, 0, 0, 0),
  23760. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  23761. 0, 0, 0, 0),
  23762. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  23763. 0, 0, 0, 0),
  23764. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  23765. 0, 0, 0, 0),
  23766. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  23767. 0, 0, 0, 0),
  23768. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  23769. 0, 0, 0, 0),
  23770. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  23771. 0, 0, 0, 0),
  23772. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  23773. 0, 0, 0, 0),
  23774. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  23775. 0, 0, 0, 0),
  23776. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  23777. 0, 0, 0, 0),
  23778. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  23779. 0, 0, 0, 0),
  23780. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  23781. 0, 0, 0, 0),
  23782. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  23783. 0, 0, 0, 0),
  23784. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  23785. 0, 0, 0, 0),
  23786. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  23787. 0, 0, 0, 0),
  23788. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  23789. 0, 0, 0, 0),
  23790. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  23791. 0, 0, 0, 0),
  23792. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  23793. 0, 0, 0, 0),
  23794. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  23795. 0, 0, 0, 0),
  23796. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  23797. 0, 0, 0, 0),
  23798. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  23799. 0, 0, 0, 0),
  23800. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  23801. 0, 0, 0, 0),
  23802. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  23803. 0, 0, 0, 0),
  23804. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  23805. 0, 0, 0, 0),
  23806. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  23807. 0, 0, 0, 0),
  23808. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  23809. 0, 0, 0, 0),
  23810. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  23811. 0, 0, 0, 0),
  23812. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  23813. 0, 0, 0, 0),
  23814. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  23815. 0, 0, 0, 0),
  23816. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  23817. 0, 0, 0, 0),
  23818. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  23819. 0, 0, 0, 0),
  23820. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  23821. 0, 0, 0, 0),
  23822. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  23823. 0, 0, 0, 0),
  23824. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  23825. 0, 0, 0, 0),
  23826. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  23827. 0, 0, 0, 0),
  23828. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  23829. 0, 0, 0, 0),
  23830. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  23831. 0, 0, 0, 0),
  23832. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  23833. 0, 0, 0, 0),
  23834. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  23835. 0, 0, 0, 0),
  23836. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  23837. 0, 0, 0, 0),
  23838. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  23839. 0, 0, 0, 0),
  23840. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  23841. 0, 0, 0, 0),
  23842. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  23843. 0, 0, 0, 0),
  23844. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  23845. 0, 0, 0, 0),
  23846. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  23847. 0, 0, 0, 0),
  23848. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  23849. 0, 0, 0, 0),
  23850. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  23851. 0, 0, 0, 0),
  23852. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  23853. 0, 0, 0, 0),
  23854. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  23855. 0, 0, 0, 0),
  23856. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  23857. 0, 0, 0, 0),
  23858. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  23859. 0, 0, 0, 0),
  23860. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  23861. 0, 0, 0, 0),
  23862. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  23863. 0, 0, 0, 0),
  23864. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  23865. 0, 0, 0, 0),
  23866. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  23867. 0, 0, 0, 0),
  23868. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  23869. 0, 0, 0, 0),
  23870. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  23871. 0, 0, 0, 0),
  23872. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  23873. 0, 0, 0, 0),
  23874. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  23875. 0, 0, 0, 0),
  23876. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  23877. 0, 0, 0, 0),
  23878. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  23879. 0, 0, 0, 0),
  23880. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  23881. 0, 0, 0, 0),
  23882. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  23883. 0, 0, 0, 0),
  23884. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  23885. 0, 0, 0, 0),
  23886. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  23887. 0, 0, 0, 0),
  23888. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  23889. 0, 0, 0, 0),
  23890. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  23891. 0, 0, 0, 0),
  23892. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  23893. 0, 0, 0, 0),
  23894. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  23895. 0, 0, 0, 0),
  23896. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  23897. 0, 0, 0, 0),
  23898. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  23899. 0, 0, 0, 0),
  23900. /* incall */
  23901. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  23902. 0, 0, 0, 0),
  23903. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  23904. 0, 0, 0, 0),
  23905. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  23906. 0, 0, 0, 0),
  23907. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  23908. 0, 0, 0, 0),
  23909. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  23910. 0, 0, 0, 0),
  23911. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  23912. 0, 0, 0, 0),
  23913. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  23914. 0, 0, 0, 0),
  23915. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  23916. 0, 0, 0, 0),
  23917. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  23918. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  23919. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  23920. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  23921. 0, 0, 0, 0),
  23922. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  23923. 0, 0, 0, 0),
  23924. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  23925. 0, 0, 0, 0),
  23926. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  23927. 0, 0, 0, 0),
  23928. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  23929. 0, 0, 0, 0),
  23930. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  23931. 0, 0, 0, 0),
  23932. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  23933. 0, 0, 0, 0),
  23934. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  23935. 0, 0, 0, 0),
  23936. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  23937. 0, 0, 0, 0),
  23938. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  23939. 0, 0, 0, 0),
  23940. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  23941. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  23942. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  23943. 0, 0, 0, 0),
  23944. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  23945. 0, 0, 0, 0),
  23946. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  23947. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  23948. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  23949. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  23950. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  23951. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  23952. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  23953. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  23954. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  23955. /* In- call recording */
  23956. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  23957. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  23958. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  23959. 0, 0, 0, 0),
  23960. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  23961. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  23962. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  23963. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  23964. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  23965. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  23966. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  23967. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  23968. SND_SOC_DAPM_AIF_OUT("PROXY_RX", "Proxy Playback", 0, 0, 0, 0),
  23969. SND_SOC_DAPM_AIF_IN("PROXY_TX", "Proxy Capture", 0, 0, 0, 0),
  23970. /* Switch Definitions */
  23971. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  23972. &slim_fm_switch_mixer_controls),
  23973. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  23974. &slim1_fm_switch_mixer_controls),
  23975. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  23976. &slim3_fm_switch_mixer_controls),
  23977. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  23978. &slim4_fm_switch_mixer_controls),
  23979. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  23980. &slim6_fm_switch_mixer_controls),
  23981. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23982. &pcm_rx_switch_mixer_controls),
  23983. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23984. &int0_mi2s_rx_switch_mixer_controls),
  23985. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23986. &int4_mi2s_rx_switch_mixer_controls),
  23987. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23988. &pri_mi2s_rx_switch_mixer_controls),
  23989. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23990. &sec_mi2s_rx_switch_mixer_controls),
  23991. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23992. &tert_mi2s_rx_switch_mixer_controls),
  23993. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23994. &quat_mi2s_rx_switch_mixer_controls),
  23995. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23996. &quin_mi2s_rx_switch_mixer_controls),
  23997. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  23998. &sco_slim7_switch_mixer_controls),
  23999. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  24000. &sen_mi2s_rx_switch_mixer_controls),
  24001. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  24002. &hfp_pri_aux_switch_mixer_controls),
  24003. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  24004. &hfp_aux_switch_mixer_controls),
  24005. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  24006. &hfp_int_switch_mixer_controls),
  24007. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  24008. &hfp_slim7_switch_mixer_controls),
  24009. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  24010. &usb_switch_mixer_controls),
  24011. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  24012. &a2dp_slim7_switch_mixer_controls),
  24013. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  24014. &cdc_dma_wsa_switch_mixer_controls),
  24015. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  24016. &cdc_dma_rx_switch_mixer_controls),
  24017. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_1_DL_HL", SND_SOC_NOPM, 0, 0,
  24018. &cdc_dma_rx_1_switch_mixer_controls),
  24019. /* Mixer definitions */
  24020. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24021. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  24022. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24023. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  24024. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24025. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  24026. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24027. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  24028. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24029. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  24030. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24031. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  24032. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24033. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  24034. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  24035. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  24036. SND_SOC_DAPM_MIXER("HDMI_MS Mixer", SND_SOC_NOPM, 0, 0,
  24037. hdmi_ms_mixer_controls, ARRAY_SIZE(hdmi_ms_mixer_controls)),
  24038. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  24039. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  24040. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  24041. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  24042. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24043. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  24044. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24045. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  24046. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24047. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  24048. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24049. quaternary_mi2s_rx_mixer_controls,
  24050. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  24051. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24052. tertiary_mi2s_rx_mixer_controls,
  24053. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  24054. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24055. secondary_mi2s_rx_mixer_controls,
  24056. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  24057. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24058. secondary_mi2s_rx2_mixer_controls,
  24059. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  24060. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24061. primary_mi2s_rx_mixer_controls,
  24062. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  24063. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24064. int0_mi2s_rx_mixer_controls,
  24065. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  24066. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24067. int4_mi2s_rx_mixer_controls,
  24068. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  24069. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24070. quinary_mi2s_rx_mixer_controls,
  24071. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  24072. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24073. senary_mi2s_rx_mixer_controls,
  24074. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  24075. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24076. pri_tdm_rx_0_mixer_controls,
  24077. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  24078. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24079. pri_tdm_rx_1_mixer_controls,
  24080. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  24081. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24082. pri_tdm_rx_2_mixer_controls,
  24083. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  24084. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24085. pri_tdm_rx_3_mixer_controls,
  24086. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  24087. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24088. pri_tdm_tx_0_mixer_controls,
  24089. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  24090. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24091. sec_tdm_rx_0_mixer_controls,
  24092. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  24093. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24094. sec_tdm_rx_1_mixer_controls,
  24095. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  24096. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24097. sec_tdm_rx_2_mixer_controls,
  24098. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  24099. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24100. sec_tdm_rx_3_mixer_controls,
  24101. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  24102. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24103. sec_tdm_tx_0_mixer_controls,
  24104. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  24105. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24106. tert_tdm_rx_0_mixer_controls,
  24107. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  24108. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24109. tert_tdm_tx_0_mixer_controls,
  24110. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  24111. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24112. tert_tdm_rx_1_mixer_controls,
  24113. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  24114. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24115. tert_tdm_rx_2_mixer_controls,
  24116. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  24117. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24118. tert_tdm_rx_3_mixer_controls,
  24119. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  24120. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24121. tert_tdm_rx_4_mixer_controls,
  24122. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  24123. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24124. quat_tdm_rx_0_mixer_controls,
  24125. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  24126. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24127. quat_tdm_tx_0_mixer_controls,
  24128. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  24129. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24130. quat_tdm_rx_1_mixer_controls,
  24131. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  24132. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24133. quat_tdm_rx_2_mixer_controls,
  24134. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  24135. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24136. quat_tdm_rx_3_mixer_controls,
  24137. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  24138. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24139. quin_tdm_rx_0_mixer_controls,
  24140. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  24141. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24142. quin_tdm_tx_0_mixer_controls,
  24143. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  24144. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24145. quin_tdm_rx_1_mixer_controls,
  24146. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  24147. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24148. quin_tdm_tx_1_mixer_controls,
  24149. ARRAY_SIZE(quin_tdm_tx_1_mixer_controls)),
  24150. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24151. quin_tdm_rx_2_mixer_controls,
  24152. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  24153. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24154. quin_tdm_tx_2_mixer_controls,
  24155. ARRAY_SIZE(quin_tdm_tx_2_mixer_controls)),
  24156. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24157. quin_tdm_rx_3_mixer_controls,
  24158. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  24159. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24160. quin_tdm_tx_3_mixer_controls,
  24161. ARRAY_SIZE(quin_tdm_tx_3_mixer_controls)),
  24162. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24163. sen_tdm_tx_0_mixer_controls,
  24164. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  24165. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24166. sen_tdm_rx_0_mixer_controls,
  24167. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  24168. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24169. sen_tdm_rx_1_mixer_controls,
  24170. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  24171. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24172. sen_tdm_rx_2_mixer_controls,
  24173. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  24174. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24175. sen_tdm_rx_3_mixer_controls,
  24176. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  24177. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24178. pri_meta_mi2s_rx_mixer_controls,
  24179. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  24180. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24181. sec_meta_mi2s_rx_mixer_controls,
  24182. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  24183. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24184. wsa_cdc_dma_rx_0_mixer_controls,
  24185. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  24186. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24187. wsa_cdc_dma_rx_1_mixer_controls,
  24188. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  24189. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24190. rx_cdc_dma_rx_0_mixer_controls,
  24191. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  24192. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24193. rx_cdc_dma_rx_1_mixer_controls,
  24194. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  24195. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24196. rx_cdc_dma_rx_2_mixer_controls,
  24197. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  24198. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24199. rx_cdc_dma_rx_3_mixer_controls,
  24200. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  24201. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24202. rx_cdc_dma_rx_4_mixer_controls,
  24203. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  24204. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24205. rx_cdc_dma_rx_5_mixer_controls,
  24206. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  24207. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24208. rx_cdc_dma_rx_6_mixer_controls,
  24209. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  24210. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24211. rx_cdc_dma_rx_7_mixer_controls,
  24212. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  24213. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  24214. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  24215. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  24216. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  24217. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  24218. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  24219. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  24220. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  24221. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  24222. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  24223. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  24224. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  24225. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  24226. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  24227. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  24228. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  24229. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  24230. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  24231. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  24232. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  24233. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  24234. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  24235. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  24236. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  24237. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  24238. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  24239. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  24240. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  24241. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  24242. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  24243. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  24244. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  24245. SND_SOC_DAPM_MIXER("MultiMedia23 Mixer", SND_SOC_NOPM, 0, 0,
  24246. mmul23_mixer_controls, ARRAY_SIZE(mmul23_mixer_controls)),
  24247. SND_SOC_DAPM_MIXER("MultiMedia24 Mixer", SND_SOC_NOPM, 0, 0,
  24248. mmul24_mixer_controls, ARRAY_SIZE(mmul24_mixer_controls)),
  24249. SND_SOC_DAPM_MIXER("MultiMedia25 Mixer", SND_SOC_NOPM, 0, 0,
  24250. mmul25_mixer_controls, ARRAY_SIZE(mmul25_mixer_controls)),
  24251. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  24252. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  24253. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  24254. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  24255. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  24256. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  24257. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  24258. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  24259. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24260. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  24261. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24262. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  24263. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24264. tert_auxpcm_rx_mixer_controls,
  24265. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  24266. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24267. quat_auxpcm_rx_mixer_controls,
  24268. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  24269. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24270. quin_auxpcm_rx_mixer_controls,
  24271. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  24272. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24273. sen_auxpcm_rx_mixer_controls,
  24274. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  24275. /* incall */
  24276. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  24277. incall_music_delivery_mixer_controls,
  24278. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  24279. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24280. incall_music2_delivery_mixer_controls,
  24281. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  24282. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24283. slimbus_4_rx_mixer_controls,
  24284. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  24285. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24286. slimbus_6_rx_mixer_controls,
  24287. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  24288. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24289. usb_audio_rx_mixer_controls,
  24290. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  24291. /* Voice Mixer */
  24292. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  24293. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  24294. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  24295. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  24296. SND_SOC_NOPM, 0, 0,
  24297. sec_i2s_rx_voice_mixer_controls,
  24298. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  24299. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  24300. SND_SOC_NOPM, 0, 0,
  24301. sec_mi2s_rx_voice_mixer_controls,
  24302. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  24303. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  24304. SND_SOC_NOPM, 0, 0,
  24305. slimbus_rx_voice_mixer_controls,
  24306. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  24307. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  24308. SND_SOC_NOPM, 0, 0,
  24309. bt_sco_rx_voice_mixer_controls,
  24310. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  24311. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  24312. SND_SOC_NOPM, 0, 0,
  24313. afe_pcm_rx_voice_mixer_controls,
  24314. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  24315. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  24316. SND_SOC_NOPM, 0, 0,
  24317. aux_pcm_rx_voice_mixer_controls,
  24318. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  24319. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  24320. SND_SOC_NOPM, 0, 0,
  24321. sec_aux_pcm_rx_voice_mixer_controls,
  24322. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  24323. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  24324. SND_SOC_NOPM, 0, 0,
  24325. tert_aux_pcm_rx_voice_mixer_controls,
  24326. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  24327. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  24328. SND_SOC_NOPM, 0, 0,
  24329. quat_aux_pcm_rx_voice_mixer_controls,
  24330. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  24331. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  24332. SND_SOC_NOPM, 0, 0,
  24333. quin_aux_pcm_rx_voice_mixer_controls,
  24334. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  24335. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  24336. SND_SOC_NOPM, 0, 0,
  24337. sen_aux_pcm_rx_voice_mixer_controls,
  24338. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  24339. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  24340. SND_SOC_NOPM, 0, 0,
  24341. hdmi_rx_voice_mixer_controls,
  24342. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  24343. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  24344. SND_SOC_NOPM, 0, 0,
  24345. mi2s_rx_voice_mixer_controls,
  24346. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  24347. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  24348. SND_SOC_NOPM, 0, 0,
  24349. pri_mi2s_rx_voice_mixer_controls,
  24350. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  24351. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  24352. SND_SOC_NOPM, 0, 0,
  24353. int0_mi2s_rx_voice_mixer_controls,
  24354. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  24355. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  24356. SND_SOC_NOPM, 0, 0,
  24357. int4_mi2s_rx_voice_mixer_controls,
  24358. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  24359. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  24360. SND_SOC_NOPM, 0, 0,
  24361. tert_mi2s_rx_voice_mixer_controls,
  24362. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  24363. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  24364. SND_SOC_NOPM, 0, 0,
  24365. quat_mi2s_rx_voice_mixer_controls,
  24366. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  24367. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  24368. SND_SOC_NOPM, 0, 0,
  24369. quin_mi2s_rx_voice_mixer_controls,
  24370. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  24371. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  24372. SND_SOC_NOPM, 0, 0,
  24373. pri_tdm_rx_0_voice_mixer_controls,
  24374. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  24375. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  24376. SND_SOC_NOPM, 0, 0,
  24377. pri_tdm_rx_1_voice_mixer_controls,
  24378. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  24379. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  24380. SND_SOC_NOPM, 0, 0,
  24381. pri_tdm_rx_2_voice_mixer_controls,
  24382. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  24383. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  24384. SND_SOC_NOPM, 0, 0,
  24385. pri_tdm_rx_3_voice_mixer_controls,
  24386. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  24387. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  24388. SND_SOC_NOPM, 0, 0,
  24389. sen_mi2s_rx_voice_mixer_controls,
  24390. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  24391. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  24392. SND_SOC_NOPM, 0, 0,
  24393. quat_tdm_rx_2_voice_mixer_controls,
  24394. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  24395. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2_Voice Mixer",
  24396. SND_SOC_NOPM, 0, 0,
  24397. quin_tdm_rx_2_voice_mixer_controls,
  24398. ARRAY_SIZE(quin_tdm_rx_2_voice_mixer_controls)),
  24399. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  24400. SND_SOC_NOPM, 0, 0,
  24401. wsa_cdc_dma_rx_0_voice_mixer_controls,
  24402. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  24403. SND_SOC_DAPM_MIXER("PROXY_RX_Voice Mixer",
  24404. SND_SOC_NOPM, 0, 0,
  24405. proxy_rx_voice_mixer_controls,
  24406. ARRAY_SIZE(proxy_rx_voice_mixer_controls)),
  24407. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  24408. SND_SOC_NOPM, 0, 0,
  24409. rx_cdc_dma_rx_0_voice_mixer_controls,
  24410. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  24411. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1_Voice Mixer",
  24412. SND_SOC_NOPM, 0, 0,
  24413. rx_cdc_dma_rx_1_voice_mixer_controls,
  24414. ARRAY_SIZE(rx_cdc_dma_rx_1_voice_mixer_controls)),
  24415. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  24416. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  24417. ARRAY_SIZE(tx_voip_mixer_controls)),
  24418. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  24419. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  24420. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  24421. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  24422. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  24423. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  24424. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24425. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  24426. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24427. int_bt_a2dp_rx_mixer_controls,
  24428. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  24429. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24430. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  24431. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24432. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  24433. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24434. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  24435. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24436. tx_voice2_stub_mixer_controls,
  24437. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  24438. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24439. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  24440. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  24441. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  24442. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  24443. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  24444. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24445. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  24446. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  24447. SND_SOC_NOPM, 0, 0,
  24448. slimbus_6_rx_voice_mixer_controls,
  24449. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  24450. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24451. slimbus_7_rx_voice_mixer_controls,
  24452. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  24453. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24454. slimbus_8_rx_voice_mixer_controls,
  24455. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  24456. /* port mixer */
  24457. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  24458. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  24459. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  24460. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  24461. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  24462. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  24463. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  24464. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  24465. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  24466. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  24467. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  24468. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  24469. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  24470. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  24471. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  24472. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  24473. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  24474. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  24475. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  24476. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  24477. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  24478. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24479. sbus_1_rx_port_mixer_controls,
  24480. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  24481. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24482. bt_sco_rx_port_mixer_controls,
  24483. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  24484. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  24485. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  24486. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  24487. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  24488. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  24489. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  24490. SND_SOC_DAPM_MIXER("HDMI_RX_MS Port Mixer",
  24491. SND_SOC_NOPM, 0, 0, hdmi_rx_ms_port_mixer_controls,
  24492. ARRAY_SIZE(hdmi_rx_ms_port_mixer_controls)),
  24493. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  24494. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  24495. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  24496. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  24497. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  24498. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  24499. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  24500. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  24501. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  24502. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  24503. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  24504. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  24505. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  24506. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  24507. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  24508. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24509. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  24510. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24511. primary_mi2s_rx_port_mixer_controls,
  24512. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  24513. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24514. sec_mi2s_rx_port_mixer_controls,
  24515. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  24516. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24517. tert_mi2s_rx_port_mixer_controls,
  24518. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  24519. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24520. quat_mi2s_rx_port_mixer_controls,
  24521. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  24522. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24523. quin_mi2s_rx_port_mixer_controls,
  24524. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  24525. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24526. sen_mi2s_rx_port_mixer_controls,
  24527. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  24528. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24529. pri_tdm_rx_0_port_mixer_controls,
  24530. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  24531. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24532. pri_tdm_rx_1_port_mixer_controls,
  24533. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  24534. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24535. pri_tdm_rx_2_port_mixer_controls,
  24536. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  24537. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24538. pri_tdm_rx_3_port_mixer_controls,
  24539. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  24540. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24541. sec_tdm_rx_0_port_mixer_controls,
  24542. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  24543. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24544. sec_tdm_rx_1_port_mixer_controls,
  24545. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  24546. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24547. sec_tdm_rx_2_port_mixer_controls,
  24548. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  24549. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24550. sec_tdm_rx_3_port_mixer_controls,
  24551. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  24552. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24553. sec_tdm_rx_7_port_mixer_controls,
  24554. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  24555. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24556. tert_tdm_rx_0_port_mixer_controls,
  24557. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  24558. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24559. tert_tdm_rx_1_port_mixer_controls,
  24560. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  24561. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24562. tert_tdm_rx_2_port_mixer_controls,
  24563. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  24564. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24565. tert_tdm_rx_3_port_mixer_controls,
  24566. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  24567. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24568. quat_tdm_rx_0_port_mixer_controls,
  24569. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  24570. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24571. quat_tdm_rx_1_port_mixer_controls,
  24572. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  24573. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24574. quat_tdm_rx_2_port_mixer_controls,
  24575. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  24576. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24577. quat_tdm_rx_3_port_mixer_controls,
  24578. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  24579. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24580. quat_tdm_rx_7_port_mixer_controls,
  24581. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  24582. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24583. quin_tdm_rx_0_port_mixer_controls,
  24584. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  24585. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24586. quin_tdm_rx_1_port_mixer_controls,
  24587. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  24588. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24589. quin_tdm_rx_2_port_mixer_controls,
  24590. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  24591. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24592. quin_tdm_rx_3_port_mixer_controls,
  24593. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  24594. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24595. quin_tdm_rx_7_port_mixer_controls,
  24596. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  24597. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24598. sen_tdm_rx_0_port_mixer_controls,
  24599. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  24600. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24601. sen_tdm_rx_1_port_mixer_controls,
  24602. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  24603. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24604. sen_tdm_rx_2_port_mixer_controls,
  24605. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  24606. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24607. sen_tdm_rx_3_port_mixer_controls,
  24608. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  24609. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24610. int0_mi2s_rx_port_mixer_controls,
  24611. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  24612. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24613. int4_mi2s_rx_port_mixer_controls,
  24614. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  24615. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24616. wsa_cdc_dma_rx_0_port_mixer_controls,
  24617. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  24618. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24619. rx_cdc_dma_rx_0_port_mixer_controls,
  24620. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  24621. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24622. rx_cdc_dma_rx_1_port_mixer_controls,
  24623. ARRAY_SIZE(rx_cdc_dma_rx_1_port_mixer_controls)),
  24624. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  24625. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  24626. ARRAY_SIZE(tx_qchat_mixer_controls)),
  24627. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  24628. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  24629. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  24630. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  24631. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  24632. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  24633. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  24634. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  24635. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  24636. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  24637. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  24638. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  24639. /* lsm mixer definitions */
  24640. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  24641. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  24642. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  24643. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  24644. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  24645. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  24646. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  24647. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  24648. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  24649. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  24650. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  24651. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  24652. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  24653. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  24654. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  24655. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  24656. /* Virtual Pins to force backends ON atm */
  24657. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  24658. SND_SOC_DAPM_INPUT("BE_IN"),
  24659. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24660. &slim0_rx_vi_fb_lch_mux),
  24661. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24662. &slim0_rx_vi_fb_rch_mux),
  24663. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24664. &wsa_rx_0_vi_fb_lch_mux),
  24665. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24666. &wsa_rx_0_vi_fb_rch_mux),
  24667. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  24668. &mi2s_rx_vi_fb_mux),
  24669. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24670. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  24671. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24672. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  24673. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  24674. &voc_ext_ec_mux),
  24675. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  24676. &ext_ec_ref_mux_ul1),
  24677. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  24678. &ext_ec_ref_mux_ul2),
  24679. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  24680. &ext_ec_ref_mux_ul3),
  24681. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  24682. &ext_ec_ref_mux_ul4),
  24683. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  24684. &ext_ec_ref_mux_ul5),
  24685. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  24686. &ext_ec_ref_mux_ul6),
  24687. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  24688. &ext_ec_ref_mux_ul8),
  24689. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  24690. &ext_ec_ref_mux_ul9),
  24691. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  24692. &ext_ec_ref_mux_ul10),
  24693. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  24694. &ext_ec_ref_mux_ul16),
  24695. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  24696. &ext_ec_ref_mux_ul17),
  24697. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  24698. &ext_ec_ref_mux_ul18),
  24699. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  24700. &ext_ec_ref_mux_ul19),
  24701. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  24702. &ext_ec_ref_mux_ul28),
  24703. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  24704. &ext_ec_ref_mux_ul29),
  24705. };
  24706. static const struct snd_soc_dapm_route intercon[] = {
  24707. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24708. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24709. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24710. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24711. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24712. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24713. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24714. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24715. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24716. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24717. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24718. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24719. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24720. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24721. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24722. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24723. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24724. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  24725. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24726. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24727. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24728. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24729. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24730. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24731. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24732. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24733. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24734. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24735. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24736. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24737. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24738. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24739. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24740. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24741. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24742. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  24743. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24744. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24745. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24746. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24747. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24748. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24749. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24750. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24751. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24752. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24753. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24754. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24755. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24756. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24757. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24758. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24759. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24760. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  24761. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24762. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24763. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24764. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24765. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24766. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24767. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24768. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24769. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24770. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24771. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24772. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24773. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24774. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24775. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24776. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24777. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24778. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  24779. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24780. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24781. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24782. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24783. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24784. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24785. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24786. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24787. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24788. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24789. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24790. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24791. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24792. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24793. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24794. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24795. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24796. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  24797. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24798. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24799. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24800. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24801. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24802. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24803. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24804. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24805. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24806. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24807. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24808. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24809. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24810. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24811. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24812. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24813. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24814. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24815. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24816. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  24817. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24818. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24819. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24820. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24821. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24822. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24823. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24824. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24825. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24826. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24827. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24828. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24829. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24830. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24831. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24832. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24833. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24834. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24835. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24836. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  24837. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24838. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24839. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24840. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24841. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24842. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24843. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24844. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24845. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24846. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24847. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24848. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24849. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24850. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24851. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24852. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24853. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24854. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24855. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24856. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  24857. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24858. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24859. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24860. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24861. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24862. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24863. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24864. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24865. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24866. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24867. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24868. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24869. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24870. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24871. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24872. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24873. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24874. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24875. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24876. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  24877. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24878. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24879. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24880. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24881. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24882. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24883. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24884. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24885. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24886. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24887. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24888. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24889. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24890. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24891. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24892. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24893. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24894. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24895. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24896. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  24897. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24898. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24899. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24900. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24901. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24902. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24903. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24904. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24905. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24906. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24907. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24908. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24909. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24910. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24911. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24912. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24913. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24914. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24915. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24916. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  24917. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24918. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24919. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24920. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24921. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24922. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24923. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24924. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24925. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24926. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24927. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24928. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24929. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24930. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24931. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24932. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24933. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24934. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24935. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24936. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  24937. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24938. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24939. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24940. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24941. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24942. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24943. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24944. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24945. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24946. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24947. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24948. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24949. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24950. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24951. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24952. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24953. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24954. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24955. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24956. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  24957. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24958. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24959. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24960. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24961. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24962. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24963. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24964. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24965. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24966. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24967. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24968. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24969. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24970. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24971. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24972. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24973. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24974. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24975. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24976. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  24977. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24978. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24979. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24980. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24981. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24982. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24983. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24984. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24985. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24986. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24987. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24988. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24989. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24990. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24991. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24992. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24993. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24994. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24995. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24996. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  24997. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  24998. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  24999. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  25000. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  25001. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  25002. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  25003. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  25004. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  25005. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  25006. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  25007. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  25008. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  25009. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  25010. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  25011. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  25012. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  25013. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  25014. {"HDMI", NULL, "HDMI Mixer"},
  25015. {"HDMI_MS Mixer", "MultiMedia1", "MM_DL1"},
  25016. {"HDMI_MS Mixer", "MultiMedia2", "MM_DL2"},
  25017. {"HDMI_MS Mixer", "MultiMedia3", "MM_DL3"},
  25018. {"HDMI_MS Mixer", "MultiMedia4", "MM_DL4"},
  25019. {"HDMI_MS Mixer", "MultiMedia5", "MM_DL5"},
  25020. {"HDMI_MS Mixer", "MultiMedia6", "MM_DL6"},
  25021. {"HDMI_MS Mixer", "MultiMedia7", "MM_DL7"},
  25022. {"HDMI_MS Mixer", "MultiMedia8", "MM_DL8"},
  25023. {"HDMI_MS Mixer", "MultiMedia9", "MM_DL9"},
  25024. {"HDMI_MS Mixer", "MultiMedia10", "MM_DL10"},
  25025. {"HDMI_MS Mixer", "MultiMedia11", "MM_DL11"},
  25026. {"HDMI_MS Mixer", "MultiMedia12", "MM_DL12"},
  25027. {"HDMI_MS Mixer", "MultiMedia13", "MM_DL13"},
  25028. {"HDMI_MS Mixer", "MultiMedia14", "MM_DL14"},
  25029. {"HDMI_MS Mixer", "MultiMedia15", "MM_DL15"},
  25030. {"HDMI_MS Mixer", "MultiMedia16", "MM_DL16"},
  25031. {"HDMI_MS Mixer", "MultiMedia26", "MM_DL26"},
  25032. {"HDMI_MS", NULL, "HDMI_MS Mixer"},
  25033. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  25034. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  25035. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  25036. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  25037. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  25038. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  25039. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  25040. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  25041. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  25042. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  25043. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  25044. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  25045. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  25046. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  25047. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  25048. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  25049. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  25050. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  25051. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  25052. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  25053. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  25054. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  25055. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  25056. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  25057. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  25058. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  25059. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  25060. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  25061. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  25062. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  25063. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  25064. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  25065. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  25066. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  25067. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  25068. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  25069. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25070. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25071. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25072. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25073. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25074. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25075. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25076. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25077. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25078. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25079. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25080. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25081. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25082. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25083. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25084. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25085. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25086. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  25087. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25088. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25089. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25090. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25091. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25092. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25093. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25094. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25095. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25096. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25097. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25098. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25099. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25100. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25101. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25102. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25103. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25104. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  25105. /* incall */
  25106. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  25107. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  25108. {"Incall_Music Audio Mixer", "MultiMedia4", "MM_DL4"},
  25109. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  25110. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  25111. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  25112. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25113. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25114. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25115. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25116. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  25117. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25118. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25119. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25120. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25121. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  25122. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25123. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25124. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25125. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25126. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25127. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25128. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25129. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25130. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25131. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25132. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25133. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25134. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25135. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25136. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25137. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25138. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25139. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  25140. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25141. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25142. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25143. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25144. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25145. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25146. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25147. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25148. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25149. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25150. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25151. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25152. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25153. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25154. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25155. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25156. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25157. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  25158. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25159. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25160. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25161. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25162. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25163. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25164. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25165. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25166. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25167. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25168. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25169. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25170. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25171. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25172. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25173. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25174. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25175. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  25176. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25177. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25178. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25179. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25180. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25181. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25182. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25183. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25184. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25185. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25186. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25187. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25188. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25189. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25190. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25191. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25192. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25193. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  25194. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25195. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25196. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25197. {"MultiMedia9 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25198. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25199. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25200. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25201. {"MultiMedia9 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25202. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  25203. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25204. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25205. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25206. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25207. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25208. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25209. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25210. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25211. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25212. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25213. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25214. {"MultiMedia17 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25215. {"MultiMedia17 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25216. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25217. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25218. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25219. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25220. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25221. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25222. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25223. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25224. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25225. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25226. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25227. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25228. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25229. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25230. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25231. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25232. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25233. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25234. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25235. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25236. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25237. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25238. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25239. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25240. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25241. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25242. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25243. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25244. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25245. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25246. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25247. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25248. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25249. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25250. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25251. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25252. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25253. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25254. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25255. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25256. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25257. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25258. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25259. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25260. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25261. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25262. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25263. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25264. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25265. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25266. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25267. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25268. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25269. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25270. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25271. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25272. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25273. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25274. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25275. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25276. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25277. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25278. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25279. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25280. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25281. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25282. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25283. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25284. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25285. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25286. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25287. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25288. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25289. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25290. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25291. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25292. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25293. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25294. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25295. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  25296. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25297. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25298. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25299. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25300. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25301. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25302. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25303. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25304. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25305. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25306. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25307. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25308. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25309. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25310. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25311. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25312. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25313. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  25314. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25315. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25316. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25317. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25318. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25319. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25320. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25321. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25322. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25323. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25324. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25325. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25326. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25327. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25328. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25329. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  25330. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25331. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25332. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25333. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25334. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25335. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25336. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25337. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25338. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25339. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25340. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25341. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25342. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25343. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25344. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25345. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  25346. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25347. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  25348. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25349. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25350. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25351. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25352. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25353. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25354. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25355. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25356. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25357. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25358. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25359. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25360. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25361. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25362. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25363. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25364. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25365. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25366. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25367. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  25368. {"PRI_MI2S_RX Audio Mixer", "DTMF", "DTMF_DL_HL"},
  25369. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25370. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25371. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25372. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25373. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25374. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25375. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25376. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25377. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25378. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25379. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25380. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25381. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25382. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25383. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25384. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  25385. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25386. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25387. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25388. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25389. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25390. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25391. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25392. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25393. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25394. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25395. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25396. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25397. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25398. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25399. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25400. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  25401. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25402. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25403. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25404. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25405. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25406. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25407. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25408. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25409. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25410. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25411. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25412. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25413. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25414. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25415. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25416. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25417. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25418. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  25419. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25420. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25421. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25422. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25423. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25424. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25425. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25426. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25427. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25428. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25429. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25430. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25431. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25432. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25433. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25434. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  25435. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25436. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25437. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25438. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25439. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25440. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25441. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25442. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25443. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25444. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25445. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25446. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25447. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25448. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25449. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25450. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25451. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25452. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  25453. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25454. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25455. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25456. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25457. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25458. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25459. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25460. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25461. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25462. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25463. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25464. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25465. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25466. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25467. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25468. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25469. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25470. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  25471. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25472. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25473. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25474. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25475. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25476. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25477. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25478. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25479. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25480. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25481. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25482. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25483. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25484. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25485. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25486. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25487. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25488. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25489. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25490. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25491. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25492. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  25493. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25494. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25495. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25496. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25497. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25498. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25499. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25500. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25501. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25502. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25503. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25504. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25505. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25506. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25507. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25508. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25509. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25510. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25511. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25512. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25513. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25514. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  25515. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25516. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25517. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25518. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25519. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25520. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25521. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25522. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25523. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25524. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25525. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25526. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25527. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25528. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25529. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25530. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25531. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25532. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25533. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25534. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25535. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25536. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  25537. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25538. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25539. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25540. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25541. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25542. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25543. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25544. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25545. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25546. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25547. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25548. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25549. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25550. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25551. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25552. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25553. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25554. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25555. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25556. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25557. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25558. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  25559. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25560. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25561. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25562. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25563. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25564. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25565. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25566. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25567. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25568. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25569. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25570. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25571. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25572. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25573. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25574. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25575. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25576. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25577. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25578. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  25579. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25580. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25581. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25582. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25583. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25584. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25585. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25586. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25587. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25588. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25589. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25590. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25591. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25592. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25593. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25594. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25595. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25596. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25597. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25598. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25599. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25600. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  25601. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25602. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25603. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25604. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25605. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25606. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25607. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25608. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25609. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25610. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25611. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25612. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25613. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25614. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25615. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25616. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25617. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25618. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25619. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25620. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25621. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25622. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  25623. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25624. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25625. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25626. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25627. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25628. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25629. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25630. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25631. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25632. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25633. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25634. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25635. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25636. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25637. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25638. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25639. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25640. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25641. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25642. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25643. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25644. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  25645. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25646. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25647. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25648. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25649. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25650. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25651. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25652. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25653. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25654. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25655. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25656. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25657. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25658. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25659. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25660. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25661. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25662. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25663. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25664. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25665. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25666. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  25667. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25668. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25669. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25670. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25671. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25672. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25673. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25674. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25675. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25676. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25677. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25678. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25679. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25680. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25681. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25682. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25683. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25684. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25685. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25686. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  25687. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25688. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25689. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25690. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25691. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25692. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25693. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25694. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25695. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25696. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25697. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25698. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25699. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25700. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25701. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25702. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25703. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25704. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25705. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25706. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25707. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25708. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  25709. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25710. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25711. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25712. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25713. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25714. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25715. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25716. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25717. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25718. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25719. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25720. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25721. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25722. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25723. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25724. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25725. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25726. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25727. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25728. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  25729. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25730. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25731. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25732. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25733. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25734. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25735. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25736. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25737. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25738. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25739. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25740. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25741. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25742. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25743. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25744. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25745. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25746. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25747. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25748. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25749. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25750. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  25751. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25752. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25753. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25754. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25755. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25756. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25757. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25758. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25759. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25760. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25761. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25762. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25763. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25764. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25765. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25766. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25767. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25768. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25769. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25770. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25771. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25772. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  25773. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25774. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25775. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25776. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25777. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25778. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25779. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25780. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25781. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25782. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25783. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25784. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25785. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25786. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25787. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25788. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25789. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25790. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25791. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25792. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25793. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25794. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  25795. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25796. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25797. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25798. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25799. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25800. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25801. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25802. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25803. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25804. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25805. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25806. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25807. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25808. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25809. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25810. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25811. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25812. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25813. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25814. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25815. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25816. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  25817. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25818. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25819. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25820. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25821. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25822. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25823. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25824. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25825. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25826. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25827. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25828. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25829. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25830. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25831. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25832. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25833. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25834. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25835. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25836. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25837. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25838. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25839. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  25840. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25841. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25842. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25843. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25844. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25845. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25846. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25847. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25848. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25849. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25850. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25851. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25852. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25853. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25854. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25855. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25856. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25857. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25858. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25859. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  25860. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25861. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25862. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25863. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25864. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25865. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25866. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25867. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25868. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25869. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25870. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25871. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25872. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25873. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25874. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25875. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25876. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25877. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25878. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25879. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25880. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25881. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25882. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  25883. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25884. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25885. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25886. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25887. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25888. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25889. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25890. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25891. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25892. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25893. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25894. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25895. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25896. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25897. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25898. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25899. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25900. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25901. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25902. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25903. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25904. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25905. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  25906. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25907. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25908. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25909. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25910. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25911. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25912. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25913. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25914. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25915. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25916. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25917. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25918. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25919. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25920. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25921. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25922. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25923. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25924. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25925. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25926. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25927. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25928. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  25929. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25930. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25931. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25932. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25933. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25934. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25935. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25936. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25937. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25938. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25939. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25940. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25941. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25942. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25943. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25944. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25945. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25946. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25947. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25948. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25949. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25950. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25951. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  25952. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25953. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25954. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25955. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25956. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25957. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25958. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25959. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25960. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25961. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25962. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25963. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25964. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25965. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25966. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25967. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25968. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25969. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25970. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25971. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  25972. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25973. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25974. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25975. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25976. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25977. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25978. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25979. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25980. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25981. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25982. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25983. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25984. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25985. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25986. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25987. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25988. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25989. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25990. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25991. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25992. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25993. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25994. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  25995. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25996. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25997. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25998. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25999. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26000. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26001. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26002. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26003. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26004. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26005. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26006. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26007. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26008. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26009. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26010. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26011. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26012. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26013. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26014. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26015. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26016. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26017. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  26018. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26019. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26020. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26021. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26022. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26023. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26024. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26025. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26026. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26027. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26028. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26029. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26030. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26031. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26032. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26033. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26034. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26035. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26036. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26037. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26038. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26039. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26040. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  26041. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26042. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26043. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26044. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26045. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26046. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26047. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26048. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26049. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26050. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26051. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26052. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26053. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26054. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26055. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26056. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26057. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26058. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26059. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  26060. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26061. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26062. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26063. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26064. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26065. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26066. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26067. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26068. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26069. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26070. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26071. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26072. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26073. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26074. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26075. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26076. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  26077. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26078. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26079. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26080. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26081. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26082. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26083. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26084. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26085. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26086. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26087. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26088. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26089. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26090. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26091. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26092. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26093. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26094. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26095. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  26096. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26097. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26098. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26099. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26100. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26101. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26102. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26103. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26104. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26105. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26106. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26107. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26108. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26109. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26110. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26111. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26112. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26113. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26114. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  26115. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26116. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26117. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26118. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26119. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26120. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26121. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26122. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26123. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26124. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26125. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26126. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26127. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26128. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26129. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26130. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26131. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26132. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26133. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  26134. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  26135. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  26136. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  26137. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  26138. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  26139. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  26140. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  26141. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26142. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26143. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26144. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26145. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26146. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26147. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26148. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26149. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26150. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26151. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26152. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26153. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26154. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26155. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26156. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26157. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  26158. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26159. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  26160. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26161. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26162. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26163. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26164. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26165. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  26166. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26167. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26168. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  26169. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  26170. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  26171. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26172. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  26173. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  26174. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  26175. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  26176. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26177. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  26178. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  26179. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26180. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  26181. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  26182. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26183. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  26184. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26185. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26186. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26187. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26188. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26189. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26190. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26191. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26192. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26193. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26194. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26195. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26196. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26197. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26198. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26199. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26200. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26201. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26202. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26203. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26204. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26205. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26206. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26207. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26208. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26209. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26210. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26211. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26212. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26213. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26214. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26215. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26216. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26217. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26218. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26219. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26220. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26221. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26222. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26223. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26224. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26225. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26226. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26227. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26228. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26229. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26230. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26231. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26232. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26233. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26234. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26235. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26236. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26237. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26238. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26239. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26240. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26241. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26242. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26243. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26244. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26245. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26246. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26247. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26248. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26249. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26250. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26251. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26252. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26253. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26254. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26255. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26256. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26257. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26258. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26259. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26260. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26261. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26262. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26263. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26264. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26265. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26266. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26267. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26268. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26269. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26270. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26271. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26272. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26273. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26274. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26275. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26276. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26277. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26278. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26279. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26280. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26281. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26282. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26283. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26284. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26285. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26286. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26287. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26288. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26289. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26290. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26291. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26292. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26293. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26294. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26295. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26296. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26297. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26298. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26299. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26300. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26301. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26302. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26303. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26304. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26305. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26306. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26307. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26308. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26309. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26310. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26311. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26312. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26313. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26314. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26315. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26316. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26317. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26318. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26319. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26320. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26321. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26322. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26323. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26324. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26325. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26326. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26327. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26328. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26329. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26330. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26331. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26332. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26333. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26334. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26335. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26336. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26337. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26338. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26339. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26340. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26341. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26342. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26343. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26344. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26345. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26346. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26347. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26348. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26349. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26350. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26351. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26352. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26353. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26354. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26355. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26356. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26357. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26358. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26359. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26360. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26361. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26362. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26363. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26364. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26365. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26366. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26367. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26368. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26369. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26370. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26371. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26372. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26373. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26374. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26375. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26376. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26377. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26378. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26379. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26380. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26381. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26382. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26383. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26384. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26385. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26386. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26387. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26388. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26389. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26390. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26391. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26392. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26393. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26394. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26395. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26396. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26397. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26398. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26399. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26400. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26401. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26402. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26403. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26404. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26405. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26406. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26407. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26408. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26409. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26410. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26411. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26412. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26413. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26414. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26415. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26416. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26417. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26418. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26419. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26420. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26421. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26422. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26423. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26424. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26425. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26426. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26427. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26428. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26429. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26430. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26431. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26432. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26433. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26434. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26435. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26436. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26437. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26438. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26439. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26440. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26441. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26442. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26443. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26444. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26445. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26446. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26447. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26448. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26449. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26450. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26451. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26452. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26453. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26454. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26455. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26456. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26457. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26458. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26459. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26460. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26461. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26462. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26463. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26464. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26465. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26466. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26467. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26468. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26469. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26470. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26471. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26472. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26473. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26474. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26475. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26476. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26477. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26478. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26479. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26480. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26481. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26482. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26483. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26484. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26485. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26486. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26487. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26488. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26489. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26490. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26491. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26492. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26493. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26494. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26495. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26496. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26497. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26498. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26499. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26500. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26501. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26502. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26503. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26504. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26505. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26506. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26507. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26508. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26509. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26510. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26511. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26512. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26513. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26514. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26515. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26516. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26517. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26518. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26519. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26520. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26521. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26522. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26523. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26524. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26525. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26526. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26527. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26528. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26529. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26530. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26531. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26532. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26533. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26534. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26535. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26536. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26537. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26538. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26539. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26540. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26541. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26542. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26543. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26544. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26545. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26546. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26547. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26548. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26549. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26550. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26551. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26552. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26553. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26554. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26555. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26556. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26557. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26558. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26559. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26560. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26561. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26562. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26563. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26564. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26565. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26566. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26567. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26568. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26569. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26570. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26571. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26572. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26573. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26574. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26575. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26576. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26577. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26578. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26579. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26580. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26581. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26582. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26583. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26584. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26585. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26586. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26587. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26588. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26589. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26590. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26591. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26592. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26593. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26594. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26595. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26596. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26597. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26598. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26599. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26600. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26601. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26602. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26603. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26604. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26605. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26606. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26607. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26608. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26609. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26610. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26611. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26612. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26613. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26614. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26615. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26616. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26617. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26618. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26619. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26620. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26621. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26622. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26623. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26624. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26625. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26626. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26627. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26628. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26629. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26630. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26631. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26632. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26633. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26634. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26635. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26636. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26637. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26638. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26639. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26640. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26641. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26642. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26643. {"MultiMedia23 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26644. {"MultiMedia23 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26645. {"MultiMedia23 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26646. {"MultiMedia23 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26647. {"MultiMedia23 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26648. {"MultiMedia23 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26649. {"MultiMedia23 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26650. {"MultiMedia23 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26651. {"MultiMedia23 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26652. {"MultiMedia23 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26653. {"MultiMedia23 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26654. {"MultiMedia23 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26655. {"MultiMedia23 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26656. {"MultiMedia23 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26657. {"MultiMedia23 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26658. {"MultiMedia23 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26659. {"MultiMedia23 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26660. {"MultiMedia23 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26661. {"MultiMedia23 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26662. {"MultiMedia23 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26663. {"MultiMedia24 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26664. {"MultiMedia24 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26665. {"MultiMedia24 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26666. {"MultiMedia24 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26667. {"MultiMedia24 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26668. {"MultiMedia24 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26669. {"MultiMedia24 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26670. {"MultiMedia24 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26671. {"MultiMedia24 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26672. {"MultiMedia24 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26673. {"MultiMedia24 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26674. {"MultiMedia24 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26675. {"MultiMedia24 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26676. {"MultiMedia24 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26677. {"MultiMedia24 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26678. {"MultiMedia24 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26679. {"MultiMedia24 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26680. {"MultiMedia24 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26681. {"MultiMedia24 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26682. {"MultiMedia24 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26683. {"MultiMedia25 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26684. {"MultiMedia25 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26685. {"MultiMedia25 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26686. {"MultiMedia25 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26687. {"MultiMedia25 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26688. {"MultiMedia25 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26689. {"MultiMedia25 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26690. {"MultiMedia25 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26691. {"MultiMedia25 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26692. {"MultiMedia25 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26693. {"MultiMedia25 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26694. {"MultiMedia25 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26695. {"MultiMedia25 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26696. {"MultiMedia25 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26697. {"MultiMedia25 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26698. {"MultiMedia25 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26699. {"MultiMedia25 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26700. {"MultiMedia25 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26701. {"MultiMedia25 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26702. {"MultiMedia25 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26703. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26704. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26705. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  26706. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26707. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26708. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26709. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26710. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26711. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26712. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26713. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26714. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26715. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26716. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26717. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26718. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26719. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26720. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26721. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26722. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26723. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26724. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26725. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26726. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26727. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26728. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26729. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26730. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26731. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26732. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26733. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26734. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26735. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26736. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26737. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26738. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26739. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26740. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26741. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26742. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26743. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26744. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26745. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26746. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26747. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26748. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26749. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26750. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26751. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26752. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26753. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26754. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26755. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26756. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26757. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26758. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26759. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26760. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26761. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26762. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26763. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26764. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26765. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26766. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26767. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26768. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26769. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26770. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26771. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26772. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26773. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26774. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26775. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26776. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26777. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26778. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26779. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26780. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26781. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26782. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26783. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26784. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26785. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26786. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26787. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26788. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26789. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26790. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26791. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26792. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26793. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26794. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26795. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26796. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26797. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26798. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26799. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26800. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26801. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26802. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26803. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26804. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26805. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26806. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26807. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26808. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26809. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26810. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26811. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26812. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26813. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26814. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26815. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26816. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26817. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26818. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26819. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26820. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26821. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26822. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26823. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26824. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26825. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  26826. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26827. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26828. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26829. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26830. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26831. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26832. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26833. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26834. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26835. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26836. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26837. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26838. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26839. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26840. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26841. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26842. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26843. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  26844. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26845. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26846. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26847. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26848. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26849. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26850. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26851. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26852. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26853. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26854. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26855. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26856. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26857. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26858. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26859. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26860. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  26861. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26862. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26863. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26864. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26865. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26866. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26867. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26868. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26869. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26870. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26871. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26872. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26873. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26874. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26875. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26876. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26877. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  26878. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26879. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26880. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26881. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26882. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26883. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26884. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26885. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26886. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26887. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26888. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26889. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26890. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26891. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26892. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26893. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26894. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26895. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26896. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26897. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26898. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26899. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26900. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26901. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26902. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26903. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26904. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26905. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26906. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26907. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26908. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26909. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26910. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26911. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26912. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26913. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26914. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26915. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26916. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  26917. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26918. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  26919. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  26920. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  26921. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  26922. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  26923. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  26924. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  26925. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  26926. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  26927. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  26928. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  26929. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  26930. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  26931. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  26932. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  26933. {"MM_UL24", NULL, "MultiMedia24 Mixer"},
  26934. {"MM_UL25", NULL, "MultiMedia25 Mixer"},
  26935. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  26936. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  26937. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  26938. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  26939. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26940. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26941. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26942. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26943. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26944. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26945. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26946. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26947. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26948. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26949. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26950. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26951. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26952. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26953. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26954. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26955. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26956. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  26957. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26958. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26959. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26960. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26961. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26962. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26963. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26964. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26965. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26966. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26967. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26968. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26969. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26970. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26971. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26972. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26973. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26974. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  26975. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26976. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26977. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26978. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26979. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26980. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26981. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26982. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26983. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26984. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26985. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26986. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26987. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26988. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26989. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26990. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26991. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  26992. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26993. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26994. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26995. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26996. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26997. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26998. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26999. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  27000. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  27001. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  27002. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  27003. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  27004. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  27005. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  27006. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  27007. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  27008. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  27009. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  27010. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  27011. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  27012. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  27013. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  27014. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  27015. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  27016. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  27017. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  27018. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  27019. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  27020. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  27021. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  27022. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  27023. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  27024. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  27025. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  27026. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  27027. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  27028. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  27029. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  27030. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  27031. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  27032. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  27033. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  27034. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  27035. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  27036. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  27037. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  27038. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  27039. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  27040. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  27041. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  27042. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  27043. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27044. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27045. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27046. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27047. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27048. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  27049. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27050. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27051. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27052. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  27053. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27054. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27055. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27056. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27057. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27058. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27059. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27060. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  27061. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27062. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27063. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27064. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27065. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27066. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  27067. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27068. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27069. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27070. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27071. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27072. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  27073. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27074. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27075. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27076. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27077. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27078. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  27079. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27080. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27081. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27082. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27083. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27084. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  27085. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  27086. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27087. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27088. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27089. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27090. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  27091. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27092. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27093. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27094. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27095. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27096. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  27097. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27098. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27099. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27100. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27101. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27102. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  27103. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27104. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27105. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27106. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27107. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27108. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  27109. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27110. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27111. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27112. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27113. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27114. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  27115. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27116. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27117. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27118. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27119. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27120. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  27121. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27122. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27123. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27124. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27125. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27126. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  27127. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27128. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27129. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27130. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27131. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27132. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  27133. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27134. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27135. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27136. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27137. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27138. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  27139. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27140. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27141. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27142. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27143. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27144. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  27145. {"HDMI", NULL, "HDMI_DL_HL"},
  27146. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27147. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27148. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27149. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27150. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27151. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27152. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27153. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  27154. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27155. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27156. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27157. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27158. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27159. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27160. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27161. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  27162. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27163. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27164. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27165. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27166. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27167. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  27168. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27169. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27170. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27171. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27172. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27173. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  27174. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27175. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27176. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27177. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27178. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27179. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27180. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27181. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  27182. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27183. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27184. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27185. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27186. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27187. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27188. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  27189. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27190. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27191. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27192. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27193. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27194. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27195. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  27196. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  27197. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27198. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27199. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27200. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27201. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27202. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27203. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27204. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  27205. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  27206. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27207. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27208. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27209. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27210. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27211. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27212. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27213. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  27214. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  27215. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27216. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27217. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27218. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27219. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27220. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27221. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27222. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  27223. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  27224. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27225. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27226. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27227. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27228. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27229. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27230. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27231. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  27232. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27233. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27234. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27235. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27236. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  27237. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27238. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  27239. {"QUIN_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27240. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_Voice Mixer"},
  27241. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  27242. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27243. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27244. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  27245. {"PROXY_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27246. {"PROXY_RX", NULL, "PROXY_RX_Voice Mixer"},
  27247. {"PROXY_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27248. {"PROXY_RX", NULL, "PROXY_RX_Voice Mixer"},
  27249. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  27250. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27251. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27252. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  27253. {"RX_CDC_DMA_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  27254. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27255. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27256. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_Voice Mixer"},
  27257. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27258. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27259. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27260. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27261. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27262. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27263. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  27264. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  27265. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  27266. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  27267. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  27268. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27269. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27270. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27271. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27272. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27273. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27274. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  27275. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  27276. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  27277. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27278. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  27279. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27280. {"AUDIO_REF_EC_UL1 MUX", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27281. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27282. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27283. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27284. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27285. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27286. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27287. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27288. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27289. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27290. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27291. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27292. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27293. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27294. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27295. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27296. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27297. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27298. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27299. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27300. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27301. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27302. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27303. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27304. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27305. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27306. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27307. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27308. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27309. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27310. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27311. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27312. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27313. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27314. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27315. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  27316. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  27317. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  27318. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27319. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  27320. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27321. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27322. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27323. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27324. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27325. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27326. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27327. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27328. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27329. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27330. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27331. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27332. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27333. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27334. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27335. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27336. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27337. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27338. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27339. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27340. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27341. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27342. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27343. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27344. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27345. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27346. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27347. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27348. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27349. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27350. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27351. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27352. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27353. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27354. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  27355. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  27356. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  27357. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  27358. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  27359. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  27360. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  27361. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  27362. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  27363. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  27364. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  27365. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  27366. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  27367. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  27368. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  27369. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  27370. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  27371. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  27372. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  27373. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  27374. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  27375. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  27376. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  27377. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  27378. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  27379. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  27380. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  27381. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  27382. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  27383. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  27384. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  27385. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  27386. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  27387. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  27388. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  27389. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  27390. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  27391. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  27392. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  27393. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  27394. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  27395. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  27396. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  27397. {"VoiceMMode1_Tx Mixer", "PROXY_TX_MMode1", "PROXY_TX"},
  27398. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  27399. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  27400. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  27401. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  27402. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  27403. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  27404. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  27405. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  27406. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  27407. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  27408. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  27409. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  27410. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  27411. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  27412. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  27413. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  27414. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  27415. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  27416. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  27417. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  27418. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  27419. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  27420. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  27421. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  27422. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  27423. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  27424. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  27425. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  27426. {"VoiceMMode2_Tx Mixer", "PROXY_TX_MMode2", "PROXY_TX"},
  27427. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  27428. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  27429. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  27430. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  27431. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  27432. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  27433. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  27434. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  27435. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  27436. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  27437. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  27438. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  27439. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  27440. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  27441. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  27442. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  27443. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  27444. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  27445. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  27446. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  27447. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  27448. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  27449. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  27450. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  27451. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  27452. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  27453. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  27454. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  27455. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  27456. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  27457. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  27458. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  27459. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  27460. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  27461. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  27462. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  27463. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  27464. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  27465. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  27466. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  27467. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  27468. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  27469. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  27470. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  27471. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27472. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  27473. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  27474. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27475. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  27476. {"RX_CDC_DMA_RX_1_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27477. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_DL_HL"},
  27478. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  27479. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27480. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27481. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27482. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27483. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27484. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27485. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27486. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27487. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27488. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27489. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27490. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27491. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27492. {"LSM1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27493. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  27494. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27495. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27496. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27497. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27498. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27499. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27500. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27501. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27502. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27503. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27504. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27505. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27506. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27507. {"LSM2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27508. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  27509. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27510. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27511. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27512. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27513. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27514. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27515. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27516. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27517. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27518. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27519. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27520. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27521. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27522. {"LSM3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27523. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  27524. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27525. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27526. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27527. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27528. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27529. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27530. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27531. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27532. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27533. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27534. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27535. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27536. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27537. {"LSM4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27538. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  27539. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27540. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27541. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27542. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27543. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27544. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27545. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27546. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27547. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27548. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27549. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27550. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27551. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27552. {"LSM5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27553. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  27554. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27555. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27556. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27557. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27558. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27559. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27560. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27561. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27562. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27563. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27564. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27565. {"LSM6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27566. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  27567. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27568. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27569. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27570. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27571. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27572. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27573. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27574. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27575. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27576. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27577. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27578. {"LSM7 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27579. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  27580. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27581. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27582. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27583. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27584. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27585. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27586. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27587. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27588. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27589. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27590. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27591. {"LSM8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27592. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  27593. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  27594. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  27595. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  27596. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  27597. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  27598. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  27599. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  27600. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  27601. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  27602. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  27603. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  27604. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  27605. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  27606. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  27607. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  27608. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  27609. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  27610. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  27611. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  27612. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  27613. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  27614. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  27615. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  27616. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  27617. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  27618. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  27619. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  27620. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  27621. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27622. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  27623. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  27624. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  27625. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27626. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  27627. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  27628. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  27629. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  27630. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  27631. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  27632. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  27633. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  27634. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27635. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  27636. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27637. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  27638. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  27639. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  27640. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  27641. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  27642. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  27643. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  27644. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  27645. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  27646. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  27647. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  27648. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  27649. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  27650. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27651. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  27652. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27653. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  27654. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  27655. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  27656. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  27657. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  27658. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  27659. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  27660. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  27661. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  27662. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  27663. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  27664. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  27665. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  27666. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  27667. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  27668. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  27669. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  27670. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  27671. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  27672. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  27673. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  27674. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  27675. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  27676. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  27677. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  27678. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  27679. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  27680. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  27681. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  27682. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  27683. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  27684. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  27685. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  27686. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  27687. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  27688. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  27689. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  27690. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  27691. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  27692. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  27693. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  27694. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  27695. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  27696. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  27697. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  27698. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  27699. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  27700. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  27701. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  27702. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  27703. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  27704. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  27705. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  27706. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  27707. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  27708. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  27709. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  27710. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  27711. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  27712. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  27713. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  27714. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27715. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27716. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27717. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27718. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27719. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27720. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27721. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27722. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27723. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27724. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27725. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27726. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27727. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27728. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27729. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27730. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27731. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27732. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27733. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27734. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27735. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27736. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27737. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27738. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  27739. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27740. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27741. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27742. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27743. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27744. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27745. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27746. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27747. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27748. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27749. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27750. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27751. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27752. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27753. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27754. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27755. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27756. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27757. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27758. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27759. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27760. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27761. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27762. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27763. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  27764. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27765. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27766. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27767. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27768. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27769. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27770. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27771. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27772. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27773. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27774. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27775. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27776. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27777. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27778. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27779. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27780. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27781. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27782. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27783. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27784. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27785. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27786. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27787. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27788. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  27789. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27790. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27791. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27792. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27793. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27794. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27795. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27796. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27797. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27798. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27799. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27800. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27801. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27802. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27803. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27804. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27805. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27806. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27807. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27808. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27809. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27810. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27811. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27812. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27813. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  27814. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27815. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27816. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27817. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27818. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27819. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27820. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27821. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27822. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27823. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27824. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27825. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27826. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27827. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27828. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27829. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27830. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27831. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27832. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27833. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27834. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27835. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27836. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27837. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27838. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  27839. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27840. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27841. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27842. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27843. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27844. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27845. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27846. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27847. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27848. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27849. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27850. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27851. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27852. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27853. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27854. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27855. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27856. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27857. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27858. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27859. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27860. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27861. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27862. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27863. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  27864. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27865. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27866. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27867. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27868. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27869. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27870. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27871. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27872. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27873. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27874. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27875. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27876. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27877. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27878. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27879. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27880. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27881. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27882. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27883. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27884. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27885. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27886. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27887. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27888. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  27889. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27890. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27891. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27892. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27893. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27894. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27895. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27896. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27897. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27898. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27899. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27900. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27901. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27902. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27903. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27904. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27905. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27906. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27907. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27908. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27909. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27910. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27911. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27912. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27913. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  27914. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  27915. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  27916. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27917. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27918. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27919. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27920. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27921. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27922. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27923. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27924. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27925. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27926. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27927. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27928. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27929. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27930. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27931. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27932. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27933. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27934. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27935. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27936. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27937. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27938. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27939. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27940. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  27941. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27942. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27943. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27944. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27945. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27946. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27947. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27948. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27949. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27950. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27951. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27952. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27953. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27954. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27955. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27956. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27957. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27958. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27959. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27960. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27961. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27962. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27963. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27964. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27965. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  27966. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27967. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27968. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27969. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27970. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27971. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27972. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27973. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27974. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27975. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27976. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27977. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27978. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27979. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27980. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27981. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27982. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27983. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27984. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27985. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27986. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27987. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27988. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27989. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27990. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  27991. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27992. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27993. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27994. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27995. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27996. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27997. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27998. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27999. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28000. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28001. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28002. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28003. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28004. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28005. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28006. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28007. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28008. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28009. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28010. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28011. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28012. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28013. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28014. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28015. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  28016. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28017. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28018. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28019. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28020. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28021. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28022. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28023. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28024. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28025. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28026. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28027. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28028. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28029. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28030. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28031. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28032. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28033. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28034. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28035. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28036. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28037. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28038. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28039. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28040. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  28041. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28042. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28043. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28044. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28045. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28046. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28047. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28048. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28049. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28050. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28051. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28052. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28053. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28054. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28055. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28056. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28057. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28058. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28059. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28060. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28061. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28062. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28063. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28064. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28065. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  28066. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28067. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28068. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28069. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28070. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28071. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28072. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28073. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28074. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28075. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28076. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28077. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28078. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28079. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28080. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28081. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28082. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28083. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28084. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28085. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28086. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28087. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28088. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28089. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28090. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  28091. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28092. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28093. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28094. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28095. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28096. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28097. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28098. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28099. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28100. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28101. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28102. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28103. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28104. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28105. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28106. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28107. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28108. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28109. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28110. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28111. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28112. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28113. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28114. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28115. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  28116. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  28117. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  28118. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  28119. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28120. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28121. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28122. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28123. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28124. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28125. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28126. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28127. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28128. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28129. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28130. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28131. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28132. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28133. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28134. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28135. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28136. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28137. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28138. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28139. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28140. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28141. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28142. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28143. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  28144. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28145. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28146. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28147. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28148. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28149. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28150. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28151. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28152. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28153. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28154. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28155. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28156. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28157. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28158. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28159. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28160. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28161. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28162. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28163. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28164. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28165. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28166. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28167. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28168. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  28169. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28170. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28171. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28172. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28173. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28174. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28175. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28176. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28177. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28178. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28179. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28180. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28181. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28182. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28183. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28184. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28185. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28186. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28187. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28188. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28189. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28190. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28191. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28192. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28193. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  28194. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28195. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28196. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28197. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28198. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28199. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28200. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28201. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28202. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28203. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28204. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28205. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28206. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28207. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28208. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28209. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28210. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28211. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28212. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28213. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28214. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28215. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28216. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28217. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28218. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  28219. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  28220. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  28221. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  28222. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  28223. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28224. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28225. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28226. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28227. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28228. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28229. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28230. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28231. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28232. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28233. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28234. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28235. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28236. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28237. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28238. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28239. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28240. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28241. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28242. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28243. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  28244. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28245. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28246. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28247. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28248. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28249. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28250. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28251. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28252. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28253. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28254. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28255. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28256. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28257. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28258. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28259. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28260. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28261. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28262. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28263. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28264. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  28265. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28266. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28267. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28268. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28269. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28270. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28271. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28272. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28273. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28274. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28275. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28276. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28277. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28278. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28279. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28280. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28281. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28282. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28283. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28284. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28285. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  28286. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28287. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28288. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28289. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28290. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28291. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28292. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28293. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28294. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28295. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28296. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28297. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28298. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28299. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28300. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28301. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28302. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28303. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28304. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28305. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28306. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  28307. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28308. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28309. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28310. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28311. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28312. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28313. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28314. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28315. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28316. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28317. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28318. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28319. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  28320. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28321. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28322. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28323. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28324. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28325. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28326. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28327. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28328. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28329. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28330. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28331. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28332. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  28333. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  28334. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28335. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28336. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28337. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  28338. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28339. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28340. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28341. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  28342. {"RX_CDC_DMA_RX_1 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  28343. {"RX_CDC_DMA_RX_1 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28344. {"RX_CDC_DMA_RX_1 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28345. {"RX_CDC_DMA_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28346. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Port Mixer"},
  28347. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28348. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28349. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28350. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28351. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28352. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28353. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28354. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28355. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28356. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28357. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28358. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  28359. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28360. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28361. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28362. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28363. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28364. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28365. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28366. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28367. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  28368. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28369. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28370. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  28371. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  28372. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  28373. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  28374. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  28375. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  28376. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28377. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28378. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28379. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28380. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28381. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28382. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28383. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  28384. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28385. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28386. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28387. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28388. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  28389. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28390. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28391. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28392. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  28393. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28394. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28395. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28396. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  28397. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28398. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28399. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28400. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  28401. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28402. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28403. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28404. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28405. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28406. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28407. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28408. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28409. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28410. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  28411. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  28412. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28413. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28414. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28415. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28416. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28417. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28418. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28419. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28420. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28421. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  28422. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28423. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28424. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28425. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28426. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28427. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28428. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28429. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28430. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28431. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28432. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28433. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  28434. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28435. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28436. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28437. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28438. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28439. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28440. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28441. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28442. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28443. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28444. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28445. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28446. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  28447. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28448. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28449. {"STUB_RX", NULL, "STUB_RX Mixer"},
  28450. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28451. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28452. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  28453. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28454. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28455. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  28456. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28457. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28458. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28459. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28460. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28461. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  28462. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28463. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28464. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28465. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28466. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28467. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  28468. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28469. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28470. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28471. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  28472. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28473. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28474. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  28475. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  28476. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28477. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  28478. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  28479. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  28480. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  28481. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28482. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28483. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28484. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28485. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28486. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28487. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28488. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28489. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28490. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28491. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28492. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28493. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28494. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  28495. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28496. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  28497. {"HDMI_RX_MS Port Mixer", "MI2S_TX", "MI2S_TX"},
  28498. {"HDMI_MS", NULL, "HDMI_RX_MS Port Mixer"},
  28499. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28500. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  28501. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  28502. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  28503. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28504. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  28505. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28506. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28507. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  28508. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28509. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28510. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28511. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28512. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28513. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28514. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28515. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28516. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28517. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28518. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28519. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  28520. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28521. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28522. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28523. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28524. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28525. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28526. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28527. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28528. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28529. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28530. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  28531. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28532. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28533. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28534. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28535. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28536. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28537. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28538. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28539. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  28540. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28541. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28542. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28543. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28544. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28545. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28546. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28547. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28548. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28549. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28550. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  28551. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28552. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28553. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28554. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28555. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28556. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28557. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28558. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28559. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  28560. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28561. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28562. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28563. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28564. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28565. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28566. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28567. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  28568. /* Backend Enablement */
  28569. {"BE_OUT", NULL, "PRI_I2S_RX"},
  28570. {"BE_OUT", NULL, "SEC_I2S_RX"},
  28571. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  28572. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  28573. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  28574. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28575. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  28576. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  28577. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  28578. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  28579. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  28580. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  28581. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  28582. {"BE_OUT", NULL, "HDMI"},
  28583. {"BE_OUT", NULL, "HDMI_MS"},
  28584. {"BE_OUT", NULL, "DISPLAY_PORT"},
  28585. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  28586. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  28587. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  28588. {"BE_OUT", NULL, "MI2S_RX"},
  28589. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  28590. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  28591. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  28592. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  28593. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  28594. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  28595. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  28596. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  28597. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  28598. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  28599. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  28600. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  28601. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28602. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  28603. {"BE_OUT", NULL, "INT_FM_RX"},
  28604. {"BE_OUT", NULL, "PCM_RX"},
  28605. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28606. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28607. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  28608. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  28609. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  28610. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  28611. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  28612. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28613. {"BE_OUT", NULL, "INT_FM_RX"},
  28614. {"BE_OUT", NULL, "PCM_RX"},
  28615. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28616. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  28617. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  28618. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  28619. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  28620. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  28621. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  28622. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  28623. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  28624. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  28625. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  28626. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  28627. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  28628. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  28629. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  28630. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  28631. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  28632. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  28633. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  28634. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  28635. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  28636. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  28637. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  28638. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  28639. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  28640. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  28641. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  28642. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  28643. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  28644. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  28645. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  28646. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  28647. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  28648. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  28649. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  28650. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  28651. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  28652. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  28653. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  28654. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  28655. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  28656. {"BE_OUT", NULL, "PROXY_RX"},
  28657. {"PRI_I2S_TX", NULL, "BE_IN"},
  28658. {"MI2S_TX", NULL, "BE_IN"},
  28659. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  28660. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  28661. {"PRI_MI2S_TX", NULL, "BE_IN"},
  28662. {"TERT_MI2S_TX", NULL, "BE_IN"},
  28663. {"INT0_MI2S_TX", NULL, "BE_IN"},
  28664. {"INT2_MI2S_TX", NULL, "BE_IN"},
  28665. {"INT3_MI2S_TX", NULL, "BE_IN"},
  28666. {"INT4_MI2S_TX", NULL, "BE_IN"},
  28667. {"INT5_MI2S_TX", NULL, "BE_IN"},
  28668. {"SEC_MI2S_TX", NULL, "BE_IN"},
  28669. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  28670. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  28671. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  28672. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  28673. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  28674. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  28675. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  28676. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  28677. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  28678. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  28679. {"USB_AUDIO_TX", NULL, "BE_IN" },
  28680. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  28681. {"INT_FM_TX", NULL, "BE_IN"},
  28682. {"PCM_TX", NULL, "BE_IN"},
  28683. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28684. {"BE_OUT", NULL, "STUB_RX"},
  28685. {"STUB_TX", NULL, "BE_IN"},
  28686. {"STUB_1_TX", NULL, "BE_IN"},
  28687. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28688. {"AUX_PCM_TX", NULL, "BE_IN"},
  28689. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  28690. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  28691. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  28692. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  28693. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  28694. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  28695. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  28696. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28697. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28698. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28699. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28700. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  28701. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28702. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28703. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  28704. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  28705. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  28706. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  28707. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  28708. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  28709. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  28710. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  28711. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  28712. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  28713. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  28714. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  28715. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  28716. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  28717. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  28718. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  28719. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  28720. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  28721. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  28722. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  28723. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  28724. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  28725. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  28726. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  28727. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  28728. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  28729. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  28730. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  28731. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  28732. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  28733. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  28734. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  28735. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  28736. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  28737. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  28738. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28739. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28740. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28741. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28742. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28743. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28744. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  28745. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  28746. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  28747. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  28748. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  28749. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  28750. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  28751. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  28752. {"PROXY_TX", NULL, "BE_IN"},
  28753. };
  28754. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  28755. struct snd_pcm_hw_params *params)
  28756. {
  28757. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28758. unsigned int be_id = rtd->dai_link->id;
  28759. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28760. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28761. return -EINVAL;
  28762. }
  28763. mutex_lock(&routing_lock);
  28764. msm_bedais[be_id].sample_rate = params_rate(params);
  28765. msm_bedais[be_id].channel = params_channels(params);
  28766. msm_bedais[be_id].format = params_format(params);
  28767. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  28768. __func__, msm_bedais[be_id].sample_rate,
  28769. msm_bedais[be_id].format, be_id);
  28770. mutex_unlock(&routing_lock);
  28771. return 0;
  28772. }
  28773. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  28774. {
  28775. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28776. unsigned int be_id = rtd->dai_link->id;
  28777. int i, session_type, path_type, topology;
  28778. struct msm_pcm_routing_bdai_data *bedai;
  28779. struct msm_pcm_routing_fdai_data *fdai;
  28780. pr_debug("%s: substream->pcm->id:%s\n",
  28781. __func__, substream->pcm->id);
  28782. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28783. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28784. return -EINVAL;
  28785. }
  28786. bedai = &msm_bedais[be_id];
  28787. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  28788. 0 : 1);
  28789. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28790. path_type = ADM_PATH_PLAYBACK;
  28791. else
  28792. path_type = ADM_PATH_LIVE_REC;
  28793. mutex_lock(&routing_lock);
  28794. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28795. if (!is_mm_lsm_fe_id(i))
  28796. continue;
  28797. fdai = &fe_dai_map[i][session_type];
  28798. if (fdai->strm_id != INVALID_SESSION) {
  28799. int idx;
  28800. int port_id;
  28801. unsigned long copp =
  28802. session_copp_map[i][session_type][be_id];
  28803. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  28804. if (test_bit(idx, &copp))
  28805. break;
  28806. if (idx >= MAX_COPPS_PER_PORT) {
  28807. pr_debug("%s: copp idx is invalid, exiting\n",
  28808. __func__);
  28809. continue;
  28810. }
  28811. fdai->be_srate = bedai->sample_rate;
  28812. port_id = get_port_id(bedai->port_id);
  28813. topology = adm_get_topology_for_port_copp_idx(port_id,
  28814. idx);
  28815. msm_routing_unload_topology(topology);
  28816. adm_close(port_id, fdai->perf_mode, idx);
  28817. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  28818. __func__, copp, i, session_type, be_id,
  28819. topology);
  28820. clear_bit(idx,
  28821. &session_copp_map[i][session_type][be_id]);
  28822. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28823. (fdai->passthr_mode == LEGACY_PCM))
  28824. msm_pcm_routing_deinit_pp(port_id,
  28825. topology);
  28826. }
  28827. }
  28828. bedai->active = 0;
  28829. bedai->sample_rate = 0;
  28830. bedai->channel = 0;
  28831. mutex_unlock(&routing_lock);
  28832. return 0;
  28833. }
  28834. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  28835. {
  28836. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28837. unsigned int be_id = rtd->dai_link->id;
  28838. int i, path_type, topology;
  28839. int session_type = INVALID_SESSION;
  28840. struct msm_pcm_routing_bdai_data *bedai;
  28841. u32 channels, sample_rate;
  28842. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  28843. struct msm_pcm_routing_fdai_data *fdai;
  28844. u32 session_id;
  28845. struct media_format_info voc_be_media_format;
  28846. bool is_lsm;
  28847. uint32_t copp_token = 0;
  28848. pr_debug("%s: substream->pcm->id:%s\n",
  28849. __func__, substream->pcm->id);
  28850. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28851. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28852. return -EINVAL;
  28853. }
  28854. bedai = &msm_bedais[be_id];
  28855. mutex_lock(&routing_lock);
  28856. if (bedai->active == 1)
  28857. goto done; /* Ignore prepare if back-end already active */
  28858. /* AFE port is not active at this point. However, still
  28859. * go ahead setting active flag under the notion that
  28860. * QDSP6 is able to handle ADM starting before AFE port
  28861. * is started.
  28862. */
  28863. bedai->active = 1;
  28864. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28865. if (!(is_mm_lsm_fe_id(i) &&
  28866. route_check_fe_id_adm_support(i)))
  28867. continue;
  28868. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  28869. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28870. fdai = &fe_dai_map[i][session_type];
  28871. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  28872. if (fdai->passthr_mode != LEGACY_PCM)
  28873. path_type = ADM_PATH_COMPRESSED_RX;
  28874. else
  28875. path_type = ADM_PATH_PLAYBACK;
  28876. } else {
  28877. if ((fdai->passthr_mode != LEGACY_PCM) &&
  28878. (fdai->passthr_mode != LISTEN))
  28879. path_type = ADM_PATH_COMPRESSED_TX;
  28880. else
  28881. path_type = ADM_PATH_LIVE_REC;
  28882. }
  28883. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  28884. (i <= MSM_FRONTEND_DAI_LSM8);
  28885. if (fdai->strm_id != INVALID_SESSION) {
  28886. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  28887. int port_id = get_port_id(bedai->port_id);
  28888. if (session_type == SESSION_TYPE_TX &&
  28889. fdai->be_srate &&
  28890. (fdai->be_srate != bedai->sample_rate)) {
  28891. pr_debug("%s: flush strm %d diff BE rates\n",
  28892. __func__,
  28893. fdai->strm_id);
  28894. if (fdai->event_info.event_func)
  28895. fdai->event_info.event_func(
  28896. MSM_PCM_RT_EVT_BUF_RECFG,
  28897. fdai->event_info.priv_data);
  28898. fdai->be_srate = 0; /* might not need it */
  28899. }
  28900. bits_per_sample = msm_routing_get_bit_width(
  28901. bedai->format);
  28902. app_type =
  28903. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  28904. if (app_type && is_lsm) {
  28905. app_type_idx =
  28906. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  28907. sample_rate =
  28908. fe_dai_app_type_cfg[i][session_type][be_id]
  28909. .sample_rate;
  28910. bits_per_sample =
  28911. lsm_app_type_cfg[app_type_idx].bit_width;
  28912. } else if (app_type) {
  28913. app_type_idx =
  28914. msm_pcm_routing_get_app_type_idx(app_type);
  28915. sample_rate =
  28916. fe_dai_app_type_cfg[i][session_type]
  28917. [be_id].sample_rate;
  28918. bits_per_sample =
  28919. app_type_cfg[app_type_idx].bit_width;
  28920. copp_token =
  28921. fe_dai_app_type_cfg[i][session_type]
  28922. [be_id].copp_token;
  28923. } else
  28924. sample_rate = bedai->sample_rate;
  28925. /*
  28926. * check if ADM needs to be configured with different
  28927. * channel mapping than backend
  28928. */
  28929. if (!bedai->adm_override_ch)
  28930. channels = bedai->channel;
  28931. else
  28932. channels = bedai->adm_override_ch;
  28933. acdb_dev_id =
  28934. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  28935. topology = msm_routing_get_adm_topology(i, session_type,
  28936. be_id);
  28937. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  28938. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  28939. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  28940. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  28941. be_bit_width = msm_routing_get_bit_width(
  28942. bedai->format);
  28943. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  28944. || bedai->sample_rate == 352800) &&
  28945. be_bit_width == 32)
  28946. bits_per_sample = msm_routing_get_bit_width(
  28947. SNDRV_PCM_FORMAT_S32_LE);
  28948. copp_idx = adm_open(port_id, path_type,
  28949. sample_rate, channels, topology,
  28950. fdai->perf_mode, bits_per_sample,
  28951. app_type, acdb_dev_id,
  28952. session_type, fdai->passthr_mode, copp_token);
  28953. if ((copp_idx < 0) ||
  28954. (copp_idx >= MAX_COPPS_PER_PORT)) {
  28955. pr_err("%s: adm open failed\n", __func__);
  28956. mutex_unlock(&routing_lock);
  28957. return -EINVAL;
  28958. }
  28959. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  28960. __func__, i, session_type, be_id);
  28961. set_bit(copp_idx,
  28962. &session_copp_map[i][session_type][be_id]);
  28963. if (msm_is_resample_needed(
  28964. sample_rate,
  28965. bedai->sample_rate))
  28966. adm_copp_mfc_cfg(port_id, copp_idx,
  28967. bedai->sample_rate);
  28968. msm_pcm_routing_build_matrix(i, session_type, path_type,
  28969. fdai->perf_mode, fdai->passthr_mode);
  28970. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28971. (fdai->passthr_mode == LEGACY_PCM))
  28972. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  28973. topology, channels);
  28974. }
  28975. }
  28976. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28977. session_id = msm_pcm_routing_get_voc_sessionid(i);
  28978. if (session_id) {
  28979. pr_debug("%s voice session_id: 0x%x\n", __func__,
  28980. session_id);
  28981. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28982. voc_path_type = RX_PATH;
  28983. else
  28984. voc_path_type = TX_PATH;
  28985. voc_set_route_flag(session_id, voc_path_type, 1);
  28986. memset(&voc_be_media_format, 0,
  28987. sizeof(struct media_format_info));
  28988. voc_be_media_format.port_id = bedai->port_id;
  28989. voc_be_media_format.num_channels = bedai->channel;
  28990. voc_be_media_format.sample_rate = bedai->sample_rate;
  28991. voc_be_media_format.bits_per_sample = bedai->format;
  28992. /* Defaulting this to 1 for voice call usecases */
  28993. voc_be_media_format.channel_mapping[0] = 1;
  28994. voc_set_device_config(session_id, voc_path_type,
  28995. &voc_be_media_format);
  28996. if (voc_get_route_flag(session_id, RX_PATH) &&
  28997. voc_get_route_flag(session_id, TX_PATH))
  28998. voc_enable_device(session_id);
  28999. }
  29000. }
  29001. /* Check if backend is an external ec ref port and set as needed */
  29002. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  29003. memset(&voc_be_media_format, 0,
  29004. sizeof(struct media_format_info));
  29005. /* Get format info for ec ref port from msm_bedais[] */
  29006. voc_be_media_format.port_id = bedai->port_id;
  29007. voc_be_media_format.num_channels = bedai->channel;
  29008. voc_be_media_format.bits_per_sample = bedai->format;
  29009. voc_be_media_format.sample_rate = bedai->sample_rate;
  29010. /* Defaulting this to 1 for voice call usecases */
  29011. voc_be_media_format.channel_mapping[0] = 1;
  29012. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  29013. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  29014. __func__, voc_be_media_format.port_id,
  29015. voc_be_media_format.num_channels,
  29016. voc_be_media_format.bits_per_sample,
  29017. voc_be_media_format.sample_rate);
  29018. }
  29019. done:
  29020. mutex_unlock(&routing_lock);
  29021. return 0;
  29022. }
  29023. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  29024. int fe_id)
  29025. {
  29026. int index, topo_id, be_idx;
  29027. unsigned long pp_config = 0;
  29028. bool mute_on;
  29029. int latency, session_type;
  29030. bool compr_passthr_mode = true;
  29031. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  29032. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX
  29033. && port_id != HDMI_RX_MS) {
  29034. pr_err("%s: Device pp params on invalid port %d, copp_idx %d, fe_id %d\n",
  29035. __func__, port_id, copp_idx, fe_id);
  29036. return -EINVAL;
  29037. }
  29038. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  29039. if (port_id == msm_bedais[be_idx].port_id)
  29040. break;
  29041. }
  29042. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  29043. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  29044. return -EINVAL;
  29045. }
  29046. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  29047. if (msm_bedais_pp_params[index].port_id == port_id)
  29048. break;
  29049. }
  29050. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  29051. pr_err("%s: Invalid backend pp params index %d\n",
  29052. __func__, index);
  29053. return -EINVAL;
  29054. }
  29055. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  29056. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  29057. pr_err("%s: Invalid passthrough topology 0x%x\n",
  29058. __func__, topo_id);
  29059. return -EINVAL;
  29060. }
  29061. session_type =
  29062. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  29063. SESSION_TYPE_RX : SESSION_TYPE_TX;
  29064. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  29065. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  29066. compr_passthr_mode = false;
  29067. pp_config = msm_bedais_pp_params[index].pp_params_config;
  29068. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  29069. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  29070. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  29071. mute_on = msm_bedais_pp_params[index].mute_on;
  29072. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29073. adm_send_compressed_device_mute(port_id,
  29074. copp_idx,
  29075. mute_on);
  29076. }
  29077. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  29078. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  29079. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  29080. &pp_config);
  29081. latency = msm_bedais_pp_params[index].latency;
  29082. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29083. adm_send_compressed_device_latency(port_id,
  29084. copp_idx,
  29085. latency);
  29086. }
  29087. return 0;
  29088. }
  29089. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  29090. {
  29091. uint32_t topology = NULL_COPP_TOPOLOGY;
  29092. void *cal_info = NULL;
  29093. uint32_t size = 0;
  29094. /* Retrieve cal_info size from cal data*/
  29095. if (data_size < sizeof(struct audio_cal_type_basic) +
  29096. sizeof(struct audio_cal_info_adm_top)) {
  29097. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  29098. goto done;
  29099. }
  29100. size = data_size - sizeof(struct audio_cal_type_basic);
  29101. cal_info = kzalloc(size, GFP_KERNEL);
  29102. if (!cal_info)
  29103. goto done;
  29104. memcpy(cal_info,
  29105. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  29106. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  29107. kfree(cal_info);
  29108. cal_info = NULL;
  29109. done:
  29110. pr_debug("%s: Using topology %d\n", __func__, topology);
  29111. return topology;
  29112. }
  29113. static void msm_routing_load_topology(size_t data_size, void *data)
  29114. {
  29115. uint32_t topology_id;
  29116. int ret = -EINVAL;
  29117. topology_id = msm_routing_get_topology(data_size, data);
  29118. if (topology_id != NULL_COPP_TOPOLOGY)
  29119. ret = q6core_load_unload_topo_modules(topology_id,
  29120. CORE_LOAD_TOPOLOGY);
  29121. if (ret < 0)
  29122. pr_debug("%s %d load topology failed\n",
  29123. __func__, topology_id);
  29124. }
  29125. static void msm_routing_unload_topology(uint32_t topology_id)
  29126. {
  29127. int ret = -EINVAL;
  29128. if (topology_id != NULL_COPP_TOPOLOGY)
  29129. ret = q6core_load_unload_topo_modules(topology_id,
  29130. CORE_UNLOAD_TOPOLOGY);
  29131. if (ret < 0)
  29132. pr_debug("%s %d unload topology failed\n",
  29133. __func__, topology_id);
  29134. }
  29135. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  29136. struct snd_ctl_elem_value *ucontrol)
  29137. {
  29138. int pp_id = ucontrol->value.integer.value[0];
  29139. int port_id = 0;
  29140. int index, be_idx, i, topo_id, idx;
  29141. bool mute;
  29142. int latency, session_type;
  29143. bool compr_passthr_mode = true;
  29144. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  29145. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  29146. port_id = msm_bedais[be_idx].port_id;
  29147. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX
  29148. || port_id == HDMI_RX_MS)
  29149. break;
  29150. }
  29151. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  29152. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  29153. return -EINVAL;
  29154. }
  29155. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  29156. if (msm_bedais_pp_params[index].port_id == port_id)
  29157. break;
  29158. }
  29159. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  29160. pr_err("%s: Invalid pp params backend index %d\n",
  29161. __func__, index);
  29162. return -EINVAL;
  29163. }
  29164. session_type =
  29165. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  29166. SESSION_TYPE_RX : SESSION_TYPE_TX;
  29167. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  29168. MSM_FRONTEND_DAI_MM_SIZE) {
  29169. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  29170. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  29171. compr_passthr_mode = false;
  29172. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  29173. unsigned long copp =
  29174. session_copp_map[i]
  29175. [SESSION_TYPE_RX][be_idx];
  29176. if (!test_bit(idx, &copp))
  29177. continue;
  29178. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  29179. idx);
  29180. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  29181. continue;
  29182. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  29183. __func__, port_id, copp, msm_bedais[be_idx].active,
  29184. fe_dai_map[i][session_type].passthr_mode);
  29185. switch (pp_id) {
  29186. case ADM_PP_PARAM_MUTE_ID:
  29187. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  29188. mute = ucontrol->value.integer.value[1] ? true : false;
  29189. msm_bedais_pp_params[index].mute_on = mute;
  29190. set_bit(ADM_PP_PARAM_MUTE_BIT,
  29191. &msm_bedais_pp_params[index].pp_params_config);
  29192. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29193. adm_send_compressed_device_mute(port_id,
  29194. idx, mute);
  29195. break;
  29196. case ADM_PP_PARAM_LATENCY_ID:
  29197. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  29198. msm_bedais_pp_params[index].latency =
  29199. ucontrol->value.integer.value[1];
  29200. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  29201. &msm_bedais_pp_params[index].pp_params_config);
  29202. latency = msm_bedais_pp_params[index].latency =
  29203. ucontrol->value.integer.value[1];
  29204. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29205. adm_send_compressed_device_latency(port_id,
  29206. idx, latency);
  29207. break;
  29208. default:
  29209. pr_info("%s, device pp param %d not supported\n",
  29210. __func__, pp_id);
  29211. break;
  29212. }
  29213. }
  29214. }
  29215. return 0;
  29216. }
  29217. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  29218. struct snd_ctl_elem_value *ucontrol)
  29219. {
  29220. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  29221. return 0;
  29222. }
  29223. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  29224. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  29225. 0, 3, msm_routing_get_device_pp_params_mixer,
  29226. msm_routing_put_device_pp_params_mixer),
  29227. };
  29228. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  29229. struct snd_ctl_elem_value *ucontrol)
  29230. {
  29231. ucontrol->value.integer.value[0] =
  29232. core_get_license_status(ASM_MEDIA_FMT_APTX);
  29233. pr_debug("%s: status %ld\n", __func__,
  29234. ucontrol->value.integer.value[0]);
  29235. return 0;
  29236. }
  29237. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  29238. struct snd_ctl_elem_value *ucontrol)
  29239. {
  29240. int32_t status = 0;
  29241. status = core_set_license(ucontrol->value.integer.value[0],
  29242. APTX_CLASSIC_DEC_LICENSE_ID);
  29243. pr_debug("%s: status %d\n", __func__, status);
  29244. return status;
  29245. }
  29246. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  29247. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  29248. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  29249. msm_aptx_dec_license_control_put),
  29250. };
  29251. static int msm_routing_get_pll_clk_drift(struct snd_kcontrol *kcontrol,
  29252. struct snd_ctl_elem_value *ucontrol)
  29253. {
  29254. return 0;
  29255. }
  29256. static int msm_routing_put_pll_clk_drift(struct snd_kcontrol *kcontrol,
  29257. struct snd_ctl_elem_value *ucontrol)
  29258. {
  29259. u16 port_id = 0;
  29260. int32_t clk_drift = 0;
  29261. uint32_t clk_reset = 0;
  29262. int be_idx, ret = -EINVAL;
  29263. be_idx = ucontrol->value.integer.value[0];
  29264. clk_drift = ucontrol->value.integer.value[1];
  29265. clk_reset = ucontrol->value.integer.value[2];
  29266. if (be_idx < 0 && be_idx >= MSM_BACKEND_DAI_MAX) {
  29267. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  29268. return -EINVAL;
  29269. }
  29270. if (!msm_bedais[be_idx].active && !clk_reset) {
  29271. pr_err("%s:BE is not active %d, cannot set clock drift\n",
  29272. __func__, be_idx);
  29273. return -EINVAL;
  29274. }
  29275. port_id = msm_bedais[be_idx].port_id;
  29276. pr_debug("%s: clk drift %d be idx %d clk reset %d port id 0x%x\n",
  29277. __func__, clk_drift, be_idx, clk_reset, port_id);
  29278. ret = afe_set_pll_clk_drift(port_id, clk_drift, clk_reset);
  29279. if (ret < 0)
  29280. pr_err("%s: failed to set pll clk drift\n", __func__);
  29281. return ret;
  29282. }
  29283. static const struct snd_kcontrol_new pll_clk_drift_controls[] = {
  29284. SOC_SINGLE_MULTI_EXT("PLL config data", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  29285. 0, 128, msm_routing_get_pll_clk_drift, msm_routing_put_pll_clk_drift),
  29286. };
  29287. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  29288. struct snd_ctl_elem_value *ucontrol)
  29289. {
  29290. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  29291. uint32_t be_idx = ucontrol->value.integer.value[0];
  29292. int i;
  29293. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  29294. pr_err("%s: Invalid Backend index %d\n", __func__, be_idx);
  29295. return -EINVAL;
  29296. }
  29297. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  29298. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  29299. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  29300. pr_err("%s: Invalid channel map %d\n",
  29301. __func__, channel_map[i]);
  29302. return -EINVAL;
  29303. }
  29304. }
  29305. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  29306. return 0;
  29307. }
  29308. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  29309. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  29310. MSM_BACKEND_DAI_MAX, 0,
  29311. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  29312. msm_routing_put_port_chmap_mixer),
  29313. };
  29314. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  29315. struct snd_ctl_elem_info *uinfo)
  29316. {
  29317. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  29318. uinfo->count = sizeof(be_dai_name_table);
  29319. return 0;
  29320. }
  29321. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  29322. unsigned int __user *bytes,
  29323. unsigned int size)
  29324. {
  29325. int i;
  29326. int ret = 0;
  29327. if (size < sizeof(be_dai_name_table)) {
  29328. pr_err("%s: invalid size %d requested, returning\n",
  29329. __func__, size);
  29330. ret = -EINVAL;
  29331. goto done;
  29332. }
  29333. /*
  29334. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  29335. * needed when adding new backends
  29336. */
  29337. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  29338. be_dai_name_table[i].be_id = i;
  29339. strlcpy(be_dai_name_table[i].be_name,
  29340. msm_bedais[i].name,
  29341. LPASS_BE_NAME_MAX_LENGTH);
  29342. }
  29343. ret = copy_to_user(bytes, &be_dai_name_table,
  29344. sizeof(be_dai_name_table));
  29345. if (ret) {
  29346. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  29347. ret = -EFAULT;
  29348. }
  29349. done:
  29350. return ret;
  29351. }
  29352. static const struct snd_kcontrol_new
  29353. msm_routing_be_dai_name_table_mixer_controls[] = {
  29354. {
  29355. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  29356. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  29357. .info = msm_routing_be_dai_name_table_info,
  29358. .name = "Backend DAI Name Table",
  29359. .tlv.c = snd_soc_bytes_tlv_callback,
  29360. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  29361. .max = sizeof(be_dai_name_table),
  29362. .get = msm_routing_be_dai_name_table_tlv_get,
  29363. }
  29364. },
  29365. };
  29366. static int msm_routing_stereo_channel_reverse_control_get(
  29367. struct snd_kcontrol *kcontrol,
  29368. struct snd_ctl_elem_value *ucontrol)
  29369. {
  29370. ucontrol->value.integer.value[0] = swap_ch;
  29371. pr_debug("%s: Swap channel value: %ld\n", __func__,
  29372. ucontrol->value.integer.value[0]);
  29373. return 0;
  29374. }
  29375. static int msm_routing_stereo_channel_reverse_control_put(
  29376. struct snd_kcontrol *kcontrol,
  29377. struct snd_ctl_elem_value *ucontrol)
  29378. {
  29379. int i, idx, be_index, port_id;
  29380. int ret = 0;
  29381. unsigned long copp;
  29382. pr_debug("%s Swap channel value:%ld\n", __func__,
  29383. ucontrol->value.integer.value[0]);
  29384. swap_ch = ucontrol->value.integer.value[0];
  29385. mutex_lock(&routing_lock);
  29386. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  29387. port_id = msm_bedais[be_index].port_id;
  29388. if (!msm_bedais[be_index].active)
  29389. continue;
  29390. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  29391. MSM_FRONTEND_DAI_MM_SIZE) {
  29392. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  29393. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  29394. if (!test_bit(idx, &copp))
  29395. continue;
  29396. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  29397. __func__, port_id, idx);
  29398. ret = adm_swap_speaker_channels(
  29399. port_id, idx,
  29400. msm_bedais[be_index].sample_rate,
  29401. swap_ch);
  29402. if (ret) {
  29403. pr_err("%s:Swap_channel failed, err=%d\n",
  29404. __func__, ret);
  29405. goto done;
  29406. }
  29407. }
  29408. }
  29409. }
  29410. done:
  29411. mutex_unlock(&routing_lock);
  29412. return ret;
  29413. }
  29414. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  29415. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  29416. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  29417. msm_routing_stereo_channel_reverse_control_put),
  29418. };
  29419. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  29420. struct snd_ctl_elem_info *uinfo)
  29421. {
  29422. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  29423. uinfo->count = 1;
  29424. return 0;
  29425. }
  29426. static int msm_routing_instance_id_support_put(
  29427. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  29428. {
  29429. bool supported = ucontrol->value.integer.value[0] ? true : false;
  29430. q6common_update_instance_id_support(supported);
  29431. return 0;
  29432. }
  29433. static int msm_routing_instance_id_support_get(
  29434. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  29435. {
  29436. bool supported = false;
  29437. supported = q6common_is_instance_id_supported();
  29438. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  29439. return 0;
  29440. }
  29441. static const struct snd_kcontrol_new
  29442. msm_routing_feature_support_mixer_controls[] = {
  29443. {
  29444. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  29445. SNDRV_CTL_ELEM_ACCESS_WRITE,
  29446. .info = msm_routing_instance_id_support_info,
  29447. .name = "Instance ID Support",
  29448. .put = msm_routing_instance_id_support_put,
  29449. .get = msm_routing_instance_id_support_get,
  29450. },
  29451. };
  29452. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  29453. .hw_params = msm_pcm_routing_hw_params,
  29454. .close = msm_pcm_routing_close,
  29455. .prepare = msm_pcm_routing_prepare,
  29456. };
  29457. #ifdef CONFIG_DOA_PARAMS_ENABLED
  29458. void msm_routing_add_doa_control(struct snd_soc_component *component)
  29459. {
  29460. snd_soc_add_component_controls(component,
  29461. msm_source_doa_tracking_controls,
  29462. ARRAY_SIZE(msm_source_doa_tracking_controls));
  29463. }
  29464. #else
  29465. void msm_routing_add_doa_control(struct snd_soc_component *component)
  29466. {
  29467. return;
  29468. }
  29469. #endif
  29470. /* Not used but frame seems to require it */
  29471. static int msm_routing_probe(struct snd_soc_component *component)
  29472. {
  29473. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  29474. ARRAY_SIZE(msm_qdsp6_widgets));
  29475. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  29476. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  29477. snd_soc_dapm_add_routes(&component->dapm, intercon,
  29478. ARRAY_SIZE(intercon));
  29479. snd_soc_dapm_new_widgets(component->dapm.card);
  29480. snd_soc_add_component_controls(component, lsm_controls,
  29481. ARRAY_SIZE(lsm_controls));
  29482. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  29483. ARRAY_SIZE(aanc_slim_0_rx_mux));
  29484. snd_soc_add_component_controls(component, aanc_noise_level,
  29485. ARRAY_SIZE(aanc_noise_level));
  29486. snd_soc_add_component_controls(component, msm_voc_session_controls,
  29487. ARRAY_SIZE(msm_voc_session_controls));
  29488. snd_soc_add_component_controls(component, app_type_cfg_controls,
  29489. ARRAY_SIZE(app_type_cfg_controls));
  29490. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  29491. ARRAY_SIZE(lsm_app_type_cfg_controls));
  29492. snd_soc_add_component_controls(component, module_cfg_controls,
  29493. ARRAY_SIZE(module_cfg_controls));
  29494. snd_soc_add_component_controls(component,
  29495. stereo_to_custom_stereo_controls,
  29496. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  29497. snd_soc_add_component_controls(component, ec_ref_param_controls,
  29498. ARRAY_SIZE(ec_ref_param_controls));
  29499. snd_soc_add_component_controls(component, channel_mixer_controls,
  29500. ARRAY_SIZE(channel_mixer_controls));
  29501. msm_qti_pp_add_controls(component);
  29502. msm_dts_srs_tm_add_controls(component);
  29503. msm_dolby_dap_add_controls(component);
  29504. snd_soc_add_component_controls(component,
  29505. use_ds1_or_ds2_controls,
  29506. ARRAY_SIZE(use_ds1_or_ds2_controls));
  29507. snd_soc_add_component_controls(component,
  29508. hifi_filter_controls,
  29509. ARRAY_SIZE(hifi_filter_controls));
  29510. snd_soc_add_component_controls(component,
  29511. use_ffecns_freeze_event_controls,
  29512. ARRAY_SIZE(use_ffecns_freeze_event_controls));
  29513. snd_soc_add_component_controls(component,
  29514. device_pp_params_mixer_controls,
  29515. ARRAY_SIZE(device_pp_params_mixer_controls));
  29516. snd_soc_add_component_controls(component,
  29517. msm_routing_be_dai_name_table_mixer_controls,
  29518. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  29519. /* Add doa control based on config */
  29520. msm_routing_add_doa_control(component);
  29521. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  29522. ARRAY_SIZE(msm_source_tracking_controls));
  29523. snd_soc_add_component_controls(component, adm_channel_config_controls,
  29524. ARRAY_SIZE(adm_channel_config_controls));
  29525. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  29526. ARRAY_SIZE(aptx_dec_license_controls));
  29527. snd_soc_add_component_controls(component,
  29528. stereo_channel_reverse_control,
  29529. ARRAY_SIZE(stereo_channel_reverse_control));
  29530. snd_soc_add_component_controls(
  29531. component, msm_routing_feature_support_mixer_controls,
  29532. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  29533. snd_soc_add_component_controls(component,
  29534. port_multi_channel_map_mixer_controls,
  29535. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  29536. snd_soc_add_component_controls(component, pll_clk_drift_controls,
  29537. ARRAY_SIZE(pll_clk_drift_controls));
  29538. return 0;
  29539. }
  29540. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  29541. {
  29542. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  29543. }
  29544. void msm_routing_pcm_free(struct snd_pcm *pcm)
  29545. {
  29546. msm_pcm_routing_hwdep_free(pcm);
  29547. }
  29548. static struct snd_soc_component_driver msm_soc_routing_component = {
  29549. .name = DRV_NAME,
  29550. .ops = &msm_routing_pcm_ops,
  29551. .probe = msm_routing_probe,
  29552. .pcm_new = msm_routing_pcm_new,
  29553. .pcm_free = msm_routing_pcm_free,
  29554. };
  29555. static int msm_routing_pcm_probe(struct platform_device *pdev)
  29556. {
  29557. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  29558. return snd_soc_register_component(&pdev->dev,
  29559. &msm_soc_routing_component,
  29560. NULL, 0);
  29561. }
  29562. static int msm_routing_pcm_remove(struct platform_device *pdev)
  29563. {
  29564. snd_soc_unregister_component(&pdev->dev);
  29565. return 0;
  29566. }
  29567. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  29568. {.compatible = "qcom,msm-pcm-routing"},
  29569. {}
  29570. };
  29571. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  29572. static struct platform_driver msm_routing_pcm_driver = {
  29573. .driver = {
  29574. .name = "msm-pcm-routing",
  29575. .owner = THIS_MODULE,
  29576. .of_match_table = msm_pcm_routing_dt_match,
  29577. .suppress_bind_attrs = true,
  29578. },
  29579. .probe = msm_routing_pcm_probe,
  29580. .remove = msm_routing_pcm_remove,
  29581. };
  29582. int msm_routing_check_backend_enabled(int fedai_id)
  29583. {
  29584. int i;
  29585. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  29586. /* bad ID assigned in machine driver */
  29587. pr_err("%s: bad MM ID\n", __func__);
  29588. return 0;
  29589. }
  29590. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  29591. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  29592. return msm_bedais[i].active;
  29593. }
  29594. return 0;
  29595. }
  29596. static int get_cal_type_index(int32_t cal_type)
  29597. {
  29598. int ret = -EINVAL;
  29599. switch (cal_type) {
  29600. case ADM_TOPOLOGY_CAL_TYPE:
  29601. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  29602. break;
  29603. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  29604. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  29605. break;
  29606. default:
  29607. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  29608. }
  29609. return ret;
  29610. }
  29611. static int msm_routing_set_cal(int32_t cal_type,
  29612. size_t data_size, void *data)
  29613. {
  29614. int ret = 0;
  29615. int cal_index;
  29616. pr_debug("%s\n", __func__);
  29617. cal_index = get_cal_type_index(cal_type);
  29618. if (cal_index < 0) {
  29619. pr_err("%s: Could not get cal index %d\n",
  29620. __func__, cal_index);
  29621. ret = -EINVAL;
  29622. goto done;
  29623. }
  29624. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  29625. if (ret < 0) {
  29626. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  29627. __func__, ret, cal_type);
  29628. ret = -EINVAL;
  29629. goto done;
  29630. }
  29631. /* Pre-load if it is ADM topology */
  29632. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  29633. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  29634. msm_routing_load_topology(data_size, data);
  29635. }
  29636. done:
  29637. return ret;
  29638. }
  29639. static void msm_routing_delete_cal_data(void)
  29640. {
  29641. pr_debug("%s\n", __func__);
  29642. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  29643. }
  29644. static int msm_routing_init_cal_data(void)
  29645. {
  29646. int ret = 0;
  29647. struct cal_type_info cal_type_info[] = {
  29648. {{ADM_TOPOLOGY_CAL_TYPE,
  29649. {NULL, NULL, NULL,
  29650. msm_routing_set_cal, NULL, NULL} },
  29651. {NULL, NULL, cal_utils_match_buf_num} },
  29652. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  29653. {NULL, NULL, NULL,
  29654. msm_routing_set_cal, NULL, NULL} },
  29655. {NULL, NULL, cal_utils_match_buf_num} },
  29656. };
  29657. pr_debug("%s\n", __func__);
  29658. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  29659. &cal_type_info[0]);
  29660. if (ret < 0) {
  29661. pr_err("%s: could not create cal type!\n",
  29662. __func__);
  29663. ret = -EINVAL;
  29664. goto err;
  29665. }
  29666. return ret;
  29667. err:
  29668. msm_routing_delete_cal_data();
  29669. return ret;
  29670. }
  29671. int __init msm_soc_routing_platform_init(void)
  29672. {
  29673. mutex_init(&routing_lock);
  29674. if (msm_routing_init_cal_data())
  29675. pr_err("%s: could not init cal data!\n", __func__);
  29676. afe_set_routing_callback(
  29677. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  29678. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29679. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  29680. return platform_driver_register(&msm_routing_pcm_driver);
  29681. }
  29682. void msm_soc_routing_platform_exit(void)
  29683. {
  29684. msm_routing_delete_cal_data();
  29685. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29686. mutex_destroy(&routing_lock);
  29687. platform_driver_unregister(&msm_routing_pcm_driver);
  29688. }
  29689. MODULE_DESCRIPTION("MSM routing platform driver");
  29690. MODULE_LICENSE("GPL v2");